Skip to content

feat: export history — show a session list of recent exports with re-download links #676

@magic-peach

Description

@magic-peach

Once a user exports a video and starts working on another setting or file, the previous export result is gone. An export history panel would let users re-download past exports within the same browser session.

What to build

Maintain an in-memory list of ExportResult objects for the current session (max 5 entries). Display the history in a collapsible panel below the export button:

  • Each entry shows: filename, format, file size, output dimensions, export timestamp
  • A "Download" button re-triggers download from the stored blob URL
  • A "Clear" button removes all history entries and revokes blob URLs

Note: blob URLs are only valid for the current session — make this clear in the UI ("History is cleared when you close or refresh the page").

Files to modify

  • src/hooks/useVideoEditor.ts — add exportHistory array to state
  • src/components/DownloadResult.tsx or a new ExportHistory.tsx

Acceptance criteria

  • Export history is visible and lists up to 5 previous exports
  • Clicking "Download" re-triggers the file download from the blob URL
  • History is cleared on page reload (no persistence)
  • Blob URLs are properly revoked when entries are cleared or evicted
  • "Clear history" button works

Screen Recording Required

Your PR for this issue must include a screen recording showing the feature working on your local machine (bun run devhttp://localhost:3000). PRs without a recording will not be merged.

See CONTRIBUTING.md for how to record.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions