[WOD-127] Make submission windows clickable with improved status display#298
[WOD-127] Make submission windows clickable with improved status display#298zacjones93 wants to merge 1 commit intomainfrom
Conversation
- Add links from submission window rows to event details page - Display submission window date range in "Jan 20 - Jan 27" format - Improve status badges with clearer "Upcoming", "Open", "Closed" labels - Show time remaining for open windows as "X days left to submit" - Add visual feedback on hover with chevron icon
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
WalkthroughThis pull request adds slug-based routing to the PublicSubmissionWindows component, enabling direct navigation to competition workouts. The component now wraps submission window rows in Link elements pointing to Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 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 |
Summary
Enhanced the submission windows component to make each window clickable, linking to the detailed workout view. Improved the status badge display to show more relevant time information and better visual hierarchy.
Key Changes
SubmissionWindowRowfrom adivto aLinkcomponent that navigates to/compete/$slug/workouts/$eventIdformatDateRange()helper to show submission window dates in a more compact formatgetTimeRemaining()helper to show countdown for open windows (e.g., "2 days left to submit")ChevronRighticon to indicate the row is clickablegroupclass for coordinated hover state stylingImplementation Details
SubmissionWindowRowcomponent now uses TanStack Router'sLinkcomponent for client-side navigationhttps://claude.ai/code/session_01JmcGzN5AsHeDu1XZVatoSo
Summary by cubic
Makes each submission window row clickable to the workout details page and clarifies the date/time and status display for easier scanning and navigation.
Written for commit 9d87c95. Summary will update on new commits.
Summary by CodeRabbit
Release Notes
New Features
UI/UX Improvements