multica/apps/web/components/common
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
..
actor-avatar.tsx refactor(web): unify all avatar rendering with ActorAvatar 2026-04-01 16:58:43 +08:00
code-block-view.tsx feat(ui): editor UX improvements — lowlight, upload, emoji, comment editing 2026-03-31 18:37:53 +08:00
emoji-picker.tsx feat(reactions): add emoji reactions for comments and issue descriptions 2026-03-30 22:37:59 +08:00
file-upload-button.tsx fix(editor): unify image upload flow for paste and button 2026-04-02 18:02:28 +08:00
mention-extension.ts feat(editor): unify Tiptap editor for editing and readonly display 2026-04-02 16:35:52 +08:00
mention-hover-card.tsx feat(mentions): support @all to mention all workspace members 2026-04-01 20:58:33 +08:00
mention-suggestion.tsx feat(editor): unify Tiptap editor for editing and readonly display 2026-04-02 16:35:52 +08:00
mention-view.tsx feat(editor): unify Tiptap editor for editing and readonly display 2026-04-02 16:35:52 +08:00
quick-emoji-picker.tsx feat(ui): editor UX improvements — lowlight, upload, emoji, comment editing 2026-03-31 18:37:53 +08:00
reaction-bar.tsx feat(ui): editor UX improvements — lowlight, upload, emoji, comment editing 2026-03-31 18:37:53 +08:00
readonly-editor.tsx feat(editor): unify Tiptap editor for editing and readonly display 2026-04-02 16:35:52 +08:00
rich-text-editor.css fix(editor): unify image upload flow for paste and button 2026-04-02 18:02:28 +08:00
rich-text-editor.tsx fix(editor): unify image upload flow for paste and button 2026-04-02 18:02:28 +08:00
title-editor.css feat(editor): add TitleEditor component, replace <input> for issue titles 2026-03-31 15:38:42 +08:00
title-editor.tsx fix(web): delay TitleEditor autofocus to avoid Dialog animation conflict 2026-04-01 14:15:31 +08:00