Skip to content

fix(v2): sign users in after registration - #1701

Merged
lilyshen0722 merged 4 commits into
mainfrom
kai/c3-signup-session
Sep 12, 2026
Merged

lilyshen0722 merged 4 commits into
mainfrom
kai/c3-signup-session

Conversation

@lilyshen0722

@lilyshen0722 lilyshen0722 commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Sign a newly registered user in with the credentials already entered and route them into the v2 workspace.
  • Keep the existing verification success/sign-in fallback when the follow-up login is unavailable.
  • Add coverage for the automatic session and fallback paths.

This removes the 31-second re-entry step from C3-2. Unverified users are admitted by the current login route and continue to see the verification reminder in the shell.

UI evidence (real browser, v2.css)

Before (main): signup ends on the verification card and asks the stranger to sign in again.

Before: verification success card

After (this branch): the same signup enters /v2 with the workspace shell visible.

After: authenticated workspace

The after PNG is captured with the starter workspace seeded and is committed as review evidence.

The earlier local screenshot's not found text came from the stub API's 404 error rendered by V2PodsSidebar; it is not product copy. With the seeded /api/pods response, the sidebar shows My Workspace and the pod opens.

E2E contract evidence

  • e2e/auth.spec.ts now registers, waits for /v2/pods/<id>, and asserts the seeded My Workspace heading. This replaces the removed Continue to sign in check and doubles as the prod-shaped after assertion.

Tests

  • npx jest --runInBand src/v2/tests/V2Register.test.tsx --watchAll=false
  • npx jest --watchAll=false --forceExit --runInBand (108 suites / 868 tests)
  • node --test scripts/generate-seo-pages.test.mjs scripts/nginx-routing.test.mjs (3/3)
  • npm run typecheck
  • npm run build

Lint was run on the changed files (0 errors; existing TSX JSX warnings only). Full frontend lint remains red on pre-existing errors outside this PR.

@samxu01
samxu01 force-pushed the kai/c3-signup-session branch from 92b08f5 to 7563927 Compare September 12, 2026 19:24
@samxu01
samxu01 force-pushed the kai/c3-signup-session branch from 7563927 to 36d4ccc Compare September 12, 2026 19:27
@lilyshen0722
lilyshen0722 merged commit d781414 into main Sep 12, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant