Skip to content

feat(ui): Remove resources count badge and add icon in left panel - #25735

Merged
anuj-kumary merged 3 commits into
mainfrom
learning-icon
Feb 6, 2026
Merged

anuj-kumary merged 3 commits into
mainfrom
learning-icon

Conversation

@anuj-kumary

@anuj-kumary anuj-kumary commented Feb 6, 2026 •

Copy link
Copy Markdown
Member

Describe your changes:

Improves the Learning icon placement and popover styling across Glossary, Classifications, Data Insights, and Domains.

  • Move Learning icon to left panel for Glossary, Classifications, Data Insights, and Domains
  • Add configurable learningPageId and learningTitle to ResizableLeftPanels
  • Reduce popover gap and content spacing
  • Add rounded background styling to Learning icon badge
Screen.Recording.2026-02-06.at.5.03.43.PM.mov

Summary by Gitar

  • Learning icon relocation:
    • Moved from page headers to left panel titles in ResizableLeftPanels across Glossary, Classifications, Data Insights, and Domains
    • Added conditional display logic for Glossary (terms only) and Domains (tree view only)
  • Component enhancement:
    • New learningPageId and learningTitle props in ResizablePanels.interface.ts enable configurable context per page
  • MUI migration:
    • Replaced Ant Design Badge and Button with MUI Button using theme.palette and theme.shadows tokens
    • Updated to ArrowForwardIcon from @mui/icons-material with proper sx styling
  • Popover redesign:
    • Gradient background (@grey-50 to @grey-100), reduced gap to 6px, removed arrow, added rounded background to icon badge

This will update automatically on new commits.


Type of change:

  • Bug fix
  • Improvement
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.

@gitar-bot

gitar-bot Bot commented Feb 6, 2026 •

Copy link
Copy Markdown
🔍 CI failure analysis for 0cad774: CI failures in 2 jobs (hard failures in ProfilerConfiguration and Dashboard search, 19 flaky tests) are unrelated to PR's Learning icon changes. Zero overlap between modified components and failed tests. Flaky tests all passed on retry, indicating test infrastructure issues.

Issue

Multiple Playwright CI jobs failed with hard failures and flaky tests:

  • Job (6, 6): 1 failed, 7 flaky (all passed on retry), 541 passed
  • Job (3, 6): 1 failed, 12 flaky (all passed on retry), 620 passed

Root Cause

The CI failures are NOT caused by this PR. There is zero overlap between modified code and failed tests:

Hard Failures (Unrelated to PR):

  1. Job (6, 6) - ProfilerConfigurationPage.spec.ts › Admin user

    • Error: Page closed unexpectedly and assertion failures
    • ProfilerConfiguration page was not modified in this PR
  2. Job (3, 6) - CustomPropertyAdvanceSeach.spec.ts › Dashboard › String CP with all operators

    • Error: expect(locator).toBeVisible() failed - Dashboard card not found within 5000ms
    • Dashboard custom property search was not modified in this PR

Flaky Tests (19 total, all passed on retry):

  • Job (6, 6): 7 flaky (GlossaryImportExport tests, Lineage, ServiceEntity, Tag, Users)
  • Job (3, 6): 12 flaky (Impact Analysis, Permissions, Custom Properties, Metrics, Service Forms, etc.)
  • Common pattern: expect(locator).toBeVisible() failed due to timing issues
  • All passed on automatic retry without code changes, indicating test infrastructure/timing problems

Why PR Changes Don't Cause These Failures:

  1. No Code Overlap: PR modifies Learning icon placement in Glossary/Classifications/DataInsights/Domains pages only. Failed tests are for Dashboard search, ProfilerConfiguration, Custom Properties, Metrics, Service Forms, Permissions - completely different UI areas.

  2. Cosmetic Changes Only: PR relocates Learning icon from headers to left panels (visual change). No changes to search logic, custom properties, permissions, forms, or data rendering.

  3. Test Flakiness Pattern: 19 flaky tests all passed on retry without code changes, indicating pre-existing test environment instability, not code defects.

Details

Modified Components in PR:

  • LearningIcon component (styling and MUI migration)
  • ResizableLeftPanels (added learning icon support)
  • Glossary, Classifications, DataInsights, Domains page headers

Failed Test Areas (None Modified):

  • Dashboard custom property advanced search
  • Profiler configuration
  • Service forms and SSL cert upload
  • Metric unit of measurement
  • Impact analysis lineage
  • Permission checks
  • Restore entity inherited fields

