Skip to content

Fix AskUserQuestion to support multiline#4119

Open
nightnei wants to merge 1 commit into
trunkfrom
fixAskUserQuestionMultiline
Open

Fix AskUserQuestion to support multiline#4119
nightnei wants to merge 1 commit into
trunkfrom
fixAskUserQuestionMultiline

Conversation

@nightnei

@nightnei nightnei commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Related issues

How AI was used in this PR

AI assisted

Proposed Changes

Let's use multiline to avoid trimming label and description in AskUserQuestion

BEFORE AFTER
Screenshot 2026-07-08 at 15 20 31 Screenshot 2026-07-08 at 15 16 56

Testing Instructions

  1. npm run cli:build
  2. node apps/cli/dist/cli/main.mjs code
  3. /liberate https://neicss.wixsite.com/sunflower-valley-exp
  4. Assert that you see non-trimmed label and description
  5. Ask Studio Code Use AskUserQuestion to ask me a question with 3 options and no description"
  6. Assert that it looks good too
    Screenshot 2026-07-08 at 15 23 04

@wpmobilebot

Copy link
Copy Markdown
Collaborator

📊 Performance Test Results

Comparing 1ac9b8a vs trunk

app-size

Metric trunk 1ac9b8a Diff Change
App Size (Mac) 1412.01 MB 1412.01 MB 0.00 MB ⚪ 0.0%

site-editor

Metric trunk 1ac9b8a Diff Change
load 1069 ms 1050 ms 19 ms ⚪ 0.0%

site-startup

Metric trunk 1ac9b8a Diff Change
siteCreation 7017 ms 7005 ms 12 ms ⚪ 0.0%
siteStartup 2354 ms 2363 ms +9 ms ⚪ 0.0%

Results are median values from multiple test runs.

Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff)

@sejas sejas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think it makes sense supporting multiline. Thanks!

@katinthehatsite katinthehatsite left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The changes worked as expected for me 👍

Image Image

* description word-wrapped and indented beneath it. Unlike SelectList's
* built-in single-row layout, nothing is truncated, and embedded newlines in
* labels and descriptions are preserved.
*/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think the name of the function is pretty self-explanatory so I would remove this or maybe just shorten to mention the gist. Not a strong preference if you find that keeping this is helpful

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.

4 participants