diff --git a/docs/superpowers/specs/2026-08-12-user-management-ui-redesign-design.md b/docs/superpowers/specs/2026-08-12-user-management-ui-redesign-design.md new file mode 100644 index 0000000..e0238d3 --- /dev/null +++ b/docs/superpowers/specs/2026-08-12-user-management-ui-redesign-design.md @@ -0,0 +1,138 @@ +# User Management UI Redesign — Design + +Date: 2026-08-12 +Status: Approved (brainstorming 2026-08-12) + +## Goal + +The admin user-management UI (`UserManagementSection.tsx`, embedded in +`AccountDialog`) is a plain list with native ``/`` + Create + button) for adding users, +- `window.prompt` for password reset and `window.confirm` for deletion, +- hardcoded English copy despite the app shipping zh/en i18n. + +Available shadcn/ui primitives in `src/components/ui/`: `button`, `dialog`, +`dropdown-menu`, `input`, `label`, `select`, `skeleton`, `scroll-area` — +everything needed; no new dependencies. + +## Components + +### 1. Reworked `UserManagementSection` + +Same file, same props (`{ self: string }`), same fetch logic and API calls. + +**Header row:** section title + user count (`3 users`), and a primary-size-sm +"Add user" button on the right that opens the create dialog. + +**User rows** replace the `