The Learning icon component changes are purely presentational and isolated to specific pages, making it impossible for them to cause failures in unrelated test suites.

Code Review 👍 Approved with suggestions 1 resolved / 2 findings

Clean refactoring that moves Learning icons to left panels and migrates from Ant Design to MUI. One minor dead-code issue with conflicting border-radius values between LESS and MUI sx props.

💡 Quality: Dead LESS border-radius: 8px overridden by MUI sx 10px

📄 openmetadata-ui/src/main/resources/ui/src/components/Learning/LearningIcon/learning-icon.less:68 📄 openmetadata-ui/src/main/resources/ui/src/components/Learning/LearningIcon/LearningIcon.component.tsx:82

The .learning-tooltip-button LESS rule sets border-radius: 8px while the MUI sx prop on the same Button sets borderRadius: '10px'. Since MUI sx generates higher-specificity inline styles, the LESS rule is effectively dead code and the two values are inconsistent (8px vs 10px).

Suggested fix: Remove border-radius: 8px from the LESS file since the MUI sx prop controls this value, or align the two values if the LESS rule is meant as a fallback:

.learning-tooltip-button {
  // border-radius controlled by MUI sx prop
  min-width: 0;
}
✅ 1 resolved
✅ Bug: LESS !important border-radius conflicts with MUI sx value

📄 openmetadata-ui/src/main/resources/ui/src/components/Learning/LearningIcon/learning-icon.less:68 📄 openmetadata-ui/src/main/resources/ui/src/components/Learning/LearningIcon/LearningIcon.component.tsx:82
The LESS file sets .learning-tooltip-button { border-radius: 8px !important; } while the MUI Button's sx prop sets borderRadius: '10px'. Because !important in a stylesheet typically overrides inline styles (and MUI sx uses style or injected CSS), the actual rendered border-radius will likely be 8px from the LESS file, not 10px from the sx prop.

This creates a confusing situation where the sx prop value is effectively dead code. To fix, either:

  • Remove borderRadius: '10px' from the sx prop and keep the LESS rule as the single source of truth, or
  • Remove the border-radius: 8px !important from LESS and let the sx prop control it (preferred for MUI migration), or
  • Align both to the same value.

Impact: The visual outcome is fine (8px border-radius looks similar to 10px), but having conflicting style definitions makes future maintenance harder.

Tip

Comment Gitar fix CI or enable auto-apply: gitar auto-apply:on

Options

Auto-apply is off → Gitar will not commit updates to this branch.
Display: compact → Showing less information.

Comment with these commands to change:

Auto-apply Compact
gitar auto-apply:on         
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

@github-actions

github-actions Bot commented Feb 6, 2026

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 65%
65.84% (56033/85109) 45.18% (29335/64930) 47.95% (8848/18454)

@sonarqubecloud

sonarqubecloud Bot commented Feb 6, 2026

Copy link
Copy Markdown

@anuj-kumary
anuj-kumary merged commit 0026d0a into main Feb 6, 2026
20 of 22 checks passed
@anuj-kumary
anuj-kumary deleted the learning-icon branch February 6, 2026 14:02
anuj-kumary added a commit that referenced this pull request Feb 9, 2026
…5735)

* Remove resources count badge and add icon in left panel

* nit

* Remove important from CSS
mohityadav766 pushed a commit that referenced this pull request Feb 9, 2026
…5735)

* Remove resources count badge and add icon in left panel

* nit

* Remove important from CSS
mohityadav766 added a commit that referenced this pull request Feb 9, 2026
* use promote entity reindex in distributed

* Add Logs and finalize remaining entities

* fix nullpointer

* Fix Canonical Index Deletion

* Fix Test

* Optimize Reindexing

* Fix Default Recreate Handler

