Implement attachment add, edit, remove, and source options
Categories
(Calendar :: Calendar Frontend, task)
Tracking
(Not tracked)
People
(Reporter: arschmitz, Unassigned)
References
(Depends on 1 open bug, Blocks 2 open bugs)
Details
(Whiteboard: [calendar-ui-create-edit])
Summary:
Implement attachment draft actions and supported source options in the Attachments subview.
Links:
-
Zeplin attachments subview variants: https://app.zeplin.io/project/66dd0f2b2fe8f1b63cda36f1/screen/6a10755c53407333ac9af282
-
Interaction guide: Proposed features: https://docs.google.com/document/d/15OpMthOHmBGyPpDBNRW8vp6uCxeoitBp8n7Fti3LD10/edit?tab=t.3g6ozuwquqfq#heading=h.lm26t0ay4a75
-
Attachment drafts contain plain serializable descriptors only: stable draft ID, kind, display text, URL or opaque persisted reference, and staged-operation state. They contain no file handle, file bytes, attachment object,
calIEvent, calendar object, or DOM value. -
The action menu includes Page URL. Selecting it dispatches a narrow patch that adds a blank link descriptor and focuses its URL field.
-
Editing a link changes its draft URL through a narrow patch. Composition, caret, native validity, action-menu state, and focus restoration remain local control state.
-
Use this module for icons https://github.com/thunderbird/thunderbird-desktop/blob/main/mail/components/calendar/modules/CalendarAttachmentUtils.sys.mjs
-
Removing a link or file stages its removal in the draft. It does not delete persisted attachment data or mutate the event before Save.
-
Downloading a supported existing file attachment invokes the platform Save File dialog from the UI controller. It does not require the attachment payload in Redux.
-
Attachment actions are tied to the current session. Route/session replacement cleans up pending local state, and stale async results cannot patch the newer draft.
-
The existing Save controller serializes the final attachment draft and performs persistence.
-
Add focused tests for Page URL focus, link editing, staged removal, supported-file download, Send availability, the unresolved upload boundary, serializable draft changes, stale-session cleanup, Save-time persistence, read-dialog refresh, and axe coverage where supported.
Out of scope:
- Selecting a storage/upload provider, raw file data in Redux, direct persisted-attachment mutation outside Save, a generic upload abstraction before the provider is chosen, and changing the Attachment subview shell.
| Reporter | ||
Updated•1 month ago
|
| Reporter | ||
Updated•10 days ago
|
| Reporter | ||
Updated•7 days ago
|
Description
•