feat: opening hours widget + newsroom categories#375
Conversation
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR introduces category filtering for the newsroom page with locale support, adds an Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant NewsroomPage
participant PostsData
participant UI
User->>NewsroomPage: Navigate with ?category=slug
NewsroomPage->>NewsroomPage: Extract & normalize<br/>searchParams.category
NewsroomPage->>PostsData: Fetch all posts
PostsData-->>NewsroomPage: Return posts list
NewsroomPage->>NewsroomPage: Filter posts by<br/>category.slug match
NewsroomPage->>NewsroomPage: Compute category counts<br/>from full posts list
NewsroomPage->>UI: Render sidebar with<br/>category links + counts
NewsroomPage->>UI: Render filtered posts<br/>+ "clear filter" link
UI-->>User: Display newsroom with<br/>active category sidebar
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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. Review rate limit: 0/1 reviews remaining, refill in 60 minutes.Comment |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #375 +/- ##
==========================================
- Coverage 76.45% 76.16% -0.29%
==========================================
Files 86 89 +3
Lines 1185 1263 +78
Branches 321 343 +22
==========================================
+ Hits 906 962 +56
- Misses 279 301 +22 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description & Technical Solution
Opening hours widget
OpeningHoursWidgetcomponent with two variants:Footer(now-open variant)ContactInfoon the contact page (weekly overview)Newsroom categories
?category=<slug>.Styling tweaks (follow-ups)
max-w-7xlwhile keeping breadcrumbs atmax-w-5xl.Checklist
Screenshots
N/A (UI-only changes, can be added if requested)
Summary by CodeRabbit
Release Notes
New Features
Documentation
Style
Chores