Repository navigation
Merge persona Navigation and AI sidebar into one Navigation card - #36862
Conversation
The persona Customize UI showed both a Navigation card (classic sidebar) and an AI sidebar card. There is now one Navigation card: the settings modal (AI mode) opens the AI sidebar editor, and the classic /settings/persona page keeps the classic navigation editor. The AI sidebar stays in getCustomizePageCategories so breadcrumbs and the /customize-page/<persona>/askCollateSidebar route still resolve, and Collate's same-key override is hidden by the same card filter. Carries the navigation editor row styling from #36707 unchanged so the two PRs merge cleanly.
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
The core Tree mutes item icons to 16px fg-quaternary, which made the classic customize navigation icons faint. Render them at 24px in fg-secondary, as the left sidebar does, and bring back the Navigation Menus card title.
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
The ghost Card has no border colour, so its header divider inherited the dark text colour and the tree sat on the grey page. The default variant gives a bg-surface card whose header divider inherits border-subtle.
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
The hidden handle sat between icon and label and still took up space. Move it into the left gutter, and reveal it on the row's own :hover: a non-selectable react-aria tree item never gets data-hovered, so group-hover never fired.
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
❌ 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 |
- SettingsNavigationPage renders the nav icon and the drag-handle hover group on its own row content, so it no longer overrides core Tree icon colour or selects on react-aria's role=row. - ADR:2026-11-02-persona-navigation-card-opens-the-editor-for-the-app-mode records the one-Navigation-card rule and its guards. - ADR:2026-11-02-persona-customize-editor-tree-rows-are-styled-at-the-call-site (v5 amendment of the core-styling record) scopes the persona editor row and category card overrides carried from #36707.
|
| Count | Rule |
|---|---|
| 4 | openmetadata-imports/no-lower-layer-page-imports |
| 1 | react-hooks/exhaustive-deps |
| 1 | openmetadata-imports/no-cross-page-imports |
All findings
| Location | Rule | Message | |
|---|---|---|---|
| 🟡 | src/components/Settings/Persona/CustomizeUI/CustomizeUI.tsx:55:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'navigate'. Either include it or remove the dependency array. Outer scope values like 'history' aren't valid de |
| 🟡 | src/components/discovery/personal-space/Profile/tabs/personas/customize/AiSidebarEditor.tsx:28:1 |
openmetadata-imports/no-lower-layer-page-imports |
Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here. |
| 🟡 | src/components/discovery/personal-space/Profile/tabs/personas/customize/PersonaCustomizeView.test.tsx:19:1 |
openmetadata-imports/no-lower-layer-page-imports |
Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here. |
| 🟡 | src/components/discovery/personal-space/Profile/tabs/personas/customize/PersonaCustomizeView.tsx:25:1 |
openmetadata-imports/no-lower-layer-page-imports |
Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here. |
| 🟡 | src/components/discovery/personal-space/Profile/tabs/personas/customize/SubCategoryGrid.tsx:16:1 |
openmetadata-imports/no-lower-layer-page-imports |
Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here. |
| 🟡 | src/pages/SettingsNavigationPage/SettingsNavigationPage.tsx:43:1 |
openmetadata-imports/no-cross-page-imports |
Page features must not import another page feature. Move shared code to components, hooks, interfaces, or pure utilities. |
Fix locally (fast - only checks files changed in this branch):
make ui-checkstyle-changedThe handle sits in the row's hover box ahead of the icon, as the antd page had it, instead of out in the card gutter.
Code Review ✅ Approved 4 closed / 4 findings🟡 Medium risk · Routing Navigation to separate classic or AI sidebar settings changes persona customization behavior and could leave users editing a different sidebar than intended. Merges the persona Navigation and AI sidebar cards into a single Navigation card, which opens the AI sidebar editor in AI mode and the classic navigation editor in classic mode. Four resolved findings addressed: caller-side Card/Tree styling overrides, the undocumented card-to-editor mapping, the icon colour override, and the react-aria internal selector used for the drag handle reveal. No open issues remain. ✅ 4 closed✅ Quality: Caller overrides core Card/Tree styling, contradicting the Accepted ADR
✅ Quality: Card-to-editor mapping is a new rule with no decision record
✅ Quality: iconClassName overrides core Tree icon colour, contradicting the ADR
✅ Quality: Drag handle reveal uses a selector that reaches into react-aria internals
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 |
|
…ation tests with the current UI (#37008) The delete confirmation names a custom property by its display name since #36808, and the edit step upper-cases that display name, so match the name case-insensitively. The AI-mode Navigation card opens the AI sidebar editor since #36862, so the unsaved-changes tests toggle ai-sidebar-switch-explore.



Describe your changes:
Related to #36707 (carries its navigation editor row styling unchanged). No issue linked yet.
The persona Customize UI showed two cards for the same thing: Navigation (classic left sidebar) and AI sidebar. There is now one Navigation card, and the editor it opens depends on the mode:
#personas/<persona>): Navigation opens the AI sidebar editor (AiSidebarEditor)./settings/persona/<persona>): Navigation opens the classic navigation editor, as before.Type of change:
High-level design:
getCustomizePageCategoryCards()(utils/Persona/PersonaUtils.ts) is the list both card grids render (PersonaCustomizeGridin the modal,CustomizeUIon the classic page). It isgetCustomizePageCategories()withoutaskCollateSidebar.askCollateSidebarstays ingetCustomizePageCategories(), so breadcrumbs, the/customize-page/<persona>/askCollateSidebarroute and old#.../customize/askCollateSidebarlinks still resolve. Collate'sPersonaClassCollatere-adds a category under the same key, so filtering where the cards render hides it in Collate too, with no Collate change.PersonaCustomizeViewmapsnavigationtoAiSidebarEditorwhenuseIsAiMode()is true, and toNavigationEditorotherwise. The settings modal only exists in AI mode (ADR:2026-10-21-settings-pages-are-classic-only), so in practice it always opens the AI sidebar editor there.Fixes #8065: Settings modal QA fixes #36707 styling:
NavigationEditor.tsx,AiSidebarEditor.tsxandSubCategoryGrid.tsxare byte-identical to Fixes #8065: Settings modal QA fixes #36707. InPersonaCustomizeGrid.tsx, Fixes #8065: Settings modal QA fixes #36707'sCard.Contentchange is included as is; the only other change in that file is the import and call of the filter helper. A trial merge with Fixes #8065: Settings modal QA fixes #36707 auto-merges every persona file.Decision records:
ADR:2026-11-02-persona-navigation-card-opens-the-editor-for-the-app-mode: the one-Navigation-card rule, the key each editor writes, and the dependency on Collate keeping the same key.ADR:2026-11-02-persona-customize-editor-tree-rows-are-styled-at-the-call-site: a v5 amendment ofADR:2026-10-11-migrated-antd-components-adopt-core-styling. It scopes the editor row and card overrides carried from Fixes #8065: Settings modal QA fixes #36707, with an exit once core ships a divided tree row.Tests:
Use cases covered
/settings/persona/<persona>shows one Navigation card. It opens the classic navigation editor, and hiding, reordering and resetting still work./customize-page/<persona>/askCollateSidebarroute and the live AI sidebar still work.Unit tests
PersonaUtils.test.ts:getCustomizePageCategoryCardsdrops the AI sidebar card.PersonaCustomizeView.test.tsx:navigationopensnavigation-editorin classic mode andai-sidebar-editorin AI mode.PersonaCustomizeGrid.test.tsx: no AI sidebar card in the modal grid.yarn jest src/utils/Persona src/utils/PersonaClassBase src/components/Settings/Persona src/components/discovery/personal-space/Profile/tabs/personas src/components/discovery/personal-space/PersonaFullscreenPortal: 22 suites, 245 tests passed.Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Features/AIMode/PersonaSettings.spec.ts: the modal's Navigation test now opens/customize/navigationand checks the AI sidebar switches (renamed "Navigation in AI mode: hiding a module is saved"). The classic-switch Navigation test in this AI-mode spec was removed: in AI mode the modal's Navigation card now opens the AI sidebar editor, which the renamed test covers. The classic editor is covered bySettingsNavigationPage.spec.ts.Run locally against this branch (Vite dev server, Collate backend on :8585),
--project=chromium --no-deps --workers=2,PLAYWRIGHT_IS_OSS=true:Features/AIMode/PersonaSettings.spec.tsFeatures/AIMode/AppModeSidebarPersonaCustomization.spec.tsFeatures/SettingsNavigationPage.spec.tsAn earlier run with the default worker count timed out on page loaders (all passed on a re-run with 2 workers, code unchanged).
AppModeSidebarPersonaCustomizationneedsPLAYWRIGHT_IS_OSS=trueagainst an OSS UI, as OSS CI sets it.Manual testing performed
/settings/persona/<persona>#customize-ui. One Navigation card, and it opens the classic Customize Navigation page.pages/SettingsNavigationPage/SettingsNavigationPage.tsx(classic Customize Navigation). These fix visual problems from the coreTreemigration (Migrate display, navigation, selection and numeric components to core #35253):fg-secondary. The core tree defaulted them to 16px infg-quaternary, so they looked faint.Cardvariant gives a white card with a light header divider. Theghostvariant's divider inherited the dark text colour.label.navigation-menu-plural.group/nav-row) on its own row content, not through coreTreeprops, so it doesn't override core styling. The handle sits inside the row, before the icon, as on the old antd page. Before, it was hidden between the icon and the label but still took up space, andgroup-hover/tree-itemnever fired because a non-selectable react-aria tree item never getsdata-hovered.UI screen recording:
Screenshots below. No screen recording yet.
AI mode: one Navigation card
AI mode: Navigation opens the AI sidebar list
Classic mode: one Navigation card
Classic mode: Navigation opens the classic sidebar list (white card, light divider, 24px icons; title restored to "Navigation Menus")
Classic mode: drag handle shows inside the row, before the icon, on hover
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.🤖 Generated with Claude Code