Skip to content

fix(ui): dark-mode Workflows cards and Marketplace sections - #33960

Closed
shah-harshit wants to merge 4 commits into
mainfrom
fix/workflow-cards-dark
Closed

shah-harshit wants to merge 4 commits into
mainfrom
fix/workflow-cards-dark

Conversation

@shah-harshit

@shah-harshit shah-harshit commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Dark-mode polish for the AI-mode Workflows page (/workflows) and the Data Marketplace overview (/data-marketplace).

Area Change
Workflow card hover Matches the AI Automations template card and the entity cards: shadow-xs at rest; on hover a brand-300 (#84caff) border, shadow-lg and a 2px lift, 160ms ease. Both themes.
Grid container + pagination footer Were bg-primary (#0c0e12), a darker panel on the page background (rgb(19,22,27)). Dark adds tw:dark:bg-transparent so the page background shows through; borders kept. Light unchanged.
Disabled Previous / Next Legacy 25%-black disabled colour vanished on the dark page; dark now uses --om-color-text-disabled (antd disabled buttons + pagination). Same rules as #33905, so whichever merges second applies cleanly.
Marketplace widget sections New Data Products / New Domains sections were bg-primary framing bg-surface item cards; .marketplace-widget-section now --om-color-bg-surface, so section and cards share one colour. Light: white, unchanged.
Marketplace item cards Data product / domain cards (MarketplaceItemCard) → tw:dark:bg-secondary, the Explore entity-card tone, a step below the sections.

tw:hover:border-brand-300 triggers the no-non-adaptive-palette lint warning on purpose: the template card uses the same fixed #84caff in both themes, and utility-brand-300 would flip to a dark blue (#175cd3) in dark and no longer match.

Type of change:

  • Bug fix

Testing

  • Verified live in dark on /workflows: hovered card shows the #84caff border, shadow-lg and translate: 0 -2px; grid container and footer compute transparent over the rgb(19,22,27) page
  • Disabled Previous/Next compute rgb(123,127,134) in dark (were rgba(0,0,0,0.25))
  • /data-marketplace dark: sections rgb(34,38,47), item cards rgb(19,22,27)
  • jest WorkflowDefinitions (components + pages): 101 passed
  • Prettier clean; ESLint 0 errors (the one pre-existing exhaustive-deps warning in WorkflowsPage is untouched)

Workflow cards get the AI Automations template-card hover (brand-300
border, shadow-lg, 2px lift, 160ms) plus shadow-xs at rest. In dark the
grid container and pagination footer drop bg-primary so the page
background shows through instead of a darker panel. Light unchanged.
@shah-harshit shah-harshit added UI UI specific issues safe to test Add this label to run secure Github workflows on PRs labels Sep 24, 2026
@shah-harshit shah-harshit added the skip-pr-checks Bypass PR metadata validation check label Sep 24, 2026
@shah-harshit shah-harshit added UI UI specific issues safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check labels Sep 24, 2026
@shah-harshit shah-harshit self-assigned this Sep 24, 2026
Disabled antd buttons and pagination used the legacy 25%-black colour,
which vanished on the dark page. Retint to --om-color-text-disabled
under .dark-mode (same rules as #33905, so the two merge cleanly).
The New Data Products / New Domains sections were bg-primary, a darker
frame around bg-surface item cards. Use the surface token so section
and cards share one colour; light stays white.
@shah-harshit shah-harshit changed the title fix(ui): workflow card hover and blend grid container into page in dark mode fix(ui): dark-mode Workflows cards and Marketplace sections Sep 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ UI Checkstyle passed — lint findings in changed files

🔍 ESLint findings in this PR's files — 0 error(s), 2 warning(s)

Errors block the build. Warnings do not yet — they are rules whose backlog is still
being worked down, listed so this PR does not add to it. See docs/ui-code-quality-gate.md.

0 error(s), 2 warning(s) across 2 changed file(s).

Count Rule
1 openmetadata-ui-patterns/no-non-adaptive-palette
1 react-hooks/exhaustive-deps
All findings
Location Rule Message
🟡 src/components/WorkflowDefinitions/WorkflowCard/WorkflowCard.component.tsx:45:9 openmetadata-ui-patterns/no-non-adaptive-palette Raw palette class "tw:hover:border-brand-300" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:border-utility-brand-300)
🟡 src/pages/WorkflowDefinitions/WorkflowsPage/WorkflowsPage.tsx:148:6 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 'navigate'. Either include it or remove the dependency array.

Fix locally (fast - only checks files changed in this branch):

make ui-checkstyle-changed

Data product and domain cards move to bg-secondary in dark, the Explore
entity-card tone, so they sit a step below the bg-surface sections.
@gitar-bot

gitar-bot Bot commented Sep 24, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

🟢 Low risk · Dark-mode styling updates adjust workflow and marketplace card appearance and disabled text.

Dark-mode polish for Workflows and Data Marketplace pages: workflow cards now match entity card styling with hover effects (brand-300 border, shadow-lg, 2px lift), grid containers blend into the page background, disabled pagination buttons use the correct text-disabled color, and marketplace sections and item cards align to a consistent color scheme. No issues found.

Review coverage

📋 Rules No rules evaluated

🧪 Functional validation Not enabled · Set up

🤖 Auto-approval Not enabled · Set up

Options

Display: compact → Counting what did not apply, without listing it.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@github-actions

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 73%
73% (105227/144131) 58.36% (64505/110524) 59.33% (21156/35656)

@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit 70dc7dd23e5c23561b05a85a75c7dd0c2a4f3bdf in Playwright run 35997655652, attempt 1.

✅ 4578 passed · ❌ 0 failed · 🟡 8 flaky · ⏭️ 1 skipped · 🧰 0 lifecycle flaky

Performance

Blocking targets: ✅ met · Optimization targets: 🟡 in progress

Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting.

🕒 Full workflow signal wall (to summary) 1h 6m 14s

⏱️ Max setup 5m 11s · max shard execution 23m 17s · max shard-job elapsed before upload 26m 17s · reporting 26s

🌐 128.40 requests/attempt · 2.24 app boots/UI scenario · 41.09% common-shard skew

Optimization targets still in progress:

  • Common shard skew was 41.09% (convergence target: at most 15%).
  • Application boot ratio was 2.24 per UI scenario (10912 boots / 4882 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard advanced-search-01 130 0 0 0 0 0
✅ Shard chromium-01 168 0 0 0 0 0
🟡 Shard chromium-02 166 0 2 0 0 0
🟡 Shard chromium-03 177 0 1 0 0 0
✅ Shard chromium-04 208 0 0 0 0 0
✅ Shard chromium-05 190 0 0 0 0 0
✅ Shard chromium-06 159 0 0 0 0 0
✅ Shard chromium-07 166 0 0 0 0 0
✅ Shard chromium-08 165 0 0 0 0 0
🟡 Shard chromium-09 177 0 1 0 0 0
✅ Shard chromium-10 196 0 0 0 0 0
✅ Shard chromium-11 158 0 0 0 0 0
✅ Shard chromium-12 168 0 0 0 0 0
✅ Shard chromium-13 168 0 0 0 0 0
✅ Shard chromium-14 153 0 0 0 0 0
✅ Shard chromium-15 163 0 0 0 0 0
✅ Shard chromium-16 198 0 0 0 0 0
✅ Shard chromium-17 185 0 0 0 0 0
✅ Shard chromium-18 166 0 0 0 0 0
✅ Shard chromium-19 145 0 0 0 0 0
🟡 Shard chromium-20 174 0 1 0 0 0
✅ Shard chromium-21 170 0 0 1 0 0
🟡 Shard chromium-22 173 0 1 0 0 0
🟡 Shard chromium-23 208 0 1 0 0 0
🟡 Shard data-asset-rules-01 64 0 1 0 0 0
✅ Shard domain-isolation-01 16 0 0 0 0 0
✅ Shard global-state-01 34 0 0 0 0 0
✅ Shard import-export-01 51 0 0 0 0 0
✅ Shard import-export-02 99 0 0 0 0 0
✅ Shard ingestion-01 46 0 0 0 0 0
✅ Shard ingestion-02 55 0 0 0 0 0
✅ Shard reindex-01 41 0 0 0 0 0
✅ Shard search-01 12 0 0 0 0 0
✅ Shard search-rbac-01 29 0 0 0 0 0
🟡 8 flaky test(s) (passed on retry)
  • Pages/CustomProperties.spec.ts › Markdown (shard chromium-02, 1 retry)
  • Pages/CustomProperties.spec.ts › Sql Query (shard chromium-02, 1 retry)
  • Pages/Entity.spec.ts › Domain Add, Update and Remove (shard chromium-03, 1 retry)
  • Features/ColumnBulkOperations.spec.ts › should update display name and propagate to all occurrences (shard chromium-09, 1 retry)
  • Features/AIMode/CustomPropertiesPanel.spec.ts › deletes a custom property via the confirmation modal (shard chromium-20, 1 retry)
  • Features/ColumnBulkOperations.spec.ts › should expand STRUCT column to show nested fields (shard chromium-22, 1 retry)
  • Features/Glossary/GlossaryP3Tests.spec.ts › should maintain session during normal operations (shard chromium-23, 1 retry)
  • Features/DataAssetRulesDisabled.spec.ts › should allow multiple domain selection for glossary term when entity rules are disabled (shard data-asset-rules-01, 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

shah-harshit added a commit that referenced this pull request Sep 25, 2026
@shah-harshit

Copy link
Copy Markdown
Contributor Author

Moved into #33987 (merged this branch there; the marketplace section surface now lives on the component via tw:bg-surface instead of LESS). Closing in favour of #33987.

auto-merge was automatically disabled September 25, 2026 05:36

Pull request was closed

This branch was previously deployed

1 inactive deployment
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 skip-pr-checks Bypass PR metadata validation check UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant