Skip to content

feat(web,macos): copy/paste placement outline (no event jump) - #5194

Merged
tyler-dane merged 13 commits into
mainfrom
cursor/event-copy-paste-preview-53b6
Nov 9, 2026
Merged

tyler-dane merged 13 commits into
mainfrom
cursor/event-copy-paste-preview-53b6

Conversation

@tyler-dane

@tyler-dane tyler-dane commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

What and why

Implements Tyler's design correction for copy/paste on web and macOS: Cmd/Ctrl+C on a focused grid event starts paste placement using the same read-only hour-outline / keyboardPlace-style grid draft, not F/event jump. The outline starts just after the source event; arrows (and existing draft reposition shortcuts) move it; Cmd/Ctrl+V commits an optimistic duplicate with undo and focuses the new event; Esc cancels placement but keeps the in-app clipboard.

Sidebar hint: Arrows move · Cmd+V paste · Esc cancel (no jump letters, chips, or f).

Paste duplicates title, description, location, color, calendar, and schedule only (same as Cmd+D): guests are not copied.

Independent review fixes (BLOCK @ ca10ecb9)

  1. Compile / focus: focusEvent(eventId:) instead of private focusDraftCard(); endEventPastePreview() is public for the app keyboard router.
  2. pastePlace gating (web + Mac, Enter does nothing): Web GridDraft skips opening the form when activity === "pastePlace". Mac router blocks bare Enter, editOpen, and draft save paths (openEventFormForCurrentDraft, Cmd+Enter save, requestSaveDraft / form save guards).
  3. Mac fallback Cmd+V after Esc: Inactive outline paste uses draftTargetDay() (parity with web getPasteTargetDay), not the source event's day only.
  4. Tests: Web GridDraft / shortcut owner Enter during pastePlace; Mac EventPastePreviewKeyboardTests (Enter, fallback day, move+paste). Mac package tests use @testable import CompassData.

Rebased onto current main (conflict in NativeGridKeyboardRouter resolved with main's description-link digit handling + paste performShortcut return semantics).

Re-review fix (f01ac74c7 BLOCK)

  • Day view Enter: DayCalendarGrid.openEventFormForEvent no longer opens the form for the live pastePlace draft card.
  • Other web open/save paths: draftActions.setFormOpen(true) is a no-op during pastePlace (covers context-menu Edit and any other setFormOpen caller). useSaveEventForm.saveEventForm returns without committing while pastePlace is active.
  • Month view: no grid draft / form-open path (not applicable).
  • Tests: DayCalendarGrid.test.tsx, draft.store.test.ts, useSaveEventForm.test.tsx.

Verify

Head: 60a0ae2b7507d607b89279a040c70ba425b111d3

bun run verify --strict: VERDICT: PASS

macOS workflow (same head): run 42703054708

  • swift-packages: success
  • macos-build: success
  • macos: success
  • macos-ui-shard (1–4): success

Manual week-view walkthrough (placement outline, arrow move, hint, Mod+V duplicate):

Paste placement outline with sidebar hint
Outline moved to adjacent day with arrows

Not merged per request.

Open in Web Open in Cursor 

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Boot bundle: 573.7 KB gzip (+0.0 KB vs main)

cursor Bot pushed a commit that referenced this pull request Nov 9, 2026
Gate native clipboard chords in text inputs, do not consume copy/paste when
no focused event, render read-only paste ghosts with slot color hex, and assert
duplicate persistence in keyboard/model tests. Web: jump-day paste unit/e2e.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
@cursor cursor Bot changed the title feat(web,macos): copy-paste preview for focused grid events feat(web,macos): copy/paste placement outline (no event jump) Nov 9, 2026
cursor Bot pushed a commit that referenced this pull request Nov 9, 2026
Gate native clipboard chords in text inputs, do not consume copy/paste when
no focused event, render read-only paste ghosts with slot color hex, and assert
duplicate persistence in keyboard/model tests. Web: jump-day paste unit/e2e.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/event-copy-paste-preview-53b6 branch from ca10ecb to 9829cc7 Compare November 9, 2026 17:13
cursoragent and others added 12 commits November 9, 2026 20:38
Mod+C copies a focused event into the in-app clipboard, shows a jump-driven
paste ghost, writes readable text to the system clipboard, and updates sidebar
hints. Mod+V commits a duplicate at the preview target without opening the
form; Esc cancels preview only. macOS parity via paste preview store, overlay,
and keyboard router tests.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Gate native clipboard chords in text inputs, do not consume copy/paste when
no focused event, render read-only paste ghosts with slot color hex, and assert
duplicate persistence in keyboard/model tests. Web: jump-day paste unit/e2e.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Copy starts a pastePlace grid draft (hour-outline style) after the source
event. Arrows reposition it; Mod+V commits without the form. Esc cancels.
No F/jump coupling in hints or placement.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Use focusEvent for paste outlines. Enter and edit-open no-op on pastePlace
(web GridDraft, Mac router). save/create paths ignore pastePlace. Mac
fallback paste uses draftTargetDay again. Tests for Enter and fallback day.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/event-copy-paste-preview-53b6 branch from 1824e97 to f01ac74 Compare November 9, 2026 20:38
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
@tyler-dane
tyler-dane added this pull request to the merge queue Nov 9, 2026
Merged via the queue into main with commit f28521d Nov 9, 2026
38 checks passed
@tyler-dane
tyler-dane deleted the cursor/event-copy-paste-preview-53b6 branch November 9, 2026 22:40
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