[scheduler] Open the time grid at 7 AM by default and add initialScrollTime - #23594
Open
rita-codes wants to merge 8 commits into
Conversation
Add `visibleStartTime` to the `day` and `week` entries of `viewConfig`. The time grid scrolls to that hour when it mounts (default 7 AM), resolved against the displayed `startTime`/`endTime` range. Closes mui#18439 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KmGrhcVP3zhJRvJ7d1pRoF
…-given-time-on-mount-in-the-view-using-the-time-grid-primitive
Deploy previewBundle size
Check out the code infra dashboard for more information about this PR. |
- Rename `visibleStartTime` to `initialScrollTime` - Whole hours only, invalid values fall back to the default - Apply the scroll the first time the grid has a height, measured from the layout - Cover view switch, config change, hidden mount and row height in tests - Document the prop on every view type and add the day view demo Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KmGrhcVP3zhJRvJ7d1pRoF
initialScrollTime
…-given-time-on-mount-in-the-view-using-the-time-grid-primitive
- Apply the scroll the first time the grid can scroll, not just when it has a height - Align the default rule wording in the warning, the JSDoc and the docs - Pin the tests against a dropped prop, a container resize and the compact views - Show morning events in the day view demo Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KmGrhcVP3zhJRvJ7d1pRoF
rita-codes
marked this pull request as ready for review
September 15, 2026 16:07
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KmGrhcVP3zhJRvJ7d1pRoF
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KmGrhcVP3zhJRvJ7d1pRoF
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KmGrhcVP3zhJRvJ7d1pRoF
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.
Closes #18439.
The day and week time grids now open at 7 AM instead of midnight.
viewConfig.day/viewConfig.weekget aninitialScrollTimeto pick another hour:startTimetoendTime - 1). Default 7, orstartTimewhen 7 AM is not displayed. Invalid values warn in development and use the default.defaultVisibleDaterather than Bryntum'svisibleStartTime:visible*is the controlled value here.apiRef, re-applying on navigation, opting out.Argos screenshots of time grids will shift. With SSR the scroll applies on hydration.