Skip to content

Teach the clicked time's shortcut on empty grid clicks - #3042

Merged
tyler-dane merged 2 commits into
mainfrom
cursor/grid-click-time-shortcut-dae0
Sep 1, 2026
Merged

Teach the clicked time's shortcut on empty grid clicks#3042
tyler-dane merged 2 commits into
mainfrom
cursor/grid-click-time-shortcut-dae0

Conversation

@tyler-dane

@tyler-dane tyler-dane commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Summary

Empty clicks on the timed grid were falling back to a generic "keyboard only" hint. Those clicks hit the hour-line overlay, so the pointer hint never resolved a slot.

This change detects empty timed-grid clicks (hour rows and #mainGrid) and shows the matching HHMM shortcut with a short explanation, for example "Type 1830 to create an event at 6:30 PM." Typing those digits still creates at the clicked instant.

Simplicity

Reuse the existing pointer-hint and parked-draft path. The fix is to recognize the overlay that empty clicks actually hit, then keep teaching HHMM the same way annotated controls already teach ] or event-jump tokens.

Test flake (booking only)

UTC month-end midnight made same-day sibling slots collapse onto 23:59. Booking unit and e2e helpers now step backward within the same UTC day when +gap would leave it.

The RecurrenceSection until-picker walk-back landed on main in #3041, so this branch no longer carries that test change.

Automated validation

  • Focused web tests: 29 pass (pointer-action.test.ts, PointerHint.test.tsx)
  • Playwright: e2e/timed/mouse-inert.spec.ts 4 pass, including the new empty-grid HHMM assertion
  • bun run type-check pass
  • bun run lint pass (17 pre-existing warnings, none in this diff)
  • Browser: empty clicks at noon, 6:30 PM, and 9:00 AM show 1200 / 1830 / 0900 and do not open a form
  • Booking same-day sibling slots: PublicBookingPage.test.tsx 26 pass

Test plan

  • bun test:web packages/web/src/shortcuts/keyboard-only/pointer-action.test.ts packages/web/src/components/PointerHint/PointerHint.test.tsx
  • bun test:web packages/web/src/booking/PublicBookingPage.test.tsx
  • bunx playwright test e2e/timed/mouse-inert.spec.ts
  • bun run type-check
  • bun run lint
  • Browser: click empty timed-grid slots and confirm the hint names the matching HHMM digits
Open in Web Open in Cursor 

@tyler-dane
tyler-dane marked this pull request as ready for review September 1, 2026 00:12
cursoragent and others added 2 commits September 1, 2026 00:41
Empty timed-grid clicks hit the hour-line overlay, so the hint never
resolved a slot and fell back to "keyboard only". Detect those clicks
and show the matching HHMM digits with a short create explanation.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Month-end evenings collapsed both stubbed slots onto 23:59 UTC, so the
picker omitted the duplicate key and +30min crossed into the next day.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/grid-click-time-shortcut-dae0 branch from fc03806 to d77df40 Compare September 1, 2026 00:43
@tyler-dane
tyler-dane merged commit 23ea0e1 into main Sep 1, 2026
27 checks passed
@tyler-dane
tyler-dane deleted the cursor/grid-click-time-shortcut-dae0 branch September 1, 2026 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants