Calendar attachment cards need Copy link to their target #879

Open
opened 2026-10-02 17:30:35 +00:00 by kayg · 1 comment
Owner

Evidence

Calendar data maps the attachment's stable item_id into CalendarAttachment.itemId (apps/web/src/lib/calendar/data.ts:289-300). ItemPreview opens the File or Note target (packages/ui/src/components/calendar/ItemPreview.svelte:86-100). The attachment deck accepts only open and remove callbacks (packages/ui/src/components/calendar/AttachmentDeck.svelte:78-93), so its visible cards have no Copy link action. The Log entry preview's Copy link copies the Log entry itself (packages/ui/src/components/calendar/ItemPreview.svelte:223-245). Voice memos shown as audio attachments have the same gap.

Rule

CLAUDE.md, Deep links, requires a Copy link action for every item and stable identities in copied links.

Expected behavior

A User can copy a link to the attached File or Note from its card in a Calendar Log entry preview. Use the File item ID or Note calternal-id, not the current path. Provide the same action for voice memo cards.

Test idea

From a Log entry preview, copy a File, Note and voice memo attachment link. Open each link cold and verify that it opens the attached item. Rename or move a File before opening its old copied link. Check pointer, keyboard and touch access.

## Evidence Calendar data maps the attachment's stable `item_id` into `CalendarAttachment.itemId` (`apps/web/src/lib/calendar/data.ts:289-300`). `ItemPreview` opens the File or Note target (`packages/ui/src/components/calendar/ItemPreview.svelte:86-100`). The attachment deck accepts only open and remove callbacks (`packages/ui/src/components/calendar/AttachmentDeck.svelte:78-93`), so its visible cards have no Copy link action. The Log entry preview's Copy link copies the Log entry itself (`packages/ui/src/components/calendar/ItemPreview.svelte:223-245`). Voice memos shown as audio attachments have the same gap. ## Rule CLAUDE.md, Deep links, requires a Copy link action for every item and stable identities in copied links. ## Expected behavior A User can copy a link to the attached File or Note from its card in a Calendar Log entry preview. Use the File item ID or Note calternal-id, not the current path. Provide the same action for voice memo cards. ## Test idea From a Log entry preview, copy a File, Note and voice memo attachment link. Open each link cold and verify that it opens the attached item. Rename or move a File before opening its old copied link. Check pointer, keyboard and touch access.
Author
Owner

Coordination note: this finding is specifically the missing Copy link action on a Calendar attachment card. It is related to attachment behavior in #427 and voice memo work in #620, but those tickets do not provide a link to the attached File or Note from this card.

Coordination note: this finding is specifically the missing Copy link action on a Calendar attachment card. It is related to attachment behavior in #427 and voice memo work in #620, but those tickets do not provide a link to the attached File or Note from this card.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal#879
No description provided.