Skip to content

Stabilize message actions across desktop and touch - #4682

Merged
ymichael merged 5 commits into
mainfrom
bb/a3-message-actions-menu-thr_snd2jr3d45
Oct 2, 2026
Merged

ymichael merged 5 commits into
mainfrom
bb/a3-message-actions-menu-thr_snd2jr3d45

Conversation

@ymichael

@ymichael ymichael commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

Message actions mixed direct controls with two touch-only overflow behaviors: hidden actions could expand into the row or open a small popover depending on the available column width. Add to chat and Fork also competed with the primary actions for inline width, and there was no stable place to inspect a message timestamp.

What changed

  • Keep the existing message-width measurement and touch recency rules. Latest user and assistant messages still show inline candidates on touch; older messages still show only ⋯.
  • Always reserve ⋯. Copy, Edit, Send to main, and plugin actions remain inline in that priority order while they fit; candidates that do not fit move into ⋯ from the end.
  • Move Add to chat and Fork out of the inline row. Desktop menus contain only overflowed candidates first; compact/mobile drawers list every candidate, including shortcuts already visible inline. Both then show Add to chat and Fork, followed by a muted timestamp-only footer with a divider and shaded strip. The timestamp aligns with the left edge of the action icons on desktop and touch, with 12px vertical padding above and below.
  • Use the shared bottom drawer whenever the compact/touch menu opens. Desktop keeps the dropdown's default placement, opening below the message and collision-flipping only when needed.
  • Keep action rows on one line and leave the assistant text-selection toolbar unchanged.
  • Update the Plugin Guide anatomy, stories, and focused coverage. This PR deliberately contains no Copy link, message-sequence, or message-link handling; A2 follows A3.

This does not change the Plugin SDK, server/daemon contracts, or HOST_DAEMON_PROTOCOL_VERSION.

How you verified

Latest follow-up b99cb971: 52 focused tests passed, app typecheck/lint passed with existing warnings, and final-head CI passed (24 successful, 3 skipped). Live Chromium confirmed the complete latest/older mobile drawer lists, plugin dispatch/dismissal, unchanged inline recency, compact fine-pointer presentation, and unchanged downward overflow-only desktop menu. The persistent review server is rebuilt with this follow-up. Broad app and iOS checks below are reused earlier evidence; Safari was not repeated for the item-list-only change.

  • pnpm exec turbo run test --filter=@bb/app -- MessageActionBar.test.tsx ThreadTimelineRows.actions.test.tsx — 52 passed
  • pnpm exec turbo run typecheck lint --filter=@bb/app --filter=bb-plugin-plugin-api-docs
  • pnpm exec turbo run test --filter=@bb/app -- --maxWorkers=4 — 5,201 passed, 5 skipped
  • git diff --check origin/main
  • Desktop Chromium: confirmed the default downward dropdown, menu order, timestamp-only footer, and width-based overflow.
  • Compact coarse-pointer Chromium: confirmed latest/older recency behavior, end-of-row overflow order, the persistent drawer, and a non-inert/non-hidden app root.
  • iOS 18.4 Simulator Safari: confirmed fitting inline actions, shared bottom drawer, overflowed plugin actions before Add to chat, timestamp-only footer, and no wrapping.

The default-worker broad run completed every scoped typecheck/lint task and 5,200+ app tests, but exposed unrelated order-dependent timing failures in unchanged tests. Each failing file passed in isolation, and the complete app suite passed with four workers as recorded above.

  1. Open a thread with older and latest user/assistant messages plus several plugin message actions. On desktop, hover each row. Expect Copy, Edit where available, then plugin actions while they fit, with ⋯ always present and no wrapping.
  2. Narrow a message row and open ⋯. Expect the overflowed candidate suffix first, then Add to chat and Fork, then only the timestamp. On desktop the menu opens below by default.
  3. Repeat on a compact touch viewport. Expect only ⋯ on older user/assistant messages; latest messages keep the candidates that fit. Tapping ⋯ opens the shared bottom drawer with the complete list: Copy, Edit where available, existing Send to main where supplied, all plugin actions, then Add to chat and Fork where available, then the timestamp. Inline shortcuts are also listed in the drawer.
  4. Inspect Side Chat message actions. Expect Reply in side chat / Send to main and other plugin actions to participate in the same measured inline/overflow order.
  5. Select assistant prose. Expect the existing selection toolbar to remain anchored to the selection.

AGENT GENERATED

@ymichael
ymichael force-pushed the bb/a2-link-to-individual-messages-thr_9347typ82u branch from 8035ba2 to 20de485 Compare October 2, 2026 04:17
@ymichael
ymichael force-pushed the bb/a3-message-actions-menu-thr_snd2jr3d45 branch from 085031d to 4c81488 Compare October 2, 2026 04:56
@ymichael
ymichael changed the base branch from bb/a2-link-to-individual-messages-thr_9347typ82u to main October 2, 2026 04:56
@ymichael
ymichael merged commit f1d7b98 into main Oct 2, 2026
27 checks passed
@ymichael
ymichael deleted the bb/a3-message-actions-menu-thr_snd2jr3d45 branch October 2, 2026 17:54
lukes-clanker Bot pushed a commit to banjerluke/bb that referenced this pull request Oct 6, 2026
Message actions, tab pill close buttons, queued message actions, and
selected sidebar row actions stay visible on any coarse-pointer or
non-hover device instead of only on compact viewports. Touch menus also
pass image-only content through to the copy action.

Squashed from feat/tablet-hover-controls (3 commits) while rebasing onto
upstream's message action rework (get-bb#4682, get-bb#4846, get-bb#4698) and queued
message disclosure (get-bb#5015).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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