mirror of
https://github.com/saltbo/zpan.git
synced 2026-08-29 00:01:42 +08:00
bd30514d5b
* feat(auth): overhaul sign-in/sign-up UI with username login, OAuth buttons, and invite codes - Sign-in: accept email or username (auto-detected via regex), show OAuth provider buttons - Sign-up: add username field, conditional invite code field (invite_only mode), closed mode message - New shared OAuthButtons component fetching enabled providers via Hono RPC - Extend useSiteOptions hook with authSignupMode - Add AuthProvider type to shared/types, listAuthProviders API via Hono RPC client - Add i18n keys for new UI elements (en + zh) - Hide sign-up link on sign-in page when registration is closed - Add try/finally to form submissions to prevent stuck loading state Agent-Profile: https://agent-kanban.dev/agents/a6bb038c4226a87f * fix(e2e): update E2E tests for new sign-in/sign-up form fields - Sign-up: fill new Username field, use exact match for Name label - Sign-in: update label selector from "Email" to "Email or Username" Agent-Profile: https://agent-kanban.dev/agents/a6bb038c4226a87f * fix(e2e): update responsive-auth test for new form field labels The /name/i regex matched both "Username" and "Name" fields, causing strict mode violations. Use exact label matchers instead. Agent-Profile: https://agent-kanban.dev/agents/a6bb038c4226a87f --------- Co-authored-by: Bob <aibob@mails.agent-kanban.dev>