feat: add env format copy option in Create API Key dialog#764
Open
autumnbillinginternalapp[bot] wants to merge 1 commit intodevfrom
Open
feat: add env format copy option in Create API Key dialog#764autumnbillinginternalapp[bot] wants to merge 1 commit intodevfrom
autumnbillinginternalapp[bot] wants to merge 1 commit intodevfrom
Conversation
Adds a second copyable span below the API key showing: AUTUMN_SECRET_KEY="<key>" Uses the same component pattern with independent copy state.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a second copyable span below the raw API key in the Create Secret API Key dialog:
Same component pattern, independent copy state, slight stagger animation.
Summary by cubic
Adds a second copyable field in the Create API Key dialog to copy the key in env var format: AUTUMN_SECRET_KEY="". Each copy button has its own feedback and resets on reopen, with a slight staggered animation for clarity.
Written for commit 48f7356. Summary will update on new commits.
Greptile Summary
Added a second copyable format in the Create Secret API Key dialog that displays the API key as an environment variable, placed below the raw API key display.
Key Changes:
copiedEnvstate and correspondinguseEffecthook for independent copy state management of the environment variable formatfont-monoclass for better readability and includes proper formatting with quotes around the valueConfidence Score: 5/5
Important Files Changed
Last reviewed commit: 48f7356
(4/5) You can add custom instructions or style guidelines for the agent here!