feat: show device name instead of UUID in ZeroTier All Approvals table

This commit is contained in:
2026-05-30 05:43:38 +00:00
parent 71f9e8b7ac
commit ff2beae9d0
2 changed files with 10 additions and 1 deletions
+2
View File
@@ -2117,6 +2117,8 @@ export interface UserNetworkApproval {
user_email: string | null; user_email: string | null;
portal_network_id: string; portal_network_id: string;
device_id?: string; device_id?: string;
device_name?: string | null;
device_nickname?: string | null;
active?: boolean; active?: boolean;
active_session?: ActivationSession | null; active_session?: ActivationSession | null;
join_seen?: boolean; join_seen?: boolean;
+8 -1
View File
@@ -678,7 +678,14 @@ export default function AccessPage() {
</div> </div>
</td> </td>
<td className="p-3"> <td className="p-3">
{approval.device_id ? ( {approval.device_name || approval.device_nickname ? (
<div>
<p className="text-sm font-medium truncate max-w-[160px]">{approval.device_name || approval.device_nickname}</p>
{approval.device_nickname && approval.device_name !== approval.device_nickname && (
<p className="text-xs text-muted-foreground font-mono truncate max-w-[160px]">{approval.device_id}</p>
)}
</div>
) : approval.device_id ? (
<span className="font-mono text-xs">{approval.device_id}</span> <span className="font-mono text-xs">{approval.device_id}</span>
) : ( ) : (
<span className="text-xs text-muted-foreground"></span> <span className="text-xs text-muted-foreground"></span>