Repository navigation
AI mode settings: unsaved-changes popover for persona editors, home customize exit, icon fixes - #36847
Conversation
…omize exit; icon fixes - PersonasPanel: Navigation, App Layout, Data Marketplace and Collate AI navigation editors ask through an anchored ConfirmPopover (Discard & go / Save & go) instead of a modal, from footer Cancel, breadcrumbs, the modal close button and the settings side nav. - ConfirmPopover: showCancel prop for prompts whose actions all move forward. - CustomizablePageHeader: in AI mode the standalone customize route closes to the home page, so NavigationBlocker asks before discarding edits instead of the settings modal opening over them. - Classification tag actions, column bulk Edit, workflow title edit and empty table tag cells use core icons/buttons with consistent sizing and alignment. - Playwright: popover exits and home customize exits in AI mode.
- Playwright: table-cell add-tag selectors no longer go through the entity-tags wrapper, which an empty table cell no longer renders. - PersonasPanel: stop recording the prompt anchor while the prompt is open, so pressing Save & go can't re-anchor the popover onto its own button. - ko-kr: discard-and-go read as "cancel and go".
|
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 |
🔄 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 |
Only the home customize tests used it, and they moved to HomePageCustomizeExit.spec.ts.
|
Fixed in 7bef314 — dropped the unused |
🚦 Removed from the merge queue —
|
The tag page made owners and EditAll read-only for a disabled tag but left EditDomains as the server sent it. An explicit EditDomains key wins over EditAll in the permission derivation, so the Domain + stayed on a disabled tag and Tags.spec "Classification Page" failed in the merge queue. Move the override into getTagPagePermissions and cover EditDomains too.
This reverts commit c52f27b.
This reverts commit 6c92319.
Code Review ✅ Approved 1 closed / 1 findings🟡 Medium risk · Anchored unsaved-change prompts and changed customize routing could dismiss persona edits or return users to an unintended page if exit guards fail. Replaces the in-modal unsaved-changes modal in persona editors (AI mode) with an anchored popover, makes Home → Customize close return to the home page, and aligns several icon sizes and positions. No open issues remain; the unused ✅ 1 closed✅ Quality: Unused
|
| Compact |
|
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source
|
| Count | Rule |
|---|---|
| 24 | react-hooks/exhaustive-deps |
| 3 | openmetadata-imports/no-lower-layer-page-imports |
| 2 | openmetadata-imports/no-api-calls-in-iteration |
All findings
| Location | Rule | Message | |
|---|---|---|---|
| 🟡 | src/components/MyData/CustomizableComponents/CustomizablePageHeader/CustomizablePageHeader.test.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/CustomizableComponents/CustomizablePageHeader/CustomizablePageHeader.tsx:37: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/Tag/TagsContainerV2/TagsContainerV2.tsx:92:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'columnData?.name'. Either include it or remove the dependency array. |
| 🟡 | src/components/Tag/TagsContainerV2/TagsContainerV2.tsx:118:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'updateActiveTagDropdownKey'. Either include it or remove the dependency array. |
| 🟡 | src/components/Tag/TagsContainerV2/TagsContainerV2.tsx:133:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has an unnecessary dependency: 'tags.tagType'. Either exclude it or remove the dependency array. |
| 🟡 | src/components/Tag/TagsContainerV2/TagsContainerV2.tsx:138:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'tagType' and 'tags'. Either include them or remove the dependency array. |
| 🟡 | src/components/Tag/TagsContainerV2/TagsContainerV2.tsx:292:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'sizeCap', 'tagType', and 'tags'. Either include them or remove the dependency array. |
| 🟡 | src/components/Tag/TagsContainerV2/TagsContainerV2.tsx:325:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 't', 'tagType', and 'tags'. Either include them or remove the dependency array. |
| 🟡 | src/components/Tag/TagsContainerV2/TagsContainerV2.tsx:339:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array. |
| 🟡 | src/components/Tag/TagsContainerV2/TagsContainerV2.tsx:372:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'handleAddClick' and 't'. Either include them or remove the dependency array. |
| 🟡 | src/components/Tag/TagsContainerV2/TagsContainerV2.tsx:400:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array. |
| 🟡 | src/components/Tag/TagsContainerV2/TagsContainerV2.tsx:419:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'sizeCap', 'tagType', and 'tags'. Either include them or remove the dependency array. |
| 🟡 | src/components/Tag/TagsContainerV2/TagsContainerV2.tsx:462:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'newLook'. Either include it or remove the dependency array. |
| 🟡 | src/components/Tag/TagsContainerV2/TagsContainerV2.tsx:498:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'columnData?.fqn' and 'entityFqn'. Either include them or remove the dependency array. |
| 🟡 | src/pages/ColumnBulkOperations/ColumnGrid/ColumnGrid.component.tsx:1109:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'buildMultiOccurrenceRows', 'buildSingleOccurrenceRows', 'buildVariationRows', and 'getUniquePaths'. Either inc |
| 🟡 | src/pages/ColumnBulkOperations/ColumnGrid/ColumnGrid.component.tsx:1297:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'renderCoverageDescriptionCell' and 't'. Either include them or remove the dependency array. |
| 🟡 | src/pages/ColumnBulkOperations/ColumnGrid/ColumnGrid.component.tsx:1565:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'renderGroupColumnNameCell', 'renderOccurrenceColumnNameCell', and 'renderStructChildColumnNameCell'. Either in |
| 🟡 | src/pages/ColumnBulkOperations/ColumnGrid/ColumnGrid.component.tsx:1637:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'columnGridListing'. Either include it or remove the dependency array. |
| 🟡 | src/pages/ColumnBulkOperations/ColumnGrid/ColumnGrid.component.tsx:1824:6 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'buildColumnUpdatesByKey' and 'columnGridListing'. Either include them or remove the dependency array. |
| 🟡 | src/pages/ColumnBulkOperations/ColumnGrid/ColumnGrid.component.tsx:1997:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'handleBulkUpdateCompleted' and 'handleBulkUpdateFailed'. Either include them or remove the dependency array. |
| 🟡 | src/pages/ColumnBulkOperations/ColumnGrid/ColumnGrid.component.tsx:2073:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 'columnGridListing'. Either include it or remove the dependency array. |
| 🟡 | src/pages/ColumnBulkOperations/ColumnGrid/ColumnGrid.component.tsx:2195:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'columnGridListing'. Either include it or remove the dependency array. |
| 🟡 | src/pages/ColumnBulkOperations/ColumnGrid/ColumnGrid.component.tsx:2298:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'columnGridListing'. Either include it or remove the dependency array. |
| 🟡 | src/pages/ColumnBulkOperations/ColumnGrid/ColumnGrid.component.tsx:2381:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'columnGridListing'. Either include it or remove the dependency array. |
| 🟡 | src/pages/ColumnBulkOperations/ColumnGrid/ColumnGrid.component.tsx:2413:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'columnGridListing'. Either include it or remove the dependency array. |
| 🟡 | src/pages/ColumnBulkOperations/ColumnGrid/ColumnGrid.component.tsx:2527:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has an unnecessary dependency: 'columnGridListing.allRows'. Either exclude it or remove the dependency array. |
| 🟡 | src/utils/ClassificationUtils.tsx:32: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/utils/TagsUtils.tsx:56:9 |
openmetadata-imports/no-api-calls-in-iteration |
Avoid issuing one API request per item. Fetch at the data owner, use a bulk endpoint, or use useQueries with an intentional concurrency policy. |
| 🟡 | src/utils/TagsUtils.tsx:88:7 |
openmetadata-imports/no-api-calls-in-iteration |
Avoid issuing one API request per item. Fetch at the data owner, use a bulk endpoint, or use useQueries with an intentional concurrency policy. |
Fix locally (fast - only checks files changed in this branch):
make ui-checkstyle-changed
|
🚦 Removed from the merge queue —
|



