Skip to content

content(therapy): use Therapy mode consistently - #1076

Merged
BigSimmo merged 3 commits into
mainfrom
codex/reconcile-therapy-mode
Jul 22, 2026
Merged

content(therapy): use Therapy mode consistently#1076
BigSimmo merged 3 commits into
mainfrom
codex/reconcile-therapy-mode

Conversation

@BigSimmo

@BigSimmoBigSimmo commented Jul 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • rename the user-facing Therapy experience to “Therapy mode” across headings, launcher/search copy, metadata, generated sitemap content, and related assertions
  • keep the /therapy-compass route family and internal component/type names unchanged
  • make sitemap mode-name rendering avoid duplicated mode mode wording

Why

The product naming should be consistent without changing routes, internal architecture, or clinical behavior.

Verification

  • npm run sitemap:check — passed
  • node scripts/run-vitest.mjs run tests/therapy-compass-data-recovery.dom.test.tsx tests/therapy-compass-mode-wiring.test.ts tests/app-modes.test.ts --reporter=verbose — 3 files, 31 tests passed
  • npm run ensure — passed; verified Database identity at http://localhost:3970
  • node scripts/run-playwright.mjs tests/ui-route-coverage.spec.ts tests/ui-accessibility.spec.ts --project=chromium --grep "Therapy Compass" — isolated production build and TypeScript passed; 2 Chromium tests passed
  • npm run verify:cheap — all 20 gates passed; 358 files, 3,177 tests passed, 1 skipped
  • after merging refreshed origin/main: npm run sitemap:check and focused 3-file/31-test Vitest rerun — passed

Checks not run

  • Full Firefox/WebKit matrix was not repeated locally because this is copy/metadata-only and the focused Chromium scenarios plus hosted checks cover the affected UI path.
  • No live Supabase, OpenAI, Railway, or RAG evaluation was run; none is relevant to this change.

Risk and rollback

Low-risk copy/metadata change. Roll back by reverting the single content commit and merge-sync commit if hosted checks identify an unexpected integration issue.

RAG impact: no retrieval behaviour change — user-facing copy and metadata only; no protected RAG surface changed.

Summary by CodeRabbit

  • User Experience
    • Updated the Therapy Compass experience naming to Therapy mode across page titles, headings, search labels, accessibility text, and error messaging.
    • Refined how mode-related route titles are generated and displayed throughout the Therapy mode experience.
  • Documentation
    • Updated the codebase index and sitemap route descriptions to reflect Therapy mode.
  • Tests
    • Updated UI and wiring tests to consistently expect Therapy mode wording across the experience.

@supabase

supabaseBot commented Jul 22, 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 ↗︎.

@coderabbitai

coderabbitaiBot commented Jul 22, 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: 4cbeaea6-8ef6-4a1a-91a8-3b19f2c9a788

📥 Commits

Reviewing files that changed from the base of the PR and between 451964f and 4008c62.

📒 Files selected for processing (3)
  • docs/codebase-index.md
  • src/components/clinical-dashboard/ClinicalSidebar.tsx
  • tests/therapy-compass-mode-wiring.test.ts
🚧 Files skipped from review as they are similar to previous changes (2)
  • docs/codebase-index.md
  • tests/therapy-compass-mode-wiring.test.ts

📝 Walkthrough

Walkthrough

The Therapy Compass mode is renamed to “Therapy mode” across mode configuration, UI headings, route metadata, sitemap output, documentation, sidebar wiring, and related tests.

Changes

Therapy mode copy update

