Skip to content

feat(bots): Cancel replaces the More menu in item row hover actions - #51417

Merged
orca-remote-automation[bot] merged 1 commit into
mainfrom
orca-remote-automation/needs-you-row-cancel
Nov 28, 2026
Merged

orca-remote-automation[bot] merged 1 commit into
mainfrom
orca-remote-automation/needs-you-row-cancel

Conversation

@orca-remote-automation

@orca-remote-automation orca-remote-automation Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

When you hover an item in a bot's list, it used to show Done, Snooze and a "…" menu. Now it shows Done, Snooze and an ✕ that cancels the item. The "…" menu only repeated those three actions.

What Changed

  • Bot item rows' hover actions change from ✓ Done · ◷ Snooze · ⋯ More to ✓ Done · ◷ Snooze · ✕ Cancel (approved design C).
  • ✕ is a top-level icon button with the same ghost-on-accent / icon-xs size, gap and alignment as ✓ and ◷, with aria-label and tooltip "Cancel". It keeps the row's tabbable tab-index rule.
  • It calls the same handler as the old menu item (onAction(item, { kind: 'cancel' }) → move([item], 'canceled')). Cancel takes no reason and has no confirmation, same as before.
  • The ⋯ menu is gone. Its pointer-exit-close behavior (useMenuPointerExitClose) now applies to the Snooze dropdown, the row's one remaining hover menu.
  • i18n: bots.items.menu.cancel becomes bots.items.row.cancel, with existing translations carried over. bots.items.menu.done was used only by the removed menu and is deleted. bots.items.row.more stays because BotPanelRow still uses it.

What the ⋯ menu contained

Every entry, and where it lives now:

⋯ entry Now
Done ✓ button (same handler)
Snooze ▸ Later today / Tomorrow / Monday / Pick a time… ◷ dropdown (same BotItemSnoozeMenuItems)
Unsnooze (only shown while snoozed) ◷ dropdown, which renders it under the same condition
Snoozed-until label on the submenu trigger (informational) Snoozed rows already show "until …" in the row itself
Cancel ✕ button

No action is dropped.

Why

Cancel was the menu's one unique action, and it sat two clicks deep behind an overflow icon. Showing it directly keeps the row at three icons and removes a menu that duplicated the other two buttons.

Linked Issue

None. This is a maintainer design change.

Visual Proof

Hover/focus state, narrow sidebar (240px), component fixture bots/items/BotItemRow:actionsNarrow:

Dark Light
Before before dark before light
After after dark after light

Testing

  • I manually tested these changes locally (component fixture screenshots in both themes at narrow width; pnpm check:changed passes)
  • Automated tests added/updated, or explained why not below
  • Every added test fails without this change and avoids the test anti-patterns

No unit test was added: repo policy rules out UI-behavior unit tests ("button does X"), and no existing test referenced the ⋯ menu. Tested on macOS.

Performance

None, because each open row now mounts one DropdownMenu root and trigger fewer and one Tooltip more. Menu content is lazy in both versions, and the row's memo comparator and props are unchanged, so rows re-render no more often. This comes from reading the diff; no benchmark was run.

Risk

The riskiest part: ✕ now cancels in one click instead of two, with no confirmation, the same as the menu item did. A canceled item can be reopened from its status. If we want a guard, an undo toast would fit better than a confirm dialog. Renderer only, with no stored data or wire change. Back out with a plain revert.

Level: Low

Review

  • Team Eng Reviewer (official): PASS on 0e4d4e7, no P0/P1.
  • UX seat (gemini-4-neon-medium): PASS, no P0/P1.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Security, cross-platform, Remote SSH and backwards compatibility: renderer-only change with no platform or host branching. Mobile uses its own item sheets and locale catalog, so it is unaffected.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • I stated the risk: what could break, for whom, and how to back it out
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

…ore menu

Item rows' hover actions become Done, Snooze, Cancel. The More menu only
repeated Done and Snooze, so Cancel was its one unique action.
@orca-remote-automation
orca-remote-automation Bot merged commit 963b836 into main Nov 28, 2026
54 of 56 checks passed
nwparker added a commit that referenced this pull request Nov 28, 2026
…main

#51417 moved bots.items.menu.cancel/done to bots.items.row.*, while the
fr/es/ja/zh-Hant desktop translation PRs merged with the old keys. The
catalog verifier now fails on main with 'extra' keys. Remove the stale
pair and carry each locale's existing Cancel translation to
bots.items.row.cancel.
nwparker added a commit that referenced this pull request Nov 28, 2026
…time, drop stale item menu keys) (#51478)

* fix(bots): split bot-items-runtime to restore the max-lines lint on main

* fix(i18n): drop stale item menu keys that break the catalog check on main

#51417 moved bots.items.menu.cancel/done to bots.items.row.*, while the
fr/es/ja/zh-Hant desktop translation PRs merged with the old keys. The
catalog verifier now fails on main with 'extra' keys. Remove the stale
pair and carry each locale's existing Cancel translation to
bots.items.row.cancel.
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.

0 participants