From c817a94c895ceae10a45d57c8b35d3a3b61bfeef Mon Sep 17 00:00:00 2001 From: "Ella E." Date: Thu, 5 Dec 2024 04:24:01 -0700 Subject: [PATCH] UX: Move revoked API key status to dedicated column (#30125) * DEV: add table heading for status * UX: Move revoked status to its own column with a badge; remove revoked icon * UX: Increase text contrast for revoked rows --- .../admin/addon/templates/api-keys-index.hbs | 16 ++++++++++- .../stylesheets/common/admin/admin_table.scss | 27 +++++++++++++++++++ app/assets/stylesheets/common/admin/api.scss | 6 ++--- config/locales/client.en.yml | 2 ++ 4 files changed, 47 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/admin/addon/templates/api-keys-index.hbs b/app/assets/javascripts/admin/addon/templates/api-keys-index.hbs index b331a95edca..169bf25277a 100644 --- a/app/assets/javascripts/admin/addon/templates/api-keys-index.hbs +++ b/app/assets/javascripts/admin/addon/templates/api-keys-index.hbs @@ -14,13 +14,13 @@ {{i18n "admin.api.user"}} {{i18n "admin.api.created"}} {{i18n "admin.api.last_used"}} + {{i18n "admin.site_settings.table_column_heading.status"}}   {{#each this.model as |k|}} - {{#if k.revoked_at}}{{d-icon "circle-xmark"}}{{/if}} {{k.truncatedKey}} @@ -57,6 +57,20 @@ {{i18n "admin.api.never_used"}} {{/if}} + +
{{i18n + "admin.site_settings.table_column_heading.status" + }}
+ {{#if k.revoked_at}} +
+
+
+
+ {{i18n "admin.api.revoked"}} +
+
+ {{/if}} +