Skip to content

feat(dashboard): functional user-management + mail admin#1

Merged
fadymondy merged 1 commit into
mainfrom
integ/functional-admin
Jun 29, 2026
Merged

feat(dashboard): functional user-management + mail admin#1
fadymondy merged 1 commit into
mainfrom
integ/functional-admin

Conversation

@fadymondy

Copy link
Copy Markdown
Contributor

Replaces the read-only generic resource admin with a functional Users + Mail admin, consuming @togo-framework/ui@^0.2.0's admin suite (UserManagementTable, UserActionsMenu, AddUserDialog, MailSettingsForm, ImpersonationBanner).

  • Users (web/app/(app)/admin/users) → wired to the auth plugin's /api/auth/admin/* (CRUD, impersonate, reset/magic links surfaced in a copyable dialog; ImpersonationBanner in the app shell).
  • Mail (web/app/(app)/admin/mail) → new Go backend GET/PUT/POST /api/dashboard/admin/mail (SMTP config in dashboard_kv, test-send via stdlib net/smtp), guarded by auth RequireRole("admin") + CSRF.

Depends on togo-framework/auth#(user-admin-actions) for the user endpoints. go build/vet green; frontend typechecks against the kit.

Ships real Users + Mail admin pages (consuming @togo-framework/ui@^0.2.0's
admin suite) instead of the read-only generic resource admin. Wires user CRUD/
impersonation to the auth plugin's /api/auth/admin/* and adds a mail backend
(GET/PUT/POST /api/dashboard/admin/mail) — SMTP config in a dashboard_kv table,
test-send via net/smtp — guarded by auth RequireRole("admin") + CSRF.
@fadymondy fadymondy merged commit 65c9e01 into main Jun 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant