feat: add sorting, click-to-search, and restore access for suspended approvals

-
Sortable columns in All Approvals table (click headers to toggle asc/desc)
-
Click any User/Device/Network/Status cell to populate search and filter
-
Restore Access option for suspended memberships via assign endpoint
This commit is contained in:
2026-06-01 07:45:34 +00:00
parent 087b8f002f
commit 0bc18364d4
2 changed files with 181 additions and 41 deletions
+6
View File
@@ -1584,6 +1584,12 @@ export const api = {
{ method: "POST" }, true, requestConfig,
),
assignAccess: (orgId: string, data: { target_user_id: string; portal_network_id: string; justification?: string }, requestConfig?: RequestConfig) =>
request<{ approval: UserNetworkApproval }>(
`/organizations/${orgId}/approvals/assign`,
{ method: "POST", body: JSON.stringify(data) }, true, requestConfig,
),
// ── Memberships ────────────────────────────────────────────────────────────
listMemberships: (orgId: string, requestConfig?: RequestConfig) =>
request<{ memberships: DeviceNetworkMembership[]; count: number }>(