Skip to content

fix(apollo-react): stage title input fills available header width [MST-7791]#384

Open
KodudulaAshishUiPath wants to merge 1 commit intomainfrom
fix/MST-7791
Open

fix(apollo-react): stage title input fills available header width [MST-7791]#384
KodudulaAshishUiPath wants to merge 1 commit intomainfrom
fix/MST-7791

Conversation

@KodudulaAshishUiPath
Copy link
Contributor

@KodudulaAshishUiPath KodudulaAshishUiPath commented Mar 23, 2026

Description

  • Fix stage title input not expanding to fill the available width in the stage header

Demo

Before

Screen.Recording.2026-03-23.at.15.16.55.mov

After

Screen.Recording.2026-03-23.at.15.25.01.mov

Copilot AI review requested due to automatic review settings March 23, 2026 07:46
@github-actions
Copy link

github-actions bot commented Mar 23, 2026

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

Project Deployment Review Updated (PT)
apollo-canvas 🟢 Ready Preview, Logs Mar 24, 2026, 03:19:33 AM
apollo-landing 🟢 Ready Preview, Logs Mar 24, 2026, 03:16:33 AM
apollo-ui-react 🟢 Ready Preview, Logs Mar 24, 2026, 03:18:12 AM
apollo-vertex 🟢 Ready Preview, Logs Mar 24, 2026, 03:17:25 AM
apollo-wind 🟢 Ready Preview, Logs Mar 24, 2026, 03:17:29 AM

@github-actions
Copy link

github-actions bot commented Mar 23, 2026

Dependency License Review

  • 1917 package(s) scanned
  • ✅ No license issues found
  • ⚠️ 3 package(s) excluded (see details below)
License distribution
License Packages
MIT 1682
ISC 89
Apache-2.0 56
BSD-3-Clause 28
BSD-2-Clause 23
BlueOak-1.0.0 8
MPL-2.0 5
MIT OR Apache-2.0 3
MIT-0 3
CC0-1.0 3
LGPL-3.0-or-later 2
(MIT OR Apache-2.0) 2
Unlicense 2
Python-2.0 1
CC-BY-4.0 1
(MPL-2.0 OR Apache-2.0) 1
Unknown 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
khroma 2.1.0 Unknown MIT per GitHub repo, missing license field in package.json

Copy link

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 the stage header title editing UX in apollo-react by allowing the stage title input to expand and use the available header width.

Changes:

  • Make the left header layout flexible (flex=1, minW=0) so the title region can grow/shrink correctly.
  • Update stage title container/input styles to be full-width and remove the prior max-width constraint.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
packages/apollo-react/src/canvas/components/StageNode/StageNode.tsx Adjusts header layout flex behavior so the title area can take remaining space.
packages/apollo-react/src/canvas/components/StageNode/StageNode.styles.ts Makes the title container/input full-width to fill available header width.

@SreedharAvvari
Copy link
Contributor

Did you test the inline edit behaviour?

@KodudulaAshishUiPath
Copy link
Contributor Author

Did you test the inline edit behaviour?

Yes, I have added a story as well to test inline edit behaviour

Copy link

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 3 out of 3 changed files in this pull request and generated 1 comment.

Comment on lines 80 to 86
export const StageTitleContainer = styled.div<{ isEditing?: boolean }>`
display: inline-block;
display: block;
border-radius: 4px;
height: 100%;
width: 100%;
box-sizing: border-box;
border: ${(props) => (props.isEditing ? '1px solid var(--uix-canvas-border-de-emp)' : 'none')};
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

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

StageTitleContainer is a div that’s rendered inside ApTypography when using fontSizeM/fontSizeMBold (which maps to component="span"). Switching the container to display: block can cause layout glitches and keeps an invalid HTML structure (<div> inside <span>). Consider changing StageTitleContainer to a styled.span (or overriding ApTypography here to render a block element via component="div") so the title can expand without invalid nesting.

Copilot uses AI. Check for mistakes.
Copilot AI review requested due to automatic review settings March 24, 2026 10:14
Copy link

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 3 out of 3 changed files in this pull request and generated no new comments.

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.

3 participants