* chore: add a formatter, matching the style this repo already writes
singleQuote=false was chosen by counting this repo's own
imports, not by fleet decree. The fleet is genuinely split and the two repos
that already had a .prettierrc disagreed with each other, so there was no
standard to restore. Quote style does not cross repo boundaries; having a
gate does.
Markdown is ignored for now — prettier rewraps prose, which would bury the
real diff.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* style: format with prettier (304 files)
Mechanical. No behaviour change. This SHA is listed in
.git-blame-ignore-revs so `git blame` skips it.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* chore: teach git blame to skip the reformat
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* style: format the two files the reformat pass missed
prettier --check flagged app/shared.module.css and lib/domain/clinicians.test.ts
on a branch whose whole point was that everything had been formatted. Re-running
the same command with the same version fixes both, so the rollout's write step
did not finish what it reported.
The rollout now runs --check straight after --write and refuses to open a PR
unless it comes back clean, so a partial reformat fails at the source instead of
in CI.
---------
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
* fix(ui): mobile patient table fits a 390px card
Walkthrough at 390px showed the triage table still ~50px wider than its
card: desktop cell padding, and the email ellipsis targeting a <p> that
is actually a <div> — plus max-width on the td, which auto table layout
ignores; the cap now sits on the inner divs.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* feat(design): token discipline with CI teeth, clinic-timezone dates, skeleton loading
Design discipline (SSOT enforced, not aspirational):
- Normalize every raw border-radius, transition duration, rgba() and hex
in *.module.css to the globals.css token scale (26 files); add
--radius-2xs (2px bars) and --radius-pill (2rem pills)
- lib/design-discipline.test.ts: 8 CI rules — no raw colors in css modules,
radius/transition must use tokens, every var() must resolve in
globals.css, no hex in TSX, style={{}} only in a data-driven allowlist
(with staleness check)
UX intuition:
- formatDateISO now uses Europe/Zurich (CLINIC_TIMEZONE SSOT in
lib/config/company.ts) instead of UTC: a 00:30 check-in no longer lands
on yesterday's date, overwriting it and killing the streak; client and
server now agree on 'today' even when the patient travels
- Shared <LoadingState/> shimmer skeleton (reduced-motion aware) replaces
nine bare 'Loading…' strings across portal and admin
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
• Expanded globals.css :root with full opacity scales:
- White (--white-3 through --white-97) for dark-background sections
- Primary/teal (--teal-6 through --teal-70) via color-mix so --teal cascades
- Gold (--gold-6 through --gold-70), danger, warn, muted opacity scales
- Shadow scale (--shadow-sm/md/lg)
- Border radius (--radius-xs through --radius-full)
- Transition timing (--transition-fast/normal/slow)
- Z-index scale (--z-nav, --z-overlay, --z-overlay-pb, --z-overlay-close)
• Replaced every #fff → var(--white) across 28 CSS module files
• Replaced every rgba(255,255,255,X) → var(--white-X) across all dark-context files
• Replaced every rgba(42,122,138,X) teal → var(--teal-X) across all section/portal files
• Replaced every inline color-mix() in admin/portal/section files → named tokens
• Fixed hardcoded "DM Sans" font in not-found.module.css → var(--font-dm-sans)
• Replaced box-shadow rgba(0,0,0) values with --shadow-* tokens in Nav, UserDropdown, LanguageSwitcher
• global-error.module.css left intentionally self-sufficient (renders outside root layout)
Changing --teal to any colour now cascades to all opacity variants site-wide.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Keyboard navigation now has consistent visible focus indicators across
all CSS modules. Every :hover rule on a button, link, or interactive
element now also fires on :focus-visible with the same visual change
and outline: none (the border-color/color change IS the indicator).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace 4-button pill (130px wide) with a single trigger button showing
current locale + chevron. Dropdown opens on click, closes on outside click.
Frees nav space and looks cleaner on all screen sizes.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>