Skip to content

fix(lightspeed): minor UI fix#3627

Open
ciiay wants to merge 1 commit into
redhat-developer:mainfrom
ciiay:lightspeed-minor-ui-fix
Open

fix(lightspeed): minor UI fix#3627
ciiay wants to merge 1 commit into
redhat-developer:mainfrom
ciiay:lightspeed-minor-ui-fix

Conversation

@ciiay

@ciiay ciiay commented Jun 29, 2026

Copy link
Copy Markdown
Member

Hey, I just made a Pull Request!

Fix duplicate caret icons in the message bar model selector dropdown.

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or Updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)

Before:
image

After:
image

Signed-off-by: Yi Cai <yicai@redhat.com>
@rhdh-gh-app

rhdh-gh-app Bot commented Jun 29, 2026

Copy link
Copy Markdown

Changed Packages

Package Name Package Path Changeset Bump Current Version
@red-hat-developer-hub/backstage-plugin-lightspeed workspaces/lightspeed/plugins/lightspeed patch v2.9.1

@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Jun 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 54.01%. Comparing base (da7b3bc) to head (6fca659).
⚠️ Report is 7 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3627      +/-   ##
==========================================
- Coverage   54.01%   54.01%   -0.01%     
==========================================
  Files        2325     2325              
  Lines       89151    89154       +3     
  Branches    24962    24966       +4     
==========================================
- Hits        48156    48155       -1     
- Misses      40806    40810       +4     
  Partials      189      189              
Flag Coverage Δ *Carryforward flag
adoption-insights 83.70% <ø> (ø) Carriedforward from da7b3bc
ai-integrations 67.95% <ø> (ø) Carriedforward from da7b3bc
app-defaults 69.79% <ø> (ø) Carriedforward from da7b3bc
augment 46.39% <ø> (ø) Carriedforward from da7b3bc
boost 74.35% <ø> (ø) Carriedforward from da7b3bc
bulk-import 72.46% <ø> (ø) Carriedforward from da7b3bc
cost-management 14.10% <ø> (ø) Carriedforward from da7b3bc
dcm 61.81% <ø> (ø) Carriedforward from da7b3bc
extensions 61.53% <ø> (ø) Carriedforward from da7b3bc
global-floating-action-button 71.18% <ø> (ø) Carriedforward from da7b3bc
global-header 59.71% <ø> (ø) Carriedforward from da7b3bc
homepage 49.84% <ø> (ø) Carriedforward from da7b3bc
install-dynamic-plugins 56.77% <ø> (ø) Carriedforward from da7b3bc
konflux 91.49% <ø> (ø) Carriedforward from da7b3bc
lightspeed 68.49% <ø> (-0.06%) ⬇️
mcp-integrations 85.46% <ø> (ø) Carriedforward from da7b3bc
orchestrator 37.11% <ø> (ø) Carriedforward from da7b3bc
quickstart 63.76% <ø> (ø) Carriedforward from da7b3bc
sandbox 79.56% <ø> (ø) Carriedforward from da7b3bc
scorecard 82.67% <ø> (ø) Carriedforward from da7b3bc
theme 61.26% <ø> (ø) Carriedforward from da7b3bc
translations 7.25% <ø> (ø) Carriedforward from da7b3bc
x2a 78.68% <ø> (ø) Carriedforward from da7b3bc

*This pull request uses carry forward flags. Click here to find out more.


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update da7b3bc...6fca659. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@its-mitesh-kumar

Copy link
Copy Markdown
Member

Sad to see 😢 its happening for more icon. Firstly I observed for main icon on notebook.

@its-mitesh-kumar

Copy link
Copy Markdown
Member

/fs-review

@fullsend-ai-review

fullsend-ai-review Bot commented Jun 29, 2026

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 7:14 PM UTC · Completed 7:20 PM UTC
Commit: a8026af · View workflow run →

@fullsend-ai-review

Copy link
Copy Markdown

Looks good to me

@fullsend-ai-review fullsend-ai-review Bot added the ready-for-merge All reviewers approved — ready to merge label Jun 29, 2026

@HusneShabbir HusneShabbir left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Before:

Image

After:

Image

/lgtm

@its-mitesh-kumar its-mitesh-kumar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@ciiay We have fix similar issues at other places too, For me it seems to be something off from PF upstream. I will be raising upstream issue for it. Since the impact is not that big. I will like to hold this PR to get in. Let me know your thoughts.

@its-mitesh-kumar its-mitesh-kumar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Root Cause & Upstream Fix

@patternfly/react-core@6.6.0 fixes the MenuToggle duplicate caret. See patternfly/patternfly-react#12368.

How it was fixed:

Before (6.4.3):

MenuToggle.tsx uses CaretDownIcon
CaretDownIcon goes through createIconBase
createIconBase renders TWO nested SVGs (default + rh-ui)
→ No CSS to hide the rh-ui one (base-no-reset.css doesn't include it)
→ Both SVGs visible = duplicate caret

After (6.6.0, via #12368):

MenuToggle.tsx uses RhUiCaretDownIcon (direct import)
RhUiCaretDownIcon is a direct single-SVG icon
→ Does NOT go through createIconBase's dual-rendering path
→ One SVG rendered = no duplicate

Broader Icon Migration

PF is migrating all legacy FA icons to direct RH brand icons, which will fix the other dual-icon issues we've been working around with display: none hacks. Tracking issues:

  • #12402 — Navigation, action & status icons (27 icons including AngleDownIcon, PlusIcon, SearchIcon, TrashIcon, ExpandIcon, etc.) — OPEN
  • #12401 — Layout, brand & misc icons (28 icons including EllipsisVIcon, SortAmountDownIcon, etc.) — OPEN
  • #12399 — Infrastructure & file icons (23 icons) — OPEN

Once these are completed and released, the display: none overrides for .pf-v6-icon-rh-ui in LightSpeedChat.tsx and UploadResourceScreen.tsx can be removed. In the meantime, a single global CSS rule (.pf-v6-icon-rh-ui { display: none }) would be a cleaner alternative to per-component hacks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm ready-for-merge All reviewers approved — ready to merge workspace/lightspeed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants