Skip to content

cherry-pick: backport UI/Playwright fixes to 2.0 - #32159

Merged
ShaileshParmar11 merged 13 commits into
2.0from
cherry-pick/rohit-backport-to-2.0
Aug 27, 2026
Merged

ShaileshParmar11 merged 13 commits into
2.0from
cherry-pick/rohit-backport-to-2.0

Conversation

@Rohit0301

@Rohit0301 Rohit0301 commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Backports the following PRs from main to the 2.0 branch:

PR Title Status
#31982 fix(ui): render icon/image URLs by real load outcome instead of regex pre-validation merged
#32067 fix(ui): resolve cached-image race in Icon and move IconProps to interface file merged
#32110 fix(ui): apply icon-image classes to the <img> instead of its wrapper span merged
#32112 fix(playwright): select Collate SaaS Runner before password fill in ServiceCreationPermissions merged
#32125 fix(ui): Renamed context center Dashboard to Overview open (individual commits cherry-picked)
#32140 Rename i18n key: what-should-ask-collate-remember → what-should-ai-remember open (individual commits cherry-picked)

Conflict resolutions

Test plan

  • Verify Icon rendering works correctly in 2.0 (no broken images on tags/classification/certification pages)
  • Verify context center header shows "Overview" instead of "Dashboard"
  • Verify AI memory modal shows "What should AI remember?" placeholder
  • Playwright ServiceCreationPermissions test passes with Collate SaaS Runner selected

🤖 Generated with Claude Code

Greptile Summary

This backport updates Context Center terminology and routes, introduces load-outcome-based icon rendering, refreshes AI-memory translations, and adjusts Playwright flows.

  • Renames the Context Center Dashboard surface and URL to Overview.
  • Replaces icon helper rendering with a shared component that handles loading, caching, and fallback states.
  • Renames the AI-memory translation key across supported locales.
  • Selects the Collate SaaS runner in the service-creation permission test.

Confidence Score: 4/5

The PR is not yet safe to merge because existing /context-center/dashboard links still reach an unmatched nested route and render no Context Center content.

The renamed router registers /overview without preserving or redirecting the previously exposed /dashboard path, leaving bookmarks, shared links, and history entries unable to open the renamed page.

Files Needing Attention: openmetadata-ui/src/main/resources/ui/src/components/AppRouter/ContextCenterRouter/ContextCenterRouter.tsx

Important Files Changed

Filename Overview
openmetadata-ui/src/main/resources/ui/src/components/AppRouter/ContextCenterRouter/ContextCenterRouter.tsx Replaces the Dashboard route with Overview, while the previously reported compatibility gap for old deep links remains.
openmetadata-ui/src/main/resources/ui/src/components/common/Icon/Icon.tsx Adds a shared icon and image renderer with browser-load-state handling, cached-image detection, and fallback content.
openmetadata-ui/src/main/resources/ui/src/components/ContextCenter/CreateMemoryModal/CreateMemoryModal.component.tsx Resolves the memory prompt through the Context Center class abstraction using a key present in every updated locale.
openmetadata-ui/src/main/resources/ui/playwright/e2e/Flow/ServiceCreationPermissions.spec.ts Selects the Collate SaaS runner before filling runner-specific connection credentials.

Reviews (2): Last reviewed commit: "Merge branch '2.0' into cherry-pick/rohi..." | Re-trigger Greptile

