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
12 changes: 6 additions & 6 deletions data/repo-awareness-snapshot.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": "repo-awareness-snapshot-v3",
"captured_revision": {
"committed_at": "2026-10-11"
"committed_at": "2026-10-12"
},
"routes": {
"modes": [
Expand Down Expand Up @@ -1393,11 +1393,6 @@
"file": "src/app/mockups/search-band-directions/page.tsx",
"area": "mockup"
},
{
"path": "/on-call/refer",
"file": "src/app/(search-app)/on-call/refer/page.tsx",
"area": "product"
},
{
"path": "/psychiatry",
"file": "src/app/(search-app)/psychiatry/page.tsx",
Expand Down Expand Up @@ -1825,6 +1820,11 @@
"file": "src/app/(search-app)/dsm/page.tsx",
"target": "/?mode=dsm"
},
{
"path": "/on-call/refer",
"file": "src/app/(search-app)/on-call/refer/page.tsx",
"target": "/on-call/call?show=refer"
},
{
"path": "/specifiers",
"file": "src/app/(search-app)/specifiers/page.tsx",
Expand Down
9 changes: 5 additions & 4 deletions docs/on-call/design/mockup-conformance.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,14 @@ gate, and none was visible in the source:
| Board | Element | Disposition | Where | Note |
| -------------- | ------------------------------------------------------------------------------------- | ----------- | --------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 01 Home | Universal header — page-actions ellipsis (hub) | deviation | on-call-page-menu-trigger | Replaced by the signed-in Needs you bell (`needs-you-bell`) before Search my work. Tools moved to More for this shift and in-page More on section pages. Signed-out homes hide the bell. |
| 01 Home | My shifts in More for this shift | built | on-call-now-footer-shifts | Relocated from the hub ellipsis. |
| 01 Home | Pocket card in More for this shift | built | on-call-now-footer-card | Relocated from the hub ellipsis. Also listed in the pages sheet. |
| 01 Home | Calendar in More for this shift | built | on-call-now-footer-calendar | Relocated from the hub ellipsis. |
| 01 Home | My shifts in More for this shift | deviation | on-call-now-footer-shifts | Left Now in the Work mode simplify plan (owner approval 12 Oct 2026): each row lives on the page that owns it (Roster, the Handbook, Starting here). |
| 01 Home | Pocket card in More for this shift | deviation | on-call-now-footer-card | Left Now in the Work mode simplify plan (owner approval 12 Oct 2026): each row lives on the page that owns it (Roster, the Handbook, Starting here). |
| 01 Home | Calendar in More for this shift | deviation | on-call-now-footer-calendar | Left Now in the Work mode simplify plan (owner approval 12 Oct 2026): each row lives on the page that owns it (Roster, the Handbook, Starting here). |
| 01 Home | Hospital line — which hospital's numbers are on screen | built | on-call-now-hospital | Added after the drawing (v6 Now, plan C25). Board 01 Home is Now: the safety order leads with the hospital line, before anything else on the page. |
| 01 Home | Emergency pin — the hospital's pinned Emergency: route | built | on-call-now-emergency | Added after the drawing (v6 Now, plan C25). Only site-named, clinical Emergency: entries qualify (at most three); with none recorded, one quiet `on-call-now-emergency-not-set-up` row says so (an editor's link opens that hospital in Service; a member is told to ask an editor) and the app never invents a number. Its space is reserved while a previously loaded hospital loads. |
| 01 Home | Right now — the dark hero answering who covers this hour | built | on-call-now-right-now | Added after the drawing (v6 figure 03, plan C25). The hospital's switchboard until a hospital sets after-hours times (a Stage B field); "All roles" opens Call. |
| 01 Home | Footer group — Who do I call now, shift lists, Systems down, First night, On site | built | on-call-now-footer | Added after the drawing (v6 Now, plan C25). Shift lists and Systems down moved behind the mode button in the drawing; the page menu has no link slot yet, so they sit here instead. |
| 01 Home | Footer group — Who do I call now, shift lists, Systems down, First night, On site | deviation | on-call-now-footer | Left Now in the Work mode simplify plan (owner approval 12 Oct 2026): each row lives on the page that owns it (Roster, the Handbook, Starting here). |
| 01 Home | Shift tools — Log a call, Handover and the shift lists in one card | built | on-call-now-shift-tools | Work mode simplify plan (owner approval 12 Oct 2026): the shift lists, the one row kept from the footer, share the tools card. |
| 01 Home | Section rail across the top | deviation | on-call-home-sections | The rail is gone. It listed the same nine pages the mode pill above it already opens — two controls doing one job — while nothing helped a reader move around the long page in front of them. The second row now navigates WITHIN the current page; the pill navigates between pages. |
| 01 Home | Slot counts on the rail (`Contacts 42`) | deviation | — | `ModeNavItem.count` is documented as state, not size — never a catalogue total. There is no rail to carry them now either; the counts appear where the drawing also puts them, on the Home tiles. |
| 01 Home | Shift module — site, hours, wards, progress bar | change-b | B: on_call_sites with shift_start, shift_end, wards | |
Expand Down
1 change: 1 addition & 0 deletions docs/site-map.md
Original file line number Diff line number Diff line change
Expand Up @@ -1619,6 +1619,7 @@ This file is generated by `npm run docs:update` (or `npm run sitemap:update` dir
- `/dictionary/browse` - Redirects to `/dictionary/search`. Source: `src/app/(search-app)/dictionary/browse/page.tsx`.
- `/sources` - Redirects to `/?mode=sources`. Source: `src/app/(search-app)/sources/page.tsx`.
- `/dsm` - Redirects to `/?mode=dsm`. Source: `src/app/(search-app)/dsm/page.tsx`.
- `/on-call/refer` - Redirects to `/on-call/call?show=refer`. Source: `src/app/(search-app)/on-call/refer/page.tsx`.
- `/specifiers` - Redirects to `/?mode=specifiers`. Source: `src/app/(search-app)/specifiers/page.tsx`.
- `/services` - Redirects to `/?mode=services`. Source: `src/app/(search-app)/services/page.tsx`.
- `/my-day` - Redirects to `/my-day/notifications`. Source: `src/app/(search-app)/my-day/page.tsx`.
Expand Down
8 changes: 7 additions & 1 deletion src/app/(search-app)/on-call/refer/page.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
import type { Metadata } from "next";
import { redirect } from "next/navigation";

import { OnCallReferPage } from "@/components/on-call/refer/refer-page";
import { getWorkModeLaunch } from "@/lib/work-mode-launch/server";

export const metadata: Metadata = {
title: "Refer | On Call | PsychSift",
description: "How to refer to each service at your hospital, and your own referral notes.",
};

export default function OnCallReferRoute() {
// Refer is a tab of Contacts in the current work mode (Work mode simplify plan, owner approval
// 12 Oct 2026), so one search covers numbers and referrals. The classic work mode (the rollback)
// keeps its own Refer page.
export default async function OnCallReferRoute() {
if ((await getWorkModeLaunch()).newWorkMode) redirect("/on-call/call?show=refer");
return <OnCallReferPage />;
}
Loading
Loading