-
Notifications
You must be signed in to change notification settings - Fork 626
feat: updated api settings page #3072
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 41 commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
b71756f
api settings page changes
MichaelUnkey 9d27f0f
[autofix.ci] apply automated fixes
autofix-ci[bot] 4a76ce0
[autofix.ci] apply automated fixes (attempt 2/3)
autofix-ci[bot] dbbaa5e
Merge branch 'main' of https://github.com/unkeyed/unkey into new-rate…
MichaelUnkey 7d3d1cd
[autofix.ci] apply automated fixes (attempt 3/3)
autofix-ci[bot] faf5349
Merge branch 'new-ratelimit-settings-page' of https://github.com/unke…
MichaelUnkey 4870fc8
[autofix.ci] apply automated fixes
autofix-ci[bot] 71dc68f
fixed failing test
MichaelUnkey 2ed3568
Merge branch 'main' of https://github.com/unkeyed/unkey into new-rate…
MichaelUnkey 07c0006
rabbit suggetions
MichaelUnkey 25a7e1a
Merge branch 'main' into new-ratelimit-settings-page
MichaelUnkey e5dbd0c
Merge branch 'main' of https://github.com/unkeyed/unkey into new-rate…
MichaelUnkey 9a3b684
add link to James cal link
MichaelUnkey 9800c4a
Merge branch 'new-ratelimit-settings-page' of https://github.com/unke…
MichaelUnkey 79da2db
[autofix.ci] apply automated fixes
autofix-ci[bot] bfc8c81
Merge branch 'main' into new-ratelimit-settings-page
MichaelUnkey 831d1dd
[autofix.ci] apply automated fixes
autofix-ci[bot] e290729
Merge branch 'main' of https://github.com/unkeyed/unkey into new-rate…
MichaelUnkey 531124a
Merge branch 'new-ratelimit-settings-page' of https://github.com/unke…
MichaelUnkey 988f512
pnpm i
MichaelUnkey 826c5e7
[autofix.ci] apply automated fixes
autofix-ci[bot] a2ca5a1
changes from meeting notes
MichaelUnkey 4ab28c5
Merge branch 'new-ratelimit-settings-page' of https://github.com/unke…
MichaelUnkey a147006
fix ai fix
MichaelUnkey ae7665b
[autofix.ci] apply automated fixes
autofix-ci[bot] 0587153
Merge branch 'main' into new-ratelimit-settings-page
MichaelUnkey 65611a2
Merge branch 'main' of https://github.com/unkeyed/unkey into new-rate…
MichaelUnkey 4d53324
lock file
MichaelUnkey 63b7323
icon color
MichaelUnkey 4754f33
[autofix.ci] apply automated fixes
autofix-ci[bot] eccffe4
[autofix.ci] apply automated fixes (attempt 2/3)
autofix-ci[bot] 7e1ee1c
[autofix.ci] apply automated fixes (attempt 3/3)
autofix-ci[bot] 8a4dfe4
Merge branch 'main' into new-ratelimit-settings-page
MichaelUnkey cbfd8a6
styles
MichaelUnkey 6079af2
Merge branch 'main' of https://github.com/unkeyed/unkey into new-rate…
MichaelUnkey 84a71c8
style changes
MichaelUnkey 032fd2d
Merge branch 'main' of https://github.com/unkeyed/unkey into new-rate…
MichaelUnkey 1e2ecc2
Merge branch 'main' of https://github.com/unkeyed/unkey into new-rate…
MichaelUnkey ed48693
vercel comment changes
MichaelUnkey 8b6cd53
wording
MichaelUnkey da2d376
button loading
MichaelUnkey 0a669f9
Merge branch 'main' of https://github.com/unkeyed/unkey into new-rate…
MichaelUnkey 026d825
link to docs
MichaelUnkey 92f08c6
Merge branch 'main' of https://github.com/unkeyed/unkey into new-rate…
MichaelUnkey ea566d5
style changes
MichaelUnkey bbc4203
Changes from meeting
MichaelUnkey 1e51864
Button info color to UI package
MichaelUnkey dd8e5c9
design doc for info color
MichaelUnkey e0ab75a
Update internal/ui/src/components/button.tsx
MichaelUnkey bf2870b
Merge branch 'main' of https://github.com/unkeyed/unkey into new-rate…
MichaelUnkey 6384eb7
comment revisions
MichaelUnkey b237242
Merge branch 'main' of https://github.com/unkeyed/unkey into new-rate…
MichaelUnkey 620467d
Merge branch 'main' into new-ratelimit-settings-page
MichaelUnkey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
apps/dashboard/app/(app)/apis/[apiId]/settings/components/copy-api-id.tsx
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| import { SettingCard } from "@/components/settings-card"; | ||
| import { toast } from "@/components/ui/toaster"; | ||
| import { Clone } from "@unkey/icons"; | ||
| import { Input } from "@unkey/ui"; | ||
|
|
||
| export const CopyApiId = ({ apiId }: { apiId: string }) => { | ||
| return ( | ||
| <SettingCard | ||
| className="pt-8 pb-8 mx-0" | ||
| title={ | ||
| <div className="flex items-center justify-start gap-2.5"> | ||
| <span className="text-sm font-medium text-accent-12">API ID</span> | ||
| </div> | ||
| } | ||
| description={ | ||
| <div className="font-normal text-[13px] max-w-[380px]"> | ||
| An identifier for the API, used in some API calls. | ||
| </div> | ||
| } | ||
| border="bottom" | ||
| contentWidth="w-full lg:w-[320px]" | ||
| > | ||
| <Input | ||
| className="w-full lg:w-[320px] focus:ring-0 focus:ring-offset-0" | ||
| readOnly | ||
| defaultValue={apiId} | ||
| placeholder="API ID" | ||
| rightIcon={ | ||
| <button | ||
| type="button" | ||
| onClick={() => { | ||
| navigator.clipboard.writeText(apiId); | ||
| toast.success("Copied to clipboard", { | ||
| description: apiId, | ||
| }); | ||
| }} | ||
| > | ||
| <Clone size="md-regular" className="text-accent-8" /> | ||
| </button> | ||
| } | ||
| /> | ||
| </SettingCard> | ||
| ); | ||
| }; |
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.