Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
8774bb1
moved with v1 of docs
MichaelUnkey Jun 17, 2025
ccf0bde
Merge branch 'main' of https://github.com/unkeyed/unkey into move-cod…
MichaelUnkey Jun 17, 2025
880a340
Merge branch 'main' of https://github.com/unkeyed/unkey into move-cod…
MichaelUnkey Jun 18, 2025
cc8566d
small changes
MichaelUnkey Jun 18, 2025
ada90e2
eng docs change
MichaelUnkey Jun 20, 2025
c102094
Merge branch 'main' of https://github.com/unkeyed/unkey into move-cod…
MichaelUnkey Jun 20, 2025
5aab8ff
remove old code and replace imports
MichaelUnkey Jun 20, 2025
314671e
Merge branch 'main' into move-code-to-ui
MichaelUnkey Jun 20, 2025
e69c97c
Merge branch 'main' of https://github.com/unkeyed/unkey into move-cod…
MichaelUnkey Jun 23, 2025
b5c7d16
copy button and style changes
MichaelUnkey Jun 24, 2025
ac93f49
Merge branch 'main' of https://github.com/unkeyed/unkey into move-cod…
MichaelUnkey Jun 24, 2025
1aa392b
Merge branch 'main' of https://github.com/unkeyed/unkey into move-cod…
MichaelUnkey Jun 25, 2025
96f5f19
Merge branch 'main' of https://github.com/unkeyed/unkey into move-cod…
MichaelUnkey Jun 25, 2025
d96e1c5
Merge branch 'main' of https://github.com/unkeyed/unkey into move-cod…
MichaelUnkey Jun 25, 2025
0a9984e
Merge branch 'main' of https://github.com/unkeyed/unkey into move-cod…
MichaelUnkey Jun 25, 2025
b2602ad
Merge branch 'main' of https://github.com/unkeyed/unkey into move-cod…
MichaelUnkey Jun 25, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ConfirmPopover } from "@/components/confirmation-popover";
import { Dialog, DialogContent } from "@/components/ui/dialog";
import { toast } from "@/components/ui/toaster";
import { ArrowRight, Check, CircleInfo, Key2, Plus } from "@unkey/icons";
import { Button, CopyButton, InfoTooltip, VisibleButton } from "@unkey/ui";
import { Button, Code, CopyButton, InfoTooltip, VisibleButton } from "@unkey/ui";
import { useRouter } from "next/navigation";
import { useEffect, useRef, useState } from "react";
import { UNNAMED_KEY } from "../create-key.constants";
Expand Down Expand Up @@ -220,27 +220,15 @@ export const KeyCreatedSuccessDialog = ({
</div>
<div className="flex flex-col gap-2 items-start w-full mt-8">
<div className="text-gray-12 text-sm font-semibold">Try It Out</div>
<div className="w-full px-4 py-2 bg-white dark:bg-black border rounded-xl border-grayA-5">
<div className="flex items-start justify-between w-full gap-4 bg-transparent">
<div className="mt-2 overflow-x-auto w-full min-w-0">
<pre className="ph-no-capture whitespace-pre-wrap break-all text-[11px] pr-2">
{showKeyInSnippet ? snippet : snippet.replace(keyData.key, maskedKey)}
</pre>
</div>
<div className="flex items-center justify-between gap-2 mt-1 flex-shrink-0">
<VisibleButton
isVisible={showKeyInSnippet}
setIsVisible={(visible) => setShowKeyInSnippet(visible)}
title="Key Snippet"
/>
<Button variant="outline" size="icon" className="bg-grayA-3">
<div className="flex items-center justify-center">
<CopyButton value={snippet} />
</div>
</Button>
</div>
</div>
</div>

<Code
visibleButton={
<VisibleButton isVisible={showKeyInSnippet} setIsVisible={setShowKeyInSnippet} />
}
copyButton={<CopyButton value={snippet} />}
>
{showKeyInSnippet ? snippet : snippet.replace(keyData.key, maskedKey)}
</Code>
</div>
<div className="mt-6">
<div className="mt-4 text-center text-gray-10 text-xs leading-6">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { cn } from "@/lib/utils";
import { CircleLock } from "@unkey/icons";
import { Button, CopyButton, VisibleButton } from "@unkey/ui";
import { CopyButton, VisibleButton } from "@unkey/ui";
import { useState } from "react";

const maskKey = (key: string): string => {
Expand Down Expand Up @@ -45,17 +45,8 @@ export const SecretKey = ({
setIsVisible={(visible) => setIsVisible(visible)}
title={title}
/>
<Button
variant="outline"
size="icon"
className="bg-grayA-3"
aria-label={`Copy ${title}`}
title={`Copy ${title}`}
>
<div className="flex items-center justify-center">
<CopyButton value={value} />
</div>
</Button>

<CopyButton value={value} title={title} />
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ export const KeyDetailsLogsTable = ({ keyspaceId, keyId, selectedLog, onLogSelec
className="pointer-events-auto"
onClick={(e) => e.stopPropagation()}
>
<CopyButton value={tag} />
<CopyButton variant="ghost" value={tag} />
</div>
</div>
</div>
Expand All @@ -336,7 +336,7 @@ export const KeyDetailsLogsTable = ({ keyspaceId, keyId, selectedLog, onLogSelec
className="pointer-events-auto flex-shrink-0"
onClick={(e) => e.stopPropagation()}
>
<CopyButton value={tag} />
<CopyButton variant="ghost" value={tag} />
</div>
</div>
)}
Expand Down Expand Up @@ -380,7 +380,7 @@ export const KeyDetailsLogsTable = ({ keyspaceId, keyId, selectedLog, onLogSelec
className="pointer-events-auto"
onClick={(e) => e.stopPropagation()}
>
<CopyButton value={tag} />
<CopyButton variant="ghost" value={tag} />
</div>
</div>
</div>
Expand All @@ -392,7 +392,7 @@ export const KeyDetailsLogsTable = ({ keyspaceId, keyId, selectedLog, onLogSelec
className="pointer-events-auto flex-shrink-0"
onClick={(e) => e.stopPropagation()}
>
<CopyButton value={tag} />
<CopyButton variant="ghost" value={tag} />
</div>
</div>
)}
Expand Down
5 changes: 2 additions & 3 deletions apps/dashboard/app/(app)/identities/[identityId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { notFound } from "next/navigation";

import { PageContent } from "@/components/page-content";
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
import { Code } from "@/components/ui/code";
import {
Table,
TableBody,
Expand All @@ -15,7 +14,7 @@ import { getAuth } from "@/lib/auth";
import { clickhouse } from "@/lib/clickhouse";
import { db } from "@/lib/db";
import { formatNumber } from "@/lib/fmt";
import { Badge, Button, CopyButton } from "@unkey/ui";
import { Badge, Button, Code, CopyButton } from "@unkey/ui";
import { ChevronRight, Minus } from "lucide-react";
import ms from "ms";
import Link from "next/link";
Expand Down Expand Up @@ -84,7 +83,7 @@ export default async function Page(props: Props) {
</div>
<h2 className="text-2xl font-semibold tracking-tight">Meta</h2>
{identity.meta ? (
<Code>{JSON.stringify(identity.meta, null, 2)}</Code>
<Code variant="legacy">{JSON.stringify(identity.meta, null, 2)}</Code>
) : (
<Alert>
<AlertTitle>No metadata</AlertTitle>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Code } from "@/components/ui/code";
import { getAuth } from "@/lib/auth";
import { db } from "@/lib/db";
import { stripeEnv } from "@/lib/env";
import { Empty } from "@unkey/ui";
import { Code, Empty } from "@unkey/ui";
import { redirect } from "next/navigation";
import Stripe from "stripe";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Code } from "@/components/ui/code";
import { getAuth } from "@/lib/auth";
import { db } from "@/lib/db";
import { stripeEnv } from "@/lib/env";
import { Empty } from "@unkey/ui";
import { Code, Empty } from "@unkey/ui";
import { redirect } from "next/navigation";
import Stripe from "stripe";

Expand Down
Loading
Loading