Fix TypeScript error: add explicit type annotation for AIMessage array
Mahdi Naser Moghadasi
a32722e
Fix: Handle case where messages state hasn't updated when adding analysis response
Mahdi Naser Moghadasi
b44cf2f
Fix: Initialize chat before analysis when trigger fires on uninitialized chat
Mahdi Naser Moghadasi
b8f27ad
Add detailed logging for LLM response handling and message updates
Mahdi Naser Moghadasi
3a4f563
Add more detailed logging to AIAssistantChat triggerAnalysis useEffect
Mahdi Naser Moghadasi
feaea7b
Add comprehensive logging for LLM analysis trigger debugging
Mahdi Naser Moghadasi
1079780
Add Plausible Analytics custom event tracking for LLM calls, questions, code execution, and interactions
Mahdi Naser Moghadasi
0aeac7b
Fix React errors and prevent high JS error rate
Mahdi Naser Moghadasi
6960db9
Fixes:
1. Added ErrorBoundary component to catch React errors gracefully
2. Created safe-storage utilities to prevent localStorage errors
3. Replaced all localStorage calls with safe wrappers
4. Added proper client-side guards to prevent hydration mismatches
5. Fixed event listener cleanup in bounce tracking
6. Added error handling for all window/document access
7. Added isClient state to prevent SSR/client mismatches
This should prevent the React errors #425, #418, #423 that were causing
6 out of 8 bounces to have JavaScript errors.
Rename bottom nav buttons: 'New' to 'New Question', 'Question' to 'Current Question'
Mahdi Naser Moghadasi
107b9a6
Add rotate prompt to both pages, make bottom nav visible in landscape, add scroll/focus, rename to AI Instructor
Mahdi Naser Moghadasi
3bc7bcc
- RotatePrompt already shown on both selector and practice pages
- Remove sm:hidden from MobileBottomNav - now visible in landscape
- Add scroll/focus functionality to bottom nav buttons:
- Home: scroll to top then go home
- New: scroll to new problem button then trigger
- AI Instructor: open panel and scroll to it
- Question: scroll to question display
- Rename all 'Interview Helper' references to 'AI Instructor' throughout codebase
- Add IDs to AI Instructor components for scroll targeting
- Update activity tracking names from interview_helper to ai_instructor
Change Helper to AI Instructor and fix Continue button visibility
Mahdi Naser Moghadasi
de50877
- Change bottom nav button label from 'Helper' to 'AI Instructor'
- Fix questionnaire modal: Make Continue button always visible in portrait and landscape
- Use flexbox layout with sticky footer for Continue button
- Make content area scrollable while keeping button fixed at bottom
- Button now visible in both orientations
Fix questionnaire auto-advance and make bottom nav buttons colorful
Mahdi Naser Moghadasi
50f6754
- Questionnaire: Auto-advance to next step when level is selected (500ms delay)
- Fix questionnaire modal: Make scrollable for landscape orientation, add overflow handling
- Make bottom navigation buttons colorful with gradients:
- Home: Blue gradient
- New: Green gradient
- Helper: Purple/Pink gradient
- Question: Orange/Red gradient
- Add hover effects and shadows to bottom nav buttons
Delete CompanyLogos component file - no longer used
Mahdi Naser Moghadasi
2e1803d
Move premium button to top, right after hero title on mobile
Mahdi Naser Moghadasi
1523f7d
Remove company logos, add premium button with 24/7 staff instructor messaging
Mahdi Naser Moghadasi
33cc9f7
- Remove company logos section (looked bad)
- Move premium '3X Your Salary' button to top of mobile page
- Add premium button styling: gradient, shimmer effect, glow animation
- Update messaging: 'Staff-Level Instructor Available 24/7' in guidance panel
- Remove company names, focus on instructor availability
- Button now appears immediately after hero title on mobile
Fix company logos and streamline mobile flow: direct to questionnaire
Mahdi Naser Moghadasi
e9ab2ac
- Update company logos with accurate SVG versions (Google, Meta, Amazon, Apple, Microsoft, Netflix, Uber, Airbnb, Stripe, Tesla)
- Change mobile button from 'Start Practicing Now' to '3X Your Salary'
- Remove salary prompt modal - button now goes directly to programming level questionnaire
- Streamlined flow: Click '3X Your Salary' → Programming Level Questionnaire → Practice Page
- All interactions tracked and persisted
Major mobile redesign: salary prompt, programming level questionnaire, company logos
Mahdi Naser Moghadasi
aa74561
- Add CompanyLogos component with 10 tech company logos (Google, Meta, Amazon, Apple, Microsoft, Netflix, Uber, Airbnb, Stripe, Tesla)
- Create SalaryPromptModal for mobile: 'Ready to 3X Your Salary?' prompt
- Create ProgrammingLevelQuestionnaire: Beginner, Intermediate, Advanced, Senior
- Redesign mobile homepage: focus on AI teacher/step-by-step analysis
- Replace 'Start Recommended Problem' with salary prompt flow on mobile
- Mobile flow: Homepage → Salary Prompt → Programming Level → Practice
- Enhanced tracking: all interactions (clicks, modals, selections) tracked and persisted
- Store programming level in localStorage for persistence
- Track page load times and all user interactions
- All data stored persistently in database via /api/activity
- Hide topic/difficulty selection on mobile for simpler flow
- Add tech company logos section (Google, Meta, Amazon, Apple, Microsoft, Netflix)
- Update hero messaging: 'We help you get a job at top tech companies'
- Add 'No credit card needed' message with icon
- Disable mobile questionnaire
- Mobile users now go directly to recommended problem
Improve mobile hero section, value proposition, and CTA button
Mahdi Naser Moghadasi
6c19832
- Enhanced hero headline for mobile: 'Master Coding Interviews' with gradient
- Added clear value proposition above the fold with key benefits
- Made CTA button more prominent: full-width, larger, with icons
- Fixed deviceType type error in analytics-db.ts
- All improvements are mobile-only, desktop unchanged
Fix rotate prompt: always check orientation, don't return early on selector
Mahdi Naser Moghadasi
4937046
Update rotate prompt to check orientation on practice page and show modal again if still in portrait
Mahdi Naser Moghadasi
1ab6cbf
Fix questionnaire: auto-close after question 2 is answered
Mahdi Naser Moghadasi
7d73ca6
Update questionnaire to save answers immediately on selection and show rotate prompt on practice page
Mahdi Naser Moghadasi
491d1de
Improve rotation prompt debugging and fix dismissed state handling