feat(events): add event index page and back navigation - #747
Conversation
✅ Deploy Preview for project-hami ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughAdds a localized ChangesEvents landing experience
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: Sequence Diagram(s)sequenceDiagram
participant Visitor
participant EventLandingList
participant EventLanding
Visitor->>EventLandingList: Open /landing
EventLandingList-->>Visitor: Render localized event links
Visitor->>EventLanding: Open /landing/{slug}
EventLanding-->>Visitor: Render event details and navigation links
🚥 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 |
1364133 to
a8d6110
Compare
|
I have a question: we already have an event index, so why do we need another landing index page? Are they duplicates? |
| <main className={styles.page}> | ||
| <section className={styles.hero}> | ||
| <div className="container"> | ||
| <h1 className={styles.title}>{isZh ? "活动" : "Events"}</h1> |
There was a problem hiding this comment.
The title is duplicated with the /events page.
Add /landing index page listing all events, link back to it from event detail pages, and extract i18n helpers into src/utils/i18n. Fixes #652 Signed-off-by: Reza Jelveh <fishmangit@dynamia.ai>
Signed-off-by: Reza Jelveh <fishmangit@dynamia.ai>
a8d6110 to
fe7483d
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: fishman, rootsongjc The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Add /landing index page listing all events, link back to it from
event detail pages, and extract i18n helpers into src/utils/i18n.
Summary by CodeRabbit