* Fix entity version history of dataProducts after removing inputPorts/ field (#25702)

* Fix: Use Downward API for pipelineRunId in standard K8s CronJobs (#25640)

When using the K8s pipeline client with useOMJobOperator=false, scheduled
pipelines (CronJobs) were failing because pipelineRunId was set to the
literal string "{{ omjob.uid }}" instead of a valid UUID.

This template syntax is designed for the OMJob operator to resolve at
runtime, but standard K8s CronJobs have no templating engine.

The fix uses the Kubernetes Downward API to inject the pod's own UID
(metadata.uid) as the pipelineRunId. Pod UIDs are valid UUIDv4 values
and unique per execution, making them suitable replacements.

Co-authored-by: Claude Opus 4.5 <[email protected]>

* Rename deny list recognizer (#25698)

* Rename deny list recognizer

* Update generated TypeScript types

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Fix/testsuite cross suite result consistency (#25587)

* refactor: replace testCaseResultSummary with lastResultTimestamp in ES index

* feat: add lean batch SQL queries for test suite result summaries

* fix: recompute related test suite results on pipeline completion

* test: update UI sort field and tests for lastResultTimestamp

* Revert MUITagSuggestion changes from PR #25588 (#25710)

* Initial plan

* Revert MUITagSuggestion changes from PR #25588

Co-authored-by: karanh37 <[email protected]>

* Revert test file changes from PR #25588

Co-authored-by: karanh37 <[email protected]>

* fix test

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: karanh37 <[email protected]>
Co-authored-by: karanh37 <[email protected]>

* Fix Elasticsearch/OpenSearch field explosion with custom properties (#25627)

* Flatten Custom Properties

* Fix UI Side

* Fix Reindex matching old index conflict with alias

* Hacky wacky

* Review comments

* Add tests for custom properties to check field don't exceed

* Change to nested

* Align tests

* Fix Column and DataModel and subassets customProperties

* Fix extension updates

* Fix Description Updates

* Temp fix from other PR

* Fix Test failures

* Fix Review comments

* Fix Tests for playwright

* Import export improvements (#25542)

* Batched Import

* Batched Import

* Batched Import

* Optimised Internal methods for adding relationships for import, fixed circular dependency, generated changeEvents (#25582)

* Fix tag clearing and circular dependency detection in batch CSV imports

  - **Tag clearing fix**: Add deleteTagsByTarget before applying new tags in batch imports to match single entity import behavior, ensuring empty CSV fields properly clear existing
   tags
  - **Circular dependency detection fix**: Pre-track entities in dryRunCreatedEntities before parent resolution to enable proper circular reference validation during CSV team
  imports
  - Resolves test failures in TeamResourceIT.test_importCsv_circularDependency_trueRun and tag-related import issues
  - Maintains batch import performance while restoring pre-batch-import validation contracts

* improve storeRelationshipsInternal internal methods - make them truly batched operations

* - Add storeEntities override to all repositories (57 repos)
-  Add batch lock check to HierarchicalLockManager
- Add batch cache write to EntityRepository
-  Fix createManyEntitiesForImport with batched operations
- Fix updateManyEntitiesForImport with batched operations
-  Add change event creation in flushPendingEntityOperations

---------

Co-authored-by: sonika-shah <[email protected]>

* have default implementation of storeEntities

* add batch relationship clearing while updating during import

* Fix column import failing for tables in same batch

 When importing CSV with batching, column rows failed to find their
  parent table because the table was queued but not yet persisted to DB.
  Added pendingEntityFQNs set to track entities in current batch. When
  processing columns, check if table is in this set - if so, add columns
  directly to the queued table object instead of creating a patch context.
  This ensures columns are persisted with the table in a single operation.

* fix UserResourceTest, TestCaseResourceIT

* Fix Circular Dependency Validation for GlossaryTerms

* Batch Insert ChangeEvents and Process Async

* fix: defer CSV result reporting until batch operations complete to ensure accuracy

* fix: ensure custom properties persist during batch CSV imports

* Fix rows processed count

* Fix: Moving of glossaryTerms to correctly detect update operation during import

* Increment version history

* fix TeamResourceTest

* Fix: Mutual Exclusivity Tag Validation during dry run, Deferring of failures

* Fix: Table Constraints Preservation on table import

* revert validateCsvString logic, needed for csv validation

* revert test changes

* Use dependency resolution to flush pending operations to find the parent

* fix search groping based on entityType in updateEntitiesBulk with tests

* Fetch original from db as cache takes some time to reload

* Test Cases

* Remove logs, fix TableResourceIT, Fix ChangeEvent Race Condition

---------

Co-authored-by: Ram Narayan Balaji <[email protected]>
Co-authored-by: sonika-shah <[email protected]>
Co-authored-by: Ram Narayan Balaji <[email protected]>
Co-authored-by: Karan Hotchandani <[email protected]>
Co-authored-by: karanh37 <[email protected]>

* fix: databricks view definition (#25700)

* Column Edit - Address feedback (#25669)

* Address Test feedback for columns

* Add Translations

* Fix count issue

* nit

* nit

* fix pagination control

* fix e2e test

---------

Co-authored-by: anuj-kumary <[email protected]>

* chore(ui): fix pagination tests (#25715)

* update table selectors

* modify selector

* feat(ui): Learning Resources page improvements and form updates (#25681)

* feat(ui): Learning Resources page improvements and form updates

* Improved footer component

* fix color code combination

* fix view more issue in card view

* Addressed card related feedback

* fix test

* fix playwright test

* nit

* nit

---------

Co-authored-by: Cursor <[email protected]>

* fix pagination space between layout (#25728)

* Fix #25615 - Use system tables instead of API for lineage in UC (#25697)

* WIP - chore(ci): update playwright workflow to run ingestion with dataAsset… (#24753)

* chore(ci): update playwright workflow to run ingestion with dataAssetRules

* limit setup to required steps

* rearrnage spec files

* update condition

* update workflow

* update runners

* update console

* update config

* update arrangements

* fix typo

* rearrange specs

* remove unwanted import

* fix tests

* fix tests issues

* fix comment

* fix failing tests

* fix advance search

* fix test arrangements

* fix failing tests

* feat(ui): Remove resources count badge and add icon in left panel (#25735)

* Remove resources count badge and add icon in left panel

* nit

* Remove important from CSS

* Flaky(UI): Glossary import export  (#25693)

* fixed glossary import export flakyness

* removed timeout

* Flaky(UI) : Bulk import (#25653)

* fixed flaky bulk import

* fixed flaky bulk import

* formatted code

* removed unncessary loader await

* removed timeout

* Flaky(UI): Customize Detail Page spec (#25650)

* fixed customize detail page

* fixed button not clicking issue

* removed unncessary timeout

* added test id

* MINOR: use stats tables for MySQL and PSQL profiler (#25724)

* feat(system): use stats tables for mysl and psql profiler

* fix: skip tests if fail

* fix(trino): shadowing of http_scheme argument (#25726)

* fix(trino): shadowing of http_scheme argument

* fix: import chain

* fix: remove mock trino library

* [Search] Upgrade Clients (#25719)

* Upgrade Clients

* Update clients in docker files

* Fix Tests

* Fix integration test

* Fix Review Comments

* Fix More review comments :-
  1. ElasticSearchClient.java - Added keep-alive timeout configuration
  2. OpenSearchClient.java - Added keep-alive timeout configuration
  3. OpenMetadataOperations.java - Added logging for caught exception
  4. SigV4Hc5RequestSigningInterceptor.java - Now throws exception instead of silently returning

* Fix More review comments :-
  1. ElasticSearchClient.java - Added keep-alive timeout configuration
  2. OpenSearchClient.java - Added keep-alive timeout configuration
  3. OpenMetadataOperations.java - Added logging for caught exception
  4. SigV4Hc5RequestSigningInterceptor.java - Now throws exception instead of silently returning

Co-authored-by: mohityadav766 <[email protected]>

* upgrade to 9.3.0 vs 3.4.0 server since earlier had bug

* fix version in pom

* Fix Review Comments

* FIX IAM OpenSearch FIx

---------

Co-authored-by: Gitar <[email protected]>
Co-authored-by: mohityadav766 <[email protected]>

* Fix Failing Test (#25745)

* Optimize Reindexing

* Fix Issue in Partition Worker

* Fix Entity Stats writing too much to db

---------

Co-authored-by: sonika-shah <[email protected]>
Co-authored-by: IceS2 <[email protected]>
Co-authored-by: Claude Opus 4.5 <[email protected]>
Co-authored-by: Eugenio <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Adrià Manero <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: karanh37 <[email protected]>
Co-authored-by: karanh37 <[email protected]>
Co-authored-by: Sriharsha Chintalapani <[email protected]>
Co-authored-by: Ram Narayan Balaji <[email protected]>
Co-authored-by: Ram Narayan Balaji <[email protected]>
Co-authored-by: Keshav Mohta <[email protected]>
Co-authored-by: anuj-kumary <[email protected]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Mayur Singal <[email protected]>
Co-authored-by: Chirag Madlani <[email protected]>
Co-authored-by: Dhruv Parmar <[email protected]>
Co-authored-by: Teddy <[email protected]>
Co-authored-by: Gitar <[email protected]>
Co-authored-by: mohityadav766 <[email protected]>

This branch was previously deployed

1 inactive deployment
test — 0cad774f Deployed Feb 6, 2026 by anuj-kumary via playwright-ci-postgresql (1, 6) #33196
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.

2 participants