11 Commits

Author SHA1 Message Date
Codex
b3322680d9 🛡️ Require complete source validation before annotation claims 2026-11-11 06:10:00 -08:00
eust-w
d4c768475b ✨ Switch login to phone-based lookup (ticket 03)
- handleAuthLogin now authenticates via store.FindUserByPhone instead of
  FindUserByEmail; the login/bootstrap-super-admin request payload field
  is now `phone`. Old email addresses are no longer valid login credentials.
- bootstrap-super-admin now validates phone format (isValidChinaMobilePhone)
  instead of net/mail.ParseAddress; net/mail is fully removed from
  internal/api.
- Same-class gap fix: handleAdminOrganizationUsersCreate (the legacy
  per-organization admin endpoint, not touched by ticket 02) still created
  users by email only, which would have left them unable to log in under
  the new phone-only login. Switched it to phone validation/uniqueness too,
  and removed the now-dead normalizeUserInput/validateUserEmailAvailable
  helpers.
- Frontend: authApi.login, UserContext's login signature, and
  UserBootstrapPanel's submit handler now send `phone` instead of `email`
  (the form/labels were already phone-based from ticket 04).
- Updated ~20 Go test files whose fixtures/helpers logged in via
  user.Email; adminCreateUser/loginSession/bootstrapSuperAdminSession now
  work in terms of phone (deterministically derived from existing
  email-shaped test identities via testPhoneFromSeed, to avoid rewriting
  every call site). Added internal/api/auth_phone_login_test.go covering
  phone login success/failure and old-email rejection.

go test ./internal/api/... and npm run test:frontend match their
pre-ticket baselines exactly (75 Go failures / 599 frontend tests with
586 pass, 13 fail) by failing test name, not just count.
2026-09-22 14:04:59 +08:00
eust-w
c92bca168d 👥 Unify supplier account management and enforce single account roles 2026-09-21 11:30:03 +08:00
eust-w
e3ccf5f5f2 🎯 Add project-scoped random claims and lock annotator task ownership 2026-09-16 04:00:55 +08:00
eust-w
add1b0e7ac 🔒 Fix employee supplier ownership at creation and simplify membership routing 2026-09-14 15:47:44 +08:00
eust-w
cf7cea84dd 🐛 Freeze sampling across all Capture submission endpoints 2026-09-06 16:39:00 +08:00
eust-w
933307f544 🐛 Apply frozen acceptance sampling to new manual Captures 2026-09-06 16:23:15 +08:00
eust-w
0152c93a97 ✨ Add role-scoped workflow acceptance settings and submission snapshots 2026-09-06 16:02:15 +08:00
eust-w
f27afc66d8 🧹 refactor(auth): remove all legacy compatibility roles and enforce 5 standard roles 2026-09-03 11:58:59 +08:00
eust-w
b085e371b2 ✨ Complete Fanyu Capture operations gaps 2026-09-01 02:40:27 +08:00
eust-w
1eb1eb754a ✨ Upgrade Fanyu Capture production flow 2026-08-31 21:25:47 +08:00