Layer / File(s)Summary
Mode and UI copy
src/lib/app-modes.ts, src/components/therapy-compass/..., src/components/clinical-dashboard/ClinicalSidebar.tsx, tests/therapy-compass-data-recovery.dom.test.tsx, tests/ui-*.spec.ts
Therapy mode labels, search text, headings, error messages, sidebar text, and corresponding UI assertions are updated.
Route metadata and sitemap copy
src/app/therapy-compass/..., scripts/generate-site-map.ts, docs/*.md
Route titles, sitemap descriptions, generated mode labels, and documentation use Therapy mode.
Production copy consistency checks
tests/therapy-compass-mode-wiring.test.ts
Route source modules are checked for Therapy mode copy and against remaining Therapy Compass text.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested labels:codex

Suggested reviewers:claude

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check nameStatusExplanationResolution
Docstring Coverage⚠️ WarningDocstring 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 nameStatusExplanation
Title check✅ PassedThe title clearly and concisely summarizes the main change: renaming Therapy copy to “Therapy mode” consistently.
Description check✅ PassedThe description covers summary, verification, and risk/rollback, though it doesn't follow the exact template headings or include the checklist blocks.
Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
Out of Scope Changes check✅ PassedCheck 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 codex/reconcile-therapy-mode

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

@chatgpt-codex-connectorchatgpt-codex-connectorBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit:451964fb2b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment threadsrc/lib/app-modes.ts
@BigSimmo

Copy link
Copy Markdown
OwnerAuthor

@codex resolve actionable Codex review findings for this pull request and current head using the repository instructions. This is the pull request's single automatic repair pass: do not perform a fresh review, create new standalone findings, or request another review. Work only the existing unresolved Codex threads on the current head. Always fix P0 and P1 findings. For P2 and lower findings, fix only clear, scoped, low-risk issues; otherwise disposition them with a concise reason. After fixing or dispositioning a thread, reply in that thread with as the first line, followed by a concise summary; that marker authorizes the workflow to close that exact thread. If human input or new authorization is required, do not use the marker and leave the thread open with the blocker. Finish only after every actionable thread is fixed or dispositioned and closed, or explicitly left open for a human decision. Do not update the branch from main, address unrelated reviews, broaden scope, or create more than one scoped fix commit. Do not use external APIs, paid services, credentials, dependency changes, or broad refactors unless explicitly authorized. Add targeted tests where behavior changes and run the narrowest relevant validation.

@coderabbitaicoderabbitaiBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/codebase-index.md`:
- Line 48: Update the Modes entry in the codebase index to match
appModeDefinitions: change the count to 13 and add Factsheets to the listed
modes, unless factsheets is intentionally excluded by the application’s
documented behavior.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: e79f853d-e88b-43b4-b53d-6e44fcfbbe79

📥 Commits

Reviewing files that changed from the base of the PR and between 6cdfdcc and 451964f.

📒 Files selected for processing (19)
  • docs/codebase-index.md
  • docs/site-map.md
  • scripts/generate-site-map.ts
  • src/app/therapy-compass/[slug]/brief/page.tsx
  • src/app/therapy-compass/[slug]/page.tsx
  • src/app/therapy-compass/[slug]/sheet/page.tsx
  • src/app/therapy-compass/compare/page.tsx
  • src/app/therapy-compass/page.tsx
  • src/app/therapy-compass/pathways/page.tsx
  • src/app/therapy-compass/recommend/page.tsx
  • src/app/therapy-compass/review/page.tsx
  • src/app/therapy-compass/search/page.tsx
  • src/components/therapy-compass/screens/home-screen.tsx
  • src/components/therapy-compass/workspace.tsx
  • src/lib/app-modes.ts
  • tests/therapy-compass-data-recovery.dom.test.tsx
  • tests/therapy-compass-mode-wiring.test.ts
  • tests/ui-accessibility.spec.ts
  • tests/ui-route-coverage.spec.ts

Comment threaddocs/codebase-index.md Outdated

@chatgpt-codex-connectorchatgpt-codex-connectorBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit:451964fb2b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment threadsrc/lib/app-modes.ts
@BigSimmo
BigSimmo merged commit 1426463 into mainJul 22, 2026
50 checks passed
@BigSimmo
BigSimmo deleted the codex/reconcile-therapy-mode branch July 22, 2026 08:04
Sign up for freeto 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

@BigSimmo