feat: add showQuarterHourLines prop and onZoomChange callback#14
Draft
sgandhi-gg wants to merge 1 commit into
Draft
feat: add showQuarterHourLines prop and onZoomChange callback#14sgandhi-gg wants to merge 1 commit into
sgandhi-gg wants to merge 1 commit into
Conversation
- Add `showQuarterHourLines` prop to CalendarBody (default: false) that renders :15 and :45 grid lines in addition to :00 and :30 - Add `onZoomChange` callback to CalendarContainer that emits zoom percentage (0-100) via useAnimatedReaction whenever the pinch zoom level changes, enabling consumers to conditionally show quarter-hour lines - Wire showQuarterHourLines through BodyContext into TimelineBoard and ResourceBoard so both day and resource views respect the prop Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Summary
onZoomChangecallback toCalendarContainer— fires viauseAnimatedReactionwhenever zoom level changes, emitting a percentage (0–100) where 0 = min zoom, 100 = max zoomshowQuarterHourLinesprop toCalendarBody(default:false) — when enabled, renders grid lines at:15and:45in addition to the existing:00and:30showQuarterHourLinesthroughBodyContextinto bothTimelineBoard(day/week view) andResourceBoard(resource view)Usage
Stacked on
fix-overlapping-cards-press-feedbackMade with Cursor