Skip to content

New session dialog step controls - #523

Draft
jhodapp wants to merge 1 commit into
feat/scheduling-logicfrom
feat/scheduling-controls
Draft

jhodapp wants to merge 1 commit into
feat/scheduling-logicfrom
feat/scheduling-controls

Conversation

@jhodapp

@jhodapp jhodapp commented Nov 2, 2026

Copy link
Copy Markdown
Member

Description

Second of five PRs for the stepped "New session" dialog. Adds the dialog's leaf controls, presentational and tested, not mounted anywhere yet. Stacked on #522.

Changes

  • Controls (ui/new-session/): MonthGrid (Monday-first, past days disabled, Today pill, busy dots, 350ms day tooltip, arrow-key focus), DurationField (30/45/50/60 chips + stepper, 15–180 in steps of 5), TimeField (suggested time chips + time input), BusyNote ("Already on …" list or the overlap pill with "Use 3:30 PM instead"), PersonPicker (search over everyone, active people first, Show everyone / Hide inactive), WeekdayPicker (start day locked).
  • Primitives: Chip size="md", Button sizes icon-md (44) and icon-lg (48), Toggle variant="round", RadioCardItem, CheckDisc.
  • Hooks/utils: useMediaQuery, useHoverIntent, a shared prefersReducedMotion() (replaces the private copies in the toast pill and global search).
  • Hit targets: a modal Tailwind screen at 900px; every control is ≥44px below it and drops to the design's 36/40px above it. Style guide notes the 36px chip.

Screenshots / Videos Showing UI Changes (if applicable)

None yet; nothing renders these until the dialog PR.

Testing Strategy

  • 51 new component and hook tests written as the spec before the code; all 2608 tests pass, tsc and lint clean.
  • Toast pill and global search tests pass unedited after the reduced-motion swap.

Concerns

  • src/components/hooks/use-mobile.tsx has no tracked users but stays for now; a local gitignored prototype still imports it.

@jhodapp jhodapp changed the title feat(scheduling): New session dialog step controls NNew session dialog step controls Nov 3, 2026
@jhodapp jhodapp changed the title NNew session dialog step controls New session dialog step controls Nov 3, 2026
@jhodapp jhodapp self-assigned this Nov 3, 2026
@jhodapp jhodapp added the enhancement Improves existing functionality or feature label Nov 3, 2026
@jhodapp jhodapp added this to the 1.0.0-beta4 milestone Nov 3, 2026
@jhodapp jhodapp moved this to 🏗 In progress in Refactor Coaching Platform Nov 3, 2026
@jhodapp jhodapp added the feature work Specifically implementing a new feature label Nov 3, 2026
@jhodapp jhodapp moved this from 🏗 In progress to Review in Refactor Coaching Platform Nov 3, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improves existing functionality or feature feature work Specifically implementing a new feature

Projects

Status: Review

Development

Successfully merging this pull request may close these issues.

1 participant