fix(desktop): new workspace composer cleanup, and cap prompt inputs at 10 lines

Merged
SA
16d ago
+13-320

What

  1. Resize handles removed (fixes the edge line). The thin vertical line on the new-workspace composer's left edge was the hover indicator of SymmetricResizeHandles. The handles are now gone, and the composer is a fixed max-w-[592px] (the old default). SymmetricResizeHandles and the new-workspace-width store had no other users and are deleted. The store's localStorage key moves to DEAD_KEYS so the boot sweep clears it from existing profiles. The two "Resize … edge" messages drop out of every catalog.
  2. No layout shift when the composer changes size. The heading group (icon, "What should we build next?", star pill) was a flex-1 sibling of the composer, so it re-centred whenever the composer block changed height. It is now absolutely positioned at the exact vertical centre (top-1/2 -translate-y-1/2), and the composer block is bottom-anchored (flex-1 justify-end) and grows upward. The heading hides below 640px of viewport height. The star pill keeps pointer events.
  3. Every prompt input caps at 10 lines (chat-ui). .prompt-input-editor was max-height: 40vh (443px on a 1108px window). It is now min(10lh, var(--prompt-input-max-height, 40vh)): 10 lines (227.5px) everywhere, chat included, with 40vh still the limit on short windows. The new-workspace screen sets --prompt-input-max-height: max(4.5rem, calc(50vh - 16rem)), so on short windows the composer stops before the centred heading.
  4. The redundant className="w-full" on both new-workspace composers is dropped.

Screenshots

https://app.superset.sh/page/new-workspace-screen-composer-line-and-layout-shif-mavua7

Composer stateHeading top, beforeHeading group centre, afterComposer top, afterEditor, after
Empty, suggestions shown445px554px828px40px
1 line501px554px940px40px
6 lines453px554px844px137px
10 linesn/a554px753px228px, no scroll
11+ linesn/a554px753px228px, scrolls

Screen centre is 554px; the heading group ends at 643px.

Validation

  • Ran the desktop dev app in a cloud workspace (1920×1108 window) and drove it over CDP: typed into the real composer (Shift+Enter for new lines) and measured the heading group, composer, and editor in each state. After the change there are no separator handles, the composer edge has a normal cursor, and the width is 592px.
  • The "before" edge-line image is partly synthetic. The headless display reports (hover: none), so I injected the handle's bg-border color to show the line.
  • Chat's 10-line cap is checked synthetically only: a .prompt-input-editor with no override in the running renderer computes max-height: 227.5px. I did not open a real chat pane (every workspace in this dev app is on a remote host).
  • Desktop bun run typecheck passes, the persisted-keys tests pass (12/12), bun run check:i18n regenerated the catalogs (only the two resize messages removed, 18 locales), and biome check passes on the touched directories.
  • Not covered: the Paradev-shell variant of this screen (it picks up the cap and the fixed width, but was not exercised), and windows shorter than 1108px.

Summary by CodeRabbit

  • Improvements
    • The new-workspace screen keeps the composer bottom-aligned, with a consistent maximum width across both layouts.
    • Prompt input height adapts to the available screen space, and the heading and GitHub star badge are positioned independently in the standard layout.
  • Changes
    • Composer resizing is no longer available. The composer uses a fixed maximum width instead of a user-adjustable width.