Skip to content

Add Copy all button to the bulk results - #4

Merged
00xJS merged 1 commit into
masterfrom
feat/copy-all
Aug 4, 2026
Merged

00xJS merged 1 commit into
masterfrom
feat/copy-all

Conversation

@00xJS

@00xJS 00xJS commented Aug 4, 2026

Copy link
Copy Markdown
Owner

Ten events meant ten Copy clicks. The results header now carries a Copy all button that puts every generated description on the clipboard at once, blank-line separated and labelled with the count.

  • Appears only once there's more than one description, so a single result keeps the header uncluttered.
  • The clipboard call is factored into one helper shared with the per-card buttons, rather than duplicated.
  • Feedback uses the same role="status" live region pattern as the existing buttons.

Verification

Confirmed in a browser across all three states — 3 results (button shows "Copy all 3"), 1 result (hidden), empty output (hidden, heading intact) — and that the payload contains all three descriptions in order.

Worth noting: the clipboard write can't be exercised in the headless browser, which denies the API. I confirmed this is environmental rather than a regression by running the pre-existing per-card Copy button as a control — it reports the same "Copy failed" there, on unchanged code. Both paths use the same helper, so they succeed or fail together in a real browser.

🤖 Generated with Claude Code

Ten events meant ten Copy clicks. The results header now carries a Copy all
button that puts every generated description on the clipboard at once, blank
-line separated, labelled with the count.

It only appears once there is more than one description, so a single result
keeps the header uncluttered. The clipboard call is factored into one helper
shared with the per-card buttons rather than duplicated.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@netlify

netlify Bot commented Aug 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for sundance-dgen ready!

Name Link
🔨 Latest commit 268eb16
🔍 Latest deploy log https://app.netlify.com/projects/sundance-dgen/deploys/6a71513ae4664e0008b2a330
😎 Deploy Preview https://deploy-preview-4--sundance-dgen.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@00xJS
00xJS merged commit f27537a into master Aug 4, 2026
5 checks passed
@00xJS
00xJS deleted the feat/copy-all branch August 4, 2026 02:41
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