Commit Graph

12 Commits

Author SHA1 Message Date
2438ec55d4 feat: add plan selection onboarding screen after signup 2026-09-13 21:30:58 +05:30
5dc45bb90e fix: remove 'Optional if using OTP' from signup password label 2026-09-13 21:24:06 +05:30
a81e53c781 fix: demo name, trial flow, signup profile fields, docker pgbouncer/frontend
- page.tsx: hero mock shows 'Neha Verma' + 'AI Coach Plan' (was 'Demo Student')
- backend/main.py: demo login maps to Neha Verma UUID (33333333-...)
- backend/main.py: register endpoint stores exam/class/medium/school + trial_end from admin settings
- backend/main.py: register checks allow_new_registrations setting
- backend/main.py: admin student list includes trial_end field
- useActiveUser.ts: rewrite trial logic using real created_at date
- useActiveUser.ts: add computeTrialInfo(), isDemoUser() helpers + expose trialInfo from hook
- useActiveUser.ts: hasAccessTo() now uses effectiveTier from trial logic
- dashboard/layout.tsx: hide demo switcher for real users (only show for known demo accounts)
- dashboard/layout.tsx: trial badge in top header (Day N/15 Trial · Xd left)
- dashboard/layout.tsx: trial day shown in sidebar user card and dropdown
- signup/page.tsx: wire step 2 selects (exam/class/medium/school) to state + send to backend
- signup/page.tsx: success screen shows 'Day 1 of your Free Trial has started!'
- userlist.txt: was empty directory causing pgbouncer mount failure; replaced with proper file
- pgbouncer.ini: added DB credentials in connection string; fixed admin_users
- Dockerfile: added ARG NEXT_PUBLIC_API_URL baked at build time (needed for standalone)
- docker-compose.yml: frontend build arg http://backend:8000; pgbouncer healthcheck; backend waits for pgbouncer
2026-09-13 21:19:35 +05:30
d0472da976 chore: disable OTP/phone-validation at signup, fix next.config rewrite env bug, clean stale .next cache 2026-09-13 15:25:56 +05:30
3ad281aae6 fix(auth): resolve demo login redirect loop, fix backend API bugs, restore clean login UI, and add comprehensive API docs with headers 2026-09-04 11:49:13 +05:30
63bf71a50c feat: complete auth and gateway agnostic billing implementation 2026-08-13 11:32:35 +05:30
c2fab50749 chore: Secure routes with auth middleware, update text and fix minor bugs 2026-08-03 17:55:20 +05:30
a5bb2d867c feat: setup admin JSON generation and pdf viewer for free plan DPPs 2026-07-27 14:56:25 +05:30
fe73bce834 Fix: Correct logo light/dark switching - dark_background for light mode, light_background for dark mode 2026-07-07 15:23:05 +05:30
6b0025408e Fix: Replace ALL Rectangular_light_background.svg refs with dark version globally 2026-07-07 15:14:01 +05:30
426b98ddab feat: complete pragativeer v2 frontend and backend, docker setup, and cbt engine 2026-07-06 17:08:13 +05:30
ce01795aa9 feat: complete premium NEET/JEE platform with admin, student dashboards, and upgraded branding 2026-06-24 13:47:25 +05:30