feat: track when API tokens were last used

This commit is contained in:
Catalin Pit
2026-08-18 11:39:12 +03:00
parent 9bab1cddb3
commit 143ffeeb7e
6 changed files with 40 additions and 10 deletions
@@ -68,6 +68,20 @@ export default function ApiTokensPage() {
return i18n.date(row.original.expires);
},
},
{
header: t`Last Used`,
cell: ({ row }) => {
if (!row.original.lastUsedAt) {
return (
<span className="text-muted-foreground">
<Trans>Never</Trans>
</span>
);
}
return <span className="text-foreground">{i18n.date(row.original.lastUsedAt)}</span>;
},
},
{
header: t`Actions`,
cell: ({ row }) => (