Skip to content

Conversation

@rhyanvargas
Copy link
Owner

@rhyanvargas rhyanvargas commented Nov 19, 2025

🚀 PR Summary

Files Changed: 31

  • 🧩 Components: 7
  • 📄 Pages: 3
  • 🔐 Auth: 13
  • ⚙️ Config: 4

🧪 Testing Checklist

  • No TypeScript errors
  • Build passes successfully
  • Functionality tested

Auto-generated PR description

…pecs

- Change specs/archive/ to **/archive/ pattern for broader coverage
- Remove outdated feature spec summary document
- Remove consolidated brainstorm document (historical reference)
- Update README to reflect current documentation structure with requirements.md, design.md, tasks.md, and TESTING.md
- Point to archived docs in new location

Consolidates learning check documentation to active specs only, moving historical files
- Add comprehensive feature spec for migrating from AWS Amplify to Better Auth
- Include requirements.md with user stories, acceptance criteria, and MoSCoW prioritization
- Include design.md with architecture, component structure, and security considerations
- Include tasks.md with phased implementation breakdown and acceptance criteria
- Add README.md documenting spec structure and quick links

Covers email/password auth, verification, passwor
- Add auth-schema.ts with user, session, account, and verification tables using Drizzle ORM
- Add drizzle.config.ts for PostgreSQL database configuration
- Generate initial migration (0000_violet_smiling_tiger.sql) with Better Auth core tables
- Add drizzle-kit and drizzle-orm dependencies for database management
- Include foreign key constraints with cascade delete for user relationships
- Add unique constraints on email and session
- Add new login-form.tsx and signup-form.tsx components using Better Auth patterns
- Add field.tsx component library with FieldSet, FieldGroup, FieldLabel, FieldDescription, FieldError, and FieldSeparator
- Create /signup page with SignupForm component including name, email, password, and confirm password fields
- Update /login page to use new LoginForm component with email and password fields
- Remove AuthRedirect wrapper and Sign
…dency

- Remove AuthClient.tsx, AuthRedirect.tsx, and SignIn.tsx components using AWS Amplify
- Add @radix-ui/react-checkbox dependency for Better Auth form components
- Clean up AWS Amplify UI React imports and social provider configurations
…forms

- Add authClient initialization using better-auth/react
- Implement form state management with email, password, name, and rememberMe fields
- Add form submission handlers with error handling and loading states
- Connect login form to authClient.signIn.email with remember me checkbox
- Connect signup form to authClient.signUp.email with password confirmation validation
- Add Checkbox component from Radix UI for remember me functionality
- Display
@rhyanvargas rhyanvargas self-assigned this Nov 19, 2025
@vercel
Copy link

vercel bot commented Nov 19, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
8p3p-lms-nextjs Ready Ready Preview, Comment Dec 14, 2025 7:57am

- Remove mock amplify_outputs.json creation from PR checks workflow
- Remove conditional TypeScript check logic based on amplify_outputs.json presence in pre-commit script
- Simplify build check step by removing Amplify-specific messaging
- Make TypeScript check unconditional in pre-commit hook
- Remove amplify.yml build configuration file
- Replace AWS Amplify auth with Better Auth session management in middleware
- Update /api/user route to use Better Auth session with request headers
- Simplify AuthProvider by removing Amplify configuration and Authenticator wrapper
- Remove AWS Amplify logic from EmailVerificationHandler component
- Update ProtectedRoute to use Better Auth useSession hook instead of useAuthenticator
- Simplify SessionHandler by
- Import auth-schema module for database table definitions
- Pass authSchema to drizzleAdapter configuration for explicit table mapping
- Group environment variables by category (Core Auth & Database, Mux Video, Tavus Learning Check)
- Mark required vs optional sections for better clarity
- Add detailed comments for DATABASE_URL format and Tavus webhook configuration
- Improve formatting with section separators and consistent spacing
- Clarify Tavus webhook usage for Phase 2+ perception/callbacks
- Update helper command comments for learning check asset creation
…mponent

- Convert dashboard page from client to server component using Better Auth session
- Replace AWS Amplify getCurrentUser/fetchUserAttributes with auth.api.getSession
- Remove loading state and useEffect in favor of server-side session check
- Add redirect to /login when user is not authenticated
- Create BackButton component with useRouter for client-side navigation
- Replace inline Button with window.history.back() with
Eliminated AWS Amplify-related packages from package.json and removed associated UI component overrides from globals.css. Updated Better Auth migration tasks documentation to include post-migration auth hardening steps.
Changed the Node.js engine version in package.json from '>=20.19.0' to '22.x' to ensure compatibility with Node.js 22.x.
Removed all AWS Amplify related dependencies from package.json and package-lock.json, including aws-amplify, @aws-amplify/adapter-nextjs, @aws-amplify/ui-react, and related devDependencies. Downgraded drizzle-orm and upgraded next to 15.5.9. This cleans up unused AWS Amplify packages and updates project dependencies.
@rhyanvargas rhyanvargas merged commit 438aa82 into dev Dec 14, 2025
1 check passed
@rhyanvargas rhyanvargas deleted the feature/better-auth-migration branch December 14, 2025 07:57
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.

2 participants