Skip to content

fix(ui-core): keep Typography text primary inside links and run visual regression on core-components changes - #33950

Merged
karanh37 merged 3 commits into
mainfrom
ShaileshParmar11/dq-dashboard-header-color
Sep 25, 2026
Merged

karanh37 merged 3 commits into
mainfrom
ShaileshParmar11/dq-dashboard-header-color

Conversation

@ShaileshParmar11

@ShaileshParmar11 ShaileshParmar11 commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

#33808 removed color: text-primary from core .prose, so Typography now inherits colour. Anywhere a whole card is a <Link>, its titles and values turn link-blue. Example: DQ dashboard Data Dimensions and Test Case Status cards.

This PR restores primary colour for Typography inside links only, with one core rule and no per-component overrides:

 /* openmetadata-ui-core-components/.../styles/typography.css */
+@layer base {
+  :where(a) .prose {
+    color: theme(--color-text-primary);
+  }
+}
  • Outside links, Typography still inherits, as fix(css): cleanup default font styles #33808 intended.
  • The rule is in @layer base, so a color prop or tw:text-* class still wins.
  • --color-text-primary switches with the theme, so dark mode is covered.

Visual regression didn't catch #33808 because the job was skipped there (PR run 35719814030 and all 3 merge-queue runs). The path allowlist added in #33648 has no entry for core-components, even though the UI links and builds it in preinstall:

 check-changes / paths-filter / ui:
   - 'openmetadata-ui/src/main/resources/ui/src/**'
   ...
+  - 'openmetadata-ui-core-components/**'

Evidence

Checked on a local dev server (/data-quality):

Typography inside <a> (26 on dashboard) tw:text-tertiary / tw:text-brand-700 inside <a>
main (after #33808) rgb(23, 92, 211) link blue n/a
this PR, light rgb(24, 29, 39) primary rgb(83, 88, 98) / rgb(23, 92, 211) (override wins)
this PR, dark rgb(247, 247, 247) n/a
  • Core typography.test.tsx: 22 passed.
  • data-quality.png baseline (captured before fix(css): cleanup default font styles #33808) has dark titles again. The visual job runs on this PR because the workflow file changed.
  • Screenshots: to be attached in a comment.

Merge Danger

Door: two-way

Revert is one commit. CSS and CI filter only.

Blast Radius: app-wide, small

🤖 Generated with Claude Code

…sion on core-components changes

#33808 dropped the default text colour from core Typography, so text in
card-wide Links (Data Dimensions, test-case status, incident type widgets)
inherited the link blue. Pin those cards back to text-primary.

The regression slipped through because the visual-regression path filter
(#33648) did not include openmetadata-ui-core-components/**, so the job
was skipped on #33808 and its merge-queue runs.
Copilot AI lite review requested due to automatic review settings September 24, 2026 10:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@github-actions github-actions Bot added safe to test Add this label to run secure Github workflows on PRs UI UI specific issues labels Sep 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 72%
72.84% (105350/144629) 58.21% (64538/110867) 59.15% (21153/35758)

@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit 76bf87d799c166dcee1a1633a55763c9f76ebdb8 in Playwright run 36002514888, attempt 1.

✅ 4581 passed · ❌ 0 failed · 🟡 5 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 9m 42s

⏱️ Max setup 5m 30s · max shard execution 22m 33s · max shard-job elapsed before upload 26m 15s · reporting 23s

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

Optimization targets still in progress:

  • Common shard skew was 37.55% (convergence target: at most 15%).
  • Application boot ratio was 2.24 per UI scenario (10905 boots / 4876 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 168 0 0 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 165 0 1 0 0 0
✅ Shard chromium-08 165 0 0 0 0 0
✅ Shard chromium-09 178 0 0 0 0 0
✅ Shard chromium-10 196 0 0 0 0 0
🟡 Shard chromium-11 157 0 1 0 0 0
✅ Shard chromium-12 168 0 0 0 0 0
✅ Shard chromium-13 168 0 0 0 0 0
🟡 Shard chromium-14 152 0 1 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 174 0 0 0 0 0
✅ Shard chromium-23 209 0 0 0 0 0
✅ Shard data-asset-rules-01 65 0 0 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
🟡 5 flaky test(s) (passed on retry)
  • Pages/Entity.spec.ts › Domain Add, Update and Remove (shard chromium-03, 1 retry)
  • Pages/ExplorePageRightPanel.spec.ts › Should verify deleted user not visible in owner selection for database (shard chromium-07, 1 retry)
  • Features/Table.spec.ts › Glossary term should be consistent for search (shard chromium-11, 1 retry)
  • Features/ExploreQuickFilters.spec.ts › should show correct count for tier filter options from aggregation (shard chromium-14, 1 retry)
  • Features/AIMode/CustomPropertiesPanel.spec.ts › edits a custom property display name and description (shard chromium-20, 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

@ShaileshParmar11
ShaileshParmar11 added this pull request to the merge queue Sep 24, 2026
@ShaileshParmar11
ShaileshParmar11 removed this pull request from the merge queue due to a manual request Sep 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — manual (2026-09-24T12:18:49Z)

The entry left the queue before it was built, so no checks ran against it.

…r-widget overrides

Move the fix for #33808's link-blue text into core: one layered rule gives
.prose primary text inside any <a>, so card-wide links across the app stop
painting titles and values blue. Outside links Typography still inherits,
and a color prop or tw:text-* class still wins. Drops the DQ-only
chart-widgets.less override.
Copilot AI review requested due to automatic review settings September 24, 2026 12:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@ShaileshParmar11 ShaileshParmar11 changed the title fix(ui): keep DQ chart-widget card text primary and run visual regression on core-components changes fix(ui-core): keep Typography text primary inside links and run visual regression on core-components changes Sep 24, 2026
@ShaileshParmar11
ShaileshParmar11 added this pull request to the merge queue Sep 24, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — failed_checks (2026-09-24T20:48:59Z)

Blocked the queue: playwright-summary

@karanh37
karanh37 added this pull request to the merge queue Sep 25, 2026

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 UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants