feat(mobile): let admins create accounts #56

Merged
joshuafhiggins merged 3 commits from t3/mobile-admin-account-creation into main 2026-11-01 17:31:06 -05:00
Owner

Admins could manage users on mobile but had to use the web app to create accounts.

Adds a dedicated Create account screen from Settings → Users, with name, email, password, and optional admin access. It uses the existing admin-only server action, validates required fields, prevents duplicate submissions, and returns to the subscribed user list after success.

Validation: mobile TypeScript and diff checks pass. Built and installed the Android debug app on the existing sparticus Android 17 emulator. Verified the non-admin test account hides Users before its temporary promotion. After promotion, verified empty-form validation, standard account creation while self-service sign-up is disabled, return to the live Users list, duplicate-email rejection with the form retained, and account creation with admin access enabled. Both temporary QA accounts were removed after verification. The approved layout uses grouped Settings-style inputs, the pink primary action, and a standard native back button to prevent the previous header text collision. The revised layout and wrapping validation message were visually checked on sparticus. The emulator intermittently fails to paint some controls, also observed elsewhere in the app.

The local Android build required a temporary Gradle init script to align react-native-image-colors Kotlin and Java targets to 17 under JDK 25. No build workaround is included in this PR.

Made by gpt-6.1-sol using the Codex harness through T3 Code.

Admins could manage users on mobile but had to use the web app to create accounts. Adds a dedicated Create account screen from Settings → Users, with name, email, password, and optional admin access. It uses the existing admin-only server action, validates required fields, prevents duplicate submissions, and returns to the subscribed user list after success. Validation: mobile TypeScript and diff checks pass. Built and installed the Android debug app on the existing sparticus Android 17 emulator. Verified the non-admin test account hides Users before its temporary promotion. After promotion, verified empty-form validation, standard account creation while self-service sign-up is disabled, return to the live Users list, duplicate-email rejection with the form retained, and account creation with admin access enabled. Both temporary QA accounts were removed after verification. The approved layout uses grouped Settings-style inputs, the pink primary action, and a standard native back button to prevent the previous header text collision. The revised layout and wrapping validation message were visually checked on sparticus. The emulator intermittently fails to paint some controls, also observed elsewhere in the app. The local Android build required a temporary Gradle init script to align react-native-image-colors Kotlin and Java targets to 17 under JDK 25. No build workaround is included in this PR. Made by gpt-6.1-sol using the Codex harness through T3 Code.
joshuafhiggins added 1 commit 2026-10-30 15:09:14 -04:00
joshuafhiggins added 1 commit 2026-10-30 15:33:15 -04:00
joshuafhiggins added 1 commit 2026-10-30 15:33:51 -04:00
joshuafhiggins merged commit a346ca49b3 into main 2026-11-01 17:31:06 -05:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: joshuafhiggins/otunes#56