Skip to content

i18n(transcriber): TranscriberLayout.vue hardcodes its settings labels #16335

Closed

Description

@mrveiss

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.

Acceptance criteria

Activity

  1. mrveiss commented on Sep 11, 2026

    @mrveiss
    OwnerAuthor

    Status: work is on branch issue-16335-transcriber-i18n (6a318ec77), with no PR yet.

  2. modified the milestones: Backlog, v0.13.0 on Sep 12, 2026
  3. mrveiss commented on Oct 3, 2026

    @mrveiss
    OwnerAuthor

    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:31 t('transcriber.layout.hideSettingsButton') / t('transcriber.layout.settingsButton'); :38 and :40 t('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.

  4. added
    needs-ac-evidenceClosed by a merge keyword; awaits an AC evidence table comment (#19520)
    on Nov 2, 2026
  5. github-actions commented on Nov 2, 2026

    @github-actions
    Contributor

    Landed via the merge train (#20707, merge 1416e3d202) via #20663

  6. mrveiss commented on Nov 2, 2026

    @mrveiss
    OwnerAuthor

    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-23 watch(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.
  7. removed
    needs-ac-evidenceClosed by a merge keyword; awaits an AC evidence table comment (#19520)
    on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions