Skip to content

Rename Therapy Compass display label to "Therapy"#737

Merged
BigSimmo merged 8 commits into
mainfrom
claude/therapy-compass-display-6kisnw
Jul 17, 2026
Merged

Rename Therapy Compass display label to "Therapy"#737
BigSimmo merged 8 commits into
mainfrom
claude/therapy-compass-display-6kisnw

Conversation

@BigSimmo

@BigSimmo BigSimmo commented Jul 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • Renames the user-visible label of the therapy decision-support mode from "Therapy Compass" to "Therapy" everywhere it is shown, so the name is consistent across the app.
  • Surfaces updated:
    • In-tool top header brand (src/components/therapy-compass/nav.tsx) + its aria-label ("Therapy sections").
    • Left sidebar entry (src/components/clinical-dashboard/ClinicalSidebar.tsx).
    • Mode config label, search submitIdle/Busy/AriaLabel, and statusLabel (src/lib/app-modes.ts).
    • Browser/page title (src/app/therapy-compass/page.tsx).
    • Printed patient-sheet header (src/components/therapy-compass/screens/sheets-screen.tsx).
    • Placeholder-screen copy (src/components/therapy-compass/screens/other-screen.tsx).
    • Regenerated docs/site-map.md so the tracked sitemap matches the new mode label.
  • Not changed: internal ids, routes (/therapy-compass), file/folder names, and the dev-only /mockups/therapy-compass page — these keep the existing name so wiring and deep links are unaffected.

Verification

  • npm run verify:pr-local
  • npm run verify:ui when UI, routing, styling, browser behavior, reduced-motion, or forced-colors behavior changed
  • npm run verify:release before release or handoff confidence claims

Ran locally:

  • npx vitest run tests/app-modes.test.ts tests/therapy-compass-mode-wiring.test.ts tests/therapy-compass-pathways.test.ts28/28 passed. No test asserts on the display label; all use the therapy-compass id, which is unchanged.
  • npm run sitemap:update to regenerate docs/site-map.md; tests/site-map.test.ts5/5 passed.
  • npm run typecheck → only pre-existing, unrelated errors (test files missing @testing-library/react / @axe-core/playwright type deps and implicit-any params); none in the files touched here.

Verification not run: verify:pr-local — change is display-string/copy only (no routing, styling, layout, or behavior change), so the broader PR-local gate adds no signal beyond the targeted suites above.

UI verification not run: display-copy/label-only change with no styling, layout, routing, reduced-motion, or forced-colors change; the Chromium UI a11y specs also cannot run in this environment because @axe-core/playwright is not installed.

Risk and rollout

  • Risk: Very low. Copy/label-only change; no logic, routing, data, or API behavior touched.
  • Rollback: Revert the label-rename commits on this branch.
  • Provider or production effects: None.

Clinical Governance Preflight

This change is a display-label/copy rename only; it does not alter ingestion, answer generation, search/ranking, source rendering, document access, privacy, production environment, or clinical output. Each governance property below is preserved:

  • Source-backed claims still require linked source verification before clinical use
  • No patient-identifiable document workflow was introduced or expanded without explicit governance approval
  • Supabase target remains Clinical KB Database (sjrfecxgysukkwxsowpy)
  • Service-role keys and private document access remain server-only
  • Demo/synthetic content remains clearly separated from real clinical sources
  • Source metadata, review status, and outdated/unknown-source behavior remain conservative
  • Deployment classification/TGA SaMD impact was checked when clinical decision-support behavior changed

Notes

  • The subtitle "Source-grounded decision support" under the header is retained, so the header now reads "Therapy" / "Source-grounded decision support".

🤖 Generated with Claude Code

https://claude.ai/code/session_01GwN5gzEEiTUoUrGmoUoakq

Summary by CodeRabbit

  • Style
    • Updated the Therapy Compass experience’s user-facing name to Therapy across navigation, page titles, sidebar labels, headings, and search actions.
    • Refined related informational and accessibility text to use the shorter terminology.
  • Documentation
    • Updated the sitemap label to reflect the new Therapy name.

Renames the user-visible label of the therapy decision-support mode from
"Therapy Compass" to "Therapy" across the surfaces where it is shown: the
in-tool top header, the left sidebar entry, the browser/page title, the
mode config label and its search status/aria labels, the printed patient
sheet header, and the placeholder-screen copy. Internal ids, routes, file
names, and the dev-only mockup are left unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GwN5gzEEiTUoUrGmoUoakq
@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: e301c363-c582-485e-806c-aaf77d1ce1d6

📥 Commits

Reviewing files that changed from the base of the PR and between a6ac8c0 and 7e2d989.

📒 Files selected for processing (7)
  • docs/site-map.md
  • src/app/therapy-compass/page.tsx
  • src/components/clinical-dashboard/ClinicalSidebar.tsx
  • src/components/therapy-compass/nav.tsx
  • src/components/therapy-compass/screens/other-screen.tsx
  • src/components/therapy-compass/screens/sheets-screen.tsx
  • src/lib/app-modes.ts

📝 Walkthrough

Walkthrough

The therapy-compass mode’s user-facing name changes from “Therapy Compass” to “Therapy” across configuration, metadata, sidebar and navigation labels, screen text, accessibility text, and sitemap documentation. Search behavior and routing remain unchanged.

Changes

Therapy naming alignment

Layer / File(s) Summary
Mode labels and search text
src/lib/app-modes.ts
The therapy mode label and search UI strings now use “Therapy” wording while preserving the existing search configuration.
Route and interface labels
src/app/therapy-compass/page.tsx, src/components/clinical-dashboard/ClinicalSidebar.tsx, src/components/therapy-compass/..., docs/site-map.md
Page metadata, sidebar and navigation labels, screen text, accessibility text, and sitemap descriptions use the shortened name.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

Suggested reviewers: claude

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately and concisely summarizes the main change: renaming the Therapy Compass label to Therapy.
Description check ✅ Passed The description matches the template and covers summary, verification, risk, governance, and notes with only non-critical gates marked not run.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/therapy-compass-display-6kisnw

Comment @coderabbitai help to get the list of available commands.

@supabase

supabase Bot commented Jul 17, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project sjrfecxgysukkwxsowpy because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

- Reflow the other-screen paragraph with Prettier after the "Therapy Compass"
  -> "Therapy" copy change (Static PR checks / format:check).
- Regenerate docs/site-map.md so the tracked sitemap matches the mode label,
  now "Therapy mode" (Unit coverage / tests/site-map.test.ts).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GwN5gzEEiTUoUrGmoUoakq
@BigSimmo
BigSimmo marked this pull request as ready for review July 17, 2026 18:24
@BigSimmo
BigSimmo enabled auto-merge July 17, 2026 18:24
Copilot AI and others added 5 commits July 17, 2026 18:27
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
Co-authored-by: BigSimmo <BigSimmo@users.noreply.github.com>
@BigSimmo
BigSimmo merged commit 0b6f349 into main Jul 17, 2026
15 checks passed
@BigSimmo
BigSimmo deleted the claude/therapy-compass-display-6kisnw branch July 17, 2026 19:06
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.

4 participants