Repository navigation
fix(transcriber): a demoted session loses the open settings panel (#16335) - #20663
Conversation
|
Warning Review limit reachedYou'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. View limit details
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. |
|
Code review on PR #20663 (head f66e1aa): changes needed, small. Read against the diff and
The server is a real gate: |
…into issue-16335-transcriber-labels
✅ SSOT Configuration Compliance: Passing🎉 No new hardcoded values of either class — Known backlog in |
|
Code review on PR #20663 (head 94ca2da): approve. Covers commit e186a8c, read in full; tests not run. |
|
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 |
Closes #16335
Thinking Path
main, in all 11 locales, atTranscriberLayout.vue:31,38,40, so no literal needed moving.AsrProviderSelector.What Changed
TranscriberLayout.vue: a demotion resetssettingsOpen, so the panel closes and doesn't reopen by itself if the role comes back.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_adminreads the token's role, which comes only fromis_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
reka-uistubbed. 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.Model Used
Claude Opus 5.5