Repository navigation
Conversation
| }, | ||
| { | ||
| name: getEntityName(entity), | ||
| name: entity.name, |
There was a problem hiding this comment.
Why we need to add name explicit?
There was a problem hiding this comment.
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
Code Review ✅ Approved 1 resolved / 1 findingsFixes 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
OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
|
🟡 Playwright Results — all passed (25 flaky)✅ 3397 passed · ❌ 0 failed · 🟡 25 flaky · ⏭️ 217 skipped
🟡 25 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
|
Failed to cherry-pick changes to the 1.12.4 branch. |
…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]>
* 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]>
…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]>
…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]>



Describe your changes:
Fixes 3339
I worked on ... because ...
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>