Skip to content

fix(agent): let global variable textareas resize vertically - #18972

Merged
wangq8 merged 1 commit into
infiniflow:mainfrom
dcc123456:fix/global-variable-textarea-resize
Aug 28, 2026
Merged

wangq8 merged 1 commit into
infiniflow:mainfrom
dcc123456:fix/global-variable-textarea-resize

Conversation

@dcc123456

Copy link
Copy Markdown
Collaborator

Summary

The value and description textareas in the global variable sheet were fixed-height, making long values hard to read or edit. Enable vertical resizing with scrolling overflow so users can expand them as needed.

The value and description textareas in the global variable sheet were
fixed-height, making long values hard to read or edit. Enable vertical
resizing with scrolling overflow so users can expand them as needed.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. 🐞 bug Something isn't working, pull request that fix bug. 🧰 typescript Pull requests that update Typescript code labels Aug 28, 2026
@dcc123456
dcc123456 requested a review from wangq8 August 28, 2026 08:07
@dcc123456 dcc123456 added the ci Continue Integration label Aug 28, 2026
@dcc123456
dcc123456 marked this pull request as draft August 28, 2026 08:08
@dcc123456
dcc123456 marked this pull request as ready for review August 28, 2026 08:08
@coderabbitai

coderabbitai Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 9acfd5a2-8fa7-43a2-b584-7211f2f71b42

📥 Commits

Reviewing files that changed from the base of the PR and between 1d4a86e and 2c84e04.

📒 Files selected for processing (1)
  • web/src/pages/agent/gobal-variable-sheet/constant.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

The global variable form now configures its value and description textareas with automatic overflow handling and vertical resizing.

Changes

Global variable form

Layer / File(s) Summary
Textarea field configuration
web/src/pages/agent/gobal-variable-sheet/constant.ts
The value and description textarea fields now use overflow-auto and allow vertical resizing through fieldConfig.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: ⚪ Minimal · up to 2c84e

This localized UI change enables vertical resizing and scrolling for global-variable textareas without affecting stored data or application behavior. No actionable merge-blocking risk remains after normal checks and review.

Poem

A rabbit adjusts the textarea with care
Overflow flows through the open air
The fields stretch upward, then rest
Vertical resizing works best
Two small settings complete the quest

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly and concisely describes the main change: enabling vertical resizing for global variable textareas.
Description check ✅ Passed The description includes the required Summary section and explains the problem, the change, and the user benefit.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@wangq8 wangq8 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is an AI review comment.

LGTM. fieldConfig is spread onto the Textarea component, which already accepts a resize prop ('none' | 'vertical' | 'horizontal' | 'both') and applies it via inline style plus an automatic overflow-auto class when resizable. So resize: 'vertical' correctly enables vertical resizing with scroll overflow.

Minor (non-blocking): the explicit className: 'overflow-auto' is redundant — Textarea already applies overflow-auto whenever resize !== 'none' — but it is harmless.

This is an AI review comment.

@wangq8
wangq8 merged commit 95a90bf into infiniflow:main Aug 28, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 bug Something isn't working, pull request that fix bug. ci Continue Integration size:XS This PR changes 0-9 lines, ignoring generated files. 🧰 typescript Pull requests that update Typescript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants