Skip to content

fix(transcriber): a demoted session loses the open settings panel (#16335) - #20663

Merged
mrveiss merged 7 commits into
mainfrom
issue-16335-transcriber-labels
Nov 2, 2026
Merged

mrveiss merged 7 commits into
mainfrom
issue-16335-transcriber-labels

Conversation

@mrveiss

@mrveiss mrveiss commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

Closes #16335

Thinking Path

  • The three labels the issue names are already i18n keys on main, in all 11 locales, at TranscriberLayout.vue:31,38,40, so no literal needed moving.
  • Checking the issue turned up the case it was found beside: a session demoted to non-admin kept an open settings panel, including AsrProviderSelector.

What Changed

  • TranscriberLayout.vue: a demotion resets settingsOpen, so the panel closes and doesn't reopen by itself if the role comes back.
  • New views/__tests__/TranscriberLayout.admin.test.ts: labels render from a non-English message set, the panel closes on demotion, and it stays closed when the role returns.

What this does not do

Only the UI closes. A save already sent isn't cancelled. On the server, require_transcriber_admin reads the token's role, which comes only from is_platform_admin, and no route changes that after creation, so no server-side demotion exists for it to miss. That is #20670. Hardcoded selector strings, raw buttons and the unmount guard are #20671.

Verification

  • New test: 3 passed, with reka-ui stubbed. Before these review changes, reverting the fix failed the demotion test.
  • i18n_untranslated_ratchet_test.py, hardcoded_ui_literal_ratchet_12732_test.py, locale_completeness_allow_missing_18922_test.py: 56 passed.
  • Not run: type check, lint, and any browser check.

Model Used

Claude Opus 5.5

@mrveiss mrveiss added this to the M3 - Refined GUI complete milestone Nov 2, 2026
@mrveiss mrveiss added the phase:M3.8 Knowledge screens label Nov 2, 2026
@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 47 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between 58cbf98 and f0f4ec5.

Files selected for processing: 2
  • autobot-frontend/src/views/__tests__/TranscriberLayout.admin.test.ts
  • autobot-frontend/src/views/transcriber/TranscriberLayout.vue
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Notice: 29 open PRs — past the runaway threshold (25)

This is not a request to defer this PR. There is no cap on open PRs (#19397) -- nothing blocks opening or pushing a PR.

This notice only means the count is high enough to be worth a glance for a runaway — something opening PRs in a loop, or a merge pipeline that has stalled so nothing is draining.

Currently open:

If the queue is draining normally, ignore this. Otherwise:

  1. Check whether CI is dispatching at all — see the ci-dispatch-watchdog status on these PRs
  2. Approved PRs land through the merge train the coordinator sequences (merge commits, never squash) -- check the open chore(merge-train) PR is moving, not each PR on its own
  3. Look for a loop opening near-identical PRs

Warn-only runaway detector — .github/workflows/pr-queue-gate.yml. It never blocks a merge.

@mrveiss

mrveiss commented Nov 2, 2026

Copy link
Copy Markdown
Owner Author

Code review on PR #20663 (head f66e1aa): changes needed, small.

Read against the diff and main; no tests were run. The core fix is right, and #16335's three criteria hold in the UI. Its labels are already i18n keys in all 11 locales on main, as you said.

Severity Where Finding Fix
Medium TranscriberLayout.vue:36 v-if="isAdmin && settingsOpen" hides the panel, but settingsOpen stays true. If the role flips back, the panel reopens by itself. Reset settingsOpen when isAdmin becomes false.
Medium AsrProviderSelector.vue:50-65 A save already sent isn't cancelled when the panel unmounts, and its handlers still write to the gone component. Guard the writes, or say in the PR that only the UI closes.
Low TranscriberLayout.admin.test.ts The labels test compares text to en.json, so a hardcoded string equal to the English value passes. Render with a different message set.
Low AsrProviderSelector.vue:86, heading near 75, TranscriberLayout.vue:26 Hardcoded strings and raw buttons, outside this diff. File a follow-up.

The server is a real gate: PATCH /providers requires require_transcriber_admin, with a test. I did not trace whether authenticate reads the live role or a token claim, so I can't say a save sent after demotion is refused today.

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

✅ SSOT Configuration Compliance: Passing

🎉 No new hardcoded values of either class — ssot and other both block.

Known backlog in pipeline-scripts/hardcoded_values_baseline.txt is suppressed and tracked in #14371.

@mrveiss

mrveiss commented Nov 2, 2026

Copy link
Copy Markdown
Owner Author

Code review on PR #20663 (head 94ca2da): approve.

Covers commit e186a8c, read in full; tests not run. settingsOpen now resets on demotion, with a test that the panel stays closed when the role returns. The labels test uses a non-English message set. The body states that only the UI closes. The open gaps have homes: #20670 (a save after demotion is accepted until the token expires) and #20671 (hardcoded strings, raw buttons, unmount guard).

@mrveiss

mrveiss commented Nov 2, 2026

Copy link
Copy Markdown
Owner Author

Correction to my review above: I repeated that a save after demotion is accepted until the token expires. The author has since found that's wrong: the token's role comes only from is_platform_admin, and no route changes it after creation, so there's no server-side demotion to go stale. #20670 is rewritten accordingly. The approval at 94ca2da stands; I've read neither the rewritten issue nor that code myself.

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

Labels

phase:M3.8 Knowledge screens

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant