Repository navigation
fix(web): label the AI subtitle menu item "Generate subtitles with AI…" when it can only transcribe - #5514
Conversation
|
Warning Review limit reachedThis organization requires a seat for paid usage-based reviews, including automatic and on-demand reviews. Ask an admin to assign a seat or enable paid usage-based reviews for users without a seat in Billing. Next included review available in 35 minutes. View limit details
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
This comment has been minimized.
This comment has been minimized.
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
| version=local-c406d7fec298 | ||
| sha256=- |
There was a problem hiding this comment.
Local translation pin breaks reproducible translation synchronization
The local-only version makes scripts/sync-translations fail without arguments, preventing reproduction of the committed translations. After the catalog change is released, pin the published release and its checksum.
Prompt for LLM
File .silo-translations, lines 2-3:
Local translation pin breaks reproducible translation synchronization
The local-only version makes `scripts/sync-translations` fail when run without arguments, so the committed translation state cannot be reproduced from the pinned release. Pin the published translation release and its checksum after the catalog change is released.
Talk to Kody by mentioning @kody
Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.
There was a problem hiding this comment.
Known and planned: the new key comes from Silo-Server/silo-translations#196, which hasn't been released yet. Once it merges and its release is published, this branch re-syncs with --version <release> so .silo-translations names that release and its checksum, before this PR merges.
There was a problem hiding this comment.
Understood. The local pin is temporary, and the planned re-sync to the published release and checksum addresses the reproducibility concern. The suggestion remains applicable until that re-sync is completed before merge.
e125e85 to
7a635b2
Compare
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
When the server can only create subtitles from the audio (translation off, or no subtitle track it can translate), the player's subtitle menu now reads "Generate subtitles with AI…" instead of "Translate with AI…", matching the dialog it opens. Translations are synced from a local silo-translations checkout that adds web.subtitles.menu.generateWithAi; re-sync with --version once that catalog change is released. Closes Silo-Server#5352
7a635b2 to
1b0b5b9
Compare
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
/silo reviewReviewed head: 1b0b5b9 The label change is correct. The menu now names the entry with the same condition the dialog uses to pick its mode: translation enabled and at least one translatable subtitle track. When the entry is shown is unchanged. I found no defect this PR introduces, so there are no inline findings. Verification. A throwaway component test that renders Translation catalog. Silo-Server/silo-translations#196 was missing its translation pass, which is why its Left for the maintainers.
Validated features. No passed 1.0 case is affected. Of the two cases that found this bug, #1165 C2 and #1166 C1, neither has been run yet. This PR lets the web client pass them, so I changed the User manual. "Translate or transcribe with AI" on the Missing subtitles page ( Other clients. Apple Silo-Server/silo-apple#1314 and Android Silo-Server/silo-android#1074 are open and linked. Roku has no AI subtitle entry. The Jellyfin-compatible API and the server API are unaffected. Council (one round on 1b0b5b9):
All three found the label logic correct. Each scored the pending re-sync and the dialog's accessible name, both covered above. Sol also noted that the dialog keeps its starting mode when the subtitle list changes while it is open. That behavior is older than this PR, and I couldn't confirm that a refresh actually removes a translatable track mid-dialog. Fit: 9/10 · Readiness: 8/10 — conditional (assuming CI is green)
🤖 Claude Code (claude-opus-5-5) |
|
Thanks. I opened Silo-Server/siloserver.org#478 for the Missing subtitles page. I'll re-sync |
Regenerate the web locales from one catalog build with both open catalog changes: Silo-Server/silo-translations#151 (web.search.typePodcast, pinned by main) and Silo-Server#196 (web.subtitles.menu.generateWithAi, this branch). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Problem
Closes #5352
Related issue: N/A
Validation tasks: unblocks #1165 C2; unblocks #1166 C1
Other clients: Apple Silo-Server/silo-apple#1314; Android Silo-Server/silo-android#1074; Roku N/A (no AI subtitle entry in the Roku player)
The web player's Subtitles menu always labelled its AI entry "Translate with AI…". When the server has only transcription turned on, or the video has no subtitle track the server can translate, that entry opens a dialog that can only generate subtitles from the audio, titled "Generate subtitles with AI". In those cases the menu now reads "Generate subtitles with AI…". It still reads "Translate with AI…" whenever a track can be translated.
Approach
The menu picks its label with the same condition the dialog uses to choose its mode: translation enabled and at least one translatable subtitle track. When the menu shows the entry and the dialog would open in audio mode, the menu shows the new label. When the entry appears is unchanged.
The new catalog key
web.subtitles.menu.generateWithAicomes from Silo-Server/silo-translations#196. This branch syncs it from a local checkout, and I will re-sync with--versiononce that release is published.Validation
pnpm run lint,format:check,buildandbudget:checkpass;make test-webpasses (358 files, 3463 tests).Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/pr-5514/
Surface and build: web player Subtitles menu, transcription only, desktop 1440 px and mobile 390 px, local build of this branch against a stub AI provider.
Risks
None identified. The change affects only the label. When the entry appears and what the dialog does are unchanged.
Checklist
AI Disclosure
Note
Show "Generate subtitles with AI…" label when only transcription is available in
SubtitleMenuMacroscope summarized 1b0b5b9.