Repository navigation
Confirm sign-in and stop showing Login to signed-in users - #14
Merged
Merged
Conversation
Reported on the deployed demo: - signing in went straight to the dashboard with no feedback; now the button reads "Signing in..." while the request runs and a "Signed in successfully." toast confirms it - /login showed the form to a user who was already signed in; it now redirects to the page they were headed for (state.from) or /dashboard - the public page's header always offered "Login", so a signed-in user landing on / looked logged out; it now shows "Go to dashboard" while a session is stored Tests cover each case (all fail before this change); verified in a browser against the API. Frontend test count now 74. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018oMHDqDASywmwc7ncmxtCY
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.
Summary
Fixes three problems reported on the deployed demo:
/loginshowed the form to users who were already signed in. It now redirects to the page they were headed for (state.from), or to/dashboard./said "Login" even during a session, so the app looked logged out. It now shows Go to dashboard while a session is stored.The deployment itself was healthy: Neon shows all 34 migrations applied, the admin account created, and the sign-in token issued.
Testing
/shows Login; after signing in, the confirmation toast appears./then shows Go to dashboard, which opens the dashboard./loginwhile signed in goes to/dashboard./shows Login again.🤖 Generated with Claude Code
https://claude.ai/code/session_018oMHDqDASywmwc7ncmxtCY
Generated by Claude Code