Add Users and Organizations management to API Server panel
The superadmin panel had backend CRUD for users/orgs (internal/api/users.go, orgs.go) but no UI. Add two tabs to panel/src/App.vue: - Users: create form (email/password/role/org), list with role + org badges, inline editor (email/role/org/verified/password reset), and delete. Self-role change and self-delete are suppressed to mirror the server-side guards. - Organizations: create, inline rename, and delete, with client-derived member counts; delete is disabled while an org still has members. PocketBase validation errors are unwrapped into a readable line via a shared apiError() helper. Rebuilds the embedded panel bundle (dist). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
e9b27530ec
commit
09da889c15
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2
-2
@@ -6,8 +6,8 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="theme-color" content="#0F1E3D" />
|
||||
<title>PilotVault · API Server</title>
|
||||
<script type="module" crossorigin src="/assets/index-DKDpmK_V.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-BwP7TTth.css">
|
||||
<script type="module" crossorigin src="/assets/index-DJSuRngH.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-CVh8EDzq.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
Reference in New Issue
Block a user