From 4c704e5a4197b511a1d3b8a26dbf81cab3c6b1f7 Mon Sep 17 00:00:00 2001 From: Padreug Date: Fri, 5 Jun 2026 23:17:52 +0200 Subject: [PATCH] chore(expenses): delete orphaned admin permission UI PermissionManager.vue and GrantPermissionDialog.vue were never imported or routed anywhere; the three ExpensesAPI methods backing them (listPermissions, grantPermission, revokePermission) pointed at /libra/api/v1/permissions* which doesn't exist on the backend (real path is /api/v1/admin/permissions*). The whole feature has been unreachable since whenever the path drifted. Removes the two components, the three API methods, and the four types only they used (AccountPermission, GrantPermissionRequest, AccountWithPermissions, PermissionType). If cross-account permission management becomes a real need, the backend at aiolabs/libra already provides the endpoints (now correctly gated by require_super_user); rebuild the UI fresh against the right paths rather than reviving this dead surface. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../admin/GrantPermissionDialog.vue | 256 ----------- .../components/admin/PermissionManager.vue | 399 ------------------ src/modules/expenses/services/ExpensesAPI.ts | 89 ---- src/modules/expenses/types/index.ts | 44 -- 4 files changed, 788 deletions(-) delete mode 100644 src/modules/expenses/components/admin/GrantPermissionDialog.vue delete mode 100644 src/modules/expenses/components/admin/PermissionManager.vue diff --git a/src/modules/expenses/components/admin/GrantPermissionDialog.vue b/src/modules/expenses/components/admin/GrantPermissionDialog.vue deleted file mode 100644 index 20e7d87..0000000 --- a/src/modules/expenses/components/admin/GrantPermissionDialog.vue +++ /dev/null @@ -1,256 +0,0 @@ - - -