Skip to content

fix(apollo-wind): design-time Text area starts one line and grows with its content - #1460

Merged
Sahil-Wakode merged 10 commits into
mainfrom
fix/quick-form-field-textarea-one-line
Oct 27, 2026
Merged

Sahil-Wakode merged 10 commits into
mainfrom
fix/quick-form-field-textarea-one-line

Conversation

@Sahil-Wakode

@Sahil-Wakode Sahil-Wakode commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Design time: a Text area starts one line tall, like a Text field. As the text wraps or gets new lines, it grows up to 8 lines and then scrolls.

Runtime: no change.

Copilot AI balanced review requested due to automatic review settings October 23, 2026 07:42
@github-actions github-actions Bot added size:S 10-29 changed lines. pkg:apollo-wind labels Oct 23, 2026
@github-actions
github-actions Bot temporarily deployed to preview/apollo-docs October 23, 2026 07:42 Destroyed
@github-actions
github-actions Bot temporarily deployed to preview/apollo-landing October 23, 2026 07:42 Destroyed
@github-actions
github-actions Bot temporarily deployed to preview/apollo-design October 23, 2026 07:42 Destroyed
@github-actions
github-actions Bot temporarily deployed to preview/apollo-vertex October 23, 2026 07:42 Destroyed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The native textarea still defaults to two rows, so lowering its minimum height alone does not achieve the intended one-line initial height.

1 open issue
What changed in this PR

This PR adjusts the design-time QuickFormField textarea to start at one line while retaining content-driven growth up to eight lines.

Changes:

  • Lowers the textarea’s minimum row count from three to one.
  • Adds a regression test for the one-row minimum height.
File Description
packages/​apollo-wind/​src/​components/​ui/​quick-form-field/​quick-form-field.tsx Updates the minimum row count and sizing comment.
packages/​apollo-wind/​src/​components/​ui/​quick-form-field/​quick-form-field.divergence.test.tsx Tests the textarea’s one-row minimum height in jsdom.

Review effort: Balanced

Comment thread packages/apollo-wind/src/components/ui/quick-form-field/quick-form-field.tsx Outdated
@github-actions

Copy link
Copy Markdown
Contributor

Dependency License Review

  • ✅ 1957 package(s) scanned
  • ✅ No license issues found
  • ⚠️ 2 package(s) excluded (see details below)
License distribution
License Packages
MIT 1721
ISC 91
Apache-2.0 57
BSD-3-Clause 28
BSD-2-Clause 23
BlueOak-1.0.0 8
MPL-2.0 4
CC0-1.0 4
MIT-0 3
MIT OR Apache-2.0 2
(MIT OR Apache-2.0) 2
Unlicense 2
LGPL-3.0-or-later 1
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.3.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

Copilot AI balanced review requested due to automatic review settings October 23, 2026 07:46
@Sahil-Wakode Sahil-Wakode changed the title fix(apollo-wind): start a QuickFormField Text area one line tall fix(apollo-wind): keep a QuickFormField Text area at one line at design time Oct 23, 2026
@github-actions github-actions Bot added size:M 30-99 changed lines. and removed size:S 10-29 changed lines. labels Oct 23, 2026
@github-actions
github-actions Bot temporarily deployed to preview/apollo-design October 23, 2026 07:47 Destroyed
@github-actions
github-actions Bot temporarily deployed to preview/apollo-landing October 23, 2026 07:47 Destroyed
@github-actions
github-actions Bot temporarily deployed to preview/apollo-docs October 23, 2026 07:47 Destroyed
@github-actions
github-actions Bot temporarily deployed to preview/apollo-vertex October 23, 2026 07:47 Destroyed
@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

📊 Coverage + size by package

Per-package coverage and bundle size on this PR. New-line coverage = of the source lines this PR adds or changes, the % hit by tests.

Package Coverage New-line coverage Packed (gzip) Unpacked vs main
@uipath/apollo-core — — 42.02 MB 50.17 MB ±0
@uipath/apollo-react 58.4% — 8.14 MB 32.18 MB +146 B
@uipath/apollo-ui-icons — — 2.86 MB 6.97 MB ±0
@uipath/apollo-vertex — — — — —
@uipath/apollo-wind 79.5% — (8 untracked) 814.7 KB 4.70 MB −13 B
@uipath/ap-chat 85.8% — 40.42 MB 45.72 MB ±0

"Coverage" is each package's own coverage.include scope (e.g. apollo-core instruments only scripts/). "Packed"/"Unpacked" come from npm pack --dry-run and only cover built packages — "—" means not measured this run (package not affected / not built). "vs main" is the packed (gzipped) delta against the last successful main build (the package-sizes artifact from the Release workflow); "—" there means no main baseline was available this run. The baseline is main's latest build, not this PR's exact merge-base, so it includes any drift since the branch diverged. Packages with no vitest config are omitted.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Inherited textarea styles still prevent the outer box from matching normal row height and alignment.

2 open issues

Review effort: Balanced

Comment thread packages/apollo-wind/src/components/ui/quick-form-field/quick-form-field.tsx Outdated
@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Storybook visual diff

⏭️ Skipped: the apollo-design preview deployment did not succeed, so no comparison ran. Logs

Updated (PT): Oct 26, 2026, 10:29:25 PM

