Show the TanStack devtools on local and preview stacks behind a runtime probe #396
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
spec
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
#397 Switch the browser to a Demo Guest from a Guest panel in the devtools
amaurycoudr/chess-project
#395 Seed Demo Guests and their decided Games on local and preview stacks
amaurycoudr/chess-project
Reference
amaurycoudr/chess-project#396
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
#394
What to build
The TanStack devtools appear on local and preview stacks and never in production, all from the same image. The API answers a new
devtoolscontract procedure,GET /rpc/devtools, with the Demo Guests' labels and secrets. Those come from the seed's own definition, and the procedure answers only whenDEVTOOLS_ENABLEDis on; otherwise it is 404.The front no longer strips the devtools at build time, and no longer mounts them unconditionally. It calls the probe once at boot, and only on a 200 does it lazily import and mount the devtools (Router and Query panels). Production downloads no devtools chunk. Local dev goes through the same probe.
Seam: API integration, for the probe; front view, for the gated mount; and the deploy verification, for the probe's status by stack.
Acceptance criteria
@chess/contractshas adevtoolsgroup withGET /devtools, whose output is{ demoGuests: [{ label, secret }] }.devtoolsNest module is imported only when the flag is on./rpc/devtoolsreturns the Demo Guests when it is on, and 404 when it is off; there is an integration test for each case.DEVTOOLS_ENABLED=trueon theappservice, and production's compose does not.verify.shchecks that/rpc/devtoolsanswers 200 on a preview and 404 on production.removeDevtoolsOnBuild: false). The root route mounts them only after a 200 probe, through a dynamic import.apps/e2estays green with devtools on in itsbuilttarget.mentioned in issue #397
marked this issue as related to #394
marked this issue as related to #395
marked this issue as related to #397
mentioned in merge request !522