Work mode: trim My Day, Roster and Teaching first pages

Merged
BI
1mo ago
+398-354

User description

Requested by Josh ยท project thread

Summary

Before: My Day, Roster and Teaching each said the same thing two or three times (Nothing needs you plus a separate Checked line, a full CPD breakdown, a separate colour key, a Customise card; a big On call tonight card, six count tiles and four Coming up rows on Roster; a separate Next for you card on Teaching). The example data also said "You present Mon 12 Oct" while the programme ran the journal club on Tue 13 Oct.

After: each first page says each fact once, per the approved Work mode simplify plan (12 Oct 2026).

  • My Day: "Nothing needs you right now ยท Checked 15:45" is one line (a part-read or offline check keeps its own warning stamp). CPD is one row ("32.5 of 50 h, 65%") that opens CPD. The colour key row is gone (the letters under each day already say D, N, OC). The Customise card at the bottom is gone (Customise is in More; help text updated).
  • Roster: the On call tonight card becomes one slim line that opens the day. Its Who is on and Phone numbers buttons go (Team is a tab; numbers live in On Call). The six count tiles become one line, "October: 9 day, 4 night, 4 on call, 14 off", opening Hours and rest. Coming up shows three rows.
  • Teaching: the hero carries "Then you present Journal club at 14:00", which opens Presenting; Next for you is gone. The example presenter's talk now falls on the programme's own journal club day, so Needs you, the hero and My Day agree. This was an example-data bug only; real accounts read one source.

Areas touched: Personal practice, App experience

Not touched: On Call, and the Roster and Open shifts entries in areas.ts (owned by other threads).

Verification

  • Checks run: focused unit tests for My Day, Roster month, Teaching Today and Presenting: Test Files 30 passed (30), Tests 370 passed (370). Wider My Day, Roster, Teaching and work-help run: Test Files 103 passed (103), Tests 2550 passed (2550). Typecheck clean; eslint clean on changed files. Pre-push static guard passed.
  • Browser suite left to CI. Before and after screenshots (phone 390 px and desktop 1440 px, example data, signed out) taken locally in container Chromium.

Risk and rollout

  • Risk: low, layout only. No clinical wording, numbers, database, service worker or provider change.
  • Rollback: revert this PR.
  • Provider or production effects: None

Notes

  • New tests: the all-clear line holds its check time once; the hero names the next talk and links to Presenting; the example talk sits on the programme's journal club day.

๐Ÿค– Generated with Claude Code

https://claude.ai/code/session_01EGUXCTkj2aeuoHw19pwE3T

Generated by Claude Code


Summary by cubic

Trims the My Day, Roster, and Teaching work-mode first pages so each fact is stated once, and fixes example data so Teaching's push and Needs you agree.

Layout changes

  • My Day: all-clear and check time share one line; CPD becomes one row that opens CPD; week colour key removed (letters under each day serve as the key); Customise row moved to More in the band.
  • Roster: On call tonight becomes a slim line with a Who is on link beside it, later shifts name their day, month totals become one line opening Hours and rest, and Coming up is capped at three combined rows.
  • Teaching: next session is one line inside the hero, opening Presenting; separate Next for you card removed.

Example data

  • The programme's You present flag and Presenting's example talk now share one next-journal-club rule with the same 15:00 rollover, and the demo views pass the current time, so Needs you, the hero, and My Day name the same date at any hour.
  • The AI Search tip note now shows from 1024px, so it no longer hides More on tablets.

CodeAnt-AI Description

Simplify My Day, Roster, and Teaching summaries

What Changed

  • My Day combines the all-clear message with its check time and shows CPD hours and progress in one link to the full breakdown. The separate shift key and Customise row are removed; Open week stays beside the week summary, and Customise is available under More.
  • Roster shows the next shift and team link in a compact row, puts monthly totals on one link to Hours and rest, and limits Coming up to three entries.
  • Teaching puts the next session inside the main session card instead of a separate card. Example presenter dates now match the programme and advance to the next journal club after the talk ends.
  • The AI Search tip appears only on wider screens so it does not cover page tabs on phones and upright tablets.

Impact

โœ… Fewer repeated details on My Day
โœ… Three-item Roster preview with totals one tap away
โœ… Matching presenter dates across Teaching pages

๐Ÿ’ก 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.