Skip to content

feat: add copy-to-clipboard button for summary results#164

Open
howardpen9 wants to merge 1 commit intosteipete:mainfrom
howardpen9:feat/copy-summary-button
Open

feat: add copy-to-clipboard button for summary results#164
howardpen9 wants to merge 1 commit intosteipete:mainfrom
howardpen9:feat/copy-summary-button

Conversation

@howardpen9
Copy link
Contributor

Summary

  • Adds a copy button (clipboard icon) in the header controls area, next to the settings gear
  • Copies the full summary markdown to the clipboard with one click
  • Shows "Copied" status feedback for 800ms (reuses existing header status pattern)
  • Button only appears when a summary is rendered, hides when cleared

Closes #162

Implementation Details

  • index.html: Added copy button with Material Design clipboard SVG icon using existing .ghost .icon button classes
  • main.ts: Wired up click handler using navigator.clipboard.writeText(), toggles button visibility via hidden attribute in renderMarkdown() and the clear function

Test Plan

  • Summarize a page, verify copy button appears in header
  • Click copy button, paste elsewhere to confirm markdown content is copied
  • Verify "Copied" status flash appears briefly
  • Clear summary, verify copy button disappears
  • Verify button does not appear before a summary is generated

Adds a copy button in the header controls that copies the full
summary markdown to the clipboard. The button appears once a
summary is rendered and hides when the view is cleared.

Closes steipete#162
@howardpen9
Copy link
Contributor Author

up

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.

Add copy-to-clipboard button for summarized results

1 participant