Skip to content

refactor(web): pin abort button to end of composer left cluster#988

Open
junmo-kim wants to merge 1 commit into
tiann:mainfrom
junmo-kim:feat/composer-abort-button-last
Open

refactor(web): pin abort button to end of composer left cluster#988
junmo-kim wants to merge 1 commit into
tiann:mainfrom
junmo-kim:feat/composer-abort-button-last

Conversation

@junmo-kim

Copy link
Copy Markdown
Contributor

Summary

The abort (stop-generation) button in the composer's left action cluster sits mid-row — after Terminal, before Switch. The surrounding buttons (Terminal, Switch, voice mic, scratchlist, schedule) are all conditionally rendered, so the abort button's absolute position shifts depending on which of them happen to be present. For a destructive action you reach for while a turn is running, a target that moves around is easy to mis-click.

This pins the abort button to the last child of the left cluster, so whenever it is shown it renders immediately to the left of Send — a stable, predictable position regardless of which conditional siblings are visible.

Change

Pure JSX reorder in ComposerButtons.tsx: the showAbortButton block is relocated to the end of the left button group. No markup, props, handler, or i18n changes — behavior is identical, only render order changes. Single refactor commit.

Before / After

Both captured with Terminal + Switch + Schedule present, to show the position is now stable against conditional siblings.

Before — abort is mid-cluster (3rd), shifting with its neighbors:

before

After — abort is last, immediately left of Send:

after

Test plan

  • bun typecheck — 0 errors (cli / web / hub)
  • bun run test — all pass (cli / hub / web / shared)
  • Isolated Vite render with all conditional siblings present, confirming abort renders last (immediately left of Send)

Abort's position shifted with conditional siblings (terminal/switch/
schedule), making the destructive action's location unpredictable.
Move it to the last child of the left button group so it's always
immediately left of Send — pure JSX reorder, no markup/props/handler
changes.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Findings
No findings.

Questions
None.

Summary
Review mode: initial
No issues found in the latest diff. Residual risk: this is a UI ordering change and I did not run a browser render in this automated review.

Testing
Not run (automation)

HAPI Bot

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.

1 participant