Repository navigation
My Day: reset "Updated N min ago" when Retry brings fresh data - #3513
Conversation
A retry reads again over the answer still on screen, so when it brought back the same statuses and item count the "Updated N min ago" line kept the earlier time. Each source now says when it is reading again (refreshing), and the page keeps the earlier time until that read answers, then restamps it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0113Rr2NnmLuLKLWdKTwHHqd
…tring The tablet (WebKit) project read the home card, canvas and main scroller once after two animation frames and failed on a transient null; main's browser matrix is red on this test. Poll until all three mount, then measure. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0113Rr2NnmLuLKLWdKTwHHqd
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🏁 CodeAnt Quality Gate ResultsCommit: ✅ Overall Status: PASSEDQuality Gate Details
|
Merging this PR will not alter performanceℹ️ 1 benchmark has no flame graph
Comparing |
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
Code Review ✅ Approved🟡 Medium risk · Tracking retries across My Day sources restamps the freshness label when reads finish; inconsistent refresh signals could make displayed data age inaccurate. Restamps the My Day "Updated N min ago" line to "Updated just now" when a Retry returns fresh data, even if the answer matches the previous one, and keeps the old age while the retry is still in flight. Also stabilises a WebKit browser test by waiting for the documents home canvas to mount before measuring. No issues found. VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Approved OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
🤖 CodeAnt AI — Review Status
|
There was a problem hiding this comment.
BigSimmo has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Claude encountered an error after 2s —— View job I'll analyze this and get back to you. |
PR Summary by QodoReset My Day data age when a retry completes
AI Description
Diagram
High-Level Assessment
Files changed (9)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can turn these tips off under Display > Comment parts |
Qodo FixerNo findings are available for this PR yet. Findings appear here once Qodo has reviewed the PR. |
CodeAnt PR Risk: Medium Risk
Assessed commit: |
User description
Requested by Josh · project thread
Summary
Before: after #3508, tapping Retry on My Day could leave the line reading "Updated 6 min ago" even though the sources had just answered again, whenever the new answer had the same shape (same statuses, same number of items) as the old one.
After: when a retry answers, the line resets to "Updated just now". While the retry is still in flight it keeps the old age, so the line never claims fresher data than it shows.
This is the follow-up the owner approved on 13 Oct 2026 ("go ahead with all recommendations including any fixes"), and it answers the Qodo finding on #3508.
How: each My Day source (On Call entries, Roster, CPD, Teaching) now reports
refreshingwhile a retry is reading over data it already had. The page treats the end of a refresh as a new answer and restamps the moment. Nothing changes for the first load.This PR also carries one test-only fix.
ui-chrome-scroll.spec.ts:419("desktop: tall documents home centres its action cluster") is red on main's browser matrix on the tablet (WebKit) project, where it read the home card, canvas and main scroller once and got a null. It now waits for all three to mount before measuring. No product code changes for it.Areas touched: Personal practice; browser tests
Verification
npm run test:focusedon the changed My Day files:Test Files 57 passed (57),Tests 742 passed (742), including a new test that restamps the age when a retry answers with identical data.npm run typecheck, eslint and prettier on the changed files ran clean.Risk and rollout
Notes
🤖 Generated with Claude Code
https://claude.ai/code/session_0113Rr2NnmLuLKLWdKTwHHqd
Generated by Claude Code
Summary by cubic
Fixes the My Day "Updated N min ago" line so it resets to "Updated just now" when Retry brings back fresh data, even when nothing visible changed.
refreshingwhile a retry is reading over the answer still on screen; the page keeps the earlier time until that read answers, then restamps it.Written for commit 347d894. Summary will update on new commits.
CodeAnt-AI Description
Reset My Day’s update age when a retry finishes
What Changed
Impact
✅ Accurate My Day update age after retries✅ No premature “Updated just now” message💡 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:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
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:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
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.