Skip to content

Commit d98f64b

Browse files
authored
fix(webapp): hide misleading root API key creation dates (#4612)
1 parent fa7eea3 commit d98f64b

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
area: webapp
3+
type: fix
4+
---
5+
6+
Root API keys no longer show an environment creation timestamp as their creation date.

apps/webapp/app/presenters/v3/ApiKeysPresenter.server.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ export class ApiKeysPresenter {
7171
id: true,
7272
apiKey: true,
7373
type: true,
74-
createdAt: true,
7574
apiKeys: {
7675
where: showRevoked ? undefined : { revokedAt: null },
7776
orderBy: { createdAt: "desc" },
@@ -133,7 +132,6 @@ export class ApiKeysPresenter {
133132
name: "Root API key",
134133
value: keyEnvironment.apiKey,
135134
obfuscated: obfuscateApiKey(keyEnvironment.type, keyEnvironment.apiKey.slice(-4)),
136-
createdAt: keyEnvironment.createdAt,
137135
},
138136
apiKeys: keyEnvironment.apiKeys.map((apiKey, index) => {
139137
const { presetId, scopes, ...apiKeyData } = apiKey;

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.apikeys/route.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,9 +404,7 @@ export default function Page() {
404404
<ApiKeyAccess label="No restrictions" />
405405
</TableCell>
406406
<TableCell></TableCell>
407-
<TableCell>
408-
<DateTime date={rootApiKey.createdAt} />
409-
</TableCell>
407+
<TableCell></TableCell>
410408
<TableCell></TableCell>
411409
<TableCellMenu
412410
isSticky

0 commit comments

Comments
 (0)