Skip to content

fix(apollo-react): fix loop header adornment spacing [MST-9651]#685

Merged
SreedharAvvari merged 2 commits into
mainfrom
fix/mst-9651-loop-adornment-spacing
May 14, 2026
Merged

fix(apollo-react): fix loop header adornment spacing [MST-9651]#685
SreedharAvvari merged 2 commits into
mainfrom
fix/mst-9651-loop-adornment-spacing

Conversation

@SreedharAvvari
Copy link
Copy Markdown
Contributor

Summary

Fixes the loop container header so top-corner adornments do not overlap the loop title area or the iteration/parallel controls.

Details

The loop node already renders breakpoint and execution/status adornments in the same top-left and top-right badge slots used by other canvas nodes. The overlap happened because the loop header content did not reserve room for those absolute-positioned badge slots. When an execution count/status appeared on the top right, it could sit on top of the iteration navigator and the Parallel badge.

This change keeps the adornments in their existing badge positions and pushes only the loop header content inward on the side that actually has an adornment. A breakpoint on the left shifts the loop icon/title inward; a status/count adornment on the right shifts the iteration navigator and Sequential/Parallel pill inward.

I also tightened the default adornment resolver so it does not emit an empty top-right adornment when there is no visible execution status or validation signal. The Storybook canvas decorator now ignores invalid status fragments such as the 1 in loop-1, which prevents stories from showing reserved adornment spacing when no real adornment exists.

Validation

  • pnpm --filter=@uipath/apollo-react test -- src/canvas/utils/adornment-resolver.test.tsx src/canvas/components/LoopNode/LoopNode.test.tsx src/canvas/components/LoopNode/IterationNavigator.test.tsx
  • pnpm exec biome check src/canvas/utils/adornment-resolver.tsx src/canvas/utils/adornment-resolver.test.tsx src/canvas/components/LoopNode/LoopNode.tsx src/canvas/components/LoopNode/LoopNode.test.tsx src/canvas/storybook-utils/decorators.tsx

Copilot AI review requested due to automatic review settings May 12, 2026 07:59
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (PT)
apollo-design 🟢 Ready Preview, Logs May 12, 2026, 03:07:06 AM
apollo-docs 🟢 Ready Preview, Logs May 12, 2026, 03:06:01 AM
apollo-landing 🟢 Ready Preview, Logs May 12, 2026, 03:04:05 AM
apollo-ui-react 🟢 Ready Preview, Logs May 12, 2026, 03:05:34 AM
apollo-vertex 🟢 Ready Preview, Logs May 12, 2026, 03:05:47 AM

@SreedharAvvari SreedharAvvari marked this pull request as ready for review May 12, 2026 07:59
@github-actions github-actions Bot added the size:L 100-499 changed lines. label May 12, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Dependency License Review

  • 2093 package(s) scanned
  • ✅ No license issues found
  • ⚠️ 15 package(s) excluded (see details below)
License distribution
License Packages
MIT 1819
ISC 104
Apache-2.0 64
BSD-3-Clause 30
BSD-2-Clause 24
Copyright 2022, UiPath, all rights reserved 9
BlueOak-1.0.0 8
MPL-2.0 5
MIT OR Apache-2.0 3
MIT-0 3
Unknown 3
Unlicense 3
CC0-1.0 3
LGPL-3.0-or-later 2
(MIT OR Apache-2.0) 2
Python-2.0 1
CC-BY-4.0 1
(MPL-2.0 OR Apache-2.0) 1
BSD 1
Artistic-2.0 1
(WTFPL OR MIT) 1
(BSD-2-Clause OR MIT OR Apache-2.0) 1
CC-BY-3.0 1
0BSD 1
(MIT OR CC0-1.0) 1
MIT AND ISC 1
Excluded packages
Package Version License Reason
@img/sharp-libvips-linux-x64 1.2.4 LGPL-3.0-or-later LGPL pre-built binary, not linked
@img/sharp-libvips-linuxmusl-x64 1.2.4 LGPL-3.0-or-later LGPL pre-built binary, not linked
@uipath/apollo-angular-elements 5.89.0 Copyright 2022, UiPath, all rights reserved UiPath first-party package
@uipath/apollo-core 4.35.1, 4.35.2 Copyright 2022, UiPath, all rights reserved UiPath first-party package
@uipath/apollo-fonts 1.25.8 Copyright 2022, UiPath, all rights reserved UiPath first-party package
@uipath/apollo-icons 1.33.7 Copyright 2022, UiPath, all rights reserved UiPath first-party package
@uipath/apollo-mui5 2.31.26, 2.31.27 Copyright 2022, UiPath, all rights reserved UiPath first-party package
@uipath/portal-shell 3.351.4 Copyright 2022, UiPath, all rights reserved UiPath first-party package
@uipath/portal-shell-react 3.149.36 Copyright 2022, UiPath, all rights reserved UiPath first-party package
@uipath/portal-shell-types 3.326.0 Copyright 2022, UiPath, all rights reserved UiPath first-party package
@uipath/portal-shell-util 1.114.0 Copyright 2022, UiPath, all rights reserved UiPath first-party package
@uipath/apollo-lab 25.12.0 Unknown UiPath first-party package
@uipath/telemetry-client-web 5.1.0 Unknown UiPath first-party package
khroma 2.1.0 Unknown MIT per GitHub repo, missing license field in package.json
hyperx 2.5.4 BSD BSD-2-Clause per LICENSE file, non-SPDX "BSD" in package.json

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes LoopNode header layout so badge adornments (top-left breakpoint, top-right execution/validation) no longer overlap the loop title and iteration/parallel controls by conditionally adding header padding only on sides that actually have visible adornments. It also tightens default adornment resolution and Storybook execution-state parsing to avoid reserving top-right space when there isn’t a real status/validation signal.

Changes:

  • Stop emitting a default top-right execution adornment when there is no visible execution status (and adjust resolver tests accordingly).
  • Update LoopNode header to add conditional left/right padding based on presence of top-left/top-right adornments, preventing overlap.
  • Improve Storybook canvas decorator execution-status parsing to ignore invalid ID fragments (e.g. loop-1) so stories don’t show reserved adornment spacing incorrectly.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/apollo-react/src/canvas/utils/adornment-resolver.tsx Adjusts default top-right adornment resolution to avoid empty/hidden defaults.
packages/apollo-react/src/canvas/utils/adornment-resolver.test.tsx Updates test expectations for the new “no visible status => no topRight adornment” behavior.
packages/apollo-react/src/canvas/storybook-utils/decorators.tsx Validates Storybook-derived execution status fragments against known statuses to prevent false positives.
packages/apollo-react/src/canvas/components/LoopNode/LoopNode.tsx Adds conditional header padding based on actual top-left/top-right adornment presence.
packages/apollo-react/src/canvas/components/LoopNode/LoopNode.test.tsx Adds regression tests asserting header padding behavior with/without adornments.

Comment thread packages/apollo-react/src/canvas/utils/adornment-resolver.tsx
Copilot AI review requested due to automatic review settings May 14, 2026 11:36
@SreedharAvvari SreedharAvvari force-pushed the fix/mst-9651-loop-adornment-spacing branch from 96759ca to 2513e06 Compare May 14, 2026 11:36
@SreedharAvvari SreedharAvvari enabled auto-merge (rebase) May 14, 2026 11:37
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated no new comments.

@SreedharAvvari SreedharAvvari merged commit b31a737 into main May 14, 2026
35 checks passed
@SreedharAvvari SreedharAvvari deleted the fix/mst-9651-loop-adornment-spacing branch May 14, 2026 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg:apollo-react size:L 100-499 changed lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants