Skip to content

Refactor CalendarView into smaller calendar components#2136

Merged
trista-chen-29 merged 1 commit into
devfrom
trista/refactor_calendarview
May 3, 2026
Merged

Refactor CalendarView into smaller calendar components#2136
trista-chen-29 merged 1 commit into
devfrom
trista/refactor_calendarview

Conversation

@trista-chen-29

@trista-chen-29 trista-chen-29 commented May 3, 2026

Copy link
Copy Markdown
Collaborator

Closes #2127

Summary

  • Moved CalendarView helper logic into Calendar-specific utility and constants files
  • Extracted calendar UI into smaller components:
    • CalendarHeader
    • CalendarGrid
    • CalendarLegend
    • CalendarCell
    • DayLabels
    • EventRow
    • EventPopup
    • MobileMonthAgenda
  • Updated Events page to import CalendarView from the new Calendar directory

Testing

  • Verified existing calendar rendering logic was preserved
  • Verified event popup, mobile agenda, calendar grid, and legend still receive the same props
Screenshot 2026-05-02 at 9 51 56 PM Screenshot 2026-05-02 at 9 52 02 PM Screenshot 2026-05-02 at 9 58 31 PM Screenshot 2026-05-02 at 9 58 38 PM

@steeevin88 steeevin88 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it works it works

@KhoaNguyen706 KhoaNguyen706 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lwtm

@trista-chen-29 trista-chen-29 merged commit 000b0ed into dev May 3, 2026
4 checks passed
@trista-chen-29 trista-chen-29 deleted the trista/refactor_calendarview branch May 3, 2026 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor CalendarView

3 participants