Skip to content

[scheduler] Add recurrence icon to recurring events in EventTimeline (#22019)#22046

Open
nk10nikhil wants to merge 1 commit intomui:masterfrom
nk10nikhil:master
Open

[scheduler] Add recurrence icon to recurring events in EventTimeline (#22019)#22046
nk10nikhil wants to merge 1 commit intomui:masterfrom
nk10nikhil:master

Conversation

@nk10nikhil
Copy link
Copy Markdown
Contributor

PR Title

[scheduler] Show recurrence icon for recurring events in EventTimeline

Closes #22019


Summary

This PR adds a recurrence icon to recurring events in the EventTimeline, aligning its behavior with the existing implementation in EventCalendar.

This ensures visual consistency across scheduler views and improves user recognition of recurring events.


Changes

  • Added recurrence icon rendering for recurring events in EventTimeline
  • Matched UI behavior with EventCalendar
  • Ensured no impact on non-recurring events

@mui-bot
Copy link
Copy Markdown

mui-bot commented Apr 9, 2026

Deploy preview: https://deploy-preview-22046--material-ui-x.netlify.app/

Bundle size report

Bundle Parsed size Gzip size
@mui/x-data-grid 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-pro 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-premium 0B(0.00%) 0B(0.00%)
@mui/x-charts 0B(0.00%) 0B(0.00%)
@mui/x-charts-pro 0B(0.00%) 0B(0.00%)
@mui/x-charts-premium 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers-pro 0B(0.00%) 0B(0.00%)
@mui/x-tree-view 0B(0.00%) 0B(0.00%)
@mui/x-tree-view-pro 0B(0.00%) 0B(0.00%)

Details of bundle changes

Generated by 🚫 dangerJS against b79e894

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a recurrence indicator to recurring events in EventTimelinePremium, bringing its UI behavior in line with the existing recurrence affordance used across scheduler views.

Changes:

  • Render a recurrence icon next to the event title when isRecurring is true in EventTimelinePremiumEvent.
  • Introduce new utility class slots (eventContent, eventRecurringIcon) to support styling/overrides.
  • Add a regression test ensuring the icon is shown only for recurring events.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
packages/x-scheduler-premium/src/event-timeline-premium/eventTimelinePremiumClasses.ts Adds new class keys for event content layout and the recurring icon slot.
packages/x-scheduler-premium/src/event-timeline-premium/EventTimelinePremium.tsx Wires new class slots into useUtilityClasses so overrides/classes work end-to-end.
packages/x-scheduler-premium/src/event-timeline-premium/EventTimelinePremium.test.tsx Adds coverage verifying the recurrence icon is rendered only for recurring events.
packages/x-scheduler-premium/src/event-timeline-premium/content/timeline-event/EventTimelinePremiumEvent.tsx Implements the conditional recurring icon rendering and adjusts layout to accommodate it.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@zannager zannager added the scope: scheduler Changes related to the scheduler. label Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: scheduler Changes related to the scheduler.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[scheduler] Add recurrence icon to recurring events in EventTimeline

4 participants