From 4eed3658f24252aa45d2405eeccae779843c7abe Mon Sep 17 00:00:00 2001 From: Jon Seager Date: Sat, 7 Feb 2026 11:25:30 +0000 Subject: [PATCH] style(account): improve API token UX - Replace token dismiss button with close icon in top-right corner - Add terminal icon to token rows matching passkey layout - Remove token row from DOM immediately on revoke - Focus token name input when opening the create form - Clear token name input after successful creation --- templates/pages/account.html | 44 ++++++++++++++++++++--------------- templates/partials/icons.html | 6 +++++ 2 files changed, 31 insertions(+), 19 deletions(-) diff --git a/templates/pages/account.html b/templates/pages/account.html index 86442d0..0a6e555 100644 --- a/templates/pages/account.html +++ b/templates/pages/account.html @@ -118,13 +118,16 @@ {% else %}
{% for token in tokens %} -
-
- {{ token.name }} - - Created {{ token.created_at }} - · {% if let Some(last_used) = token.last_used_at %}Last used {{ last_used }}{% else %}Never used{% endif %} - +
+
+ {{ icons::terminal("h-4 w-4 text-accent shrink-0") }} +
+ {{ token.name }} + + Created {{ token.created_at }} + · {% if let Some(last_used) = token.last_used_at %}Last used {{ last_used }}{% else %}Never used{% endif %} + +
+

Token created! Copy it now — you won't see it again.

@@ -194,20 +206,13 @@ Copy
-