Skip to content

chore: copy token button - #1082

Open
arunjaindev wants to merge 1 commit into
mainfrom
chore/copy-token-button
Open

arunjaindev wants to merge 1 commit into
mainfrom
chore/copy-token-button

Conversation

@arunjaindev

Copy link
Copy Markdown
Contributor

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Checklist

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

Copilot AI balanced review requested due to automatic review settings December 3, 2026 11:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The copy handler reports success when the session token is missing, leaving unrelated clipboard content unchanged instead of showing an error.

1 open issue
What changed in this PR

Adds an API-token copy action to the shared profile menu.

Changes:

  • Adds “Copy my API token” with clipboard copying and a success toast.
  • Adjusts profile-menu spacing and separators.
  • Bumps the library version to 4.0.15-patch-2.
File Description
src/​Shared/​Components/​Header/​ProfileMenu.tsx Adds token copying and updates menu layout.
package.json Bumps the package version.
package-lock.json Synchronizes lockfile version metadata.

Review effort: Balanced

Comment on lines +61 to +62
const token = getCookie(TOKEN_COOKIE_NAME)
await copyToClipboard(token)
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.

3 participants