Skip to content

feat: add Copy Input button for original text#438

Open
love25-codes wants to merge 1 commit into
Winter262005:mainfrom
love25-codes:feature/add-copy-input-button
Open

feat: add Copy Input button for original text#438
love25-codes wants to merge 1 commit into
Winter262005:mainfrom
love25-codes:feature/add-copy-input-button

Conversation

@love25-codes

Copy link
Copy Markdown
Contributor

Summary

Added a Copy Input button to the LinkedIn Text Formatter, allowing users to quickly copy the original input text with appropriate success and error notifications.

Related Issue

Closes #437

Changes

  • Added a new Copy Input button.
  • Implemented clipboard functionality to copy the contents of the input textarea.
  • Reused the existing notification system to display:
    • Success message when the input text is copied.
    • Error message when attempting to copy an empty input field.
  • Kept the existing Copy Output functionality unchanged.
  • Maintained consistent UI styling and button placement.

Testing

  • Added/updated tests
  • Tested locally (describe steps below)

Testing Steps

  1. Enter text into the Input textarea.
  2. Click Copy Input and verify that the original text is copied to the clipboard and a success notification is displayed.
  3. Clear the input field, click Copy Input, and verify that an error notification ("Nothing to copy.") is shown without copying any text.

Contributor Details

  • Name: Lovepreet Kaur
  • GitHub Username: @love25-codes
  • Program (SSoC / GSSoC / Hacktoberfest / Other): SSoC

Checklist before requesting a review

  • Code follows the project's conventions
  • No secrets or .env values are committed
  • I have performed a self-review of my code
  • Documentation has been updated if needed
  • CI passes
  • Linked the related issue above

@vercel

vercel Bot commented Jul 25, 2026

Copy link
Copy Markdown

@love25-codes is attempting to deploy a commit to the winter262005's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

feat: Add "Copy Input" Button in [linked-in-text-editor]

1 participant