Rohit0301 and others added 12 commits August 27, 2026 14:43
… pre-validation (#31982)

* fix(ui): render icon/image URLs by real load outcome instead of regex pre-validation

* lint fix

* addressed gitar comment

* addressed gitar comment

* lint fix
…rface file (#32067)

* fix(ui): resolve cached-image race in Icon and move IconProps to interface file

* lint fix
… span (#32110)

* fix(ui): apply icon-image classes to the <img> instead of its wrapper span

* addressed gitar comment

* lint fix

* unit test fix
…erviceCreationPermissions (#32112)

* fix(playwright): select Collate SaaS Runner before filling password in ServiceCreationPermissions test

When the default runner is Remote Runner the form validation requires
passwords to start with the secret: prefix; switching to Collate SaaS
Runner before submitting removes that requirement so the test can use a
plain-text password value.

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

* fix(playwright): move runner selection before password fill to prevent blur-time validation error

RJSF customValidate can fire on field blur; selecting Collate SaaS Runner
after the password is typed means the secret: prefix validation may
trigger while Remote Runner is still active. Select the runner first so
the error is never recorded.

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

---------

Co-authored-by: Claude Sonnet 4.6 <[email protected]>
…ai-remember

Replace the old product-branded key with a generic AI key across the component and all 20 locale files, and move the key from the label namespace to the message namespace where the component expects it.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@Rohit0301
Rohit0301 requested a review from a team as a code owner August 27, 2026 09:14
@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 the UI UI specific issues label Aug 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@Rohit0301 Rohit0301 self-assigned this Aug 27, 2026
@Rohit0301 Rohit0301 added the safe to test Add this label to run secure Github workflows on PRs label Aug 27, 2026
@github-actions

github-actions Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit 6229e4b43b4f9ace115b8dd62e1c8a920fcc7e7f in Playwright run 33063488554, attempt 1.

✅ 790 passed · ❌ 0 failed · 🟡 4 flaky · ⏭️ 0 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) 54m 25s

⏱️ Max setup 3m 9s · max shard execution 18m 42s · max shard-job elapsed before upload 21m 36s · reporting 6s

🌐 197.30 requests/attempt · 2.69 app boots/UI scenario · 22.28% common-shard skew

Optimization targets still in progress:

  • Common shard skew was 22.28% (convergence target: at most 15%).
  • Application boot ratio was 2.69 per UI scenario (2313 boots / 859 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard chromium-01 150 0 0 0 0 0
🟡 Shard chromium-02 143 0 1 0 0 0
🟡 Shard chromium-03 165 0 1 0 0 0
🟡 Shard chromium-04 170 0 2 0 0 0
✅ Shard data-asset-rules-01 61 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 ingestion-01 9 0 0 0 0 0
✅ Shard reindex-01 2 0 0 0 0 0
✅ Shard search-01 11 0 0 0 0 0
✅ Shard search-rbac-01 29 0 0 0 0 0
🟡 4 flaky test(s) (passed on retry)
  • Pages/Entity.spec.ts › Delete Dashboard Data Model (shard chromium-02, 1 retry)
  • Pages/Entity.spec.ts › Tier Add, Update and Remove (shard chromium-03, 1 retry)
  • Features/ContextCenterMemories.spec.ts › typing the linked table name in the asset search returns it as a result (shard chromium-04, 1 retry)
  • Features/ContextCenterMemories.spec.ts › ArrowDown + Enter keyboard navigation selects the linked table result (shard chromium-04, 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

@github-actions

Copy link
Copy Markdown
Contributor

❌ UI Checkstyle Failed

❌ ESLint + Prettier + Organise Imports (src)

One or more source files have linting or formatting issues.

❌ Core Components - I18n Sync

Core-components t() keys, locale files, or language-set are out of sync. Run yarn check-i18n-all locally.

❌ Tailwind Audit

Hardcoded Tailwind values found. Use a design-system utility (run yarn tw-audit:report for the token each value maps to).

❌ Antd + Less Deprecation Guard

A new antd import or new .less file was added. Use UntitledUI + Tailwind for new work.

Affected files

at Function._resolveFilename (node:internal/modules/cjs/loader:1401:15)
at defaultResolveImpl (node:internal/modules/cjs/loader:1057:19)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1062:22)
at Function._load (node:internal/modules/cjs/loader:1211:37)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5)
at node:internal/main/run_main_module:36:49 {


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

make ui-checkstyle-changed

@gitar-bot

gitar-bot Bot commented Aug 27, 2026 •

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

Backports UI and Playwright fixes to the 2.0 branch, but introduces an unused import handleKeyboardActivation in Certification.component.tsx that will fail CI linting.

✅ 1 resolved
✅ Quality: Unused import handleKeyboardActivation in Certification.component

📄 openmetadata-ui/src/main/resources/ui/src/components/Certification/Certification.component.tsx:33
The conflict resolution added import { handleKeyboardActivation } from '../../utils/KeyboardUtil' but it is never referenced — the only keyboard handler in the file (the clear-certification Typography.Text) uses an inline onKeyDown instead. An unused import will fail the project's ESLint no-unused-vars rule and break CI. Either wire it into the existing inline onKeyDown (e.g. onKeyDown={(e) => handleKeyboardActivation(e, updateCertificationData)}) or remove the import.

Options

Display: compact → Showing less information.

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: 67%
67.07% (80429/119913) 51.56% (49275/95559) 52.44% (14696/28021)

@sonarqubecloud

Copy link
Copy Markdown

@ShaileshParmar11
ShaileshParmar11 merged commit 020663a into 2.0 Aug 27, 2026
87 of 90 checks passed
@ShaileshParmar11
ShaileshParmar11 deleted the cherry-pick/rohit-backport-to-2.0 branch August 27, 2026 12:10

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