Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions src/app/mockups/mockups-layout-client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ export function MockupsLayoutClient({ children }: { children: ReactNode }) {
const isUniversalSearchRedesignMockup = pathname === "/mockups/universal-search-redesign";
const isSearchHeadingMockup = pathname === "/mockups/search-heading";
const isPhoneInPageNavigationMockup = pathname === "/mockups/phone-inpage-navigation";
// The Therapy navigation directions draw their own universal top bar and their
// own composer inside every device frame, so the shared chrome would read as a
// second, real header stacked above the study it is meant to illustrate.
const isTherapyNavigationMockup = pathname.startsWith("/mockups/therapy-navigation-");
// The calculators search page owns its own search input (top on desktop, docked
// at the bottom on phones), so the shared universal composer is suppressed here
// to avoid a second, floating search bar.
Expand All @@ -28,9 +32,11 @@ export function MockupsLayoutClient({ children }: { children: ReactNode }) {
? "tools"
: isFavouritesPageMockup
? "favourites"
: isDocumentSearchMockup || isDocumentTopNavigationMockup
? "documents"
: "answer"
: isTherapyNavigationMockup
? "therapy-compass"
: isDocumentSearchMockup || isDocumentTopNavigationMockup
? "documents"
: "answer"
}
searchComposerVisible={
!isToolsPageMockup &&
Expand All @@ -39,9 +45,15 @@ export function MockupsLayoutClient({ children }: { children: ReactNode }) {
!isDocumentTopNavigationMockup &&
!isUniversalSearchRedesignMockup &&
!isCalculatorsSearchPageMockup &&
!isPhoneInPageNavigationMockup
!isPhoneInPageNavigationMockup &&
!isTherapyNavigationMockup
}
chromeVisible={
!isSourceOverlayRedesignMockup &&
!isSearchHeadingMockup &&
!isPhoneInPageNavigationMockup &&
!isTherapyNavigationMockup
}
chromeVisible={!isSourceOverlayRedesignMockup && !isSearchHeadingMockup && !isPhoneInPageNavigationMockup}
>
{children}
</GlobalMockupSearchShell>
Expand Down
13 changes: 13 additions & 0 deletions src/app/mockups/therapy-navigation-context/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import type { Metadata } from "next";

import { TherapyNavigationContextMockups } from "@/components/therapy-navigation-mockups/context";

export const metadata: Metadata = {
title: "Therapy navigation B · Context row - Clinical KB",
description:
"Direction B for the Therapy navigation panel: a two-line context row with a weighted stage track and a jump panel, shown at desktop, tablet and phone.",
};

export default function TherapyNavigationContextMockupPage() {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Regenerate the sitemap for the new routes

Adding the three /mockups/therapy-navigation-* pages without regenerating docs/site-map.md leaves the committed route inventory stale; the sitemap generator enumerates these page.tsx files, so npm run sitemap:check will exit with the documented stale-map error. Run npm run sitemap:update and commit the generated entries for all three routes.

AGENTS.md reference: AGENTS.md:L195-L197

Useful? React with 👍 / 👎.

return <TherapyNavigationContextMockups />;
}
13 changes: 13 additions & 0 deletions src/app/mockups/therapy-navigation-dock/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import type { Metadata } from "next";

import { TherapyNavigationDockMockups } from "@/components/therapy-navigation-mockups/dock";

export const metadata: Metadata = {
title: "Therapy navigation C · Working-set dock - Clinical KB",
description:
"Direction C for the Therapy navigation panel: navigation as a readout of the therapy, basket and artifacts you are carrying, shown at desktop, tablet and phone.",
};

export default function TherapyNavigationDockMockupPage() {
return <TherapyNavigationDockMockups />;
}
13 changes: 13 additions & 0 deletions src/app/mockups/therapy-navigation-rail/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import type { Metadata } from "next";

import { TherapyNavigationRailMockups } from "@/components/therapy-navigation-mockups/rail";

export const metadata: Metadata = {
title: "Therapy navigation A · Grouped rail - Clinical KB",
description:
"Direction A for the Therapy navigation panel: three ranked groups on a rail, shown at desktop, tablet and phone.",
};

export default function TherapyNavigationRailMockupPage() {
return <TherapyNavigationRailMockups />;
}
Loading
Loading