Copilot AI balanced review requested due to automatic review settings October 23, 2026 07:57
@Sahil-Wakode Sahil-Wakode changed the title fix(apollo-wind): keep a QuickFormField Text area at one line at design time feat(apollo-wind): Text area stays one line at design time and grows at runtime Oct 23, 2026
@github-actions
github-actions Bot temporarily deployed to preview/apollo-design October 23, 2026 07:57 Destroyed
@github-actions
github-actions Bot temporarily deployed to preview/apollo-vertex October 23, 2026 07:58 Destroyed
@github-actions
github-actions Bot temporarily deployed to preview/apollo-landing October 23, 2026 07:58 Destroyed
@github-actions
github-actions Bot temporarily deployed to preview/apollo-docs October 23, 2026 07:58 Destroyed
@github-actions github-actions Bot removed the size:M 30-99 changed lines. label Oct 23, 2026
@github-actions
github-actions Bot temporarily deployed to preview/apollo-vertex October 23, 2026 12:16 Destroyed
@github-actions
github-actions Bot temporarily deployed to preview/apollo-docs October 23, 2026 12:16 Destroyed
@github-actions
github-actions Bot temporarily deployed to preview/apollo-design October 23, 2026 12:16 Destroyed
@github-actions
github-actions Bot temporarily deployed to preview/apollo-landing October 23, 2026 12:16 Destroyed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Runtime textareas discard manually selected heights below the auto-growth ceiling when users continue typing.

2 open issues

Review effort: Balanced

Comment thread packages/apollo-wind/src/components/forms/field-control.tsx Outdated
Comment thread packages/apollo-wind/src/components/forms/field-control.tsx Outdated
Comment thread packages/apollo-wind/src/components/ui/quick-form-field/quick-form-field.tsx Outdated
Copilot AI balanced review requested due to automatic review settings October 26, 2026 06:34
@github-actions
github-actions Bot temporarily deployed to preview/apollo-design October 26, 2026 06:34 Destroyed
@github-actions
github-actions Bot temporarily deployed to preview/apollo-vertex October 26, 2026 06:34 Destroyed
@github-actions
github-actions Bot temporarily deployed to preview/apollo-docs October 26, 2026 06:34 Destroyed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The narrow change uses existing auto-sizing behavior, includes targeted regression coverage, and has no identified blocking issues.

No open issues 🎉

2 resolved since last review

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused change uses existing auto-growth behavior, includes regression coverage, and leaves runtime controls untouched.

No open issues 🎉

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The localized change uses existing auto-sizing behavior, includes regression coverage, and has no identified blocking issues.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused change uses existing auto-growth behavior, includes regression coverage, and has no identified blocking issues.

No open issues 🎉

Review effort: Balanced

At design time every field type is the same one-line control; a Text area
now starts at one line too and grows with its content up to eight lines.
The multi-line box is for the runtime form, not the authoring row.
…gn time

Design time uses the same one-line control for every field type, so a
Text area no longer grows: floor and ceiling are both one row, and it
leaves the grow layout. Content scrolls inside the box; it stays a
textarea so line breaks in a saved value survive.
A MetadataForm textarea started at four rows and scrolled past them. It
now starts at the same height (minRows, else rows, else 4) and grows with
its content up to maxRows (new, default 8) before scrolling. The ceiling
never sits below the floor, so a field asking for 10 rows still starts at
10.
Review fixes:
- rows={1}: a native textarea's intrinsic height is two rows.
- Wrap the Text area so the group keeps its row height and centring:
  a direct-child textarea switches it to h-auto, top-aligned. Measured
  in a real browser, the Text area box is now exactly a Text box (36px
  core, 40px future) and stays that height with three lines of content.
- schema-serializer keeps maxRows beside minRows.
A form textarea now starts at one row (rows/minRows still honoured)
and grows with its content up to eight. Sets the native rows too, since
a textarea's intrinsic height is two rows. Measured in a real browser:
38px empty, 178px at the eight-row cap.
The drag handle already lets a reviewer make the box as tall as they
need, so the eight-row auto-grow ceiling, the new maxRows option and
its serializer support are removed. A form textarea starts at one row
and keeps its resize handle.
Design time needs only rows={1}: min/maxRows switch on auto-sizing a
fixed box never uses. Runtime inlines the helper as one rows value used
for both rows and minRows.
Starts at one row and resizes to the content it is given, up to eight
rows, then scrolls. The drag handle still makes it bigger beyond that.
…row with content

Per review: runtime field-control is left as it was on main, and the design-time
text area starts at one line like a text field, then grows with its content.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused change reuses existing auto-growth behavior, adds regression coverage, and leaves runtime controls untouched.

No open issues 🎉

Review effort: Balanced

@dushyant-uipath

dushyant-uipath commented Oct 27, 2026 •

Copy link
Copy Markdown

@Sahil-Wakode - as we discussed offline - this was changed directly by the developer without consultation in the raised thread, and digressed from the initial reviews. It also lacks a screenshot or demo of the final design, not allowing reviewers a chance to see what changed. We should not expedite unreviewed merges like this since they create a lot of rework

Moreover, this blocks it from UX signoff perspective, since it diverges from the design, and creates a risk for delivery

Going forward, any changes to the provided design should be discussed with designers internally in publicly raised threads, and changes will be explicitly called out.

@dushyant-uipath

Copy link
Copy Markdown

This branch was successfully deployed

No deployments
preview/apollo-design — d89f5dd7 Deployed Oct 27, 2026 by github-actions[bot]
preview/apollo-docs — d89f5dd7 Deployed Oct 27, 2026 by github-actions[bot]
preview/apollo-landing — d89f5dd7 Deployed Oct 27, 2026 by github-actions[bot]
preview/apollo-vertex — d89f5dd7 Deployed Oct 27, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg:apollo-wind size:M 30-99 changed lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants