[CRITICAL] User Management API + Admin UI #12

Open
opened 2026-04-19 11:21:23 +00:00 by NW · 0 comments
Owner

Problem

No backend API for user management. Admin UI exists but is 100% hardcoded.

Missing API:

  • GET /api/admin/users — list all users
  • POST /api/admin/users — create user
  • PUT /api/admin/users/:id — update user
  • DELETE /api/admin/users/:id — delete user
  • PUT /api/admin/users/:id/role — change role
  • PUT /api/admin/users/:id/activate — toggle active

Missing UI binding:

  • Users table shows hardcoded data
  • No add user modal
  • No edit user modal

Acceptance Criteria:

  • GET /api/admin/users returns all users (without password_hash)
  • POST /api/admin/users with Zod validation
  • PUT /api/admin/users/:id for editing name, email, role, language
  • DELETE /api/admin/users/:id (soft delete or deactivate)
  • Admin UI loads real data from API
  • Add user modal with role selection
  • Cannot delete last admin / deactivate own account

Migrated from UniqueSoft/APAW#77

## Problem No backend API for user management. Admin UI exists but is 100% hardcoded. ### Missing API: - GET /api/admin/users — list all users - POST /api/admin/users — create user - PUT /api/admin/users/:id — update user - DELETE /api/admin/users/:id — delete user - PUT /api/admin/users/:id/role — change role - PUT /api/admin/users/:id/activate — toggle active ### Missing UI binding: - Users table shows hardcoded data - No add user modal - No edit user modal ### Acceptance Criteria: - [ ] GET /api/admin/users returns all users (without password_hash) - [ ] POST /api/admin/users with Zod validation - [ ] PUT /api/admin/users/:id for editing name, email, role, language - [ ] DELETE /api/admin/users/:id (soft delete or deactivate) - [ ] Admin UI loads real data from API - [ ] Add user modal with role selection - [ ] Cannot delete last admin / deactivate own account --- *Migrated from UniqueSoft/APAW#77*
NW added this to the Production Readiness - Phase 2 milestone 2026-04-19 11:21:23 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: UniqueSoft/TenerifeProp#12