multica/apps/web/features/issues
Naiyuan Qing 7cc4e63e0e fix(editor): unify image upload flow for paste and button
Paste/drop and attachment button previously used separate upload paths.
The button uploaded first then called insertFile (which replaced the
current selection), while paste inserted a blob preview first. This
caused the second image to overwrite the first when both were used.

Now both paths share the same flow via uploadAndInsertFile():
blob preview with uploading animation → background upload → replace URL.

- Extract shared uploadAndInsertFile() function
- Replace insertFile ref method with uploadFile (inserts at doc end)
- Simplify FileUploadButton to onSelect(file) — no more onUpload/onInsert
- Wire onUploadFile in comment edit mode (was missing, upload was no-op)
- Unify image border-radius CSS for both editing and readonly modes

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 18:02:28 +08:00
..
components fix(editor): unify image upload flow for paste and button 2026-04-02 18:02:28 +08:00
config feat(web): add kanban board + list view + filtering to My Issues page 2026-04-01 16:56:22 +08:00
hooks feat(web): add skeleton loading, error toasts, and confirmation dialogs 2026-04-02 16:46:56 +08:00
stores feat(web): add scope tabs to Issues and My Issues pages 2026-04-01 18:30:40 +08:00
utils feat(issues): add assignee and creator filters with two-level dropdown 2026-03-31 11:04:21 +08:00
index.ts feat(web): add kanban board + list view + filtering to My Issues page 2026-04-01 16:56:22 +08:00
store.ts feat(web): add skeleton loading, error toasts, and confirmation dialogs 2026-04-02 16:46:56 +08:00