My Day: say how old the data is ("Updated 4 min ago")
User description
Requested by Josh · project thread
Summary
Before: My Day's Needs you line said "Checked 14:05 · On Call, Roster". The reader had to work out how old that was.
After: the line says "Updated just now", then "Updated 4 min ago" as the minute ticks, then "Updated at 14:05" once the data is an hour old. The coloured dot and the list of areas are unchanged, and the full "All N" list uses the same words. The offline note keeps the clock time it loaded at.
This is Ward Flow review item 5, which the owner approved on 12 Oct 2026 and confirmed again on 13 Oct ("go ahead with all recommendations"). The other Ward Flow items shipped in #3489.
How: the page now records the moment the sources last answered, beside the existing clock string. A new helper, myDayUpdatedAgo, turns that moment into words on the page's existing one-minute tick. The dashboard, the Needs you card and the full list take the phrase as an optional updated prop, and fall back to the clock time when it is missing.
Areas touched: Personal practice
Verification
- Checks run:
npm run test:focusedon the changed My Day files and the new helper test gaveTest Files 47 passed (47)andTests 617 passed (617).tsc --noEmitran clean. - The browser suite is left to CI. The full suite runs on this draft before it is marked ready.
Risk and rollout
- Risk: low. This changes the text of one line only, with no layout change.
- Rollback: revert the PR.
- Provider or production effects: None.
Notes
- Draft until the full browser suite is green.
🤖 Generated with Claude Code
https://claude.ai/code/session_0113Rr2NnmLuLKLWdKTwHHqd
Generated by Claude Code
Summary by cubic
My Day now says how old its data is instead of only showing the clock time when it was checked.
- The Needs you line reads "Updated just now", counts up in minutes ("Updated 4 min ago"), and falls back to "Updated at 14:05" once the data is an hour old. The full All N list uses the same wording; the offline note keeps the clock time it loaded at.
- Records the real moment the sources answered,
atMs, so the age stays exact even when the minute tick is stale, and aligns the age tick to that moment. - The age resets only when the sources answer with a change; a retry that returns the same data keeps the old age, so the line never claims fresher data than it shows (the automatic reviewer's commit resetting on Retry tap was reverted for this reason).
- Threads an optional
updatedprop through the dashboard, Needs you card, and full list, falling back to the clock time when the moment is missing.
Implements Ward Flow review item 5, approved 12 Oct 2026. Low risk: it changes the text of one line only, with no layout change.
CodeAnt-AI Description
Show how recently My Day data was updated
What Changed
- The Needs you card and full list show “Updated just now” or “Updated N min ago” instead of only the check time.
- After an hour, the label switches to the clock time the data was last updated.
- The update age advances as the page refreshes, while the recorded update time stays tied to when sources answered.
Impact
✅ See My Day data freshness at a glance
✅ Track update age minute by minute
✅ Keep the clock time for data older than an hour
💡 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.