Skip to content

Embed the xNet DevTools in every demo (and flag it on /demos) - #506

Merged
crs48 merged 4 commits into
mainfrom
claude/0314-demos-devtools
Jul 13, 2026
Merged

Embed the xNet DevTools in every demo (and flag it on /demos)#506
crs48 merged 4 commits into
mainfrom
claude/0314-demos-devtools

Conversation

@crs48

@crs48 crs48 commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Follow-up to #494/#502/#504, user request: the real xNet DevTools inspector now ships in all three hosted demos — cursor party, Connect Four, collab todo — and therefore in both paired iframes on the /demos page, which also gained a hint line pointing at the wrench/⌘⇧D.

How: XNetDevToolsProvider (same as the workbench) wraps each demo inside its per-room XNetProvider. The demos app gains Tailwind scoped to the devtools/ui sources only (preflight off — the demos' own plain CSS is untouched), @xnetjs/ui design tokens, an html.dark class synced to prefers-color-scheme, and ES-format workers (the devtools pull in the canvas layout worker).

Verified on a locally-assembled Pages tree: the wrench FAB renders position:fixed in all demos and in both /demos iframes; the panel opens with Data/Changes/Logs/Performance against the live store (screenshot in session: room node visible in the Data panel, store+sync connected).

🤖 Generated with Claude Code

All three demos (and therefore both iframes on the site's /demos page)
now ship the real DevTools inspector — the floating wrench (or Ctrl/Cmd+
Shift+D) opens the Data/Changes/Logs/Performance panels against the
demo's live store and sync. Tailwind is added scoped to the devtools/ui
sources only (preflight off; demos stay plain CSS), design tokens come
from @xnetjs/ui, an html.dark class tracks prefers-color-scheme, and
workers build as ES modules (the devtools pull in the canvas layout
worker).

Signed-off-by: xNet Test <test@xnet.dev>
@crs48 crs48 added the skip-changelog Exclude this PR from the changelog label Jul 13, 2026
@crs48
crs48 temporarily deployed to pr-506 July 13, 2026 20:59 — with GitHub Actions Inactive
Signed-off-by: xNet Test <test@xnet.dev>
@crs48
crs48 temporarily deployed to pr-506 July 13, 2026 21:04 — with GitHub Actions Inactive
Signed-off-by: xNet Test <test@xnet.dev>
@crs48
crs48 temporarily deployed to pr-506 July 13, 2026 21:05 — with GitHub Actions Inactive
github-actions Bot added a commit that referenced this pull request Jul 13, 2026
@github-actions

github-actions Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Preview removed for PR #506.

github-actions Bot added a commit that referenced this pull request Jul 13, 2026
@crs48
crs48 temporarily deployed to pr-506 July 13, 2026 21:35 — with GitHub Actions Inactive
github-actions Bot added a commit that referenced this pull request Jul 13, 2026
github-actions Bot added a commit that referenced this pull request Jul 13, 2026
@crs48
crs48 merged commit b9a4fc4 into main Jul 13, 2026
14 checks passed
@crs48
crs48 deleted the claude/0314-demos-devtools branch July 13, 2026 21:45
github-actions Bot added a commit that referenced this pull request Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog Exclude this PR from the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant