feat(auth): Story 2.3 - User Authentication (Login/Logout)#2
Merged
BradleyFestraets merged 2 commits intomainfrom Nov 30, 2025
Merged
feat(auth): Story 2.3 - User Authentication (Login/Logout)#2BradleyFestraets merged 2 commits intomainfrom
BradleyFestraets merged 2 commits intomainfrom
Conversation
Implements complete user authentication flow with enhanced UI components: Login Page Enhancements: - Updated login form using shadcn/ui components (Card, Input, Label, Button) - Added 'Forgot Password?' link for password recovery flow - Improved visual design with Card container and proper styling - Updated registration link to point to /register/venue Logout Implementation: - Created LogoutButton client component using next-auth/react signOut - Redirects to /login after logout - Styled with secondary button variant and LogOut icon Dashboard Infrastructure: - Created authenticated dashboard layout with header navigation - User menu dropdown showing name and email with logout option - Navigation links: Dashboard, Menu, Orders, Staff, Settings - Auth guard that redirects unauthenticated users to login - Venue context from URL slug with authorization checks Dashboard Pages: - Main venue dashboard with stats cards (tables, revenue, orders, rating) - Quick action buttons for common operations - Venue information display (address, contact, website, hours) - Multi-venue selector page for users with access to multiple venues Acceptance Criteria Met: Login form exists with email/password fields Logout button accessible from dashboard Redirect to dashboard after login Redirect to login after logout Session management via NextAuth database strategy Story-2.3
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
Implements complete user authentication flow for Story 2.3 of Epic 2.
Changes
Login Page Enhancements
Logout Implementation
Dashboard Infrastructure
Dashboard Pages
Acceptance Criteria
Testing
Files Changed
Story: 2.3 - User Authentication (Login/Logout)
Epic: 2 - Venue Management & User Onboarding