Skip to content

fix: resolve profile page crash and login redirect failure#26

Merged
Chaddacus merged 1 commit into
mainfrom
codex/fix-profile-and-login
Mar 23, 2026
Merged

fix: resolve profile page crash and login redirect failure#26
Chaddacus merged 1 commit into
mainfrom
codex/fix-profile-and-login

Conversation

@Chaddacus

Copy link
Copy Markdown
Owner

Summary

  • Profile: DecimalField → FloatField in serializer
  • Login: isLoading not reset on success → PublicRoute stuck loading

Test plan

  • Profile renders storage without toFixed crash
  • Login redirects to dashboard after auth
  • 69 backend tests pass

🤖 Generated with Claude Code

1. Profile page crash (storage_used_mb.toFixed is not a function):
   - Root cause: DecimalField serializes as string "0.0000" in DRF
   - Fix: Add explicit FloatField override in UserProfileSerializer

2. Login not redirecting to dashboard after successful auth:
   - Root cause: login() never sets isLoading=false on success path
   - Fix: Add setState({isLoading: false}) after refreshProfile()

Validated with Playwright: profile renders, login redirects, 69 tests pass.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Chaddacus Chaddacus merged commit 6f56590 into main Mar 23, 2026
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