Repository navigation
feat(items): one-row reply box with the actions inline - #49439
Merged
Merged
Conversation
orca-remote-automation
Bot
requested a review
from brennanb2025
as a code owner
November 26, 2026 02:28
Contributor
Author
|
@coderabbitai review |
orca-remote-automation
Bot
force-pushed
the
ux/reply-box-one-row
branch
2 times, most recently
from
November 26, 2026 07:07
b85da2e to
7dce9c8
Compare
orca-remote-automation
Bot
force-pushed
the
ux/reply-box-one-row
branch
from
November 26, 2026 07:32
7dce9c8 to
426682d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
The reply box under an agent's question was tall: the question chip, then four empty lines, then a row of buttons. It now starts as one row, with the buttons beside the text, and grows only as you type.
What Changed
+on the left of the text, then theN / Mcounter with its arrows, then mic and send on the right. With the chip it is 76px tall (the same fixture on main is 167px).+left, counter, arrows, mic and send right).+and send buttons' edges, its dot on the+column and its × on the send column. When the text has its own row it starts on that same left edge, and so do attached image thumbnails (inset 2px so the first one's focus ring still shows). The arrows now center on+and send; on main they sat 4px low. They also sit exactly where the arrows do in the no-box placeholder row (main was 2px/6px off).useBotItemCommentStackedloses its "tall" reply mode (four lines minimum, eleven max). Replies use the same one-row-then-stack rule as every comment. A container query on the item pane stacks narrow panes; the placeholder is measured in the editor's own font against the room beside the controls (read while the text sits there, so stacking never feeds back; a box that opens stacked tries one row once there is room), and stacks the box rather than falling back to "Add a comment…". The arrows get a wrapper that keeps their own width beside the text and takes the free space on their own row.Why
The tall default took vertical space from the Activity feed while the answer is usually one line. This is the approved layout of the options that were mocked up. Checked against how comparable products handle this: a one-line default that grows as you type, with actions inline. Alternatives considered: keep a separate button row under a one-line input (two rows by default), or hide the chip (loses which question you are answering).
Linked Issue
N/A: maintainer change, no pre-existing issue.
Visual Proof
Component fixtures (
bots/items/BotItemStepper:ask*), 2x, both themes, isolated fixture data.Before / after (167px → 76px):
Narrow panes stack:
Break at 520px: 519px stacked, 520px inline, and at 520px with 3- and 4-digit counters the placeholder still fits:
Turkish and Chinese at 440, 480 and 520px:
Attached image while replying: chip, thumbnail and text share one left edge. Plus the plain box stacked in a narrow pane:
Question without quick replies ("Reply to …", long bot name) in en/tr/zh at 520-760px: it stays one row where the placeholder fits and stacks where it would cut:
Long text: full width with the buttons below, capped at six lines, then it scrolls:
Measured in the DOM: dot center x 53 =
+icon center x 53 (all widths); in a 340px pane chip right 335 = send right 335 and × center x 319 = send center x 319 (a question line that fits whole keeps the chip hugging its text);+/ arrows / send centers share one y (75 inline at 560px, 109 stacked at 340px). Stacked text left 37 = chip left 37 = image thumbnail left 37 =+button left 37.Testing
pnpm check:changedpasses (31/31). Platforms: renderer-only CSS/layout, checked on macOS.Performance
Negligible. While a question waits, one ResizeObserver per open item pane measures the placeholder (one hidden span laid out per box resize, not per keystroke). The existing line-wrap observer now also runs for an empty reply box.
Risk
Layout of the item comment box only. The riskiest part is the 520px container-query break: a pane right at 520px shows a ~220px text field beside the controls. No data, settings, IPC or remote behavior is touched. Back out with a plain revert.
Level: Low
Agent skill upstream boundary
Notes
Cross-platform: CSS only, no platform branches. Touch pointers keep their larger hit targets (the arrow wrapper follows the 44px button height). Remote/SSH and mobile: no change to data paths. Folder workspaces: unaffected.
In very narrow panes (roughly 240-440px depending on language and bot name) even the text's own row cannot fit a question's placeholder, so it falls back to "Add a comment…", as before.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)