Repository navigation
Migrate persona settings into the AI-mode profile modal - #34916
Conversation
…ustomize - Render persona fullscreen customize views in normal flow (no z-index overrides) - Guard persona customize exits with the unsaved-changes prompt - Wait for the customize store page type before mounting entity customize pages - Migrate Curated Assets modal, header theme, search bar and carousel off antd - Save persona home header colour; restore Members/Bots profile nav ids - Move CustomizeStore and page-type utils out of pages/ - Add unit tests for persona settings and Playwright save coverage
|
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! |
…ation # Conflicts: # openmetadata-ui/src/main/resources/ui/src/components/Customization/CustomizeTabWidget/CustomizeTabWidget.tsx # openmetadata-ui/src/main/resources/ui/src/components/Customization/GenericTab/LeftPanelContainer.tsx # openmetadata-ui/src/main/resources/ui/src/components/discovery/explore/ExploreHeader/ExploreSearchInput.tsx
|
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! |
|
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 checks passedThe linked issue has a description and all required Shipping project fields set. Thanks! |
🔄 Playwright impact map auto-refreshedThis PR touched specs or UI source that changed the source→spec routing map. I regenerated What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit: python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit # or a separate commit |
…s in CustomizeDetailPage spec
The Add Tab modal was migrated from antd Modal to SimpleModal, so
.ant-modal never renders. Drop the dead .ant-modal.waitFor and
waitForAntdModalToSettle calls; the existing getByRole('dialog') check
already gates the dialog, leaving only expect(addButton).toBeEnabled()
before the click.
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…on alignment, tailwind tokens for home widgets, revert import-only churn, stabilize curated assets e2e
…UnsavedChangesModal
…ation # Conflicts: # .github/playwright/impact-map.generated.json
…ation # Conflicts: # .github/playwright/impact-map.generated.json # openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/Profile/profileNavConfig.tsx
…ation # Conflicts: # .github/playwright/impact-map.generated.json
🚦 Removed from the merge queue —
|
🚦 Removed from the merge queue —
|
…of the antd modal
🚦 Removed from the merge queue —
|
…not the popover's query hint
🚦 Removed from the merge queue —
|
🔄 Playwright impact map auto-refreshedThis PR touched specs or UI source that changed the source→spec routing map. I regenerated What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit: python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit # or a separate commit |
Code Review ✅ Approved 4 closed / 4 findings🟡 Medium risk · Migrating persona management and customization into the profile modal changes saving and navigation flows; regressions could misassign users or lose persona settings. Migrates persona settings into the AI-mode profile modal, moving the customize pages to full-page views and removing antd from the persona UI. Resolved this session: the E2E Add Tab wait now targets SimpleModal, the committed Playwright HTML report artifacts were removed, and the Members tab and ProfileNavId ids were restored after the merge. No open findings remain. One save-before-exit issue was closed without a fix in this PR. ✅ 4 closed✅ Bug: E2E still waits for
|
| Compact |
|
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source
|
| Count | Rule |
|---|---|
| 27 | openmetadata-imports/no-lower-layer-page-imports |
| 21 | react-hooks/exhaustive-deps |
All findings
| Location | Rule | Message | |
|---|---|---|---|
| 🟡 | src/components/Customization/CustomizeTabWidget/CustomizeTabWidget.tsx:48: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/Customization/CustomizeTabWidget/CustomizeTabWidget.tsx:49: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/KnowledgeCenter/KnowledgeCenterWidget/KnowledgeCenterWidget.tsx:38: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/MyData/CustomizableComponents/AddWidgetModal/AddWidgetTabContent.tsx:26: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/MyData/CustomizableComponents/CustomiseLandingPageHeader/CustomiseSearchBar.test.tsx:22: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/MyData/CustomizableComponents/CustomizablePageHeader/CustomizablePageHeader.test.tsx:23: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/MyData/CustomizableComponents/CustomizablePageHeader/CustomizablePageHeader.tsx:34: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/MyData/CustomizableComponents/EmptyWidgetPlaceholder/EmptyWidgetPlaceholderV1.tsx:33:6 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'handleOpenAddWidgetModal', 'handlePlaceholderWidgetKey', and 'widgetKey'. Either include them or remove the de |
| 🟡 | src/components/MyData/CustomizableComponents/WidgetCard/WidgetCard.tsx:20: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/MyData/FeedWidget/FeedWidget.component.tsx:29: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/MyData/FeedWidget/FeedWidget.component.tsx:71:6 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'handleRemoveWidget'. Either include it or remove the dependency array. If 'handleRemoveWidget' changes too oft |
| 🟡 | src/components/MyData/FeedWidget/FeedWidget.component.tsx:135:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array. |
| 🟡 | src/components/MyData/FeedWidget/FeedWidget.component.tsx:161:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array. |
| 🟡 | src/components/MyData/FeedWidget/FeedWidget.component.tsx:197:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'navigate' and 'userActivityFeedLink'. Either include them or remove the dependency array. |
| 🟡 | src/components/MyData/MyDataWidget/MyDataWidget.component.tsx:38: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/MyData/MyDataWidget/MyDataWidget.component.tsx:160:6 |
react-hooks/exhaustive-deps |
React Hook useCallback has unnecessary dependencies: 'applySortToData', 'getSortField', and 'getSortOrder'. Either exclude them or remove the dependency array. |
| 🟡 | src/components/MyData/MyDataWidget/MyDataWidget.component.tsx:184:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array. |
| 🟡 | src/components/MyData/MyDataWidget/MyDataWidget.component.tsx:255:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array. |
| 🟡 | src/components/MyData/MyDataWidget/MyDataWidget.component.tsx:289:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'currentUser?.name' and 'navigate'. Either include them or remove the dependency array. |
| 🟡 | src/components/MyData/RightSidebar/AnnouncementsWidget.tsx:20: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/MyData/RightSidebar/AnnouncementsWidget.tsx:107:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array. |
| 🟡 | src/components/MyData/RightSidebar/FollowingWidget.tsx:38: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/MyData/RightSidebar/FollowingWidget.tsx:175:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array. |
| 🟡 | src/components/MyData/RightSidebar/FollowingWidget.tsx:252:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array. |
| 🟡 | src/components/MyData/RightSidebar/FollowingWidget.tsx:281:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'currentUser?.name' and 'navigate'. Either include them or remove the dependency array. |
| 🟡 | src/components/MyData/Widgets/Common/WidgetHeader/WidgetHeader.tsx:24: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/MyData/Widgets/CuratedAssetsWidget/AdvancedAssetsFilterField/AdvancedAssetsFilterField.component.tsx:122:37 |
react-hooks/exhaustive-deps |
React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead. |
| 🟡 | src/components/MyData/Widgets/CuratedAssetsWidget/AdvancedAssetsFilterField/AdvancedAssetsFilterField.component.tsx:170:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has missing dependencies: 'config', 'fqn', 'onTreeUpdate', and 'queryFilter'. Either include them or remove the dependency array. |
| 🟡 | src/components/MyData/Widgets/CuratedAssetsWidget/CuratedAssetsWidget.test.tsx:18: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/MyData/Widgets/DataProductsWidget/DataProductsWidget.component.tsx:35: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/MyData/Widgets/DataProductsWidget/DataProductsWidget.component.tsx:101:6 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 't'. Either include it or remove the dependency array. Outer scope values like 'getSortField' aren't valid depe |
| 🟡 | src/components/MyData/Widgets/DomainsWidget/DomainsWidget.tsx:34: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/MyData/Widgets/DomainsWidget/DomainsWidget.tsx:119:6 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 't'. Either include it or remove the dependency array. Outer scope values like 'getSortField' aren't valid depe |
| 🟡 | src/components/MyData/Widgets/MyTaskWidget/MyTaskWidget.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/MyData/Widgets/MyTaskWidget/MyTaskWidget.tsx:117:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'navigate'. Either include it or remove the dependency array. |
| 🟡 | src/components/MyData/Widgets/TotalDataAssetsWidget/TotalDataAssetsWidget.component.tsx:326:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 'fetchData'. Either include it or remove the dependency array. |
| 🟡 | src/components/MyData/Widgets/TotalDataAssetsWidget/TotalDataAssetsWidget.component.tsx:332:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 'selectedDate'. Either include it or remove the dependency array. |
| 🟡 | src/components/MyData/Widgets/TotalDataAssetsWidget/TotalDataAssetsWidget.component.tsx:360:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'navigate'. Either include it or remove the dependency array. |
| 🟡 | src/components/discovery/personal-space/Profile/tabs/personas/customize/AiSidebarEditor.tsx:26: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/EntityCustomizeOverlay.test.tsx:23: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/EntityCustomizeOverlay.tsx:18: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/LandingPageEditor.test.tsx:23: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/LandingPageEditor.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/MarketplaceEditor.test.tsx:27: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/MarketplaceEditor.tsx:36: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: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/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. |
Fix locally (fast - only checks files changed in this branch):
make ui-checkstyle-changed
|
…bar search popover Two merge-queue failures came from the new home page meeting main's persona-settings specs (#34916). PersonaSettings "a configured Curated Assets widget is saved": in AI mode the persona customize view hides the routed page instead of unmounting it (AppShell's tw:hidden!), so the live home page stays in the DOM under the editor. Its cells carry the same KnowledgePanel.* keys, and every key lookup matched two elements; isVisible() threw a strict-mode violation that the helper swallowed as "not visible", and the poll ran out its minute. Landing helpers now resolve widgets through getLandingPageWidget, which keeps only what is on screen, and the poll aborts at once with a named error if two visible widgets still share a key. Adding a Curated Assets card, which the default layout already holds, goes through one shared addCuratedAssetsWidget that removes the default copy first. ExploreDiscovery "soft deleted assets in search suggestions": the spec waited for customise-search-popover, the old home-page search bar's popover. The new home has only the navbar search, so its popover now carries global-search-popover — present even with no suggestions, which is this test's case — and the spec waits for that.



Describe your changes:
Fixes 6446
Fixes 35007
I moved the legacy persona settings into the AI-mode personal-space (profile) modal. This covers the persona list, add, detail, users and every customize page: Navigation, App Layout, AI Sidebar, Data Marketplace, Home page, and the Governance / Data Assets entity pages. I also removed antd from everything these screens render, so the new persona UI is consistent with the core design system.
Type of change:
High-level design:
#personas/<fqn>[/customize/<category>](useSettingsHash), insidePersonasPanelin the profile modal.governance/*,data-assets/*) are rendered byPersonaFullscreenPortal.AppShellhides its layout withdisplay:nonewhile they're open and renders the view in normal flow. Modals, toasts and popovers therefore stack above it with no z-index overrides, and closing restores the hash and reopens the modal over the untouched page.CustomizePageChromecontext givesCustomizablePageHeaderthe persona breadcrumbs plus one guarded exit. Every way out (X, minimize, breadcrumbs, persona link) shows the unsaved-changes prompt and returns to the modal instead of the legacy/settings/personaroute.CustomizeStoremoved tohooks/useCustomizeStore(and two page-type utils toutils/CustomizePage). Entity customize pages wait for the store's page type before mounting, which fixes empty default widgets when switching entities.UnsavedChangesModal,CustomizeTabWidget,CustomiseHomeModal, Curated Assets modal and its fields (now react-hook-form), header theme, home search bar, recently-viewed carousel, empty-widget placeholders andAddWidgetTabContentnow use@openmetadata/ui-core-components.bots/membersprofile nav ids, so those tabs work again in the modal.AddWidgetTabContentrender again./customize-page/*routes keep their look; persona-only spacing is scoped under.persona-settings-overlay.Tests:
Use cases covered
Unit tests
personal-space/Profile/tabs/personas/**,PersonaFullscreenPortal), plus updated tests for the migrated components.Backend integration tests
Ingestion integration tests
Playwright (UI) tests
playwright/e2e/Features/AIMode/PersonaSettings.spec.ts(20 scenarios). It passed 100/100 locally with--repeat-each=5 --workers=4.utils/customizeLandingPage.ts,e2e/Features/CuratedAssets.spec.ts,e2e/Flow/ExploreDiscovery.spec.ts. These two specs were not run locally, because the local backend rejected the profile request and the entity-data setup was skipped.Local Playwright run (head
32c995b0083, max 3 workers, no retries,PLAYWRIGHT_IS_OSS=true): 20 specs, 157 tests, all passing.These 20 specs are a hand-picked subset of the impact map that exercises this PR's UI directly (persona settings, customize pages/widgets, landing-page widgets, marketplace, navigation blocker). The full
make playwright_affectedselection (~95 specs, mostly via shared files such asDataAssetsHeader) was not run locally.chromiumCuratedAssets.spec.ts:554,PersonaAppLayout.spec.ts:183) failed on the first attempt on timing and passed on a rerunBasicCuratedAssets.spec.tsruns on 1 worker because its tests share one persona's home layout.Spec fixes in this PR:
NavigationBlocker/CustomizeLandingPagetarget the coreUnsavedChangesModalinstead of antd selectors;CuratedAssets"Complex nested groups" closes the Owners popup before clicking Add New Field.Per spec
PersonaSettings.spec.ts(20 tests, chromium)CustomizeDetailPage.spec.ts(25 tests, Basic)PersonaAppLayout.spec.ts(8 tests, chromium)PersonaFlow.spec.ts(11 tests, chromium)CustomizeLandingPage.spec.ts(4 tests, Basic)CustomizeWidgets.spec.ts(9 tests, chromium)CuratedAssets.spec.ts(23 tests, chromium)NavigationBlocker.spec.ts(5 tests, Basic)DataMarketplace.spec.ts(5 tests, Basic)DataAssetsWidget.spec.ts(7 tests, chromium)DomainDataProductsWidgets.spec.ts(6 tests, chromium)DomainWidgetFilter.spec.ts(2 tests, chromium)FollowingWidget.spec.ts(11 tests, chromium)MyTaskWidgetStatus.spec.ts(1 tests, chromium)GlossaryPersonaCustomization.spec.ts(3 tests, chromium)DataProductPersonaCustomization.spec.ts(2 tests, chromium)CustomPropertiesPersonaWidget.spec.ts(2 tests, chromium)PersonaOverviewCardWidgets.spec.ts(4 tests, Basic)CustomizeNavigationNewItems.spec.ts(2 tests, Basic)SettingsNavigationPage.spec.ts(8 tests, chromium)Manual testing performed
/customize-page/<persona>/{DataProduct,Domain,Table,GlossaryTerm,homepage}pages still render with their original layout.UI screen recording / screenshots:
TODO: attach recording.
Checklist:
I have read the CONTRIBUTING document.
My PR title is
Fixes <issue-number>: <short explanation>My PR is linked to a GitHub issue via
Fixes #<issue-number>above.I have commented on my code, particularly in hard-to-understand areas.
For JSON Schema changes: I updated the migration scripts or explained why it is not needed. (No schema changes.)
For UI changes: I attached a screen recording and/or screenshots above.
I have added tests (unit / integration / Playwright as applicable) and listed them above.
I have added tests around the new logic.
🤖 Generated with Claude Code