feat: improve first-login onboarding and avatar handling - #769
Draft
tiankaima wants to merge 8 commits into
Draft
Conversation
Co-authored-by: Tiankai Ma <tiankaima.dev@gmail.com>
Co-authored-by: Tiankai Ma <tiankaima.dev@gmail.com>
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
life-ustc | 58b01d5 | Aug 08 2026, 04:05 PM |
Co-authored-by: Tiankai Ma <tiankaima.dev@gmail.com>
Co-authored-by: Tiankai Ma <tiankaima.dev@gmail.com>
Co-authored-by: Tiankai Ma <tiankaima.dev@gmail.com>
|
E2E HTML report is ready: https://life-ustc.github.io/e2e-snapshot-artifacts/reports/31266032403/index.html |
Co-authored-by: Tiankai Ma <tiankaima.dev@gmail.com>
Co-authored-by: Tiankai Ma <tiankaima.dev@gmail.com>
Co-authored-by: Tiankai Ma <tiankaima.dev@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goal
Improve first-login onboarding: turn the dense single-page welcome into a guided staged flow, add secure custom avatar uploads, allow refreshing OAuth profile data, and close authentication test gaps.
Changed Surfaces
covertransform to WebPUser.profilePicturesUPDATE grant; Better Auth role remains unable to write itEvidence
Passed:
bun run app:preparebunx wrangler types --include-runtime=false --checkbunx biome check(only 7 pre-existing non-null-assertion warnings)bunx svelte-check --tsconfig ./tsconfig.json(0 errors; 13 pre-existing warnings)bun run openapi:checkWrangler's local Images simulator exposes the binding but cannot execute this transform, so E2E verifies the recoverable unavailable state; the successful transform/store path is covered by a binding-level unit test and the production Cloudflare Worker build.
Docs / Contracts
Updated
docs/contracts/user.json(including a newwelcome-staged-stepsrule),messages/zh-cn.json, andmessages/en-us.json.Risk Areas
OAuth account reauthorization, Cloudflare Images availability, R2 object lifecycle, multipart form handling, public avatar authorization, deployment ordering for the app-runtime column grant, and the new welcome step contract shared with the E2E auth harness.
Cleanup
No scratch artifacts, generated Playwright output, unrelated rewrites, or manual generated Prisma/OpenAPI edits remain.
worker-configuration.d.tswas regenerated with Wrangler.