diff --git a/client/src/features/workspace/components/WorkspaceShell.tsx b/client/src/features/workspace/components/WorkspaceShell.tsx index 4f1e689..9ab2a08 100644 --- a/client/src/features/workspace/components/WorkspaceShell.tsx +++ b/client/src/features/workspace/components/WorkspaceShell.tsx @@ -8,6 +8,7 @@ import { useAuthUser } from "@/features/auth/auth.store"; import { useLogout } from "@/features/auth/auth.api"; import { useBootstrapSession } from "@/features/auth/use-bootstrap-session"; import { Button } from "@/components/ui/button"; +import { BackgroundLayer } from "@/components/effects/BackgroundLayer"; import { ProjectSwitcher } from "./ProjectSwitcher"; type Props = { @@ -43,8 +44,12 @@ export function WorkspaceShell({ children }: Props) { } return ( -
-
+
+ {/* Same shared effect as the Hero/login/register (FE-012 lineage). Kept subtle here: the + * header gets a frosted backdrop and page content keeps its own solid surfaces (project + * cards, the graph canvas card) so the animation reads as ambient texture, not clutter. */} + +
@@ -61,7 +66,7 @@ export function WorkspaceShell({ children }: Props) {
-
{children}
+
{children}
); } diff --git a/client/src/features/workspace/graph/WorkspaceGraphView.tsx b/client/src/features/workspace/graph/WorkspaceGraphView.tsx index 333a099..39bb8b0 100644 --- a/client/src/features/workspace/graph/WorkspaceGraphView.tsx +++ b/client/src/features/workspace/graph/WorkspaceGraphView.tsx @@ -53,10 +53,15 @@ export function WorkspaceGraphView({ projectId }: Props) { return (
-
+

{project.data?.name}

-
+ {/* + * Same frosted-card treatment as the Hero's GraphStage: the particle background now mounted + * behind the whole workspace (WorkspaceShell) would otherwise bleed straight through React + * Flow's transparent dot grid and compete with node/edge legibility. + */} +
{/* * `h-full` on GraphEngine's own wrapper can resolve to 0 here: this ancestor's height * comes purely from flex-grow (no explicit CSS height anywhere in the chain up to diff --git a/client/vitest.setup.ts b/client/vitest.setup.ts index f149f27..9264b6d 100644 --- a/client/vitest.setup.ts +++ b/client/vitest.setup.ts @@ -1 +1,16 @@ import "@testing-library/jest-dom/vitest"; + +// jsdom doesn't implement matchMedia. Anything using useReducedMotion (BackgroundLayer and its +// consumers: the Hero, /login, /register, WorkspaceShell) needs this to render in tests at all. +if (!window.matchMedia) { + window.matchMedia = (query: string) => ({ + matches: false, + media: query, + onchange: null, + addListener: () => {}, + removeListener: () => {}, + addEventListener: () => {}, + removeEventListener: () => {}, + dispatchEvent: () => false, + }) as unknown as MediaQueryList; +}