Skip to content

Add Notify parent to thread menus and sidebar multi-select - #6485

Merged
ymichael merged 3 commits into
mainfrom
bb/enable-multi-select-for-parent-notifications-thr_javhftwr58
Oct 28, 2026
Merged

ymichael merged 3 commits into
mainfrom
bb/enable-multi-select-for-parent-notifications-thr_javhftwr58

Conversation

@ymichael

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

Notify parent (auto / stuck / off) could only be changed one thread at a time, from the thread info panel. It wasn't a thread action, so it was missing from the thread menus and from the sidebar's multi-select menu. Setting it for several child threads meant opening each one.

What changed

  • Core thread action: a new parentNotifications action in CORE_THREAD_ACTIONS offers Auto / When stuck / Off choices.
    • A child thread's menu shows its current value: desktop menus, the right-click menu and the compact long-press drawer. Root threads don't get the item.
    • Its experimental_bulkItem shows the shared value or "Mixed" for a sidebar selection. It applies the pick to the selected threads that have a parent, skips threads already at that value, and notes "Applies to N threads with a parent" when the selection includes root threads.
    • Updates go through sdk.threads.update, with the usual error toast.
  • Plugin SDK: PluginThreadActionTarget and PluginSidebarThread gain parentNotifications, so the action reads the value from the thread payload. Filled in by the app's target builders, plugin-sidebar-threads, and the thread-list plugin's target builder. Plugin SDK 0.6.97. docs/api_to_audit.md (thread action core callers) and the bb-plugin-authoring sidebar DTO reference are updated.
  • Shared labels: the info panel row and the action share one option list (apps/app/src/lib/parent-notifications.ts).
  • Icon: Notify parent uses a megaphone (Hugeicons Megaphone02Icon, registered as Megaphone02) in the action and the info row. It replaces the bell, which matched the push Notifications action directly above it.
  • No server, daemon wire or CLI changes. bb thread update --parent-notifications already covers per-thread changes.

How you verified

  • ThreadActionsMenu.test.tsx:
    • Every menu surface lists "Notify parent, Auto" for a child thread.
    • New selection test: two children (one already Off) plus a root thread, pick Off. Expects one threads.update call, for the child that wasn't Off. It fails without the bulk item.
  • Turbo typecheck ...[origin/main]. Lint for @bb/app.
  • Tests: @bb/app, @bb/shared-ui, @get-bb/plugin-sdk, and plugins thread-list, push-notifications, git, github-pr-status, provider-usage, bb-guide and plugin-api-docs.
  • Manual, on pnpm start:worktree with CLI fixtures (a parent with auto / stuck / off children plus a root thread):
    • Cmd+Shift-selected two children and the root, right-clicked, Notify parent → Off. bb thread show confirmed both children off and the root still auto. The menu then read "Notify parent, Off".
    • Checked the single-thread menus at 1440×900 and 1024×768, the phone long-press drawer step at 390×844, and the info panel row, against origin/main's bundle on the same data.

AGENT GENERATED

🤖 Generated with Claude Code

ymichael and others added 3 commits October 28, 2026 14:36
Register a core "Notify parent" thread action with Auto / When stuck /
Off choices. A child thread's menu shows its current setting; a
multi-thread sidebar selection shows the shared value (or "Mixed") and
applies the pick to every selected thread that has a parent, skipping
root threads and threads already at that value.

PluginThreadActionTarget and PluginSidebarThread gain
parentNotifications so the action reads the value from the thread
payload. The info panel row and the action share one option list.
Plugin SDK 0.6.97.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The bell matched the push Notifications action right above it in thread
menus. Register Hugeicons' UserWarning01Icon as "UserWarning01" and use
it for the Notify parent thread action and the info panel row.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The user-warning icon's "!" badge was unreadable at the 12 px info-row
size and blended into the Parent row's person icon. Register Hugeicons'
Megaphone02Icon as "Megaphone02" in place of UserWarning01 and use it for
the Notify parent thread action and info panel row.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ymichael
ymichael merged commit c738623 into main Oct 28, 2026
51 checks passed
@ymichael
ymichael deleted the bb/enable-multi-select-for-parent-notifications-thr_javhftwr58 branch October 28, 2026 21:48
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