You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
i18n(transcriber): TranscriberLayout.vue hardcodes its settings labels #16335
autobot-frontend/src/views/transcriber/TranscriberLayout.vue has three hardcoded UI strings: "Settings", "Hide settings" (line 21) and "Transcriber settings" (line 26). They should go through vue-i18n, with keys in all 11 locales, per the no-hardcoded-UI-strings rule.
Found while #16259 made the settings surface admin-only. That PR adds no strings, and it leaves these as they were to keep its scope to the authorization change.
Status: work is on branch issue-16335-transcriber-i18n (6a318ec77), with no PR yet.
AC1 is done in that commit.TranscriberLayout.vue's settings button, hide button and heading (also the section's aria-label) now use transcriber.layout.{settingsButton,hideSettingsButton,settingsHeading}, translated in all 11 locales. The locale-parity and untranslated-ratchet checks were replicated by reading their logic, and they hold.
Closure check against origin/main (1edec3064c): 2 of 3. The admin gate on the panel is still missing
Landed in 6a318ec77b ("route TranscriberLayout's settings labels through vue-i18n (#16335)").
Criterion
State
Evidence
All three strings come from i18n keys
Met
autobot-frontend/src/views/transcriber/TranscriberLayout.vue:31t('transcriber.layout.hideSettingsButton') / t('transcriber.layout.settingsButton'); :38 and :40t('transcriber.layout.settingsHeading')
Keys exist in all 11 locales
Met
transcriber.layout.{settingsButton, hideSettingsButton, settingsHeading} parsed from each of ar de en es fa fr he lv pl pt ur: 11 of 11, and there are 11 locale files
The settings <section> gated on isAdmin && settingsOpen
Not met
Only the toggle's <header> is gated: :24 <header v-if="isAdmin" …>. The <section> is its sibling, gated on v-if="settingsOpen" alone (:35-36). So the case this criterion names still holds: a session demoted to non-admin without a reload keeps an already-open panel, including <AsrProviderSelector /> (:41).
A one-line change, v-if="isAdmin && settingsOpen" at :36, plus a component test that flips isAdmin while the panel is open. Left open.
Verified against main at the merge train (PR #20707), merge 1416e3d202. Only boxes with code evidence are ticked.
AC
Evidence
All three strings come from i18n keys.
delivered (already ticked). TranscriberLayout.vue:35,42,44 use t('transcriber.layout.settingsButton'/'hideSettingsButton'/'settingsHeading').
The keys exist in all 11 locale files.
delivered (already ticked). hideSettingsButton present in 11 of 11 files under i18n/locales/.
The settings <section> is gated on isAdmin && settingsOpen, not only on settingsOpen. #16259 gates the toggle on isAdmin, but a sess
delivered. views/transcriber/TranscriberLayout.vue:22-23watch(isAdmin, ...) closes settingsOpen on demotion, and the toggle sits under v-if="isAdmin" (:28); the section is v-if="settingsOpen" (:40), so the effect is the criterion's but not its literal isAdmin && settingsOpen expression. Tests in views/__tests__/TranscriberLayout.admin.test.ts: closes on demotion, does not reopen when the role returns.
Activity
fix(transcriber): hide the admin-only provider setting from non-admin…
mrveiss commentedon Sep 11, 2026
Status: work is on branch
issue-16335-transcriber-i18n(6a318ec77), with no PR yet.TranscriberLayout.vue's settings button, hide button and heading (also the section'saria-label) now usetranscriber.layout.{settingsButton,hideSettingsButton,settingsHeading}, translated in all 11 locales. The locale-parity and untranslated-ratchet checks were replicated by reading their logic, and they hold.isAdmin && settingsOpen) is waiting on security(auth): authenticate every transcriber route, and stop anonymous callers owning every recording (#15758) #16259. That PR adds theisAdminbinding to this same file, and duplicating it would conflict. The native blocked_by edge to security(auth): transcriber routes authenticate no one -- every caller resolves to DEFAULT_USER #15758 is set..secrets.baselineline-number churn disappears once line numbers are stripped. Then rebase, finish AC2 and open the PR.mrveiss commentedon Oct 3, 2026
Closure check against
origin/main(1edec3064c): 2 of 3. The admin gate on the panel is still missingLanded in
6a318ec77b("route TranscriberLayout's settings labels through vue-i18n (#16335)").autobot-frontend/src/views/transcriber/TranscriberLayout.vue:31t('transcriber.layout.hideSettingsButton')/t('transcriber.layout.settingsButton');:38and:40t('transcriber.layout.settingsHeading')transcriber.layout.{settingsButton, hideSettingsButton, settingsHeading}parsed from each ofar de en es fa fr he lv pl pt ur: 11 of 11, and there are 11 locale files<section>gated onisAdmin && settingsOpen<header>is gated::24 <header v-if="isAdmin" …>. The<section>is its sibling, gated onv-if="settingsOpen"alone (:35-36). So the case this criterion names still holds: a session demoted to non-admin without a reload keeps an already-open panel, including<AsrProviderSelector />(:41).A one-line change,
v-if="isAdmin && settingsOpen"at:36, plus a component test that flipsisAdminwhile the panel is open. Left open.fix(transcriber): a demotion closes the settings panel for good (#16335)
github-actions commentedon Nov 2, 2026
Landed via the merge train (#20707, merge
1416e3d202) via #20663mrveiss commentedon Nov 2, 2026
Verified against main at the merge train (PR #20707), merge
1416e3d202. Only boxes with code evidence are ticked.TranscriberLayout.vue:35,42,44uset('transcriber.layout.settingsButton'/'hideSettingsButton'/'settingsHeading').hideSettingsButtonpresent in 11 of 11 files underi18n/locales/.<section>is gated onisAdmin && settingsOpen, not only onsettingsOpen. #16259 gates the toggle onisAdmin, but a sessviews/transcriber/TranscriberLayout.vue:22-23watch(isAdmin, ...)closessettingsOpenon demotion, and the toggle sits underv-if="isAdmin"(:28); the section isv-if="settingsOpen"(:40), so the effect is the criterion's but not its literalisAdmin && settingsOpenexpression. Tests inviews/__tests__/TranscriberLayout.admin.test.ts: closes on demotion, does not reopen when the role returns.fix(transcriber): close the settings panel when the session is not ad…