Move sign-in, forgot-password and reset-password onto TanStack Form v2 #419

Closed
opened 2026-10-15 12:34:35 +00:00 by root · 7 comments
root commented 2026-10-15 12:34:35 +00:00 (Migrated from gitlab.core-project.space)

Parent

#410

What to build

Sign-in, forgot-password and reset-password run on the shared TanStack Form v2 module. A Player sees the same fields, checks, refusals and screens as today: one refusal for wrong credentials, credentials no Account could have refused without a request, the "sent" confirmation, the invalid-link screen.

Seam: S1 — each page with the auth harness and MSW; S2 — accounts.spec in apps/e2e, unchanged.

Acceptance criteria

  • The three pages use the shared module; no per-field useState remains on them.
  • Validators call the existing credential checks and return our refusal unions.
  • Server refusals and the rate limit are returned from onSubmit, never thrown.
  • Focus moves to the first invalid field after a refused submit.
  • The existing sign-in, forgot-password and reset-password tests pass unchanged in what they assert.
## Parent #410 ## What to build Sign-in, forgot-password and reset-password run on the shared TanStack Form v2 module. A Player sees the same fields, checks, refusals and screens as today: one refusal for wrong credentials, credentials no Account could have refused without a request, the "sent" confirmation, the invalid-link screen. Seam: S1 — each page with the auth harness and MSW; S2 — `accounts.spec` in `apps/e2e`, unchanged. ## Acceptance criteria - [ ] The three pages use the shared module; no per-field `useState` remains on them. - [ ] Validators call the existing credential checks and return our refusal unions. - [ ] Server refusals and the rate limit are returned from `onSubmit`, never thrown. - [ ] Focus moves to the first invalid field after a refused submit. - [ ] The existing sign-in, forgot-password and reset-password tests pass unchanged in what they assert.
root commented 2026-10-15 12:34:35 +00:00 (Migrated from gitlab.core-project.space)

marked this issue as related to #410

marked this issue as related to #410
root commented 2026-10-15 12:34:36 +00:00 (Migrated from gitlab.core-project.space)

marked this issue as related to #418

marked this issue as related to #418
root commented 2026-10-15 22:17:25 +00:00 (Migrated from gitlab.core-project.space)

mentioned in commit 5f8881363cf6e873c590ea1385950a6a94ff4a90

mentioned in commit 5f8881363cf6e873c590ea1385950a6a94ff4a90
root commented 2026-10-15 22:17:35 +00:00 (Migrated from gitlab.core-project.space)

mentioned in merge request !543

mentioned in merge request !543
root commented 2026-10-15 22:18:21 +00:00 (Migrated from gitlab.core-project.space)

mentioned in commit 5d056e172c

mentioned in commit 5d056e172c3442e38efa600806ee980f83e04310
root commented 2026-10-15 22:52:48 +00:00 (Migrated from gitlab.core-project.space)

mentioned in commit 305f8002b784546f63ce3152a69e29432202db8b

mentioned in commit 305f8002b784546f63ce3152a69e29432202db8b
root commented 2026-10-15 22:54:57 +00:00 (Migrated from gitlab.core-project.space)

mentioned in commit 35f0c4bed6

mentioned in commit 35f0c4bed6c10fde5209e5d4208763a73ccd0dc2
root (Migrated from gitlab.core-project.space) closed this issue 2026-10-15 23:25:53 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
amaurycoudr/chess-project#419
No description provided.