Skip to content

feat(client): bring the Hero's particle background into the workspace - #16

Merged
Alex350-coder merged 1 commit into
mainfrom
feat/connect-hero-to-app-navigation
Sep 9, 2026
Merged

Alex350-coder merged 1 commit into
mainfrom
feat/connect-hero-to-app-navigation

Conversation

@Alex350-coder

Copy link
Copy Markdown
Owner

Mount the shared BackgroundLayer behind WorkspaceShell so the authenticated /app views get the same ambient effect as the Hero, /login, and /register, per explicit request. Readability of the dense workspace UI is preserved deliberately:

  • WorkspaceShell's header gets a frosted (bg/70 + backdrop-blur) treatment instead of a flat opaque background, so nav/user controls stay legible over the animated canvas.
  • ProjectList's project cards already sit on solid surfaces and need no change.
  • WorkspaceGraphView's title bar and graph canvas get the same frosted-card treatment as the Hero's own GraphStage (bg-background-elevated/60 + backdrop-blur), since React Flow's dot-grid background is otherwise transparent and would let particles bleed straight through the graph.

Also fixes a test gap surfaced by this change: jsdom has no matchMedia implementation, so any component using useReducedMotion (BackgroundLayer's dependency) throws in tests unless it's mocked. Added a shared mock to vitest.setup.ts rather than per-test, since it's a jsdom environment gap, not something specific to this component.

Mount the shared BackgroundLayer behind WorkspaceShell so the authenticated
/app views get the same ambient effect as the Hero, /login, and /register,
per explicit request. Readability of the dense workspace UI is preserved
deliberately:

- WorkspaceShell's header gets a frosted (bg/70 + backdrop-blur) treatment
  instead of a flat opaque background, so nav/user controls stay legible
  over the animated canvas.
- ProjectList's project cards already sit on solid surfaces and need no
  change.
- WorkspaceGraphView's title bar and graph canvas get the same frosted-card
  treatment as the Hero's own GraphStage (bg-background-elevated/60 +
  backdrop-blur), since React Flow's dot-grid background is otherwise
  transparent and would let particles bleed straight through the graph.

Also fixes a test gap surfaced by this change: jsdom has no matchMedia
implementation, so any component using useReducedMotion (BackgroundLayer's
dependency) throws in tests unless it's mocked. Added a shared mock to
vitest.setup.ts rather than per-test, since it's a jsdom environment gap,
not something specific to this component.
@Alex350-coder
Alex350-coder merged commit a32ab79 into main Sep 9, 2026
1 of 2 checks passed
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