improve: UI/UX of upcoming events calendar widget#2842
Conversation
Summary by CodeRabbitRelease Notes
✏️ Tip: You can customize this high-level summary in your review settings. WalkthroughReplaces the standalone calendar icon and separate date text with a single Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code graph analysis (1)frontend/src/app/page.tsx (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (1)
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
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
frontend/src/app/page.tsx(1 hunks)frontend/src/components/CalendarButton.tsx(2 hunks)
🧰 Additional context used
🧬 Code graph analysis (2)
frontend/src/components/CalendarButton.tsx (1)
frontend/src/types/calendar.ts (1)
CalendarButtonProps(12-19)
frontend/src/app/page.tsx (2)
frontend/src/components/CalendarButton.tsx (1)
CalendarButton(7-38)frontend/src/utils/dateFormatter.ts (1)
formatDateRange(22-61)
🔇 Additional comments (2)
frontend/src/components/CalendarButton.tsx (1)
1-34: LGTM! Clean hover state implementation.The hover-driven icon transition from
faCalendartofaCalendarPlusis implemented correctly. The logic preserves backward compatibility by allowing the optionaliconprop to override the default behavior.frontend/src/app/page.tsx (1)
182-195: Good integration of CalendarButton with event data.The CalendarButton now consolidates the calendar icon and date display into a single interactive element, fulfilling the PR objective of using the event dates area as the clickable element for adding events to Google Calendar.
|
* improve: UI/UX of upcoming events calendar button * fix: passing showLabel as boolean * Update code --------- Co-authored-by: Arkadii Yakovets <arkadii.yakovets@owasp.org> Co-authored-by: Arkadii Yakovets <2201626+arkid15r@users.noreply.github.com>



Proposed change
Refactored the existing
CalendarButtoncomponent with minor changes.Resolves #2840
Screencast.from.2025-12-10.01-43-28.webm
Checklist
make check-testlocally; all checks and tests passed.