Move user creation to its own admin page #7

Merged
exler merged 1 commit from camila/new-user-page into main 2026-10-18 07:53:26 +02:00
Collaborator

Summary

  • Dedicated /admin/users/new page with existing app grants, admin and invite/password fields. Overview now links with New user instead of embedding the form.
  • Validation errors stay on the form, preserving email/name/mode/admin/apps but never the password.
  • Successful creation preserves the existing one-time secret reveal on overview. No transaction or permission-policy refactor.

Verification

  • Parent reran go test -count=1 ./..., go vet ./..., git diff --check: pass.
  • Independent review: no blockers. Route ordering/auth/admin/CSRF and contextual escaping checked.
  • Regression tests cover guards, new-page navigation, error-state preservation, secret non-reflection, invite/password/grants and no reveal on reload.
  • Real local browser QA with synthetic data: overview has no embedded form; new page renders; invalid input preserves fields; invite revealed only once. Screenshots below.
  • Remote x86_64 CI run 621 passed, including go test -race ./...; publishing correctly skipped for PR. No production deployment.

Visual verification (local synthetic fixture)

new-user-page.png
new-user-invalid.png
admin-overview.png

## Summary - Dedicated /admin/users/new page with existing app grants, admin and invite/password fields. Overview now links with New user instead of embedding the form. - Validation errors stay on the form, preserving email/name/mode/admin/apps but never the password. - Successful creation preserves the existing one-time secret reveal on overview. No transaction or permission-policy refactor. ## Verification - Parent reran go test -count=1 ./..., go vet ./..., git diff --check: pass. - Independent review: no blockers. Route ordering/auth/admin/CSRF and contextual escaping checked. - Regression tests cover guards, new-page navigation, error-state preservation, secret non-reflection, invite/password/grants and no reveal on reload. - Real local browser QA with synthetic data: overview has no embedded form; new page renders; invalid input preserves fields; invite revealed only once. Screenshots below. - Remote x86_64 CI run 621 passed, including go test -race ./...; publishing correctly skipped for PR. No production deployment. ## Visual verification (local synthetic fixture) ![new-user-page.png](https://git.marut.network/attachments/dbcc3e29-c50b-4b36-972d-1ddd2657748e) ![new-user-invalid.png](https://git.marut.network/attachments/94f33657-c09e-4950-b283-26fa66bfdc4f) ![admin-overview.png](https://git.marut.network/attachments/36f21767-e446-4141-9861-7de73e5a9cc5)
Move user creation to a dedicated admin page
All checks were successful
Push Docker Image / test (pull_request) Successful in 59s
Push Docker Image / push (pull_request) Has been skipped
Push Docker Image / test (push) Successful in 1m0s
Push Docker Image / push (push) Successful in 50s
4d4e099a14
exler merged commit 4d4e099a14 into main 2026-10-18 07:53:26 +02:00
exler deleted branch camila/new-user-page 2026-10-18 07:53:26 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
exler/thermopylae!7
No description provided.