Repository navigation
[2.1] feat(ui): add the Classic/AI interface switcher to the classic sidebar footer (#38861) - #38953
Conversation
…r footer (#38861) * feat(ui): add the Classic/AI interface switcher to the classic sidebar footer Classic mode now shows the shared AppModeSwitcher at the bottom of the left sidebar (bordered card when expanded, icon button when collapsed, both framed by core Card), matching AI mode. The User Interface section is removed from the profile dropdown along with InterfaceModeMenuItem and its i18n key. Refs open-metadata/openmetadata-collate#8999 * test(ui): drop assertions that can no longer fail and reset the extra-items mock per test (cherry picked from commit e2a8db3)
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
Code Review ✅ Approved 🟡 Medium risk 1 closed / 1 findingsMoving the Classic/AI switcher from the profile dropdown to the classic sidebar changes mode-selection access and could make the control harder to find. Adds the Classic/AI interface switcher to the classic sidebar footer and removes the User Interface section from the profile dropdown. Changes are requested because the collapsed-sidebar icon switcher is a raw icon-only ✅ 1 closedClosed: Quality: Collapsed-sidebar icon switcher is a raw icon-only <button>
VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Fixes open-metadata/openmetadata-collate#8999
Backport of #38861 to
2.1.e2a8db30a40git cherry-pick -x), no conflicts.Describe your changes:
Classic mode gets the shared Classic/AI interface switcher in the left-sidebar footer: a bordered card when expanded, an icon button when collapsed, both framed by core
Card. The User Interface section is removed from the profile dropdown, along withInterfaceModeMenuItemandlabel.user-interface. AI mode is unchanged apart from the shared popover being 16px wider. Full description, screenshots and Playwright evidence are on #38861.Companion Collate backport: open-metadata/openmetadata-collate#9022. Collate 2.1's AI-mode Playwright helper clicks the removed
interface-mode-option-ai. Merge it right after this PR.Checks on
2.12.1already has everything this change builds on (AppModeSwitcher,InterfaceModeMenuItem, the classicLeftSidebar). Nothing on2.1still referencesInterfaceModeMenuItem,interface-mode-option-*,label.user-interface,switchToAiModeViaProfileToggleor thecompactprop.2.1. The 5 affected specs ran on feat(ui): add the Classic/AI interface switcher to the classic sidebar footer #38861 (18 passed; the one failure also fails onmain).🤖 Generated with Claude Code