From 8ca00b0301a4a84d9de231e43d9de440a8e209af Mon Sep 17 00:00:00 2001 From: Jason Staack Date: Sat, 21 Mar 2026 13:02:52 -0500 Subject: [PATCH] fix(ui): replace TLS badge with icon-only indicator MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Full-text badge ("Plain-Text (Insecure)") replaced with a colored shield icon — green/yellow/red by TLS mode. Label available on hover via title attribute. Universal lock convention, no label needed. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../tenants/$tenantId/devices/$deviceId.tsx | 29 ++++--------------- 1 file changed, 6 insertions(+), 23 deletions(-) diff --git a/frontend/src/routes/_authenticated/tenants/$tenantId/devices/$deviceId.tsx b/frontend/src/routes/_authenticated/tenants/$tenantId/devices/$deviceId.tsx index b638af7..0c7f0a6 100644 --- a/frontend/src/routes/_authenticated/tenants/$tenantId/devices/$deviceId.tsx +++ b/frontend/src/routes/_authenticated/tenants/$tenantId/devices/$deviceId.tsx @@ -188,34 +188,17 @@ function EditDeviceDialog({ } function TlsSecurityBadge({ tlsMode }: { tlsMode: string }) { - const config: Record = { - portal_ca: { - label: 'CA Verified', - icon: ShieldCheck, - className: 'text-success border-success/50 bg-success/10', - }, - auto: { - label: 'Self-Signed TLS', - icon: Shield, - className: 'text-warning border-warning/50 bg-warning/10', - }, - insecure: { - label: 'Insecure TLS', - icon: ShieldAlert, - className: 'text-orange-400 border-orange-400/50 bg-orange-400/10', - }, - plain: { - label: 'Plain-Text (Insecure)', - icon: ShieldOff, - className: 'text-error border-error/50 bg-error/10', - }, + const config: Record = { + portal_ca: { label: 'CA Verified', icon: ShieldCheck, color: 'text-success' }, + auto: { label: 'Self-Signed TLS', icon: Shield, color: 'text-warning' }, + insecure: { label: 'Insecure TLS', icon: ShieldAlert, color: 'text-warning' }, + plain: { label: 'Plain-Text', icon: ShieldOff, color: 'text-error' }, } const c = config[tlsMode] ?? config.auto const Icon = c.icon return ( - + - {c.label} ) }