feat: show latest release date on repository-grouped release cards (#255) - #256
Conversation
In the Release Timeline repository view, display the relative publish time next to the latest tag so users can see when a repo last released without expanding the group. Closes #255 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe release timeline localizes relative times for Chinese users and uses each repository group’s ChangesRelease timing display
Estimated code review effort: 1 (Trivial) | ~5 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/components/ReleaseTimeline.tsx`:
- Around line 1248-1250: Update ReleaseTimeline’s relative-time formatting to
use the Chinese date-fns locale whenever the selected language is Chinese.
Import the locale, pass it through the locale option for the latestRelease
published_at formatDistanceToNow call, and apply the same language-aware locale
handling to the other relative-time calls in the component.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 51cd5c3c-a477-4dfc-80a2-42bfb79d6525
📒 Files selected for processing (1)
src/components/ReleaseTimeline.tsx
The repository-grouped card wrapped the latest-tag + relative publish time inside a `hidden sm:block` container, so the date added for #255 disappeared on any viewport narrower than 640px (sm). The user saw the PR ship the feature but the date never showed on the cards. Split the latest-tag line from the date: the tag can truncate when the header is cramped, but the publish-time now sits on its own whitespace-nowrap line so it always renders — across narrow desktop columns, asset filters, and unread filters alike. The release-count keeps its existing `hidden sm:block` behavior. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Summary
published_at+formatDistanceToNow),样式与ReleaseCard一致repositoryGroups中已计算好的latestRelease,避免仅取releases[0]的潜在偏差Changes
src/components/ReleaseTimeline.tsxLatest: vX.Y.Z · 2 days agoTest plan
Summary by CodeRabbit