Describe your changes:
No linked issue yet — opened as a draft without one; an issue will be linked before review.
I worked on the AI-mode Settings modal and a few icon inconsistencies because:
UnsavedChangesModalon top of the Settings modal. They now ask through a lightweight popover anchored to the control the user pressed: footer Cancel, a breadcrumb, the Settings modal close (X), or a side-nav item. Buttons: Discard & go / Save & go; Escape or an outside click keeps the user in the editor. Legacy (classic) customize pages keep the modal./customize-page/<persona>/LandingPageroute. Its close button navigated to a settings link, which in AI mode is only a hash change, soNavigationBlockerlet it through: the Settings modal opened over the editor, and closing that modal is what finally raised the discard prompt. Close now goes back to the home page; with unsaved changes the discard prompt appears first and Discard / Save land on Home. Opening customize from Settings still returns to Settings, and Classic mode is unchanged.ButtonUtility(sm) with coreEdit01/Trash01.Edit01sized by the button like Add Filter's icon.ButtonUtility.Type of change:
High-level design:
guardExitinPersonasPanel.tsx(directly for footer Cancel / breadcrumbs, via the personal-space store'sexitGuardfor the modal close button andProfilePageside nav). Only that one place changes:UnsavedChangesModal→ coreConfirmPopover. Nothing in the store,PersonalSpaceModal,ProfilePageor the legacy pages changes, which is what keeps classic mode on the modal (PersonalSpaceModalis only mounted by the AI shell).PersonasPanelrecords the target of the lastpointerdown/keydown(capture phase) and passes it as the popover'striggerRef; recording pauses while the prompt is open so presses inside it can't re-anchor it. Every guard entry point is a user press (the Settings modal is not dismissable by Escape/backdrop). Rejected: threading refs through the core breadcrumb, the Dialog close button and the side nav — four call sites and a core API change for the same result.ConfirmPopover: newshowCancelprop (defaulttrue, so existing callers are unchanged). With it off, Cancel is hidden and the remaining actions split the width; Escape / outside click still cancel. Ships with a Storybook story (SaveBeforeLeaving) and a test.CustomizablePageHeaderwithout settings chrome in AI mode navigates toROUTES.HOME— a path change, so the existingNavigationBlockerhandles the dirty prompt. Classic keeps the settings link.label.discard-and-go,label.save-and-go,message.save-changes-first, translated in all locales. The design shows "Save your 1 change first?"; editors don't track a change count (Marketplace only has a dirty flag), so the title is "Save your changes first?".Tests:
Use cases covered
Unit tests
PersonasPanel.test.tsx(popover discard / save / Escape-dismiss / modal-close guard),CustomizablePageHeader.test.tsx(close destination in AI vs classic),TagsContainerV2.test.tsx(add / edit button share the task-icon row),WorkflowHeader.test.tsx(pencil in the actions row),TableTags,ColumnBulkOperations,ClassificationUtils,TagsUtils,TagsPage.confirm-popover.test.tsx11 passed (new: Cancel hidden withshowCancel={false}, Escape still dismisses).PersonasPanel.tsx97.9%,CustomizablePageHeader.tsx93.5%,TagsContainerV2.tsx91.7%,ClassificationUtils.tsx88.4%,WorkflowHeader.tsx80%.ColumnGrid.component.tsx(60.9%) andTagsUtils.tsx(40.8%) only had icon swaps; their uncovered lines are pre-existing.Backend integration tests
Ingestion integration tests
Playwright (UI) tests
openmetadata-ui/.../ui/playwright/for UI changes.playwright/e2e/Features/AIMode/PersonaSettings.spec.ts— new describe "Persona settings — leaving an in-modal editor with unsaved changes" (5 tests).playwright/e2e/Features/AIMode/HomePageCustomizeExit.spec.ts— new file, "Home page customize — closing returns to the home page" (2 tests). Separate file because it uses the worker-scoped isolated admin (test.use({ isolatedUserOptions })must be top-level).playwright/utils/tag.ts,playwright/e2e/Pages/Tags.spec.ts,playwright/e2e/Pages/Glossary.spec.ts— table-celladd-tagselectors no longer go throughentity-tags, which an empty table cell no longer renders..github/playwright/impact-map.json— routesCustomizablePageHeader→HomePageCustomizeExit.spec.tsandTagsUtils.tsx→ tag page specs (it was an impact-map gap).--no-depsafter thesetupproject, against this branch's UI): 7 passed, 0 failed, 0 flaky (27.8s).make playwright_affected), includingTags.spec.ts/Glossary.spec.tswhoseadd-tagselectors changed. The merge queue runs the full suite.Manual testing performed
Against a local backend (
localhost:8585, 2.0.0-SNAPSHOT) with this branch's UI served by Vite, logged in as admin in AI mode:UI screen recording:
Not applicable — UI fixes and an interaction refinement rather than a new feature; screenshots below are from this branch running against a local backend.
Unsaved-changes popover (Settings → persona → Navigation, after an edit, footer Cancel):
Classification tags table — edit and delete now the same size:
Column Bulk Operations toolbar — Edit icon sized like Add Filter:
Workflow header (edit mode) — tertiary pencil aligned with the action buttons:
Entity columns table, no tags — + shares the row with request / conversation (hovered):
Every place the tags-cell change reaches (before → after)
TagsContainerV2only changes forTableTagscells that are editable and have no tags: the + moves into the request / conversation icon row. Cells with tags, read-only / deleted entities, users without edit permission (--), the lineage table, version pages and right-panel widgets are unchanged. Captured hovering the first empty editable cell on each page; "before" ismain'sTagsContainerV2.tsxon the same build and data.SchemaTableDashboardChartTableModelTabContainerDataModelTopicSchemaAPIEndpointSchemaSearchIndexFieldsTablePipelineTaskTabMlModelFeaturesListFileColumnsTableWorksheetColumnsTableIn 4 and 11 the last icon sits at the table's horizontal-scroll edge at this window width; the cell itself doesn't overflow (300px cell, content fits) — the Tags column already extends past the scroll viewport on
main.Playwright check for this change: test IDs are unchanged, the icon row stays inside
tags-container/glossary-container, and the only selectors that went through the removedentity-tagswrapper are the three updated in this PR. The two tests using them pass against this branch (Tags.spec.ts› Classification Page, which usesaddTagToTableColumn;Glossary.spec.ts› Add and Remove Assets, dashboard charts):Checklist:
Fixes <issue-number>: <short explanation>— no issue yet (see top).Fixes #<issue-number>above — no issue yet.REVIEW.md(thepr-checklistskill runs it) and fixed every 🔴 finding, or answered it on the line below.c95399b7a53(two passes): no open 🔴. First-pass 🔴 (stale Playwrightadd-tagselectors) fixed. Fixed 🟡: popover re-anchoring onto its own button, ko-kr / he-he / ru-ru "Discard & go" reading as "Cancel & go" (he-he / ru-ru in529a1f78bed, strings only). Later commita7087cf69c2only adds impact-map entries.onSavecatches its own error and resolves, so the old modal had the same behavior; fixing it means changing all five editors' save contracts, out of scope here.ConfirmPopoverto readtriggerRef, i.e. testing wiring rather than behavior; covered by review instead.🤖 Generated with Claude Code
Summary by Gitar
getTagPagePermissionsinTagPage.utils.tsThis will update automatically on new commits.