Skip to content

Video library: browse finished videos with thumbnails and publish status - #3

Merged
norbsss merged 1 commit into
mainfrom
claude/ui-library
Nov 4, 2026
Merged

norbsss merged 1 commit into
mainfrom
claude/ui-library

Conversation

@norbsss

@norbsss norbsss commented Nov 4, 2026

Copy link
Copy Markdown
Owner

Stacked on #2 (which is stacked on #1). Merge those first; this PR's diff shows one commit.

What it does

A Library button in the top bar opens a grid of finished videos. Each card shows:

  • a thumbnail
  • subject and date
  • Auto-Publish status: not published, publishing, published, failed, or "Scheduled for {local time}" for posts scheduled through Upload-Post

Each card plays the video inline and keeps the task actions: open folder, regenerate, delete. Cards load 12 at a time.

Notes

  • A dialog, not a page. Switching pages skips rendering the generation form, and Streamlit drops the state of widgets it does not render, so a half-typed subject or script would be lost.
  • Thumbnails are the frame at 0.5 s, or the first frame for shorter videos. ffmpeg makes each one once and it is cached next to the video until the video changes.
  • Play uses an on_click callback, so the player above the grid appears on the same rerun. Portrait videos play in the middle third instead of filling the dialog.
  • Card actions show icons only, with labels kept for screen readers, like the Task Manager rows.
  • Translated into all 14 UI languages.

Tests

  • New test_webui_library.py:
    • a thumbnail is created, cached, and refreshed for a real tiny video
    • publish status labels, including scheduled posts
    • an AppTest that opens the library and plays a clip
  • Full suite on Windows: 3271 passed, 3 failed. The 3 failures also happen without this change on this machine: symlink privilege, ffmpeg home-path expansion, and a video metadata probe.
  • Checked in the browser with two real Wan clips: grid, thumbnails, status and inline playback.

🤖 Generated with Claude Code

A new Library button in the top bar opens a grid of finished videos:
thumbnail, subject, date and Auto-Publish status, including the time of
a scheduled post. Each card plays the video inline and keeps the task
actions (open folder, regenerate, delete).

- It is a dialog rather than a separate page: switching pages would
  skip rendering the generation form, and Streamlit drops the state of
  widgets it does not render, losing a half-typed subject or script.
- Thumbnails are the frame at 0.5 s (first frame for shorter videos),
  made with ffmpeg once and cached next to the video until it changes.
- Play uses an on_click callback so the player, above the grid, appears
  on the same rerun; portrait videos play in the middle third.
- Card actions show icons only, with the label kept for screen readers,
  like the Task Manager rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@norbsss
norbsss changed the base branch from claude/local-ai-models to main November 4, 2026 16:35
@norbsss
norbsss merged commit 44c0c5b into main Nov 4, 2026
3 checks passed
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.

1 participant