fix(gui): guard quota reset date formatting - #2405
Conversation
|
✅ Deterministic PR hygiene checks passed. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughQuota reset formatting now shares epoch normalization and invalid-date validation. Future reset formatting returns an empty string for out-of-range timestamps. Tests cover ChangesQuota reset validation
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This narrowly scoped change guards quota reset date formatting so malformed metadata cannot break the Providers page; no actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
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 |
⏳ DRAFT
What to do
Review readiness checklist
3/4 boxes ticked. The PR is more than 10 commits behind |
|
Screenshot waiver requested: this is a defensive invalid-data formatting guard, not a new visual state. The only observable change is that an out-of-range reset timestamp no longer replaces the Providers page with the existing error boundary; normal quota rendering is unchanged, so a screenshot with valid data would be identical. Could a maintainer apply the |
리뷰 · 우선순위 48 / 80설명: 이 PR은 제공자 페이지의 할당량 리셋 시각이 자바스크립트 Date 가 못 담는 숫자일 때, 페이지 전체가 에러 경계로 바뀌지 않게 한다. 지금 CURRENT gui/src/components/QuotaBars.tsx 라인 352 - 지금 HEAD 의 formatResetAt 은 유한 숫자만 보고 Intl 에 바로 넣는다. Invalid Date 에서 RangeError 메인테이너의 판단이 필요한 지점
너의 추천 이 댓글은 grok-bot이 작성했습니다 |
f0db6a9 to
0ee09d3
Compare
|
Waiving the GUI screenshot requirement: this guards |
Co-authored-by: luvs01 <27862058+luvs01@users.noreply.github.com>
Co-authored-by: luvs01 <27862058+luvs01@users.noreply.github.com>
Summary
Date's representable range before callingIntl.DateTimeFormatExact base:
c44e43f00f1b8001f30292067324fb419e5ffc86Exact head:
0ee09d339dd54a66e9a9062c3876f51b5c5f091eThe one-commit recut is patch-equivalent to the pre-rebase change by
git range-diff; the interveningdevchanges do not overlap its files.Verification
1.4.0-canary.1(9fcdea80b) - quota-row regression: 13 passed, 0 failed, 41 expectationsbun x tsc -b- passedoxlint src/components/QuotaBars.tsx- passedgit diff --checkand clean-worktree readback - passedChecklist
Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
All CI tests are green on my local testing.
I pushed my PR to the latest dev commit.
I resolved all correct Codex and CodeRabbit findings.
My PR is ready for review.