Skip to content

add a paste button to the dashboard Quick Capture widget - #4725

Merged
atomantic merged 1 commit into
mainfrom
cos/task-mt2l8m7w/agent-f1fc019b
Aug 21, 2026
Merged

add a paste button to the dashboard Quick Capture widget#4725
atomantic merged 1 commit into
mainfrom
cos/task-mt2l8m7w/agent-f1fc019b

Conversation

@atomantic

Copy link
Copy Markdown
Owner

Summary

  • Quick Capture (dashboard widget) gets a paste button next to the input, so a copied link goes in without clicking into the field first.
  • Uses the shared readClipboard helper (safe on insecure-origin contexts), trims the pasted text, and refocuses the input.
  • Distinguishes an unreadable clipboard ("Clipboard unavailable — paste into the box instead") from an empty one ("Clipboard is empty"), so the message names the real problem.

Test plan

  • client: 3 new tests in QuickBrainCapture.test.jsx cover paste-then-capture, unreadable clipboard (typed text preserved), and empty clipboard.
  • Full client suite green: 700 files / 8825 tests.
  • biome lint --error-on-warnings clean on both changed files.

Capturing a copied link meant clicking into the input first, then hitting
paste — two steps for the widget's most common flow. The button reads the
clipboard directly (via the shared readClipboard helper, which stays safe on
insecure-origin contexts) and distinguishes an unreadable clipboard from an
empty one so the error message names the actual problem.
@atomantic
atomantic merged commit 2abfc4b into main Aug 21, 2026
7 checks passed
@atomantic
atomantic deleted the cos/task-mt2l8m7w/agent-f1fc019b branch August 21, 2026 06:53
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