Skip to content

fix(ui): learning icon matches CopyButton; new AdvancedSearch, Style and Insights icons - #37973

Merged
Rohit0301 merged 5 commits into
mainfrom
Rohit0301/learning-icon-alignment-size-review
Nov 17, 2026
Merged

Rohit0301 merged 5 commits into
mainfrom
Rohit0301/learning-icon-alignment-size-review

Conversation

@Rohit0301

@Rohit0301 Rohit0301 commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

No linked issue — UI polish follow-up to the CopyButton unification (#37953).

1. Learning icon matches CopyButton. LearningIcon rendered a sm ButtonUtility and then forced a 20px glyph with p-0 and align-middle, so the lightbulb was a cramped ~24px box next to the 32px CopyButton. It now uses ButtonUtility as-is at lg (32px box, 20px glyph, 6px padding). The size prop is kept and defaults to lg.

  • PageHeader stops passing size="xs"; the icon-only-actions ADR gets a v10 amendment recording lg.
  • Teams header: removed the flex-1 justify-end wrapper that pushed the icon to the far right.
  • Test Library list: legacy flex gap-2 items-center m-b-xss → tw: equivalents.

2. Copy and learning sit 4px apart. EntityPageTitle, EntityHeaderTitle and the test-suite header group the two icon-only actions in a gap={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 with scripts/generate-icons.mjs):

  • AdvancedSearch — Explore Tools → Advanced Search (was FilterFunnel01). No other Advanced Search entry uses a filter icon.
  • ImageBrush — Style item in the Tag, Glossary term, Domain and Data Product manage menus (was Brush01). Not named Style: every caller already imports the generated Style type. Brush01 stays exported for downstream consumers.
  • Insights — left sidebar Insights (was Lightbulb01). The source SVG drew the bulb with a mask; the generator rewrites the mask's black fill to currentColor, so the mask is flattened to a plain 1.3 stroke on the same path.
  • Lightbulb01 regenerated from the design team's updated lightbulb-01.svg.

Type of change:

  • Bug fix
  • Improvement

High-level design:

N/A — small change.

Tests:

Use cases covered

  • Learning icon renders at the CopyButton size and is centred on the title on all 17 pages below.
  • Copy and learning buttons are 4px apart on entity headers.
  • Explore Advanced Search, the four Style menu items and the sidebar Insights item show the new icons, including the sidebar's active state.

Unit tests

  • Existing suites pass: Learning, PageHeader, TeamDetails, TestDefinitionList, ExploreV1, EntityHeaderTitle, EntityPageTitle, TestSuiteDetailsPage, DomainDetails, DataProductsDetailsPage, GlossaryHeader, TagPage. ExploreV1.test.tsx icon mock updated. No new tests: visual changes only.
  • tsc --noEmit: no errors in changed files (one pre-existing error in OMSelectWidget.tsx, untouched here).

Backend integration tests

  • Not applicable (no backend API changes).

Playwright

  • Not applicable — visual changes only.

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)

Page Screenshot
Test Suite details Test Suite
Table (data asset header) Table
Domain Domain
Data Product Data Product
Glossary term Glossary term
Tag Tag
Teams Teams
Test Library Test Library
Explore Explore
Glossary Glossary
Tags Tags
Data Insights Data Insights
Alerts Alerts
Data Quality Data Quality
Incident Manager Incident Manager
Workflows Workflows
Lineage Lineage

Advanced Search icon — Explore Tools menu

Explore Tools menu

Style icon — manage menus

Tag Domain
Tag style Domain style
Glossary term Data Product
Glossary term style Data Product style

Insights icon — left sidebar

Default Active
Sidebar Insights Sidebar Insights active

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation> — no issue; conventional-commit title used.
  • I have commented on my code, particularly in hard-to-understand areas.
  • ESLint / Prettier clean on changed files (0 errors).

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The reviewed changes appear safe to merge.

Summary

Updates the learning button to match CopyButton and adds icons for Advanced Search, Style, and Insights.

  • The learning button defaults to the same size as CopyButton.
  • Copy and learning actions sit four pixels apart in entity headers.
  • Explore's Advanced Search menu shows a search-specific icon.
  • Style actions in four manage menus show an image-and-brush icon.
  • The sidebar Insights item shows its own lightbulb icon.
  • The generated Playwright impact map drops several source-to-test links.

Reviews (4) · Last reviewed commit: "fix(ui): keep Domain and Data Product un..." · Reviewed by Greptile

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.
@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.

…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.
@Rohit0301 Rohit0301 changed the title fix(ui): learning icon matches CopyButton size and aligns with titles fix(ui): learning icon matches CopyButton; new AdvancedSearch, Style and Insights icons Nov 17, 2026
…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.
@gitar-bot

gitar-bot Bot commented Nov 17, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟢 Low risk 1 closed / 1 findings

The PR changes UI icon artwork, sizing, and spacing only, limiting impact to presentation without changing application behavior or access rules.

Learning icon now uses ButtonUtility at lg with a 32px box and 20px glyph, matching CopyButton, and sits after the team name in the header. The resolved finding addressed a conflict between the lg default and the recorded v6 ADR sizing rule, which is now amended to lg. No open issues remain.

✅ 1 closed
✅ Quality: LearningIcon lg default contradicts recorded v6 xs/sm sizing rule

📄 openmetadata-ui/src/main/resources/ui/src/components/Learning/LearningIcon/LearningIcon.component.tsx:45 📄 openmetadata-ui/src/main/resources/ui/src/components/Learning/LearningIcon/LearningIcon.interface.ts:18-19 📄 openmetadata-ui/src/main/resources/ui/src/components/PageHeader/PageHeader.component.tsx:63
The v6 amendment of docs/decisions/2026-10-14-icon-only-actions-are-tertiary-button-utility-with-one-edit-icon.md (lines 85-88) says the PageHeader learning bulb is xs so its 12px glyph matches a 16px heading's cap height, and that every other LearningIcon placement stays sm. This PR drops size="xs" from PageHeader and changes the default to lg, so every caller (PageHeader, TeamDetailsV1, TestDefinitionList, usePageHeader, DataAssetsHeader and others) now renders a 32px box. The PR doesn't amend that record, so the tree now asserts a rule the code breaks. The next reviewer applying the ADR would push the size back to xs/sm.

Add an amendment that replaces v6. It could say: "LearningIcon is lg everywhere, including beside the PageHeader heading, so it matches the CopyButton it usually sits beside." That wording comes from the description's "uses the same large ButtonUtility size as CopyButton and aligns with page titles".

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

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

@Rohit0301
Rohit0301 merged commit 4cb0b4c into main Nov 17, 2026
54 of 56 checks passed
@Rohit0301
Rohit0301 deleted the Rohit0301/learning-icon-alignment-size-review branch November 17, 2026 14:33
shah-harshit added a commit that referenced this pull request Nov 18, 2026
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants