Repository navigation
fix(ui): learning icon matches CopyButton; new AdvancedSearch, Style and Insights icons - #37973
Conversation
LearningIcon rendered a sm ButtonUtility but forced a 20px glyph with no padding and align-middle, so it was smaller and tighter than the CopyButton beside it. Use the lg ButtonUtility as-is (size prop kept, defaults to lg). Teams header no longer pushes the icon to the far right; Test Library uses tw: flex spacing.
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
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 |
…01 artwork Copy and learning icon-only buttons sit in their own gap-1 group in the entity headers, so the row's 12px gap only separates badges and Follow.
- Explore Tools menu: Advanced Search uses AdvancedSearch instead of FilterFunnel01. - Style menu items (tag, glossary term, domain, data product) use ImageBrush instead of Brush01; named after the glyph because every caller already imports the generated Style type. Domain and data product put the learning icon before the status badge so it sits in the copy/learning group. - Left sidebar Insights uses Insights instead of Lightbulb01. Its mask-based inner stroke is flattened to a plain 1.3 stroke so currentColor theming works.
…resh Playwright impact map The status-badge margin moves into the existing statusBadge ternary instead of a second && branch at the render site (sonarjs/cyclomatic-complexity 11 > 10). The impact map was stale on main; regenerated.
Code Review ✅ Approved 🟢 Low risk 1 closed / 1 findingsThe PR changes UI icon artwork, sizing, and spacing only, limiting impact to presentation without changing application behavior or access rules. Learning icon now uses ✅ 1 closed✅ Quality: LearningIcon lg default contradicts recorded v6 xs/sm sizing rule
VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
* test(playwright): refresh stale 2.1 visual baselines and fix shell menu scenes Refresh 32 baselines from the 2.1 nightly (run 44266671648) actuals. Every diff traces to an intended change that arrived with the main merge: Tableau connected-app auth option (#37084), 400px entity summary panel (#37888), unified CopyButton (#37953), new Insights/AdvancedSearch icons (#37973), Data Estate connector counts (#37910) and the users Name/Email columns (#37127, #37998). shell-profile-menu and shell-mode-menu waited for my-data-page, which #38077 removed from /my-data in AI mode; wait for home-landing-page. * test(playwright): complete 2.1 shell and expanded Tableau baselines
Describe your changes:
No linked issue — UI polish follow-up to the CopyButton unification (#37953).
1. Learning icon matches CopyButton.
LearningIconrendered asmButtonUtilityand then forced a 20px glyph withp-0andalign-middle, so the lightbulb was a cramped ~24px box next to the 32pxCopyButton. It now usesButtonUtilityas-is atlg(32px box, 20px glyph, 6px padding). Thesizeprop is kept and defaults tolg.PageHeaderstops passingsize="xs"; the icon-only-actions ADR gets a v10 amendment recordinglg.flex-1 justify-endwrapper that pushed the icon to the far right.flex gap-2 items-center m-b-xss→tw:equivalents.2. Copy and learning sit 4px apart.
EntityPageTitle,EntityHeaderTitleand the test-suite header group the two icon-only actions in agap={1}box; the row's 12px gap still separates badges and Follow. Domain and Data Product render the learning icon before the status badge so it joins that group.3. New core-ui icons (
openmetadata-ui-core-components/.../icons, generated withscripts/generate-icons.mjs):AdvancedSearch— Explore Tools → Advanced Search (wasFilterFunnel01). No other Advanced Search entry uses a filter icon.ImageBrush— Style item in the Tag, Glossary term, Domain and Data Product manage menus (wasBrush01). Not namedStyle: every caller already imports the generatedStyletype.Brush01stays exported for downstream consumers.Insights— left sidebar Insights (wasLightbulb01). The source SVG drew the bulb with a mask; the generator rewrites the mask's black fill tocurrentColor, so the mask is flattened to a plain 1.3 stroke on the same path.Lightbulb01regenerated from the design team's updatedlightbulb-01.svg.Type of change:
High-level design:
N/A — small change.
Tests:
Use cases covered
Unit tests
ExploreV1.test.tsxicon mock updated. No new tests: visual changes only.tsc --noEmit: no errors in changed files (one pre-existing error inOMSelectWidget.tsx, untouched here).Backend integration tests
Playwright
Manual testing
Local dev server against sample data. The learning-resources API was stubbed to return a count so the learning icon renders on every page.
Learning icon (+ copy button where present)
Advanced Search icon — Explore Tools menu
Style icon — manage menus
Insights icon — left sidebar
Checklist:
Fixes <issue-number>: <short explanation>— no issue; conventional-commit title used.🤖 Generated with Claude Code


Confidence Score: 5/5
The reviewed changes appear safe to merge.Summary
Updates the learning button to match
CopyButtonand adds icons for Advanced Search, Style, and Insights.Reviews (4) · Last reviewed commit: "fix(ui): keep Domain and Data Product un..." · Reviewed by Greptile