feat: add created_at field to CreatedApiKeyResponse and update related handlers
Some checks failed
lint / lint (push) Successful in 16m47s
test / unit (push) Has been cancelled

This commit is contained in:
2026-07-04 15:04:16 +02:00
parent 8f69cfb011
commit c22bc68a8b
7 changed files with 35 additions and 11 deletions

View File

@@ -9,9 +9,7 @@ export default async function ApiKeysPage() {
redirect("/login");
}
const initialApiKeys = await getApiKeys(token).catch(() => ({
keys: [],
}));
const initialApiKeys = await getApiKeys(token).catch(() => []);
return (
<div className="space-y-6">
@@ -21,7 +19,7 @@ export default async function ApiKeysPage() {
Manage API keys for third-party applications.
</p>
</div>
<ApiKeyList initialApiKeys={initialApiKeys.keys} />
<ApiKeyList initialApiKeys={initialApiKeys} />
</div>
);
}

View File

@@ -190,13 +190,13 @@ export default async function ProfilePage({ params }: ProfilePageProps) {
</div>
</div>
<div id="profile-card__info" className="mt-4">
<h1 id="profile-card__name" className="text-2xl font-bold">
<div id="profile-card__info" className="mt-4 min-w-0">
<h1 id="profile-card__name" className="text-2xl font-bold break-words">
{user.displayName || user.username}
</h1>
<p
id="profile-card__username"
className="text-sm text-muted-foreground"
className="text-sm text-muted-foreground break-all"
>
@{user.username}
</p>