Repository navigation
Merge persona Navigation and AI sidebar into one Navigation card #36862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
568bf23
Merge persona Navigation and AI sidebar into one Navigation card
Rohit0301 93da23e
Restore classic Navigation Menus header and readable icon size
Rohit0301 9fd11ab
Put classic Navigation Menus on a white card with a light divider
Rohit0301 e2b290d
Keep the classic navigation drag handle out of the label's way
Rohit0301 f5e39a8
Address review: own the nav row icon, record the persona card rules
Rohit0301 e03a35e
Show the classic navigation drag handle inside the row again
Rohit0301 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...ns/2026-11-02-persona-customize-editor-tree-rows-are-styled-at-the-call-site.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| # Persona customize editor tree rows and category cards are styled at the call site until core ships a divided tree row | ||
|
|
||
| - **Status:** Accepted | ||
| - **Revisions:** v1 2026-11-02 (initial) | ||
| - **Deciders:** Rohit Jain | ||
| - **Guard:** reviewer | ||
| - **Related:** ADR:2026-10-11-migrated-antd-components-adopt-core-styling, open-metadata/OpenMetadata#36707, open-metadata/OpenMetadata#36862 | ||
|
|
||
| ## Context | ||
| The settings modal's persona editors (Navigation in classic mode, the AI sidebar in AI mode) list the | ||
| sidebar as full-width rows divided by a rule, 40px tall, with the hover fill and the divider running | ||
| edge to edge. No core component expresses that row. Core `Tree.ItemContent` rounds each row, pads it | ||
| `py-1.5 pr-1.5`, and indents a nested row with an inline `marginLeft` | ||
| (`tree.tsx`, `TreeItemContentComponent`), so a divider or hover fill drawn on the row stops short at | ||
| the indent and shows rounded ends. The persona category tiles have the same kind of gap: core | ||
| `Card.Content` pads `px-6`, which leaves the icon and two-line description cramped in a three-column | ||
| grid. | ||
|
|
||
| ## Decision | ||
| Until `@openmetadata/ui-core-components` ships a full-bleed, divided `Tree` row variant and a compact | ||
| `Card.Content` padding, these call sites may restyle core components, as an exception to | ||
| ADR:2026-10-11-migrated-antd-components-adopt-core-styling: | ||
|
|
||
| - `Tree.Item` in `customize/NavigationEditor.tsx` and `customize/AiSidebarEditor.tsx`: | ||
| `tw:rounded-none tw:border-b tw:border-secondary tw:last:border-b-0`; | ||
| - `Tree.ItemContent` in the same two files: `tw:ml-0! tw:h-10 tw:rounded-none tw:py-0 tw:pr-3.5` | ||
| with `tw:pl-4` for a top-level row and `tw:pl-10` for a nested one. The `!` cancels the core's | ||
| inline `marginLeft`, and the padding replaces it so the hover fill and divider stay full width; | ||
| - the editor `Card` in the same two files: `tw:overflow-hidden tw:rounded-xl`, which clips the rows | ||
| to the card's corners; | ||
| - `Card.Content` in `PersonaCustomizeGrid.tsx` and `customize/SubCategoryGrid.tsx`: `tw:px-3`. | ||
|
|
||
| The overrides stay in those four modules; no other call site copies them. | ||
|
|
||
| ## Consequences | ||
| These rows can drift when core changes `Tree` indentation, radius or padding, or `Card.Content` | ||
| padding, so a core change to them is checked against the persona editors in both themes. When core | ||
| ships a divided full-bleed tree row and a compact card padding, these call sites move to them and | ||
| this record is superseded. |
41 changes: 41 additions & 0 deletions
41
...cisions/2026-11-02-persona-navigation-card-opens-the-editor-for-the-app-mode.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| # One persona Navigation card opens the sidebar editor for the current app mode | ||
|
|
||
| - **Status:** Accepted | ||
| - **Revisions:** v1 2026-11-02 (initial) | ||
| - **Deciders:** Rohit Jain | ||
| - **Guard:** `PersonaUtils.test.ts` (`getCustomizePageCategoryCards` drops the AI sidebar card), | ||
| `PersonaCustomizeView.test.tsx` (`navigation` opens `navigation-editor` in classic mode and | ||
| `ai-sidebar-editor` in AI mode), `PersonaCustomizeGrid.test.tsx` | ||
| - **Related:** ADR:2026-10-21-settings-pages-are-classic-only, open-metadata/OpenMetadata#36862 | ||
|
|
||
| ## Context | ||
| A persona's Customize UI showed two cards for one concept: **Navigation** (the classic left sidebar, | ||
| `navigation`) and **AI sidebar** (`askCollateSidebar`). Each shell has exactly one sidebar, and | ||
| which one a user customizes follows the shell they are in. The settings modal exists only in AI mode | ||
| and the classic `/settings/persona` page only in classic mode | ||
| (ADR:2026-10-21-settings-pages-are-classic-only). | ||
|
|
||
| ## Decision | ||
| - **Both card grids show one Navigation card.** `PersonaCustomizeGrid` (the modal) and `CustomizeUI` | ||
| (the classic page) render `getCustomizePageCategoryCards()`, which is | ||
| `getCustomizePageCategories()` without `APP_MODE_SIDEBAR_CUSTOMIZATION_KEY` (`askCollateSidebar`). | ||
| - **The Navigation card opens the editor for the mode.** In `PersonaCustomizeView`, `navigation` | ||
| opens `AiSidebarEditor` when `useIsAiMode()` is true and `NavigationEditor` otherwise. On the | ||
| classic page it opens the classic Customize Navigation page, as before. | ||
| - **`askCollateSidebar` stays a category, just not a card.** It remains in | ||
| `getCustomizePageCategories()` so breadcrumbs and the `/customize-page/<persona>/askCollateSidebar` | ||
| route keep resolving its label, and `PersonaCustomizeView` still maps it to `AiSidebarEditor` for | ||
| existing links. | ||
| - **Each editor writes only its own key.** `NavigationEditor` saves `data.navigation` and | ||
| `AiSidebarEditor` saves `data.askCollateSidebar`, so switching modes never moves one sidebar's | ||
| visibility onto the other. | ||
| - **A downstream category with the same key is hidden too.** Collate's `PersonaClassCollate` replaces | ||
| the OSS `askCollateSidebar` entry with its own under the same key; the card filter matches the key, | ||
| so Collate shows one Navigation card without a change. That holds only while both use the key | ||
| `askCollateSidebar`. | ||
|
|
||
| ## Consequences | ||
| A classic-mode admin no longer reaches the AI sidebar editor from a card; it is edited from the | ||
| settings modal in AI mode, or through the `/customize-page/<persona>/askCollateSidebar` route. | ||
| Renaming `APP_MODE_SIDEBAR_CUSTOMIZATION_KEY` in OSS or Collate brings the second card back in | ||
| whichever distribution kept the old key. Revisit if one shell ever shows both sidebars. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.