Skip to content

Fix AskUserQuestion to support multiline - #4119

Merged
nightnei merged 2 commits into
trunkfrom
fixAskUserQuestionMultiline
Jul 10, 2026
Merged

Fix AskUserQuestion to support multiline#4119
nightnei merged 2 commits 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

wpmobilebot commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

📊 Performance Test Results

Comparing 30a0264 vs trunk

app-size

Metric trunk 30a0264 Diff Change
App Size (Mac) 1419.29 MB 1419.29 MB +0.00 MB ⚪ 0.0%

site-editor

Metric trunk 30a0264 Diff Change
load 1035 ms 1082 ms +47 ms ⚪ 0.0%

site-startup

Metric trunk 30a0264 Diff Change
siteCreation 6979 ms 6984 ms +5 ms ⚪ 0.0%
siteStartup 2348 ms 2353 ms +5 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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I shortened it

@nightnei
nightnei enabled auto-merge (squash) July 10, 2026 09:24
@nightnei
nightnei merged commit 61dc4ff into trunk Jul 10, 2026
13 checks passed
@nightnei
nightnei deleted the fixAskUserQuestionMultiline branch July 10, 2026 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants