Skip to content
Merged
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
2 changes: 1 addition & 1 deletion docs/site-map.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ This file is generated by `npm run sitemap:update`. Run `npm run sitemap:check`
- `/formulation` - Formulation mode. Search kind: `formulation`. Query example: `/formulation?q=I+keep+going+over+it&focus=1&run=1`.
- `/?mode=prescribing` - Medication mode. Search kind: `documents`. Query example: `/?mode=prescribing&q=acamprosate+renal+dose&focus=1&run=1`.
- `/?mode=tools` - Tools mode. Search kind: `tools`. Query example: `/?mode=tools&q=medications&focus=1&run=1`.
- `/therapy-compass` - Therapy Compass mode. Search kind: `tools`. Query example: `/therapy-compass?q=behavioural+activation&focus=1&run=1`.
- `/therapy-compass` - Therapy mode. Search kind: `tools`. Query example: `/therapy-compass?q=behavioural+activation&focus=1&run=1`.

## Mode page index

Expand Down
2 changes: 1 addition & 1 deletion src/app/therapy-compass/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Metadata } from "next";
import { TherapyCompassPage } from "@/components/therapy-compass";

export const metadata: Metadata = {
title: "Therapy Compass - Clinical KB",
title: "Therapy - Clinical KB",
description:
"Source-grounded therapy decision support: search, compare, recommend, pathways, brief interventions and patient sheets.",
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/clinical-dashboard/ClinicalSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const sidebarToolItems = [
{ id: "formulation", label: "Formulation", icon: Network, href: "/formulation" },
{ id: "prescribing", label: "Medication", icon: Pill, href: "/?mode=prescribing" },
{ id: "tools", label: "Tools", icon: Wrench, href: "/?mode=tools" },
{ id: "therapy-compass", label: "Therapy Compass", icon: appModeIcons["therapy-compass"], href: "/therapy-compass" },
{ id: "therapy-compass", label: "Therapy", icon: appModeIcons["therapy-compass"], href: "/therapy-compass" },
] as const;

// Drop any tool whose id is a dev-only app mode from the production nav. Non-mode
Expand Down
4 changes: 2 additions & 2 deletions src/components/therapy-compass/nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function TherapyCompassNav() {
</span>
<span style={s(`display:flex;flex-direction:column;line-height:1.15;`)}>
<span style={s(`font-size:14px;font-weight:650;color:var(--text-heading);letter-spacing:-0.01em;`)}>
Therapy Compass
Therapy
</span>
<span style={s(`font-size:11px;color:var(--text-soft);`)}>Source-grounded decision support</span>
</span>
Expand All @@ -47,7 +47,7 @@ export function TherapyCompassNav() {
{/* Screen nav — horizontal, scrollable */}
<nav
className="tc-scroll"
aria-label="Therapy Compass sections"
aria-label="Therapy sections"
style={s(`display:flex;align-items:center;gap:6px;flex:1;min-width:0;overflow-x:auto;padding-bottom:2px;`)}
>
<button type="button" className="tc-btn" onClick={b.goHome} style={b.navHome}>
Expand Down
4 changes: 2 additions & 2 deletions src/components/therapy-compass/screens/other-screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export function OtherScreen() {
</span>
<h1 style={s(`margin:0 0 8px;font-size:24px;font-weight:680;color:var(--text-heading);`)}>{b.otherLabel}</h1>
<p style={s(`margin:0 0 22px;font-size:14.5px;color:var(--text-muted);`)}>
This surface uses the same Therapy Compass shell. Pick a tool from the top navigation to keep exploring the
clinical workspace.
This surface uses the same Therapy shell. Pick a tool from the top navigation to keep exploring the clinical
workspace.
</p>
<div style={s(`display:flex;gap:10px;justify-content:center;flex-wrap:wrap;`)}>
<button type="button" className="tc-btn" onClick={b.goHome} style={s(commandControl)}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/therapy-compass/screens/sheets-screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export function SheetsScreen() {
<ScaleIcon size={20} strokeWidth={1.6} />
</span>
<span style={s(`font-size:13px;font-weight:600;color:var(--text-soft);letter-spacing:0.02em;`)}>
Therapy Compass · Patient information
Therapy · Patient information
</span>
</div>
<span style={s(`font-size:11.5px;color:#8a94a3;`)}>Prepared for you</span>
Expand Down
10 changes: 5 additions & 5 deletions src/lib/app-modes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ export const appModeDefinitions = [
},
{
id: "therapy-compass",
label: "Therapy Compass",
label: "Therapy",
description: "Source-grounded therapy decision support",
href: "/therapy-compass",
// Held out of production discovery until the re-curated therapy pathways
Expand All @@ -325,15 +325,15 @@ export const appModeDefinitions = [
kind: "tools",
placeholder: "Search therapies, symptoms, or skills...",
inputAriaLabel: "Search therapies by problem, symptom, skill, or population",
submitIdleLabel: "Compass",
submitBusyLabel: "Compass",
submitAriaLabel: "Open Therapy Compass",
submitIdleLabel: "Therapy",
submitBusyLabel: "Therapy",
submitAriaLabel: "Open Therapy",
emptyTitle: "Browse the therapy library",
readyTitle: "Search source-grounded therapies",
progressLabel: "Loading the therapy library.",
resultKind: "tools",
resultHeading: "Therapies",
statusLabel: "Compass",
statusLabel: "Therapy",
nextStep: "Open a therapy record",
badgeLabel: null,
},
Expand Down