fix(webapp): hide misleading root API key creation dates (#4612)

This commit is contained in:
Chris Arderne
2026-08-14 09:25:34 +01:00
committed by GitHub
parent fa7eea39d8
commit d98f64bb00
3 changed files with 7 additions and 5 deletions
@@ -0,0 +1,6 @@
---
area: webapp
type: fix
---
Root API keys no longer show an environment creation timestamp as their creation date.
@@ -71,7 +71,6 @@ export class ApiKeysPresenter {
id: true,
apiKey: true,
type: true,
createdAt: true,
apiKeys: {
where: showRevoked ? undefined : { revokedAt: null },
orderBy: { createdAt: "desc" },
@@ -133,7 +132,6 @@ export class ApiKeysPresenter {
name: "Root API key",
value: keyEnvironment.apiKey,
obfuscated: obfuscateApiKey(keyEnvironment.type, keyEnvironment.apiKey.slice(-4)),
createdAt: keyEnvironment.createdAt,
},
apiKeys: keyEnvironment.apiKeys.map((apiKey, index) => {
const { presetId, scopes, ...apiKeyData } = apiKey;
@@ -404,9 +404,7 @@ export default function Page() {
<ApiKeyAccess label="No restrictions" />
</TableCell>
<TableCell></TableCell>
<TableCell>
<DateTime date={rootApiKey.createdAt} />
</TableCell>
<TableCell></TableCell>
<TableCell></TableCell>
<TableCellMenu
isSticky