Skip to content

fix(ui): label media clips with their file name - #83

Merged
yultyyev merged 13 commits into
feat/shortsfrom
fix/ui-clip-file-names
Nov 16, 2026
Merged

yultyyev merged 13 commits into
feat/shortsfrom
fix/ui-clip-file-names

Conversation

@yultyyev

@yultyyev yultyyev commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

What

  • Media clips in the clip ui timeline, their hover tooltip, and the clip inspector heading now show the file's base name (talking.mp4) instead of the media ID (m_821d98105d7c).
  • When the session log doesn't name a media ID, the label falls back to the ID.

Before / after (timeline, testsrc demo media):

Before (origin/main):

Timeline before: media clips labeled m_762523c22d75 and m_61bf4a0c318f

After:

Timeline after: media clips labeled talking.mp4 and broll.mp4

Why

The ID tells you nothing about which file a clip is. The session log's ingest entries already pair each media ID with its path (the same registry export resolves media through), and the UI already polls /api/session. So this needs no server or API change.

How

  • mediaNames(entries) in src/ui/web/src/lib/composition.ts builds a mediaId → name map from the ingest entries. It reuses shortName from playable-clips.ts, so a UI import's random xxxxxxxx- prefix is stripped, the same as on the Outputs cards.
  • clipLabel(clip, names) takes that map. App memoizes it from the session and passes it to DocTimeline and ClipInspector.

How to test

  1. In a workspace, run clip timeline new and clip timeline add-media talking.mp4, then open clip ui.
  2. The clip on v0 reads talking.mp4, its tooltip reads talking.mp4 · 0.00–6.00s, and clicking it shows talking.mp4 as the inspector heading.

Release

Stacked on feat/shorts (shorts slices 1 and 2), so these fixes ship in the same release as shorts instead of their own patch. #84 (op list in the dark theme, #81) is already merged into this branch.

  • Merging this into feat/shorts publishes nothing. The release happens when feat/shorts merges into main.
  • The diff here also shows the 10 docs and README commits that are on main but not yet on feat/shorts. They're already on main, so they add nothing new there.
  • GitHub only closes issues from PRs merged into main. So the feat/shorts → main PR should say Closes #80 and Closes #81. If it's squash-merged, its notes should mention both fixes.

Checks

  • pnpm lint: no errors. 7 warnings, all already on main (tests/speed.test.ts, tests/transition.test.ts).
  • pnpm type-check: pass.
  • pnpm test: 850 passed, 27 skipped. The new tests/ui-clip-label.test.ts (5 tests) covers the name map, the import-prefix strip, the ID fallback, and text and color labels.
  • pnpm build: pass.
  • /verify: typecheck, lint and build pass. Its test lane reports UNMAPPED because the repo has no .gstack/pregate.json mapping the UI files to tests. The new test covers the two lib files; the React components have no DOM test setup in this repo.
  • Browser check: headless Chrome on a scratch workspace with two testsrc clips and a text clip. On this branch the timeline labels, tooltips and inspector heading read talking.mp4 / broll.mp4; on origin/main they read the media IDs.
  • After stacking on feat/shorts: a test merge of this branch into feat/shorts passes lint (no errors), type-check, test (942 passed) and build.
  • After stacking fix(ui): draw the op list in the dark theme #84: lint, type-check, test (850 passed) and build pass again on the combined branch (59542e7), locally and in CI.
  • Codex review (codex review --base origin/main): no findings, so nothing to fix or rebut. Its summary: "The filename lookup matches the existing media registry and is consistently passed to timeline and inspector labels, with media IDs retained as fallbacks."

Closes #80
Closes #81

yultyyev and others added 12 commits November 15, 2026 15:57
Add a weekly downloads badge second in the row, after skills.sh. It
reads the same last-week count the npm package page shows, so it reads
"816" rather than shields' "816/week".

Drop the "telemetry: none" badge. The intro already says "no
telemetry" and the comparison table has a "Zero telemetry" row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…adge

docs(docs): show weekly npm downloads in the README badge row
…he version badge

The downloads badge becomes all npm red with the white npm logo and
reads "npm 816", like the skills.sh badge next to it (one color, a logo,
a short label, a plain number). It stays a dynamic JSON badge on npm's
last-week count, since shields' npm/dw badge always appends "/week".

The npm version badge goes: the skill, plugin and MCP config all run
`npx -y`, which always fetches the latest release, so the version
doesn't change anything for users, and the downloads badge already
links to the npm page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replace the "screencast coming soon" placeholder with a screenshot of
`clip ui`: a 16-second demo timeline (three cuts of a talking head, two
B-roll shots, a title and six captions) with the playhead at 1 s, where
the monitor shows the composited frame.

Add docs/social-preview.jpg, a 1280x640 card for link previews built
from crops of the same screenshot. It is set in the repository's
Settings, not referenced from the README.

The sample footage was generated from three still frames; the
workspace path in the screenshot is a neutral demo folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex (the CLI and the IDE extension) reads MCP servers from
~/.codex/config.toml. Add the same npx server there, and name Codex in
the MCP section's list of clients.

Tested with Codex CLI 0.162.1: with this config, Codex lists all eight
tools and a timeline_show call returns the timeline.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
npm's package page rewrites the README's relative image path to
raw.githubusercontent.com/MakeMyClip/editor/HEAD/docs/hero.png, from the
README published with the last release. Renaming the file to hero.jpg
would 404 that image on npm as soon as this merges, until the next
release. Keep the old path and store the new screenshot there as a PNG.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs(docs): show the real browser editor as the README hero, add Codex setup
docs(docs): restyle the npm downloads badge like skills.sh and drop the version badge
The full editor screenshot is nearly square and took a whole screen at
the top of the README. Use a 2:1 card as the hero instead: "Chat with
your video editor", a sample request and reply, badges, and crops of
the editor's monitor and timeline. It keeps the docs/hero.png path, so
npm's page picks it up without a release.

The full screenshot moves under the paragraph that lists what the
browser UI does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs(docs): use a card as the README hero, move the screenshot down
Media clips on the browser timeline and in the clip inspector showed their
media ID (m_821d98105d7c) instead of the file name. The session log's ingest
entries already map each media ID to its path, so the UI now builds a
name map from them and labels clips with the file's base name, falling back
to the ID when the session doesn't name it.

Closes #80

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each op in the list left of the monitor is a <button>, and `.op-list .op`
never cleared the browser's button styles. Ops showed as light gray boxes
with centered text and a raised border, and the light gray text on them
was hard to read. Clear the background, border, font and alignment so the
existing dark rules show: the panel color by default, a lighter row on
hover, and the blue tint and left bar when selected.

Closes #81

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(ui): draw the op list in the dark theme
@yultyyev
yultyyev changed the base branch from main to feat/shorts November 16, 2026 02:31
@yultyyev
yultyyev merged commit 8f5f4b9 into feat/shorts Nov 16, 2026
1 check passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 0.5.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI: op list renders light boxes in the dark theme UI: label timeline clips with the file name, not the media ID

1 participant