On Call overhaul: four clear jobs, Refer inside Contacts, no link list on Now
User description
Requested by Josh ยท project thread
Summary
Before: On Call spread one job over eleven pages. The tabs were Now, People and Refer, and More held 12 entries. Refer was a near-empty page of its own. Now ended with "More for this shift", a seven-link list (My shifts, Pocket card, Calendar, Shift lists, Systems down, First night, On site), most of which belonged to other areas. Your usual showed a round phone icon and a label but no number. The Handbook still showed all three crisis lines in full when signed out. Handover and Check these dropped the band and showed their title twice. Check these drew a separate card for every entry, each with a greyed-out button in demo mode. The page-actions button on Playbook was labelled "More", which sat right under the band's More tab.
After: four jobs. Now is the shift. Contacts (was People) covers who and where, with a new Refer tab beside Hospital, Outside and Mine, so one search covers numbers and referrals. Playbook is what to do. The Handbook (first in More, so it joins the tab row when there is room) is how the hospital works, and now also holds Who's who and the Pocket card. More is down to seven: Handbook, Starting here, Handover, Who's on, Help, Check these and Manage service (editors only). Now has no link list. The shift lists sit in one card with Log a call and Handover, and each usual number is printed under its name. The Handbook folds the crisis lines to 000 plus "More crisis lines", like every other page. Handover and Check these get the normal band and one Back. Check these is one compact list. The page-actions button reads "Options".
Old addresses still work. /on-call/refer opens Contacts on its Refer tab in the current work mode, and the classic work mode keeps its own Refer page.
How: navigation and layout only. Refer's lists became OnCallReferSections, which both the old Refer page and the Contacts tab render. NowFooter is now unused but kept under the 30-day dead-code rule.
Areas touched: Personal practice, App experience, Knowledge and records
Verification
- Focused unit tests over every
tests/on-call*,tests/work-frame*, route, work-search, navigation and sitemap suite:Tests 2890 passed (2890).tsc --noEmitclean, eslint clean on changed files, prettier clean. - Browser: the three On Call specs are running locally against the demo hospital; result to follow in a comment. The full suite is left to CI.
- Screenshots (390 px phone and 1440 px computer, demo hospital, before and after) are shared with Josh in the project thread.
Risk and rollout
- Risk: On Call is safety-adjacent. No phone number, crisis line, escalation step, caveat or source wording changed. The emergency route, Right now and the crisis lines keep their safety order on Now. The one change in what shows is the Handbook's signed-out crisis block, which now folds to 000 plus "More crisis lines", the same as Contacts, Who's on and Starting here.
- Rollback: revert this PR.
- Provider or production effects: None
Notes
- This is stream 1 of Josh's approved Work mode simplify plan (12 Oct 2026). My Day, Roster, Teaching, CPD, Admin and Open shifts are separate threads and PRs.
๐ค Generated with Claude Code
https://claude.ai/code/session_01TKaduMkUZJSfvFH9L1yWuz
Generated by Claude Code
Summary by cubic
Restructures On Call into four clear jobs: Now shows the shift, Contacts (was People) covers who and where, Playbook is what to do, and the Handbook is how the hospital works. Refer moves inside Contacts as a Refer tab, so one search covers numbers and referrals. The old /on-call/refer address redirects to that tab in the new work mode and keeps its own page, with the original People tabs, for classic readers. Work search lists Refer on its own, so searching "referral" opens the routes rather than Hospital. The Refer tab keeps the public crisis lines, and a search that matches only a referral counts as a result. A search on Refer covers every team, so the count matches Contacts, while the team filter applies only to browsing.
Now drops the seven-link "More for this shift" list, keeps the shift lists with Log a call and Handover in one card, and prints each usual number under its name. The Handbook now holds Who's who and the Pocket card, and folds its signed-out crisis lines to 000 plus "More crisis lines". Handover and Check these get the normal band and one Back, Check these becomes a single compact list, the who-to-call situations become one grouped list of rows instead of chips, and the page-actions button is renamed "Options". No phone number, crisis line, escalation step, caveat, or source wording changed.
- Navigation and layout only; Refer's lists became
OnCallReferSections, rendered by both the old Refer page and the Contacts tab. - The chosen Contacts tab is written to and read from
?show=, so refresh reopens the same tab and the redirect lands on it. NowFooteris unused but kept under the 30-day dead-code rule.- Rollback: revert this PR.
CodeAnt-AI Description
Organize On Call around Now, Contacts, Playbook and the Handbook
What Changed
- Now, Contacts and Playbook are the main tabs; the Handbook leads the More menu and now contains Who's who and the Pocket card.
- Contacts adds a Refer tab, bringing numbers and referral information together under one search. The old Refer address opens that tab.
- Now drops its extra link list. Log a call, Handover and shift lists share one card, while other links stay with the pages they belong to.
- Usual call numbers appear beneath their names, and Numbers to check uses a compact grouped list without disabled confirmation buttons in demo mode.
Impact
โ
One search for numbers and referrals
โ
Usual call numbers visible at a glance
โ
Fewer links on the shift overview
๐ก 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:
@codeant-ai ask: Your question here
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
@codeant-ai ask: Can you suggest a safer alternative to storing this secret?
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:
@codeant-ai: Your feedback here
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
@codeant-ai: Do not flag unused imports.
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
@codeant-ai: review
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.