Share one user form, add user photos and Revoke, confirm every form

- Settings > Users uses the people UserForm (useFormInit) instead of its
  own copy; it saves in one request through users/save-user, which now
  takes an optional profile photo (setUserProfileImage)
- Revoke action on user rows adds the revoked type, as the edit form would
- Every admin form asks for confirmation before it saves

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-19 11:03:57 +01:00
co-authored by Claude Opus 5.5
parent c44048dbab
commit 4dd34ed251
35 changed files with 352 additions and 535 deletions
@@ -28,6 +28,7 @@ export default function WorkspaceBotModal({ workspace_id, workspace_name, bot, o
const submit = async () => {
if (loading) return;
if (!window.confirm(`Save ${bot.name || "this bot"}'s instructions and memory here?`)) return;
setLoading(true);
setError(undefined);
@@ -34,6 +34,7 @@ export default function WorkspaceDetailsGroup({ workspace, onSaved }: Props) {
const submit = async () => {
if (!dirty || loading) return;
if (!window.confirm(`Save ${name || "this workspace"}?`)) return;
setLoading(true);
setStatus(undefined);