Skip to content

Fixed the span tag issue on breadcrumb for metric entity - #26793

Merged
Rohit0301 merged 1 commit into
mainfrom
fix-3339
Mar 26, 2026
Merged

Rohit0301 merged 1 commit into
mainfrom
fix-3339

Conversation

@Rohit0301

@Rohit0301 Rohit0301 commented Mar 26, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes 3339

I worked on ... because ...

Screenshot 2026-03-26 at 3 51 47 PM Screenshot 2026-03-26 at 3 53 57 PM

Type of change:

  • Bug fix
  • Improvement
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • 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.

@Rohit0301 Rohit0301 self-assigned this Mar 26, 2026
@Rohit0301
Rohit0301 requested a review from a team as a code owner March 26, 2026 10:24
@Rohit0301 Rohit0301 added safe to test Add this label to run secure Github workflows on PRs To release Will cherry-pick this PR into the release branch labels Mar 26, 2026
},
{
name: getEntityName(entity),
name: entity.name,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we need to add name explicit?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using getEntityName(entity) is unsafe here because highlightEntityNameAndDescription mutates source.displayName to contain raw HTML before the source is passed to ExploreSearchCard. The entity header handles this correctly via stringToHTML, but TitleBreadcrumb renders link.name as plain text — so the HTML tags show up literally in the breadcrumb instead of being interpreted.

And other entities like database, schema, etc all use entity.name for the entity itself

@gitar-bot

gitar-bot Bot commented Mar 26, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 1 resolved / 1 findings

Fixes the span tag issue on breadcrumb for metric entity that was causing displayName to be lost. The resolved finding has been addressed with no remaining issues.

✅ 1 resolved
✅ Edge Case: Metric breadcrumb loses legitimate displayName

📄 openmetadata-ui/src/main/resources/ui/src/utils/EntityUtils.tsx:2674
Replacing getEntityName(entity) with entity.name correctly fixes the search-highlight HTML leak, but it also means metrics with a legitimate (non-highlighted) displayName will no longer show that display name in the breadcrumb — they'll always show the technical name.

Other entity types (e.g., KPI at line ~2202) still use getEntityName(entity) for their breadcrumb, so this is inconsistent. A more targeted fix would strip highlight markup from the breadcrumb name rather than bypassing displayName entirely, but given that some other entities (TABLE_COLUMN, TestCase) also use entity.name, this is a known tradeoff and may be acceptable.

Options

Auto-apply is off → Gitar will not commit updates to this branch.
Display: compact → Showing less information.

Comment with these commands to change:

Auto-apply Compact
gitar auto-apply:on         
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

@github-actions

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 64%
65.01% (58080/89328) 44.8% (30712/68547) 47.8% (9196/19235)

@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown
Contributor

🟡 Playwright Results — all passed (25 flaky)

✅ 3397 passed · ❌ 0 failed · 🟡 25 flaky · ⏭️ 217 skipped

Shard Passed Failed Flaky Skipped
🟡 Shard 1 450 0 5 2
🟡 Shard 2 602 0 4 32
🟡 Shard 3 605 0 8 28
🟡 Shard 4 598 0 5 47
✅ Shard 5 587 0 0 67
🟡 Shard 6 555 0 3 41
🟡 25 flaky test(s) (passed on retry)
  • Features/DataAssetRulesDisabled.spec.ts › Verify the SearchIndex Service entity item action after rules disabled (shard 1, 1 retry)
  • Features/CustomizeDetailPage.spec.ts › Domain - customization should work (shard 1, 1 retry)
  • Features/NavigationBlocker.spec.ts › should navigate to new page when "Leave" is clicked (shard 1, 1 retry)
  • Flow/Tour.spec.ts › Tour should work from welcome screen (shard 1, 1 retry)
  • Pages/UserCreationWithPersona.spec.ts › Create user with persona and verify on profile (shard 1, 1 retry)
  • Features/BulkEditEntity.spec.ts › Glossary (shard 2, 1 retry)
  • Features/DataQuality/TestCaseImportExportBasic.spec.ts › Data Consumer can successfully export test cases (shard 2, 1 retry)
  • Features/DataQuality/TestCaseIncidentPermissions.spec.ts › User with TEST_CASE.EDIT_ALL can see edit icon on incidents (shard 2, 1 retry)
  • Features/DataQuality/TestCaseResultPermissions.spec.ts › User with only VIEW cannot PATCH results (shard 2, 1 retry)
  • Features/Permissions/DataProductPermissions.spec.ts › Data Product allow operations (shard 3, 1 retry)
  • Features/Permissions/GlossaryPermissions.spec.ts › Team-based permissions work correctly (shard 3, 1 retry)
  • Features/TestSuiteMultiPipeline.spec.ts › TestSuite multi pipeline support (shard 3, 1 retry)
  • Flow/CustomizeWidgets.spec.ts › Following Assets Widget (shard 3, 1 retry)
  • Flow/ExploreDiscovery.spec.ts › Should display deleted assets when showDeleted is checked and deleted is not present in queryFilter (shard 3, 1 retry)
  • Flow/ExploreDiscovery.spec.ts › Should not display soft deleted assets in search suggestions (shard 3, 1 retry)
  • Flow/ObservabilityAlerts.spec.ts › Alert operations for a user with and without permissions (shard 3, 1 retry)
  • Flow/PersonaFlow.spec.ts › Set default persona for team should work properly (shard 3, 1 retry)
  • Pages/Customproperties-part2.spec.ts › entityReferenceList shows item count, scrollable list, no expand toggle (shard 4, 1 retry)
  • Pages/DataContracts.spec.ts › Create Data Contract and validate for Database (shard 4, 1 retry)
  • Pages/DataProductAndSubdomains.spec.ts › Filter data products by domain in global selector (shard 4, 1 retry)
  • Pages/Domains.spec.ts › Rename domain with deeply nested subdomains (3+ levels) verifies FQN propagation (shard 4, 1 retry)
  • Pages/Entity.spec.ts › Tier Add, Update and Remove (shard 4, 1 retry)
  • Pages/Glossary.spec.ts › Create term with related terms, tags and owners during creation (shard 6, 1 retry)
  • Pages/Users.spec.ts › Permissions for table details page for Data Consumer (shard 6, 1 retry)
  • VersionPages/GlossaryVersionPage.spec.ts › GlossaryTerm (shard 6, 1 retry)

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

@Rohit0301
Rohit0301 merged commit 20b73e0 into main Mar 26, 2026
65 of 87 checks passed
@Rohit0301
Rohit0301 deleted the fix-3339 branch March 26, 2026 12:15
@github-actions

Copy link
Copy Markdown
Contributor

Failed to cherry-pick changes to the 1.12.4 branch.
Please cherry-pick the changes manually.
You can find more details here.

siddhant1 pushed a commit that referenced this pull request Apr 3, 2026
…Name

Commit 119e9fe accidentally reverted the fix from PR #26793 by
changing entity.name back to getEntityName(entity) for Metric
breadcrumbs. In search results, getEntityName() returns the
displayName which contains Elasticsearch highlight HTML fragments
(<span class="text-highlighter">), causing breadcrumbs to render
raw HTML as text. Using entity.name directly returns the plain,
non-highlighted name.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
siddhant1 added a commit that referenced this pull request Apr 6, 2026
* feat: add customizable Data Marketplace landing page

Add a new Data Marketplace page at /data-marketplace with:
- Greeting banner, search bar with recent searches (per-user via Zustand)
- New Data Products and New Domains widgets with add/view-all actions
- ReactGridLayout-based customizable widget grid
- Per-persona layout persistence via DocStore (same pattern as MyData home page)
- New DataMarketplace PageType in backend schema
- Marketplace section in left sidebar
- Edit mode via /customize-page/:personaFqn/DataMarketplace

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* fix: reduce marketplace widget default height to eliminate gap

Changed marketplaceDataProducts and marketplaceDomains default heights
from 3 to 1 to match the page's MARKETPLACE_ROW_HEIGHT of 200px.

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* refactor: switch marketplace customization to entity detail page pattern

Replace the landing page customization pattern (CustomizeMyData) with
the entity detail page pattern (CustomizeTabWidget) for the Data
Marketplace page. This gives proper drag handles, add/remove controls,
and tab-based widget management.

- Create DataMarketplaceClassBase with default tabs, layouts, widgets
- Create CustomizableDataMarketplacePage using CustomizeTabWidget
- Register DataMarketplace in CustomizePageUtils (all 6 switch statements)
- Add marketplace widgets to GenericWidgetUtils WIDGET_COMPONENTS
- Update DataMarketplacePage to use tab-based layout (8-col grid)
- Clean up old landing page pattern code from CustomizeMyDataPageClassBase
- Move widget keys from LandingPageWidgetKeys to DetailPageWidgetKeys

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* Update generated TypeScript types

* fix

* Fix data marketplace customization page layout and widget ordering

- Align CustomizableDataMarketplacePage layout with DataMarketplacePage
  using shared marketplace-grid-wrapper (900px max-width, centered)
- Remove debug console.log statements from CustomizeStore, CustomizablePage,
  and DataMarketplacePage
- Extract updatedPage variable in moveWidget for clarity

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* Add full-width background image to Data Marketplace header

Import marketplace-bg.png and apply it as a full-width background
behind the greeting banner and search bar, with a CSS mask gradient
for smooth blending into the page background.

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* Improve Data Marketplace page layout and UX

- Hide global search bar and domain dropdown on marketplace page
- Extend gradient background behind transparent navbar to start from viewport top
- Cap widget card max-width to 1/3 for consistent sizing regardless of item count
- Show "View All" link only when more than 3 items exist in a widget

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* Fix Data Marketplace page spacing and padding

Remove horizontal padding from page layout, adjust greeting banner
padding, reduce widget title margin-bottom, and add margin to greeting text.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Add Playwright E2E tests for Data Marketplace page

Add 14 tests across 3 spec files covering core page rendering,
search, navigation, permissions, and customization workflows.

- DataMarketplace.spec.ts: page render, search + navigation, recent
  searches, widget card clicks, View All links
- DataMarketplacePermissions.spec.ts: admin vs data consumer access
- DataMarketplaceCustomization.spec.ts: persona setup, default order,
  drag-and-drop reorder + save, reset to default
- dataMarketplace.ts: reusable helpers (navigateToMarketplace,
  searchMarketplace, closeSearchPopover, verifyGreetingBanner)
- sidebar.ts: add DATA_MARKETPLACE enum value

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Fix marketplace widget section padding by removing height: 100%

The fixed height stretched widgets to fill the grid row, causing
unequal vertical padding. Removing it lets widgets size to content.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Update generated TypeScript types

* Fix marketplace search suggestions visibility, reduce spacing, remove recent searches

- Fix search popover hidden behind widgets by using getVisiblePopupContainer
- Constrain popover width to match search bar using containerRef
- Reduce spacing between navbar/greeting and search/widget sections
- Remove recent search terms feature and associated CSS/tests

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Replace Ant Design search input with Untitled UI Input and fix mask overlay

- Replace Ant Design Input with @openmetadata/ui-core-components Input
  and SearchLg icon from @untitledui/icons
- Move background image to ::before pseudo-element so the CSS mask
  gradient only fades the image, not the content on top
- Remove old Ant Design-specific styles from marketplace-search-bar.less
- Set fontSize="xs" (12px) with proportional icon size (16px)

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Fix Playwright test to target inner input element

The Untitled UI Input component wraps the actual <input> in a
TextField div, so data-testid resolves to the wrapper. Updated
searchMarketplace utility to locate the inner input element.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Add blue background and drag handle to customize marketplace page

- Add customize-details-page blue background (#f0f9ff) with border,
  rounded corners, and shadow to match other customize pages
- Replace react-dnd drag header bars with inline drag handle icon
  (HolderOutlined) inside widget header flex container
- Use dragPreview connector so entire card moves when dragging from handle
- Add dragHandle prop to WidgetCommonProps and pass through widget factory

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Replace react-dnd with react-grid-layout for marketplace customize page

- Use WidthProvider(RGL) with single column layout for smooth drag-and-drop
- Configure draggableHandle with marketplace-drag-handle class selector
- Use DragOutlined icon (18px) with bordered 41x40px handle box
- Set rowHeight to 170px for tight widget spacing
- Add react-grid-layout placeholder styling
- Remove DraggableWidgetCard component and all react-dnd code

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Fix layout normalization, remove customize button, add bg image

- Remove Customize button from DataMarketplacePage
- Normalize saved layout w/x values to prevent width mismatch between
  cols=1 (old) and cols=8 (current) grid configurations
- Match grid cols and margins between customize and regular pages
- Add marketplace background image to customize page header area
- Use Less variables for theme colors, move inline style to CSS

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* locales

* Remove fixed height from marketplace item card, use consistent padding

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* feat: integrate useMarketplaceRecentSearches into MarketplaceSearchBar

Co-authored-by: siddhant1 <[email protected]>

* fix: resolve stale closure in addSearch by reading live preferences state

The addSearch callback previously captured the 'preferences' object from
the render-time closure, which could be stale when multiple searches are
added in quick succession. This caused the hook to lose previously-added
entries.

Fix: use usePersistentStorage.getState().preferences inside the callback
to always read the latest state, and remove 'preferences' from the
dependency array since it's no longer needed there.

Co-authored-by: siddhant1 <[email protected]>

* Replace Ant Design with Untitled UI in Data Marketplace components

Migrate Typography, Popover, and icon imports from antd to
openmetadata-ui-core-components and @untitledui/icons. Remove
broken DataMarketplaceCustomization e2e spec that referenced
a non-existent test ID.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Use Typography from ui-core-components instead of raw HTML elements

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Add PageLayoutV2, configurable AppSidebar, and Sidebar component

- Create Sidebar component in ui-core-components with brand-colored
  active states, collapse support, logo slot, and width animation
- Create useSidebarStore (Zustand) for pages to set custom sidebar items
- Create AppSidebar wrapper that switches between LeftSidebar and
  custom Sidebar based on store state and route constants
- Create PageLayoutV2 as lightweight content-only layout (no antd/MUI)
- Create CustomSidebar.constants for eager route detection (no flicker)
- Migrate DataMarketplacePage to PageLayoutV2 with marketplace sidebar
- Add hasSider to AppContainer Layout for flex-direction compatibility
- Add access-request-plural locale key to all language files

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* code

* padding on settings

* Extract isNewLayoutRoute utility to centralize layout detection

Consolidates duplicated route checks in AppContainer and AppSidebar into
a single isNewLayoutRoute function. Fixes inconsistent includes vs
startsWith usage. Also adds Link wrapper to Sidebar logo and improves
sidebar styling.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Make AppSidebar a pure layout router, Sidebar self-contained

AppSidebar now only decides which sidebar to render based on route.
Sidebar owns its own data: items from getSidebarConfig, collapsed state,
and logo rendering. Removed useSidebarStore and cleaned up MarketplaceLayout.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Defensive shallow clone of defaultLayout in useState initializer

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* fix

* Move MarketplaceNavBar into scrollable layout so header scrolls with page

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Refactor getSidebarConfig to const and use isNewLayoutRoute

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Add NavigationContext for marketplace-scoped navigation and breadcrumbs

All domain and data product navigation within the Data Marketplace now
stays within /data-marketplace/* routes. A NavigationContext provides
context-aware path builders so the same components (DomainDetailPage,
DataProductsPage, etc.) work in both standalone and marketplace modes.

- Create NavigationContext with provider, path builders, and isMarketplace flag
- Add domain and data product detail routes under /data-marketplace
- Update listing hooks, breadcrumbs, and widget click handlers to use context
- Fix sidebar active state with prefix-based URL matching for detail pages

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* announcement

* Fix stale useCallback deps and keyboard accessibility in marketplace widgets

Add missing dependencies (navCtx, dataProductBasePath) to handleClick
useCallback hooks in MarketplaceDomainsWidget and
MarketplaceDataProductsWidget to prevent stale closures. Restore
onKeyDown handler in AnnouncementItemV2 for Enter/Space keyboard
activation (WCAG 2.1 compliance).

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Revert "Fix stale useCallback deps and keyboard accessibility in marketplace widgets"

This reverts commit 97710d8.

* Remove non-existent DRAWER_HEADER_STYLING import, anchor, and zIndex from marketplace widgets

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Use design token for announcement widget background color

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Rename Domains sidebar section to Data Marketplace

Update sidebar constants, test IDs, and Playwright test utilities
to reflect the Data Marketplace section renaming.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Fix Copilot review issues: React imports, stale closures, CSS tokens, and test routes

- Import React types directly instead of using React.* namespace
- Add navCtx to useCallback dependency arrays to prevent stale closures
- Include PageType.DataMarketplace in showWidgetActions condition
- Replace invalid theme() CSS function with var() for runtime usage
- Replace hardcoded hex color with design token variable
- Update Playwright tests to use /data-marketplace/* routes instead of legacy paths
- Fix incorrect CSS selector in test utility

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Add className prop to drawer hooks for z-index control and marketplace UI fixes

Thread className through the drawer hook chain (useDrawer → SlideoutMenu) so
consumers can control overlay z-index. Apply to marketplace data product and
domain drawers to stack above the navbar. Also switch search bar to SelectPopover
and fix slideout-menu formatting.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* fix: address Data Marketplace review feedback — stale deps, Zustand mutation, i18n emoji (#26761)

* Initial plan

* fix: address review feedback on Data Marketplace components

- Avoid mutating Zustand state: use [...entries].sort() instead of entries.sort()
- Add navCtx to handleClick useCallback deps in MarketplaceDomainsWidget
- Add dataProductBasePath to handleClick useCallback deps in MarketplaceDataProductsWidget
- Move wave emoji into i18n translation string across all locale files

Co-authored-by: siddhant1 <[email protected]>
Agent-Logs-Url: https://github.com/open-metadata/OpenMetadata/sessions/ff473cf8-8f0b-4002-83dc-6cc2ecd27254

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: siddhant1 <[email protected]>

* Fix drawer z-index, Tailwind important syntax, and formatting cleanup

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Exclude DataMarketplace from data-assets customize category

DataMarketplace has its own separate category and should not appear
in the data-assets list.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* pretty

* Replace NavigationContext with Zustand useMarketplaceStore for marketplace-aware navigation

Replaces the React Context-based NavigationContext with a global Zustand store
(useMarketplaceStore) that manages marketplace-aware domain and data product
path building. MarketplaceLayout sets/clears the context on mount/unmount.
All ~30 navigation points across the codebase now use the store for
marketplace-aware URL construction.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Simplify marketplace navigation: make RouterUtils store-aware

Instead of migrating all consumers to import from useMarketplaceStore,
make getDomainPath/getDomainDetailsPath in RouterUtils internally read
from the store. Add getDataProductDetailsPath. Consumers import from
RouterUtils as before and get marketplace-awareness automatically.
Simplify useMarketplaceStore to only hold state (no path-building methods).

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Fix remaining non-marketplace-aware domain/dataProduct navigation

Replace ROUTES.DOMAIN and ROUTES.DATA_PRODUCT with store-aware
getDomainPath()/getDataProductDetailsPath() in DomainsWidget,
TasksUtils, CustomizableDataProductPage. Replace getEntityDetailsPath
with getDataProductDetailsPath for DATA_PRODUCT in DataProductsContainer,
SummaryDataProducts, DataProductsWidget, EntityUtilClassBase, EntityUtils.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Fix hardcoded /domain path in DomainsWidget footer

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Replace hardcoded '/data-marketplace' with ROUTES.DATA_MARKETPLACE in breadcrumbs

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* pretty

* fix icons

* fix style

* fix

* fix

* fix style

* pretty

* Revert unrelated Prettier formatting changes in Playwright specs

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Fix lint and formatting issues across UI, Playwright, and core-components

Fix import ordering, remove unused EntityType import, convert ternary
expression to if/else in Playwright util, and apply Prettier formatting.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Add Playwright E2E specs for Data Marketplace creation flows, search edge cases, announcements, and greeting verification

Covers missing test gaps: drawer-based DP/domain creation, search empty state, popover dismiss, announcements widget rendering/navigation, and greeting banner personalization. Reuses existing fillCommonFormItems and fillDomainForm from domain.ts utils.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Fix Prettier formatting in Data Marketplace Playwright specs

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* fix: address reviewer feedback on Data Marketplace components

- Use Typography size/weight props in AnnouncementsWidgetV2 instead of custom tw classes
- Use Card isClickable prop in MarketplaceItemCard; fix Space key activation
- Replace hardcoded hex colors with Less variables in marketplace-widget-shared.less
- Use ROUTES constants in useMarketplaceStore instead of hardcoded path strings

Agent-Logs-Url: https://github.com/open-metadata/OpenMetadata/sessions/ecf92c78-e615-47f5-b318-ff8b5a4fc91c

Co-authored-by: siddhant1 <[email protected]>

* Fix CI: use string literals for marketplace store defaults and lint cleanup

useMarketplaceStore accessed ROUTES.DOMAIN at module init time, causing
TypeError in tests that mock constants without ROUTES. Use string literals
for default values; ROUTES is still used lazily in setMarketplaceContext.
Also removes unused TagSource import found by lint auto-fix.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* fix(ui): address code review issues in marketplace PR

- Use getEntityName() for Metric breadcrumbs to respect displayName
- Use ROUTES constants in useMarketplaceStore initial state to avoid drift
- Assert response.ok() in createAnnouncementViaApi before parsing JSON

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* fix icons

* fix

* fix

* fix: address PR review bugs in data marketplace components

- Fix typo tw:font-semilbold → tw:font-semibold in MarketplaceNav
- Fix invalid theme() CSS value → var() in AnnouncementItemV2
- Add keyboard accessibility (Enter + Space) to AnnouncementItemV2
- Add Space key handling to search result items in MarketplaceSearchBar
- Fix sidebar i18n: convert MARKETPLACE_SIDEBAR_CONFIG to function so
  labels update on locale change
- Fix handleBellClick stale closure in MarketplaceNavBar deps array

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* fix

* fix: address quality issues in data marketplace components

- Memoize defaultLayout and add to fetchDocument useCallback deps to
  prevent stale closure
- Use ROUTES.DATA_MARKETPLACE constant instead of hardcoded path string
  in AuthenticatedAppRouter
- Replace hardcoded hex colors with LESS variables in
  customizable-data-marketplace-page.less

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* fix

* fix: add fallback values in useMarketplaceStore for test compatibility

ROUTES can be undefined when tests mock constants/constants without
including all exports. Use optional chaining with fallback values for
store initialization defaults.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* fix: revert Metric breadcrumb to use entity.name instead of getEntityName

Commit 119e9fe accidentally reverted the fix from PR #26793 by
changing entity.name back to getEntityName(entity) for Metric
breadcrumbs. In search results, getEntityName() returns the
displayName which contains Elasticsearch highlight HTML fragments
(<span class="text-highlighter">), causing breadcrumbs to render
raw HTML as text. Using entity.name directly returns the plain,
non-highlighted name.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

---------

Co-authored-by: Siddhant <[email protected]>
Co-authored-by: Claude Opus 4.6 <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Siddhant <[email protected]>
Co-authored-by: Siddhant <[email protected]>
Co-authored-by: Siddhant <[email protected]>
Co-authored-by: Gitar <[email protected]>
Co-authored-by: siddhant1 <[email protected]>
Co-authored-by: Siddhant <[email protected]>
Co-authored-by: Siddhant <[email protected]>
Co-authored-by: Siddhant <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Siddhant <[email protected]>
SaaiAravindhRaja pushed a commit to SaaiAravindhRaja/OpenMetadata that referenced this pull request Apr 12, 2026
…6255)

* feat: add customizable Data Marketplace landing page

Add a new Data Marketplace page at /data-marketplace with:
- Greeting banner, search bar with recent searches (per-user via Zustand)
- New Data Products and New Domains widgets with add/view-all actions
- ReactGridLayout-based customizable widget grid
- Per-persona layout persistence via DocStore (same pattern as MyData home page)
- New DataMarketplace PageType in backend schema
- Marketplace section in left sidebar
- Edit mode via /customize-page/:personaFqn/DataMarketplace

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* fix: reduce marketplace widget default height to eliminate gap

Changed marketplaceDataProducts and marketplaceDomains default heights
from 3 to 1 to match the page's MARKETPLACE_ROW_HEIGHT of 200px.

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* refactor: switch marketplace customization to entity detail page pattern

Replace the landing page customization pattern (CustomizeMyData) with
the entity detail page pattern (CustomizeTabWidget) for the Data
Marketplace page. This gives proper drag handles, add/remove controls,
and tab-based widget management.

- Create DataMarketplaceClassBase with default tabs, layouts, widgets
- Create CustomizableDataMarketplacePage using CustomizeTabWidget
- Register DataMarketplace in CustomizePageUtils (all 6 switch statements)
- Add marketplace widgets to GenericWidgetUtils WIDGET_COMPONENTS
- Update DataMarketplacePage to use tab-based layout (8-col grid)
- Clean up old landing page pattern code from CustomizeMyDataPageClassBase
- Move widget keys from LandingPageWidgetKeys to DetailPageWidgetKeys

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* Update generated TypeScript types

* fix

* Fix data marketplace customization page layout and widget ordering

- Align CustomizableDataMarketplacePage layout with DataMarketplacePage
  using shared marketplace-grid-wrapper (900px max-width, centered)
- Remove debug console.log statements from CustomizeStore, CustomizablePage,
  and DataMarketplacePage
- Extract updatedPage variable in moveWidget for clarity

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* Add full-width background image to Data Marketplace header

Import marketplace-bg.png and apply it as a full-width background
behind the greeting banner and search bar, with a CSS mask gradient
for smooth blending into the page background.

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* Improve Data Marketplace page layout and UX

- Hide global search bar and domain dropdown on marketplace page
- Extend gradient background behind transparent navbar to start from viewport top
- Cap widget card max-width to 1/3 for consistent sizing regardless of item count
- Show "View All" link only when more than 3 items exist in a widget

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* Fix Data Marketplace page spacing and padding

Remove horizontal padding from page layout, adjust greeting banner
padding, reduce widget title margin-bottom, and add margin to greeting text.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Add Playwright E2E tests for Data Marketplace page

Add 14 tests across 3 spec files covering core page rendering,
search, navigation, permissions, and customization workflows.

- DataMarketplace.spec.ts: page render, search + navigation, recent
  searches, widget card clicks, View All links
- DataMarketplacePermissions.spec.ts: admin vs data consumer access
- DataMarketplaceCustomization.spec.ts: persona setup, default order,
  drag-and-drop reorder + save, reset to default
- dataMarketplace.ts: reusable helpers (navigateToMarketplace,
  searchMarketplace, closeSearchPopover, verifyGreetingBanner)
- sidebar.ts: add DATA_MARKETPLACE enum value

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Fix marketplace widget section padding by removing height: 100%

The fixed height stretched widgets to fill the grid row, causing
unequal vertical padding. Removing it lets widgets size to content.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Update generated TypeScript types

* Fix marketplace search suggestions visibility, reduce spacing, remove recent searches

- Fix search popover hidden behind widgets by using getVisiblePopupContainer
- Constrain popover width to match search bar using containerRef
- Reduce spacing between navbar/greeting and search/widget sections
- Remove recent search terms feature and associated CSS/tests

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Replace Ant Design search input with Untitled UI Input and fix mask overlay

- Replace Ant Design Input with @openmetadata/ui-core-components Input
  and SearchLg icon from @untitledui/icons
- Move background image to ::before pseudo-element so the CSS mask
  gradient only fades the image, not the content on top
- Remove old Ant Design-specific styles from marketplace-search-bar.less
- Set fontSize="xs" (12px) with proportional icon size (16px)

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Fix Playwright test to target inner input element

The Untitled UI Input component wraps the actual <input> in a
TextField div, so data-testid resolves to the wrapper. Updated
searchMarketplace utility to locate the inner input element.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Add blue background and drag handle to customize marketplace page

- Add customize-details-page blue background (#f0f9ff) with border,
  rounded corners, and shadow to match other customize pages
- Replace react-dnd drag header bars with inline drag handle icon
  (HolderOutlined) inside widget header flex container
- Use dragPreview connector so entire card moves when dragging from handle
- Add dragHandle prop to WidgetCommonProps and pass through widget factory

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Replace react-dnd with react-grid-layout for marketplace customize page

- Use WidthProvider(RGL) with single column layout for smooth drag-and-drop
- Configure draggableHandle with marketplace-drag-handle class selector
- Use DragOutlined icon (18px) with bordered 41x40px handle box
- Set rowHeight to 170px for tight widget spacing
- Add react-grid-layout placeholder styling
- Remove DraggableWidgetCard component and all react-dnd code

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Fix layout normalization, remove customize button, add bg image

- Remove Customize button from DataMarketplacePage
- Normalize saved layout w/x values to prevent width mismatch between
  cols=1 (old) and cols=8 (current) grid configurations
- Match grid cols and margins between customize and regular pages
- Add marketplace background image to customize page header area
- Use Less variables for theme colors, move inline style to CSS

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* locales

* Remove fixed height from marketplace item card, use consistent padding

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* feat: integrate useMarketplaceRecentSearches into MarketplaceSearchBar

Co-authored-by: siddhant1 <[email protected]>

* fix: resolve stale closure in addSearch by reading live preferences state

The addSearch callback previously captured the 'preferences' object from
the render-time closure, which could be stale when multiple searches are
added in quick succession. This caused the hook to lose previously-added
entries.

Fix: use usePersistentStorage.getState().preferences inside the callback
to always read the latest state, and remove 'preferences' from the
dependency array since it's no longer needed there.

Co-authored-by: siddhant1 <[email protected]>

* Replace Ant Design with Untitled UI in Data Marketplace components

Migrate Typography, Popover, and icon imports from antd to
openmetadata-ui-core-components and @untitledui/icons. Remove
broken DataMarketplaceCustomization e2e spec that referenced
a non-existent test ID.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Use Typography from ui-core-components instead of raw HTML elements

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Add PageLayoutV2, configurable AppSidebar, and Sidebar component

- Create Sidebar component in ui-core-components with brand-colored
  active states, collapse support, logo slot, and width animation
- Create useSidebarStore (Zustand) for pages to set custom sidebar items
- Create AppSidebar wrapper that switches between LeftSidebar and
  custom Sidebar based on store state and route constants
- Create PageLayoutV2 as lightweight content-only layout (no antd/MUI)
- Create CustomSidebar.constants for eager route detection (no flicker)
- Migrate DataMarketplacePage to PageLayoutV2 with marketplace sidebar
- Add hasSider to AppContainer Layout for flex-direction compatibility
- Add access-request-plural locale key to all language files

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* code

* padding on settings

* Extract isNewLayoutRoute utility to centralize layout detection

Consolidates duplicated route checks in AppContainer and AppSidebar into
a single isNewLayoutRoute function. Fixes inconsistent includes vs
startsWith usage. Also adds Link wrapper to Sidebar logo and improves
sidebar styling.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Make AppSidebar a pure layout router, Sidebar self-contained

AppSidebar now only decides which sidebar to render based on route.
Sidebar owns its own data: items from getSidebarConfig, collapsed state,
and logo rendering. Removed useSidebarStore and cleaned up MarketplaceLayout.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Defensive shallow clone of defaultLayout in useState initializer

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* fix

* Move MarketplaceNavBar into scrollable layout so header scrolls with page

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Refactor getSidebarConfig to const and use isNewLayoutRoute

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Add NavigationContext for marketplace-scoped navigation and breadcrumbs

All domain and data product navigation within the Data Marketplace now
stays within /data-marketplace/* routes. A NavigationContext provides
context-aware path builders so the same components (DomainDetailPage,
DataProductsPage, etc.) work in both standalone and marketplace modes.

- Create NavigationContext with provider, path builders, and isMarketplace flag
- Add domain and data product detail routes under /data-marketplace
- Update listing hooks, breadcrumbs, and widget click handlers to use context
- Fix sidebar active state with prefix-based URL matching for detail pages

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* announcement

* Fix stale useCallback deps and keyboard accessibility in marketplace widgets

Add missing dependencies (navCtx, dataProductBasePath) to handleClick
useCallback hooks in MarketplaceDomainsWidget and
MarketplaceDataProductsWidget to prevent stale closures. Restore
onKeyDown handler in AnnouncementItemV2 for Enter/Space keyboard
activation (WCAG 2.1 compliance).

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Revert "Fix stale useCallback deps and keyboard accessibility in marketplace widgets"

This reverts commit 97710d8.

* Remove non-existent DRAWER_HEADER_STYLING import, anchor, and zIndex from marketplace widgets

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Use design token for announcement widget background color

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Rename Domains sidebar section to Data Marketplace

Update sidebar constants, test IDs, and Playwright test utilities
to reflect the Data Marketplace section renaming.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Fix Copilot review issues: React imports, stale closures, CSS tokens, and test routes

- Import React types directly instead of using React.* namespace
- Add navCtx to useCallback dependency arrays to prevent stale closures
- Include PageType.DataMarketplace in showWidgetActions condition
- Replace invalid theme() CSS function with var() for runtime usage
- Replace hardcoded hex color with design token variable
- Update Playwright tests to use /data-marketplace/* routes instead of legacy paths
- Fix incorrect CSS selector in test utility

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Add className prop to drawer hooks for z-index control and marketplace UI fixes

Thread className through the drawer hook chain (useDrawer → SlideoutMenu) so
consumers can control overlay z-index. Apply to marketplace data product and
domain drawers to stack above the navbar. Also switch search bar to SelectPopover
and fix slideout-menu formatting.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* fix: address Data Marketplace review feedback — stale deps, Zustand mutation, i18n emoji (open-metadata#26761)

* Initial plan

* fix: address review feedback on Data Marketplace components

- Avoid mutating Zustand state: use [...entries].sort() instead of entries.sort()
- Add navCtx to handleClick useCallback deps in MarketplaceDomainsWidget
- Add dataProductBasePath to handleClick useCallback deps in MarketplaceDataProductsWidget
- Move wave emoji into i18n translation string across all locale files

Co-authored-by: siddhant1 <[email protected]>
Agent-Logs-Url: https://github.com/open-metadata/OpenMetadata/sessions/ff473cf8-8f0b-4002-83dc-6cc2ecd27254

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: siddhant1 <[email protected]>

* Fix drawer z-index, Tailwind important syntax, and formatting cleanup

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Exclude DataMarketplace from data-assets customize category

DataMarketplace has its own separate category and should not appear
in the data-assets list.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* pretty

* Replace NavigationContext with Zustand useMarketplaceStore for marketplace-aware navigation

Replaces the React Context-based NavigationContext with a global Zustand store
(useMarketplaceStore) that manages marketplace-aware domain and data product
path building. MarketplaceLayout sets/clears the context on mount/unmount.
All ~30 navigation points across the codebase now use the store for
marketplace-aware URL construction.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Simplify marketplace navigation: make RouterUtils store-aware

Instead of migrating all consumers to import from useMarketplaceStore,
make getDomainPath/getDomainDetailsPath in RouterUtils internally read
from the store. Add getDataProductDetailsPath. Consumers import from
RouterUtils as before and get marketplace-awareness automatically.
Simplify useMarketplaceStore to only hold state (no path-building methods).

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Fix remaining non-marketplace-aware domain/dataProduct navigation

Replace ROUTES.DOMAIN and ROUTES.DATA_PRODUCT with store-aware
getDomainPath()/getDataProductDetailsPath() in DomainsWidget,
TasksUtils, CustomizableDataProductPage. Replace getEntityDetailsPath
with getDataProductDetailsPath for DATA_PRODUCT in DataProductsContainer,
SummaryDataProducts, DataProductsWidget, EntityUtilClassBase, EntityUtils.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Fix hardcoded /domain path in DomainsWidget footer

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Replace hardcoded '/data-marketplace' with ROUTES.DATA_MARKETPLACE in breadcrumbs

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* pretty

* fix icons

* fix style

* fix

* fix

* fix style

* pretty

* Revert unrelated Prettier formatting changes in Playwright specs

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Fix lint and formatting issues across UI, Playwright, and core-components

Fix import ordering, remove unused EntityType import, convert ternary
expression to if/else in Playwright util, and apply Prettier formatting.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Add Playwright E2E specs for Data Marketplace creation flows, search edge cases, announcements, and greeting verification

Covers missing test gaps: drawer-based DP/domain creation, search empty state, popover dismiss, announcements widget rendering/navigation, and greeting banner personalization. Reuses existing fillCommonFormItems and fillDomainForm from domain.ts utils.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Fix Prettier formatting in Data Marketplace Playwright specs

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* fix: address reviewer feedback on Data Marketplace components

- Use Typography size/weight props in AnnouncementsWidgetV2 instead of custom tw classes
- Use Card isClickable prop in MarketplaceItemCard; fix Space key activation
- Replace hardcoded hex colors with Less variables in marketplace-widget-shared.less
- Use ROUTES constants in useMarketplaceStore instead of hardcoded path strings

Agent-Logs-Url: https://github.com/open-metadata/OpenMetadata/sessions/ecf92c78-e615-47f5-b318-ff8b5a4fc91c

Co-authored-by: siddhant1 <[email protected]>

* Fix CI: use string literals for marketplace store defaults and lint cleanup

useMarketplaceStore accessed ROUTES.DOMAIN at module init time, causing
TypeError in tests that mock constants without ROUTES. Use string literals
for default values; ROUTES is still used lazily in setMarketplaceContext.
Also removes unused TagSource import found by lint auto-fix.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* fix(ui): address code review issues in marketplace PR

- Use getEntityName() for Metric breadcrumbs to respect displayName
- Use ROUTES constants in useMarketplaceStore initial state to avoid drift
- Assert response.ok() in createAnnouncementViaApi before parsing JSON

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* fix icons

* fix

* fix

* fix: address PR review bugs in data marketplace components

- Fix typo tw:font-semilbold → tw:font-semibold in MarketplaceNav
- Fix invalid theme() CSS value → var() in AnnouncementItemV2
- Add keyboard accessibility (Enter + Space) to AnnouncementItemV2
- Add Space key handling to search result items in MarketplaceSearchBar
- Fix sidebar i18n: convert MARKETPLACE_SIDEBAR_CONFIG to function so
  labels update on locale change
- Fix handleBellClick stale closure in MarketplaceNavBar deps array

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* fix

* fix: address quality issues in data marketplace components

- Memoize defaultLayout and add to fetchDocument useCallback deps to
  prevent stale closure
- Use ROUTES.DATA_MARKETPLACE constant instead of hardcoded path string
  in AuthenticatedAppRouter
- Replace hardcoded hex colors with LESS variables in
  customizable-data-marketplace-page.less

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* fix

* fix: add fallback values in useMarketplaceStore for test compatibility

ROUTES can be undefined when tests mock constants/constants without
including all exports. Use optional chaining with fallback values for
store initialization defaults.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* fix: revert Metric breadcrumb to use entity.name instead of getEntityName

Commit 119e9fe accidentally reverted the fix from PR open-metadata#26793 by
changing entity.name back to getEntityName(entity) for Metric
breadcrumbs. In search results, getEntityName() returns the
displayName which contains Elasticsearch highlight HTML fragments
(<span class="text-highlighter">), causing breadcrumbs to render
raw HTML as text. Using entity.name directly returns the plain,
non-highlighted name.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

---------

Co-authored-by: Siddhant <[email protected]>
Co-authored-by: Claude Opus 4.6 <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Siddhant <[email protected]>
Co-authored-by: Siddhant <[email protected]>
Co-authored-by: Siddhant <[email protected]>
Co-authored-by: Gitar <[email protected]>
Co-authored-by: siddhant1 <[email protected]>
Co-authored-by: Siddhant <[email protected]>
Co-authored-by: Siddhant <[email protected]>
Co-authored-by: Siddhant <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Siddhant <[email protected]>
SaaiAravindhRaja pushed a commit to SaaiAravindhRaja/OpenMetadata that referenced this pull request Apr 12, 2026
…6255)

* feat: add customizable Data Marketplace landing page

Add a new Data Marketplace page at /data-marketplace with:
- Greeting banner, search bar with recent searches (per-user via Zustand)
- New Data Products and New Domains widgets with add/view-all actions
- ReactGridLayout-based customizable widget grid
- Per-persona layout persistence via DocStore (same pattern as MyData home page)
- New DataMarketplace PageType in backend schema
- Marketplace section in left sidebar
- Edit mode via /customize-page/:personaFqn/DataMarketplace

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* fix: reduce marketplace widget default height to eliminate gap

Changed marketplaceDataProducts and marketplaceDomains default heights
from 3 to 1 to match the page's MARKETPLACE_ROW_HEIGHT of 200px.

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* refactor: switch marketplace customization to entity detail page pattern

Replace the landing page customization pattern (CustomizeMyData) with
the entity detail page pattern (CustomizeTabWidget) for the Data
Marketplace page. This gives proper drag handles, add/remove controls,
and tab-based widget management.

- Create DataMarketplaceClassBase with default tabs, layouts, widgets
- Create CustomizableDataMarketplacePage using CustomizeTabWidget
- Register DataMarketplace in CustomizePageUtils (all 6 switch statements)
- Add marketplace widgets to GenericWidgetUtils WIDGET_COMPONENTS
- Update DataMarketplacePage to use tab-based layout (8-col grid)
- Clean up old landing page pattern code from CustomizeMyDataPageClassBase
- Move widget keys from LandingPageWidgetKeys to DetailPageWidgetKeys

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* Update generated TypeScript types

* fix

* Fix data marketplace customization page layout and widget ordering

- Align CustomizableDataMarketplacePage layout with DataMarketplacePage
  using shared marketplace-grid-wrapper (900px max-width, centered)
- Remove debug console.log statements from CustomizeStore, CustomizablePage,
  and DataMarketplacePage
- Extract updatedPage variable in moveWidget for clarity

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* Add full-width background image to Data Marketplace header

Import marketplace-bg.png and apply it as a full-width background
behind the greeting banner and search bar, with a CSS mask gradient
for smooth blending into the page background.

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* Improve Data Marketplace page layout and UX

- Hide global search bar and domain dropdown on marketplace page
- Extend gradient background behind transparent navbar to start from viewport top
- Cap widget card max-width to 1/3 for consistent sizing regardless of item count
- Show "View All" link only when more than 3 items exist in a widget

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* Fix Data Marketplace page spacing and padding

Remove horizontal padding from page layout, adjust greeting banner
padding, reduce widget title margin-bottom, and add margin to greeting text.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Add Playwright E2E tests for Data Marketplace page

Add 14 tests across 3 spec files covering core page rendering,
search, navigation, permissions, and customization workflows.

- DataMarketplace.spec.ts: page render, search + navigation, recent
  searches, widget card clicks, View All links
- DataMarketplacePermissions.spec.ts: admin vs data consumer access
- DataMarketplaceCustomization.spec.ts: persona setup, default order,
  drag-and-drop reorder + save, reset to default
- dataMarketplace.ts: reusable helpers (navigateToMarketplace,
  searchMarketplace, closeSearchPopover, verifyGreetingBanner)
- sidebar.ts: add DATA_MARKETPLACE enum value

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Fix marketplace widget section padding by removing height: 100%

The fixed height stretched widgets to fill the grid row, causing
unequal vertical padding. Removing it lets widgets size to content.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Update generated TypeScript types

* Fix marketplace search suggestions visibility, reduce spacing, remove recent searches

- Fix search popover hidden behind widgets by using getVisiblePopupContainer
- Constrain popover width to match search bar using containerRef
- Reduce spacing between navbar/greeting and search/widget sections
- Remove recent search terms feature and associated CSS/tests

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Replace Ant Design search input with Untitled UI Input and fix mask overlay

- Replace Ant Design Input with @openmetadata/ui-core-components Input
  and SearchLg icon from @untitledui/icons
- Move background image to ::before pseudo-element so the CSS mask
  gradient only fades the image, not the content on top
- Remove old Ant Design-specific styles from marketplace-search-bar.less
- Set fontSize="xs" (12px) with proportional icon size (16px)

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Fix Playwright test to target inner input element

The Untitled UI Input component wraps the actual <input> in a
TextField div, so data-testid resolves to the wrapper. Updated
searchMarketplace utility to locate the inner input element.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Add blue background and drag handle to customize marketplace page

- Add customize-details-page blue background (#f0f9ff) with border,
  rounded corners, and shadow to match other customize pages
- Replace react-dnd drag header bars with inline drag handle icon
  (HolderOutlined) inside widget header flex container
- Use dragPreview connector so entire card moves when dragging from handle
- Add dragHandle prop to WidgetCommonProps and pass through widget factory

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Replace react-dnd with react-grid-layout for marketplace customize page

- Use WidthProvider(RGL) with single column layout for smooth drag-and-drop
- Configure draggableHandle with marketplace-drag-handle class selector
- Use DragOutlined icon (18px) with bordered 41x40px handle box
- Set rowHeight to 170px for tight widget spacing
- Add react-grid-layout placeholder styling
- Remove DraggableWidgetCard component and all react-dnd code

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Fix layout normalization, remove customize button, add bg image

- Remove Customize button from DataMarketplacePage
- Normalize saved layout w/x values to prevent width mismatch between
  cols=1 (old) and cols=8 (current) grid configurations
- Match grid cols and margins between customize and regular pages
- Add marketplace background image to customize page header area
- Use Less variables for theme colors, move inline style to CSS

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* locales

* Remove fixed height from marketplace item card, use consistent padding

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* feat: integrate useMarketplaceRecentSearches into MarketplaceSearchBar

Co-authored-by: siddhant1 <[email protected]>

* fix: resolve stale closure in addSearch by reading live preferences state

The addSearch callback previously captured the 'preferences' object from
the render-time closure, which could be stale when multiple searches are
added in quick succession. This caused the hook to lose previously-added
entries.

Fix: use usePersistentStorage.getState().preferences inside the callback
to always read the latest state, and remove 'preferences' from the
dependency array since it's no longer needed there.

Co-authored-by: siddhant1 <[email protected]>

* Replace Ant Design with Untitled UI in Data Marketplace components

Migrate Typography, Popover, and icon imports from antd to
openmetadata-ui-core-components and @untitledui/icons. Remove
broken DataMarketplaceCustomization e2e spec that referenced
a non-existent test ID.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Use Typography from ui-core-components instead of raw HTML elements

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Add PageLayoutV2, configurable AppSidebar, and Sidebar component

- Create Sidebar component in ui-core-components with brand-colored
  active states, collapse support, logo slot, and width animation
- Create useSidebarStore (Zustand) for pages to set custom sidebar items
- Create AppSidebar wrapper that switches between LeftSidebar and
  custom Sidebar based on store state and route constants
- Create PageLayoutV2 as lightweight content-only layout (no antd/MUI)
- Create CustomSidebar.constants for eager route detection (no flicker)
- Migrate DataMarketplacePage to PageLayoutV2 with marketplace sidebar
- Add hasSider to AppContainer Layout for flex-direction compatibility
- Add access-request-plural locale key to all language files

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* code

* padding on settings

* Extract isNewLayoutRoute utility to centralize layout detection

Consolidates duplicated route checks in AppContainer and AppSidebar into
a single isNewLayoutRoute function. Fixes inconsistent includes vs
startsWith usage. Also adds Link wrapper to Sidebar logo and improves
sidebar styling.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Make AppSidebar a pure layout router, Sidebar self-contained

AppSidebar now only decides which sidebar to render based on route.
Sidebar owns its own data: items from getSidebarConfig, collapsed state,
and logo rendering. Removed useSidebarStore and cleaned up MarketplaceLayout.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Defensive shallow clone of defaultLayout in useState initializer

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* fix

* Move MarketplaceNavBar into scrollable layout so header scrolls with page

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Refactor getSidebarConfig to const and use isNewLayoutRoute

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Add NavigationContext for marketplace-scoped navigation and breadcrumbs

All domain and data product navigation within the Data Marketplace now
stays within /data-marketplace/* routes. A NavigationContext provides
context-aware path builders so the same components (DomainDetailPage,
DataProductsPage, etc.) work in both standalone and marketplace modes.

- Create NavigationContext with provider, path builders, and isMarketplace flag
- Add domain and data product detail routes under /data-marketplace
- Update listing hooks, breadcrumbs, and widget click handlers to use context
- Fix sidebar active state with prefix-based URL matching for detail pages

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* announcement

* Fix stale useCallback deps and keyboard accessibility in marketplace widgets

Add missing dependencies (navCtx, dataProductBasePath) to handleClick
useCallback hooks in MarketplaceDomainsWidget and
MarketplaceDataProductsWidget to prevent stale closures. Restore
onKeyDown handler in AnnouncementItemV2 for Enter/Space keyboard
activation (WCAG 2.1 compliance).

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Revert "Fix stale useCallback deps and keyboard accessibility in marketplace widgets"

This reverts commit 97710d8.

* Remove non-existent DRAWER_HEADER_STYLING import, anchor, and zIndex from marketplace widgets

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Use design token for announcement widget background color

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Rename Domains sidebar section to Data Marketplace

Update sidebar constants, test IDs, and Playwright test utilities
to reflect the Data Marketplace section renaming.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Fix Copilot review issues: React imports, stale closures, CSS tokens, and test routes

- Import React types directly instead of using React.* namespace
- Add navCtx to useCallback dependency arrays to prevent stale closures
- Include PageType.DataMarketplace in showWidgetActions condition
- Replace invalid theme() CSS function with var() for runtime usage
- Replace hardcoded hex color with design token variable
- Update Playwright tests to use /data-marketplace/* routes instead of legacy paths
- Fix incorrect CSS selector in test utility

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Add className prop to drawer hooks for z-index control and marketplace UI fixes

Thread className through the drawer hook chain (useDrawer → SlideoutMenu) so
consumers can control overlay z-index. Apply to marketplace data product and
domain drawers to stack above the navbar. Also switch search bar to SelectPopover
and fix slideout-menu formatting.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* fix: address Data Marketplace review feedback — stale deps, Zustand mutation, i18n emoji (open-metadata#26761)

* Initial plan

* fix: address review feedback on Data Marketplace components

- Avoid mutating Zustand state: use [...entries].sort() instead of entries.sort()
- Add navCtx to handleClick useCallback deps in MarketplaceDomainsWidget
- Add dataProductBasePath to handleClick useCallback deps in MarketplaceDataProductsWidget
- Move wave emoji into i18n translation string across all locale files

Co-authored-by: siddhant1 <[email protected]>
Agent-Logs-Url: https://github.com/open-metadata/OpenMetadata/sessions/ff473cf8-8f0b-4002-83dc-6cc2ecd27254

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: siddhant1 <[email protected]>

* Fix drawer z-index, Tailwind important syntax, and formatting cleanup

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Exclude DataMarketplace from data-assets customize category

DataMarketplace has its own separate category and should not appear
in the data-assets list.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* pretty

* Replace NavigationContext with Zustand useMarketplaceStore for marketplace-aware navigation

Replaces the React Context-based NavigationContext with a global Zustand store
(useMarketplaceStore) that manages marketplace-aware domain and data product
path building. MarketplaceLayout sets/clears the context on mount/unmount.
All ~30 navigation points across the codebase now use the store for
marketplace-aware URL construction.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Simplify marketplace navigation: make RouterUtils store-aware

Instead of migrating all consumers to import from useMarketplaceStore,
make getDomainPath/getDomainDetailsPath in RouterUtils internally read
from the store. Add getDataProductDetailsPath. Consumers import from
RouterUtils as before and get marketplace-awareness automatically.
Simplify useMarketplaceStore to only hold state (no path-building methods).

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Fix remaining non-marketplace-aware domain/dataProduct navigation

Replace ROUTES.DOMAIN and ROUTES.DATA_PRODUCT with store-aware
getDomainPath()/getDataProductDetailsPath() in DomainsWidget,
TasksUtils, CustomizableDataProductPage. Replace getEntityDetailsPath
with getDataProductDetailsPath for DATA_PRODUCT in DataProductsContainer,
SummaryDataProducts, DataProductsWidget, EntityUtilClassBase, EntityUtils.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Fix hardcoded /domain path in DomainsWidget footer

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Replace hardcoded '/data-marketplace' with ROUTES.DATA_MARKETPLACE in breadcrumbs

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* pretty

* fix icons

* fix style

* fix

* fix

* fix style

* pretty

* Revert unrelated Prettier formatting changes in Playwright specs

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Fix lint and formatting issues across UI, Playwright, and core-components

Fix import ordering, remove unused EntityType import, convert ternary
expression to if/else in Playwright util, and apply Prettier formatting.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Add Playwright E2E specs for Data Marketplace creation flows, search edge cases, announcements, and greeting verification

Covers missing test gaps: drawer-based DP/domain creation, search empty state, popover dismiss, announcements widget rendering/navigation, and greeting banner personalization. Reuses existing fillCommonFormItems and fillDomainForm from domain.ts utils.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* Fix Prettier formatting in Data Marketplace Playwright specs

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* fix: address reviewer feedback on Data Marketplace components

- Use Typography size/weight props in AnnouncementsWidgetV2 instead of custom tw classes
- Use Card isClickable prop in MarketplaceItemCard; fix Space key activation
- Replace hardcoded hex colors with Less variables in marketplace-widget-shared.less
- Use ROUTES constants in useMarketplaceStore instead of hardcoded path strings

Agent-Logs-Url: https://github.com/open-metadata/OpenMetadata/sessions/ecf92c78-e615-47f5-b318-ff8b5a4fc91c

Co-authored-by: siddhant1 <[email protected]>

* Fix CI: use string literals for marketplace store defaults and lint cleanup

useMarketplaceStore accessed ROUTES.DOMAIN at module init time, causing
TypeError in tests that mock constants without ROUTES. Use string literals
for default values; ROUTES is still used lazily in setMarketplaceContext.
Also removes unused TagSource import found by lint auto-fix.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* fix(ui): address code review issues in marketplace PR

- Use getEntityName() for Metric breadcrumbs to respect displayName
- Use ROUTES constants in useMarketplaceStore initial state to avoid drift
- Assert response.ok() in createAnnouncementViaApi before parsing JSON

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* fix icons

* fix

* fix

* fix: address PR review bugs in data marketplace components

- Fix typo tw:font-semilbold → tw:font-semibold in MarketplaceNav
- Fix invalid theme() CSS value → var() in AnnouncementItemV2
- Add keyboard accessibility (Enter + Space) to AnnouncementItemV2
- Add Space key handling to search result items in MarketplaceSearchBar
- Fix sidebar i18n: convert MARKETPLACE_SIDEBAR_CONFIG to function so
  labels update on locale change
- Fix handleBellClick stale closure in MarketplaceNavBar deps array

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* fix

* fix: address quality issues in data marketplace components

- Memoize defaultLayout and add to fetchDocument useCallback deps to
  prevent stale closure
- Use ROUTES.DATA_MARKETPLACE constant instead of hardcoded path string
  in AuthenticatedAppRouter
- Replace hardcoded hex colors with LESS variables in
  customizable-data-marketplace-page.less

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* fix

* fix: add fallback values in useMarketplaceStore for test compatibility

ROUTES can be undefined when tests mock constants/constants without
including all exports. Use optional chaining with fallback values for
store initialization defaults.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* fix: revert Metric breadcrumb to use entity.name instead of getEntityName

Commit 119e9fe accidentally reverted the fix from PR open-metadata#26793 by
changing entity.name back to getEntityName(entity) for Metric
breadcrumbs. In search results, getEntityName() returns the
displayName which contains Elasticsearch highlight HTML fragments
(<span class="text-highlighter">), causing breadcrumbs to render
raw HTML as text. Using entity.name directly returns the plain,
non-highlighted name.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

---------

Co-authored-by: Siddhant <[email protected]>
Co-authored-by: Claude Opus 4.6 <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Siddhant <[email protected]>
Co-authored-by: Siddhant <[email protected]>
Co-authored-by: Siddhant <[email protected]>
Co-authored-by: Gitar <[email protected]>
Co-authored-by: siddhant1 <[email protected]>
Co-authored-by: Siddhant <[email protected]>
Co-authored-by: Siddhant <[email protected]>
Co-authored-by: Siddhant <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Siddhant <[email protected]>

This branch was previously deployed

1 inactive deployment
test — beb3d0e7 Deployed Mar 26, 2026 by Rohit0301 via playwright-ci-postgresql (2, 6) #38856
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs To release Will cherry-pick this PR into the release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants