fix(apollo-react): stage title input fills available header width [MST-7791]#384
fix(apollo-react): stage title input fills available header width [MST-7791]#384KodudulaAshishUiPath wants to merge 1 commit intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Dependency License Review
License distribution
Excluded packages
|
There was a problem hiding this comment.
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. |
packages/apollo-react/src/canvas/components/StageNode/StageNode.styles.ts
Show resolved
Hide resolved
packages/apollo-react/src/canvas/components/StageNode/StageNode.styles.ts
Outdated
Show resolved
Hide resolved
|
Did you test the inline edit behaviour? |
f11df8a to
efcd4ed
Compare
Yes, I have added a story as well to test inline edit behaviour |
efcd4ed to
06005de
Compare
| 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')}; |
There was a problem hiding this comment.
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.
06005de to
855c36b
Compare
855c36b to
6b343ba
Compare
6b343ba to
5816a5c
Compare
Description
Demo
Before
Screen.Recording.2026-03-23.at.15.16.55.mov
After
Screen.Recording.2026-03-23.at.15.25.01.mov