Skip to content

Let users choose which quick actions thread rows show - #4265

Merged
brsbl merged 15 commits into
mainfrom
bb/thread-row-action-visibility-thr_uxg8nhnedz
Sep 26, 2026
Merged

brsbl merged 15 commits into
mainfrom
bb/thread-row-action-visibility-thr_uxg8nhnedz

Conversation

@brsbl

@brsbl brsbl commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

Thread rows always showed one Archive button on hover, and users could not change which quick actions appeared.

What changed

  • Thread rows show up to three quick actions, chosen by the user.
  • Choices: Open in split, Copy thread link, Mark read / unread, Pin, Move to section, Rename, Archive.
  • Customize row actions in the row's ⋯ menu opens a card in place of the list, like Customize list.
  • In the card, click a slot to pick an action or Hide, and drag filled slots to reorder.
  • Done returns to the starting row and scroll position.
  • Move to section is a new quick action that opens a section menu.
  • The ⋯ menu, right-click menu, and quick buttons share one action order, name, and icon.
  • The default stays Archive only, so existing users see no change.
  • New rowActions preference: bb thread-list prefs get|set|reset rowActions.
  • Stored unknown action ids are dropped instead of resetting the whole list.
  • Documented in docs/configuration.md and the thread-list skill. No server/daemon wire changes.

Screenshots

Branch dev app, Chrome for Testing (headless via bb Browser Automation), 1280×800 at 2×. Before: main at fdd3de3b19. After: this PR.

Thread row ⋯ menu (after: row set to Pin, Move to section, Archive)

Before After
Before: Archive only, no customize item After: three quick actions and Customize row actions item

Hovered thread row (after: Pin, Copy thread link, Archive)

Before After
Before: Archive only After: Pin, Copy link, Archive

New in this PR

Move to section quick action Customize card slot picker
After: Move to section opens a section menu After: slot picker in thread menu order, ending with Hide

How you verified

  • Dev app: filling, swapping, hiding, and dragging slots updated the row as expected.
  • Dev app: Esc closes only the open slot picker, not the card.
  • Dev app: Move to section opens the section menu with the current section checked.
  • Dev app: ⋯ and right-click menus match main apart from the new item.
  • Dev app, 200 threads: Done from a low row restores scroll and focuses its ⋯ button.
  • Dev app at 390×844: the card opens as a full sidebar panel.
  • CLI: set, get, and reset work, and a fourth action is rejected.
  • Tests cover row spacing, menu order, slot focus, Move/split filtering, and stored-value parsing.
  • Remote CI: all checks passed on 36522b6903. Run

BB-Thread-ID: thr_uxg8nhnedz

🤖 Generated with Claude Code

AGENT GENERATED

brsbl and others added 7 commits September 24, 2026 08:56
Adds a rowActions thread-list preference (default ["archive"], up to 3,
empty allowed) edited from a new Customize row actions card that reuses the
Customize list UX, and settable through `bb thread-list prefs`.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Archived rows show only the actions menu beside their unarchive button, so
they reserve one action width regardless of rowActions. Adds the rowActions
preference and Customize row actions entry to docs/configuration.md.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Move Customize row actions into the thread row actions menu. The card previews a
thread row with three action slots; each slot picks an action or None, filled
slots drag to reorder, and Done returns to the originating row.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Row action ids follow the thread menu order, and the thread menu, context menu,
and row quick buttons all render through ThreadRowAction with shared titles and
icons. Move to section opens a section menu from the row.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
brsbl and others added 8 commits September 25, 2026 19:14
- Build quick action models from the row's sidebar actions instead of a
  hook per button, so rows keep base's hook count.
- Return focus to the opened slot after picking an action.
- Find the origin row's actions trigger by data attribute within that row.
- Drop unknown stored row action ids on read instead of resetting.
- Move the customize-row-actions context into a leaf module to break the
  rows/list import cycle.
- Test menu order, Move/split filtering, slot focus, and lenient reads.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…visibility-thr_uxg8nhnedz

# Conflicts:
#	plugins/thread-list/app/rows/ThreadActionsMenu.tsx
#	plugins/thread-list/app/rows/ThreadRow.test.tsx
#	plugins/thread-list/app/rows/ThreadRow.tsx
#	plugins/thread-list/skills/thread-list/SKILL.md
Filled slots are right-aligned, so filling a slot shifts actions and
the picked action can land in a different slot than the one opened.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The slot menu returned focus to its own trigger on close, overriding
the move to the slot that holds the picked action.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Name the catalog field label so action models spread it directly, and
restore unrelated import wrapping.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@brsbl
brsbl merged commit 80ff5b5 into main Sep 26, 2026
18 checks passed
@brsbl
brsbl deleted the bb/thread-row-action-visibility-thr_uxg8nhnedz branch September 26, 2026 05:49
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