feat: add per-state action dropdowns and table view to ZeroTier All Approvals

This commit is contained in:
2026-05-30 05:03:01 +00:00
parent fe0b114ebf
commit 71f9e8b7ac
5 changed files with 251 additions and 43 deletions
+7 -1
View File
@@ -434,6 +434,8 @@ async function request<T>(
if (shouldClearToken) {
tokenManager.clearToken();
// Dispatch event so the UI can show a session timeout modal
window.dispatchEvent(new CustomEvent('session:expired'));
if (import.meta.env.DEV) {
console.log(`[API] Token cleared on 401 (type: ${errorType}, endpoint: ${endpoint})`);
}
@@ -2114,9 +2116,13 @@ export interface UserNetworkApproval {
user_name: string | null;
user_email: string | null;
portal_network_id: string;
device_id?: string;
active?: boolean;
active_session?: ActivationSession | null;
join_seen?: boolean;
granted_by_user_id: string | null;
grant_type: ApprovalGrantType;
state: ApprovalState;
status: ApprovalState;
justification: string | null;
created_at: string;
updated_at: string;