Repository navigation
Clinical tidy-up: Services call button, A to Z lists, Forms Clock and Act tabs, Safety plan header, Therapy - #3463
Conversation
…hapter
Audit item 6 (display-only). With no query, DSM, Specifiers, Formulation,
Therapy and Forms titled their list "All" and badged cards "Top match" /
"Why matched", which read as if the app had picked something for a patient.
- Results band: new emptyQuerySubject prop shows the section name
("DSM diagnoses", "Specifiers", "Formulation mechanisms", "Therapies",
"Forms") as the heading instead of "All" when nothing is typed.
- Specifiers, Formulation, Therapy: empty-query lists sorted A to Z in the
UI component; no Top match / Best match; Therapy cards label the first
column "Best used for" instead of "Why matched" while browsing.
- Forms: register headings read "Forms" / "A to Z by form code" (register
keeps its existing form-code order).
- DSM: browse groups by chapter in catalogue order as collapsible
<details> headings with counts; rows A to Z with "[...]" generic
templates last; compact one-line rows on a phone (title + ICD code);
reference-only note kept, and shown on phones too.
- Typed queries keep today's ranked behaviour exactly. No search or
ranking library changed.
Tests: new tests/browse-a-to-z.dom.test.tsx and
tests/therapy-browse-a-to-z.dom.test.tsx; forms register listing and the
therapy accessibility journey updated for the new headings.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Move /safety-plan into the (search-app) route group so it renders inside the shared search shell with the normal app header, under Psychiatry, with no search composer (it is a working form, not a search). The URL is unchanged and the page still stores nothing. - The tool no longer owns the OS top inset or #main-content (the shell does); the back button falls back to Psychiatry, its one home. - The patient copy is marked as the print output, so the shell chrome never prints with it. - Psychiatry page: remove the duplicate Safety plan and MHA forms quick actions; they live once under "For a shift" and "Mental Health Act". - Regenerate the site map, design-system adoption manifest and repo awareness snapshot for the moved route. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…t cards
- Pathways: one line at the top says what the amber Incomplete tag means,
in the terms the pathway data already uses ("Marked incomplete until
clinician review confirms sequencing"). Shown only when a pathway is
Incomplete; no status or step text changes.
- Pathways: the "linked steps" chip now counts only steps linked to a
therapy record, matching each pathway row; a reviewed pathway's badge
shows a check rather than a warning icon.
- Search/Recommend result cards: on desktop the whole card opens the
record (the Open link already stretches across it) and the actions shrink
to their own width at the row's end instead of three full-width buttons.
Phone layout is unchanged.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Searching 'crisis' returned 85 tall cards (~23,000px on a phone) and no card showed a phone number. Each result card now leads with a tel: call button showing the record's own number (57 of the 85 crisis results have one). Cards with no dialable phone show no button; no number is ever guessed, and two numbers run together in one string are refused rather than dialled. The always-open Review referral / Add to shortlist row moves behind a 'More' disclosure on each card; the title is now the stretched link that opens the record, so the whole card still opens it. Best-use text clamps to 2 lines on a phone (3 from sm). extractFirstDialablePhone moves from the service record page into src/lib/service-call.ts so the card and the record dial the same number. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…e Start Clinical Forms now has three tabs, one tap apart: Forms (/forms/search), Clock (/forms/clock, new) and Act (/forms/act). The shell draws the bar on the list; Clock and Act are information pages, so each mounts the bar itself through FormsModeNav. The clock is the same page as /psychiatry/mha-clock, which stays, so the Psychiatry hub shortcut keeps working; on the Forms tab its breadcrumb names Forms. Copy for handover now copies each running clock's form code and name, when it was made, and the time limits the page already shows: a signed-off countdown's end as a Perth time (or "time limit passed"), otherwise the existing not-calculated lines. Nothing new is calculated, no running or time-left figures are copied, nothing is saved anywhere. Copied / failed status is shown. The clock's Start button now uses the shared primary face (Clinical blue) instead of the near-black ink fill. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Merging this PR will not alter performance
|
…fety plan routes Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
🏁 CodeAnt Quality Gate ResultsCommit: ✅ Overall Status: PASSEDQuality Gate Details
|
Inside the app shell, header and menu links are client-side navigations that never fire beforeunload, so a half-built plan could be lost in one tap. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
🤖 CodeAnt AI — Review Status
|
Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
There was a problem hiding this comment.
BigSimmo has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
PR Summary by QodoImprove clinical browsing, Forms navigation and safety-plan flow
AI Description
Diagram
High-Level Assessment
Files changed (56)
|
Resolve design-system adoption conflicts by regenerating; route count 224. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01N5U9yjzHumprWGGZ4R3hBj
Code Review by Qodo
No findings for this group No findings for this group No findings for this group Resolved findings 1.
|
…e first card is shortlisted Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01N5U9yjzHumprWGGZ4R3hBj
|
Code review by qodo was updated up to the latest commit e148713 |
…ved work The header's direct router.push calls (standalone modes, option shortcuts) now go through confirmShellNavigation(), so a dirty safety plan is no longer dropped from the mode picker. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01N5U9yjzHumprWGGZ4R3hBj
|
Code review by qodo was updated up to the latest commit 234f503 |
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01N5U9yjzHumprWGGZ4R3hBj
|
Code review by qodo was updated up to the latest commit d970bdd |
…nd focus Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01N5U9yjzHumprWGGZ4R3hBj
|
Code review by qodo was updated up to the latest commit 40a36df |
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01N5U9yjzHumprWGGZ4R3hBj
|
Code review by qodo was updated up to the latest commit f6b3052 |
Code Review ✅ Approved 5 closed / 5 findings🔴 High risk · Adding copied MHA deadlines and statutory caveats to handovers could lead to clinical decisions based on stale or misinterpreted timing. Adds a Call button to Services results, A to Z browse lists, Forms Clock and Act tabs, and a safety plan header under Psychiatry. Unsaved safety plan leave guards now cover shell navigation and Back, and reload sentinel handling is fixed. No open issues remain.
✅ 5 closed✅ Bug: Shell links can now drop an unsaved safety plan without warning
✅ Bug: Back-gesture guard runs after the App Router has already navigated
✅ Edge Case: Back history check on a returned sentinel is always true
✅ Edge Case: After reload, confirming leave lands on another plan entry, guard off
Closed: Edge Case: Reload on a sentinel makes history.back() load the page a second time
Review coverage🤖 Auto-approval Approved 📋 Rules No rules evaluated 🧪 Functional validation Not enabled · Set up OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
|
Unit coverage partition (1) failed on one timing assertion in Generated by Claude Code |
User description
Requested by Josh · project thread
Summary
Before: Services result cards showed no phone number; browsing DSM, Specifiers, Formulation, Therapy and Forms with nothing typed showed an "All" list with "Top match" labels; Forms had no tabs and the MHA clock lived only under Psychiatry; Safety plan had no app header; every Therapy pathway showed "Incomplete" with no explanation.
After: each Services card leads with "Call " (only when the record holds a dialable number; Review referral and Add to shortlist move behind More); browsing lists are titled by section and run A to Z, and DSM groups by chapter; Forms has Forms, Clock and Act tabs, the clock has "Copy for handover" and a Clinical blue Start button; Safety plan sits in the normal shell under Psychiatry with one home on the Psychiatry page; Pathways explains Incomplete in one line and desktop therapy cards use small buttons.
How: usefulness and layout audit (11 Oct 2026) items 6 (browse part), 7, 9 and the Therapy and Safety plan items of 8. Display and navigation only. The side menu regroup, one Compare and desktop layouts wait for the owner's yes on mockups and are not in this PR.
Areas touched: App experience, Knowledge and records, Design system, Clinical reference content.
Verification
npx tsc --noEmit: exit 0 on the combined branch.npx eslinton changed source and tests: exit 0. Prettier: "All matched files use Prettier code style!"npx vitest runon all changed and related unit/DOM tests: "Test Files 15 passed (15), Tests 245 passed (245)".check:diff-integrity: "PASS — 18 changed test file(s), 350 -> 376 test case(s)".Clinical Governance Preflight
Risk and rollout
Notes
🤖 Generated with Claude Code
https://claude.ai/code/session_01N5U9yjzHumprWGGZ4R3hBj
Generated by Claude Code
Summary by cubic
A display-and-navigation tidy-up of the clinical areas: Services cards gain a dial button, empty browse lists run A to Z under the section name instead of "All", Clinical Forms gets Forms/Clock/Act tabs, the safety plan moves under the normal app header in Psychiatry, and Therapy explains its "Incomplete" tags.
Navigation and lists
/forms/clock, with "Copy for handover" — each time limit carrying its Act citation, condition and repeat interval — and the primary blue Start button; switching tabs keeps the list's filters and sort selection. Neither the Clock nor the Act tab is recorded as a visit or counted among the hub's most-opened forms.Therapy and safety-plan display
Display and navigation only — no search or ranking change, clocks stay on device, and no numbers or legal text are invented. DRAFT: the new clock handover copy awaits the owner's clinical sign-off.
Written for commit f6b3052. Summary will update on new commits.
CodeAnt-AI Description
Make clinical browsing clearer and surface key actions across services, forms, and safety planning
What Changed
Impact
✅ One-tap calls from service results✅ A-to-Z browsing without misleading match labels✅ Forms, clock and Act one tap apart✅ Fewer lost safety-plan entries💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.