Skip to content

feat: Add Clear Button to Reset Video Editor State #699

@CodeSrushti-3105

Description

@CodeSrushti-3105

Description

Problem

Currently, after uploading a video in the editor, users only have the option to change the selected video file. There is no way to completely remove the uploaded video and reset the editor state without refreshing the page manually.

This creates a poor user experience because users cannot easily:

  • Remove an uploaded video
  • Reset editing settings
  • Clear export results/errors
  • Start fresh with a clean editor state

Current Behavior

  • Users can upload a video
  • Users can change the uploaded video
  • No option exists to fully clear/reset the editor
  • Users may need to refresh the page manually to reset everything

Expected Behavior

Users should be able to completely clear the uploaded video and reset the editor state using a dedicated "Clear" button.

The reset action should:

  • Remove the uploaded video
  • Reset editor settings to default
  • Clear export results/errors
  • Restore the editor to its initial state

Proposed Solution

Enhance the upload section UI by adding a "Clear" button next to the existing "Change" button.

Implementation should include:

  • Passing the existing reset() function to the upload component
  • Adding a clear/reset button in the upload UI
  • Providing visual distinction for the destructive action
  • Adding proper accessibility labels

Files to Modify

  • FileUpload.tsx
    • Add Clear button UI
    • Accept onClear prop
  • VideoEditor.tsx
    • Pass reset() function to FileUpload

Acceptance Criteria

  • Users can remove uploaded videos without refreshing the page
  • Editor state resets completely after clicking Clear
  • Clear button is visually distinguishable
  • Existing upload/change functionality continues working
  • UI remains responsive and accessible

Metadata

Metadata

Assignees

Labels

enhancementImprovement to existing functionalityfeatureNew feature requesttype:designUI/UX design

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions