Skip to content

feat: add upload file button to annotation guide editor toolbar#10341

Open
prathamesh-patil-5090 wants to merge 23 commits intocvat-ai:developfrom
prathamesh-patil-5090:fix-10301
Open

feat: add upload file button to annotation guide editor toolbar#10341
prathamesh-patil-5090 wants to merge 23 commits intocvat-ai:developfrom
prathamesh-patil-5090:fix-10301

Conversation

@prathamesh-patil-5090
Copy link
Copy Markdown
Contributor

Problem:

The annotation guide editor supported drag-and-drop and clipboard paste for inserting local images, but had no dedicated button to open a file picker dialog. This made image uploads difficult on devices with limited touchpad access.

Solution:

A paperclip icon button is added to the MDEditor toolbar extraCommands. Clicking it opens the OS file selection dialog (supports multiple files). The selected files are uploaded to the server as assets via the existing handleInsertFiles logic — images are embedded as ![image] () and other file types as [filename] ().

Test:

Screencast.from.2026-03-09.01-15-16.webm

Closes #10301 (extracted from #6536).

prathamesh-patil-5090 and others added 23 commits November 23, 2025 15:36
Refactor not found components to use a common handleReturn function for navigation.
Remove console log for history length in TaskNotFoundComponent.
Added a new 'Return to Previous Page' button with smart fallback navigation.
Updated link for 'Return to Previous Page' button feature.
Updated the link for the 'Return to Previous Page' button in the changelog.
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.

Add a button to upload an image to a task guide

2 participants