Switch the browser to a Demo Guest from a Guest panel in the devtools #397

Closed
opened 2026-10-14 09:55:54 +00:00 by root · 3 comments
root commented 2026-10-14 09:55:54 +00:00 (Migrated from gitlab.core-project.space)

Parent

#394

What to build

On a stack with devtools, a "Guest" panel inside the TanStack devtools shows the browser's current Guest, masked. It switches the browser to a Demo Guest in one click, or to a secret pasted by hand. After a switch, "My games" and the Game page show that Guest's view at once, without a reload. There is no "Forget" and no "back to my Guest".

Seam: front view, the root route with the app harness and MSW.

Acceptance criteria

  • The Guest panel is a TanStack devtools plugin, mounted with the Router and Query panels after a 200 probe.
  • It shows the held Guest masked, and says so when the browser holds none.
  • It lists "Switch to…" for each Demo Guest from the probe.
  • "Switch to…" and "Paste a secret" call keepGuest() and invalidate the Query cache, so the next request carries the new x-guest, and My games refetches.
  • An empty pasted secret is refused.
  • The panel's copy goes through the Paraglide catalogue (ADR 0025).
## Parent #394 ## What to build On a stack with devtools, a "Guest" panel inside the TanStack devtools shows the browser's current Guest, masked. It switches the browser to a Demo Guest in one click, or to a secret pasted by hand. After a switch, "My games" and the Game page show that Guest's view at once, without a reload. There is no "Forget" and no "back to my Guest". Seam: front view, the root route with the app harness and MSW. ## Acceptance criteria - [ ] The Guest panel is a TanStack devtools plugin, mounted with the Router and Query panels after a 200 probe. - [ ] It shows the held Guest masked, and says so when the browser holds none. - [ ] It lists "Switch to…" for each Demo Guest from the probe. - [ ] "Switch to…" and "Paste a secret" call `keepGuest()` and invalidate the Query cache, so the next request carries the new `x-guest`, and My games refetches. - [ ] An empty pasted secret is refused. - [ ] The panel's copy goes through the Paraglide catalogue (ADR 0025).
root commented 2026-10-14 09:56:06 +00:00 (Migrated from gitlab.core-project.space)

marked this issue as related to #394

marked this issue as related to #394
root commented 2026-10-14 09:56:07 +00:00 (Migrated from gitlab.core-project.space)

marked this issue as related to #396

marked this issue as related to #396
root commented 2026-10-14 10:13:40 +00:00 (Migrated from gitlab.core-project.space)

mentioned in merge request !522

mentioned in merge request !522
root (Migrated from gitlab.core-project.space) closed this issue 2026-10-14 11:15:25 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
amaurycoudr/chess-project#397
No description provided.