Skip to content

Fix: dev-tools island visibility (gate on availability, not DEV) (0289) - #429

Merged
crs48 merged 1 commit into
mainfrom
claude/0289-fix-devtools-island-visibility
Jul 9, 2026
Merged

Fix: dev-tools island visibility (gate on availability, not DEV) (0289)#429
crs48 merged 1 commit into
mainfrom
claude/0289-fix-devtools-island-visibility

Conversation

@crs48

@crs48 crs48 commented Jul 9, 2026

Copy link
Copy Markdown
Owner

Problem

The docked dev-tools island (0287, beside the status bar) was gated on import.meta.env.DEV. But the full @xnetjs/devtools provider is bundled in more builds than just the local dev server (the deploy-preview / prod-ish builds resolve the package's import export condition to the real implementation) — that's where the old floating FAB used to show. So the island disappeared in those builds, and since it wasn't rendered, the status-bar island didn't reserve its 32px slot (the button looked "hidden behind" the status bar).

Fix

Add an available flag to DevToolsContextValuetrue in the real provider, false in the production stub — and gate the island on useDevTools().available instead of import.meta.env.DEV. Now the island appears exactly where the FAB did (wherever the real provider is mounted), and the status row reserves its space accordingly. No change in the local dev server (still shows).

Verification

  • Live in the worktree preview (desktop): the island renders, the status island shrinks (1378px) and the 32px wrench sits beside it (x≈1397); no console errors.
  • pnpm typecheck (both xnet-web and @xnetjs/devtools) clean. @xnetjs/devtools + apps/web are private → no changeset; changelog fragment added.

🤖 Generated with Claude Code

The docked dev-tools island was gated on import.meta.env.DEV, but the full
devtools provider is bundled in more builds than that (deploy-preview /
prod-ish), where the old floating FAB used to show. So the island vanished
there while the status bar didn't reserve its space. Gate instead on a new
DevToolsContextValue.available flag (true in the real provider, false in the
prod stub), so the island appears exactly where the FAB did.

Signed-off-by: xNet Test <test@xnet.dev>
@crs48
crs48 temporarily deployed to pr-429 July 9, 2026 09:46 — with GitHub Actions Inactive
github-actions Bot added a commit that referenced this pull request Jul 9, 2026
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

🖼️ UI changes in this PR

No visual differences detected in the changed UI.

CI run

@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Preview removed for PR #429.

github-actions Bot added a commit that referenced this pull request Jul 9, 2026
@crs48
crs48 merged commit 9777da0 into main Jul 9, 2026
15 checks passed
@crs48
crs48 deleted the claude/0289-fix-devtools-island-visibility branch July 9, 2026 09:53
github-actions Bot added a commit that referenced this pull request Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant