diff --git a/apps/web/src/api-tokens/ApiTokensSection.tsx b/apps/web/src/api-tokens/ApiTokensSection.tsx index 22d0a9d..2b34627 100644 --- a/apps/web/src/api-tokens/ApiTokensSection.tsx +++ b/apps/web/src/api-tokens/ApiTokensSection.tsx @@ -172,52 +172,54 @@ function TokenList({ tokens }: { tokens: ApiTokenView[] }): React.JSX.Element { return ( <> - - - - - - - - - - - - - - - {tokens.map((token) => ( - - - - - - - - - +
+
{t('fields.name')}{t('fields.scope')}{t('fields.ponds')}{t('list.created')}{t('list.lastUsed')}{t('list.expires')}{t('list.status')} - {t('common:tableActions')} -
{token.name}{token.scope === 'write' ? t('fields.scopeWrite') : t('fields.scopeRead')} - {token.ponds.length === 0 - ? t('list.allPonds') - : token.ponds.map((pond) => pond.name).join(', ')} - {new Date(token.createdAt).toLocaleDateString()} - {token.lastUsedAt ? new Date(token.lastUsedAt).toLocaleString() : t('list.never')} - {token.expiresAt ? new Date(token.expiresAt).toLocaleDateString() : '—'}{t(`list.${statusOf(token)}`)} - {!token.revokedAt && ( - - )} -
+ + + + + + + + + + - ))} - -
{t('fields.name')}{t('fields.scope')}{t('fields.ponds')}{t('list.created')}{t('list.lastUsed')}{t('list.expires')}{t('list.status')} + {t('common:tableActions')} +
+ + + {tokens.map((token) => ( + + {token.name} + {token.scope === 'write' ? t('fields.scopeWrite') : t('fields.scopeRead')} + + {token.ponds.length === 0 + ? t('list.allPonds') + : token.ponds.map((pond) => pond.name).join(', ')} + + {new Date(token.createdAt).toLocaleDateString()} + + {token.lastUsedAt ? new Date(token.lastUsedAt).toLocaleString() : t('list.never')} + + {token.expiresAt ? new Date(token.expiresAt).toLocaleDateString() : '—'} + {t(`list.${statusOf(token)}`)} + + {!token.revokedAt && ( + + )} + + + ))} + + + ); } diff --git a/apps/web/src/api-tokens/FeedTokensSection.tsx b/apps/web/src/api-tokens/FeedTokensSection.tsx index 1b2e40d..bf3a1a5 100644 --- a/apps/web/src/api-tokens/FeedTokensSection.tsx +++ b/apps/web/src/api-tokens/FeedTokensSection.tsx @@ -85,32 +85,38 @@ export function FeedTokensSection(): React.JSX.Element { )} {tokens.data && tokens.data.length === 0 &&

{t('feed.empty')}

} {tokens.data && tokens.data.length > 0 && ( - - - - - - - - - - - {tokens.data.map((token) => ( - - - - - +
+
{t('fields.name')}{t('list.created')}{t('list.lastUsed')} - {t('common:tableActions')} -
{token.name}{formatTime(token.createdAt)}{token.lastUsedAt ? formatTime(token.lastUsedAt) : '—'} - -
+ + + + + + - ))} - -
{t('fields.name')}{t('list.created')}{t('list.lastUsed')} + {t('common:tableActions')} +
+ + + {tokens.data.map((token) => ( + + {token.name} + {formatTime(token.createdAt)} + {token.lastUsedAt ? formatTime(token.lastUsedAt) : '—'} + + + + + ))} + + + )} );