• Steven's avatar
    perf: disable tooltips in year calendar to fix lag · 74b63b27
    Steven authored
    Fixed issue #5579 where the calendar selection dialog was very laggy.
    
    The root cause was rendering ~365 individual Tooltip components when
    opening the year calendar view (one per day with activity). This created
    a huge number of DOM nodes and event listeners that caused significant
    performance issues.
    
    Changes:
    - Added disableTooltips prop to MonthCalendar and CalendarCell components
    - Disabled tooltips in YearCalendar's small month views
    - Removed unnecessary TooltipProvider wrapper in YearCalendar
    - Tooltips remain enabled in the default month calendar view
    
    Performance improvements:
    - Eliminates ~365 tooltip instances when dialog opens
    - Reduces initial render time significantly
    - Makes dialog interactions smooth and responsive
    
    Users can still click on dates to drill down for details if needed.
    74b63b27
YearCalendar.tsx 4.4 KB