Skip to content

Fix Prompt Library option row click areas - #5896

Merged
ymichael merged 1 commit into
mainfrom
bb/fix-dead-clicks-on-account-pool-account-rows-thr_iexuhx6hin
Oct 20, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/fix-dead-clicks-on-account-pool-account-rows-thr_iexuhx6hin

Conversation

@ymichael

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

Prompt Library popup options highlight a padded wrapper, but only the inner buttons handle clicks. Real mouse clicks in the highlighted padding land on the wrapper and do nothing. This is the same hit-area mismatch addressed for other rows in #5891.

What changed

Stretch each option's primary button across its highlighted row using the existing pseudo-element pattern. Keep the separate star button above the stretched target, and prevent repeated row clicks from selecting text. No wire, CLI, or public API changes.

How you verified

  • Reproduced before editing with a real mouse click 3px inside the row's top-left corner: no action; clicking the inner button saved the draft.
  • Verified real clicks in top-left, left, bottom-right, and right padding select the prompt preview after the fix; the corner of Star current draft saves the draft.
  • Verified Unstar acts independently without changing the selected preview, keyboard ArrowUp/Enter inserts the highlighted prompt, and compact 500px layout opens the preview from a padding click.
  • pnpm exec turbo run typecheck lint test --filter=bb-plugin-bb--prompt-library passes: 49 tests across 2 files. Lint reports one existing set-state-in-effect warning.
  • Started a pnpm start:worktree build with two sample prompts for manual sanity checking.

AGENT GENERATED

@ymichael
ymichael force-pushed the bb/fix-dead-clicks-on-account-pool-account-rows-thr_iexuhx6hin branch from 9110384 to f9264c8 Compare October 20, 2026 19:33
@ymichael
ymichael merged commit 386aff3 into main Oct 20, 2026
23 checks passed
@ymichael
ymichael deleted the bb/fix-dead-clicks-on-account-pool-account-rows-thr_iexuhx6hin branch October 20, 2026 19:39
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