feature: calendar frontend component#71
Open
achneerov wants to merge 19 commits into
Open
Conversation
… background colors and improved layout
…ctionality and aria-labels for accessibility
… weekdays and dynamic hour ranges
…ch messaging components
…necessary borders and adjusting border styles for improved visual clarity
…lity calendar with improved state management and key range selection
…ning and background colors for improved header visibility
…olidating header components and improving overflow handling
…ability calendar by replacing refs with state for drag mode and selection tracking
…ents and improving code clarity
… review - Make AvailabilityCalendar controlled (value/onChange) and SSR-safe via anchor prop - Wire AvailabilityForm to selectAvailabilities with useActionState; submit button now actually submits - Replace hardcoded hex colors with design tokens; use Textarea/Button/Label primitives - Consolidate drag state into a single discriminated union (no more parallel state/ref pairs) - Add keyboard support (Space/Enter to toggle) and improved aria-labels - Remove hardcoded weekend block; daysOfWeek is now the single source of truth - Fix tooltip to follow the pointer instead of being pinned to viewport center - Persist optional coach message via notes field on coaching_sessions - Rename users-availability-calendar -> availability-calendar - Rename user-availability-calendar-submit-coach-message -> availability-form Co-authored-by: Cursor <cursoragent@cursor.com>
6613b6b to
f202acf
Compare
…s for improved clarity and maintainability in availability calendar - Introduced SLOT_INDICES and SLOTS_PER_HOUR constants to enhance readability and reduce magic numbers in the AvailabilityCalendar component. - Updated references to quarter indices in the rendering logic to use the new constants. - Minor cleanup in error handling during pointer capture release.
martin0024
approved these changes
May 31, 2026
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 #12
Overview
Implements the scheduling availability calendar frontend with drag-to-select time slots, week/day headers, and coach message section integration.
Also includes mobile UX refinements so key context remains visible while scrolling:
Testing
Manual testing:
Screenshots / Screencasts
Checklist
Notes
No backend/schema changes. Frontend-only scheduling UI work.