[scheduler] Add recurrence icon to recurring events in EventTimeline (#22019)#22046
Open
nk10nikhil wants to merge 1 commit intomui:masterfrom
Open
[scheduler] Add recurrence icon to recurring events in EventTimeline (#22019)#22046nk10nikhil wants to merge 1 commit intomui:masterfrom
nk10nikhil wants to merge 1 commit intomui:masterfrom
Conversation
|
Deploy preview: https://deploy-preview-22046--material-ui-x.netlify.app/ Bundle size report
|
Contributor
There was a problem hiding this comment.
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
isRecurringis true inEventTimelinePremiumEvent. - 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
EventTimelineEventCalendar