- Collect detailed bounce feedback data (scroll, time, interactions)
- Pass bounceFeedback to analytics API
- Enhanced bounce tracking with implicit feedback collection
Fix beta signup analytics tracking - write to analytics_beta_signups table
Mahdi Naser Moghadasi
18a9a9e
Include device_type in activity log API response
Mahdi Naser Moghadasi
70937b5
Add persistent storage for LLM questions and responses via HF Hub backup
Mahdi Naser Moghadasi
76869e7
Trigger HF Hub backup when questionnaire responses are saved
Mahdi Naser Moghadasi
5e0f52c
Fix questionnaire API - check getAll parameter first
Mahdi Naser Moghadasi
9546203
Fix questionnaire API - ensure table exists before querying
Mahdi Naser Moghadasi
affc023
Add admin endpoint to get all questionnaire responses
Mahdi Naser Moghadasi
c6ac463
Add mobile questionnaire and disable auto pop-ups on mobile - show banner instead
Mahdi Naser Moghadasi
2e86dd0
Add UTM parameter recovery from request URL in addition to cookies and referrer
Mahdi Naser Moghadasi
731d501
Add server-side UTM parameter recovery from cookies and referrer URL
Mahdi Naser Moghadasi
f2c3a91
Add full request body logging to debug UTM parameter transmission
Mahdi Naser Moghadasi
1ad71ee
Add logging for visits without UTM parameters to debug tracking
Mahdi Naser Moghadasi
22b289f
Add debug logging for UTM parameter tracking
Mahdi Naser Moghadasi
28b6fd5
Track multiple ad clicks per visitor: allow multiple visits per day with different UTM campaigns, add API endpoint to query visits by visitor ID
Mahdi Naser Moghadasi
703eaa8
Preserve totalVisitsBeforeExclusions in date-filtered analytics
Mahdi Naser Moghadasi
86e1b96
Include totalVisitsBeforeExclusions in API response
Mahdi Naser Moghadasi
0f7c976
- Add to both POST and GET handlers
- Include in filtered analytics when date filter is applied
- This allows dashboard to show both filtered and unfiltered totals
Add table existence check and better error logging to onboarding API
Mahdi Naser Moghadasi
db6be8a
- Check if onboarding_responses table exists before querying
- Add detailed error logging with stack traces
- Log response counts for debugging
- This will help debug why dashboard can't fetch onboarding responses
Enhance server-side logging with console.error for visibility
Mahdi Naser Moghadasi
a838062
- Use console.error instead of console.log to ensure logs show up
- Log each piece separately for better visibility
- Add explicit warning when code section is missing
- Check if code is in user message as fallback
- This will help debug why LLM responds as if there's no code
Add server-side logging to track code being sent to LLM
Mahdi Naser Moghadasi
3b9fa75
- Log system prompt content and length
- Check if code section is present in system prompt
- Warn if user mentions code but system prompt has no code
- This will help debug why LLM responds as if there's no code on 2nd Run
Add onboarding modal with skill level question and dashboard integration
Mahdi Naser Moghadasi
da85bc8
- Create OnboardingModal component with 3-step flow:
- Step 1: Main goal (Learn basics, Practice problems, Exploring)
- Step 2: Skill level (Beginner/Intermediate/Advanced) for practice-problems
- Step 3: Next action (Tour, Beta signup, Start practicing, Skip)
- Add onboarding_responses table to database schema
- Create /api/onboarding endpoint (POST/GET)
- Integrate onboarding modal into main page (shows on first visit)
- Add onboarding data display to Streamlit dashboard with charts and metrics
Remove duplicate geographic stats queries - use filtered stats from readAnalyticsFromDB
Mahdi Naser Moghadasi
207f951
- Remove redundant countryStats and usStateStats queries in API route
- Use stats already filtered by date from readAnalyticsFromDB
- Simplifies code and ensures consistency
Add date filtering to geographic stats (country and US state maps)
Mahdi Naser Moghadasi
acc74af
- Update readAnalyticsFromDB to accept filterDate parameter
- Filter countryStats and usStateStats by date when filterDate is provided
- Use filtered stats from readAnalyticsFromDB instead of separate queries
- Maps will now show aggregated data for selected day or all time based on filter
Fix geolocation: Handle 403 error and improve IP extraction
Mahdi Naser Moghadasi
c9e76a9
- Try HTTP fallback when HTTPS returns 403 (ip-api.com free tier requirement)
- Improve x-forwarded-for parsing to try all IPs in chain
- Better logging for private IP detection
- Reduce header logging spam (only when DEBUG_GEO is set)
Add comprehensive debug logging for geolocation
Mahdi Naser Moghadasi
50e2414
- Log IP extraction result
- Log geolocation API response
- Log all request headers when IP not found
- Log what geographic data is being stored
- Increase timeout to 5 seconds for better reliability
- Helps diagnose why geographic data isn't being stored
Add debug logging for IP extraction
Mahdi Naser Moghadasi
84ff9b7
- Log IP-related headers when DEBUG_GEO env var is set
- Helps diagnose IP extraction issues on Hugging Face Spaces
Fix geolocation: Use HTTPS and add debug logging
Mahdi Naser Moghadasi
b73bea0
- Change geolocation API from HTTP to HTTPS for better compatibility
- Add debug logging to track geolocation calls and results
- Increase timeout to 3 seconds for better reliability
- Log when IP is not found or geolocation fails
Add geographic tracking and map visualizations
Mahdi Naser Moghadasi
f8c10e0
- Add IP geolocation tracking using ip-api.com
- Store country, state, city, and coordinates in database
- Add countryStats and usStateStats to analytics API
- Filter geographic stats by date when date filter is applied
- Create world map and US state map visualizations in dashboard
- Support both total and per-day geographic views
Filter referrer stats by date when date filter is applied
Mahdi Naser Moghadasi
afc71d6
- Query analytics_visits with visit_date filter for referrer stats
- Filter both referrerStats and referrerCategoryStats by date
- Ensures Traffic Sources section shows per-day data when date filter is active
Add debug info to API response for LLM questions query
Mahdi Naser Moghadasi
6fefb81
- Include debug information in API response instead of just console.log
- Shows why questions aren't found (date range, available activity types)
- Helps diagnose why llmQuestionsByUser is empty
Improve LLM questions query with better debugging
Mahdi Naser Moghadasi
5f3007e
Add debug logging to check available activity types for LLM users
Mahdi Naser Moghadasi
9e04295
Fix LLM questions query to use date() function and add debug logging
Mahdi Naser Moghadasi
28a4d19
Fix TypeScript error for llmUsageByVisitor property
Mahdi Naser Moghadasi
091c4b9
Add LLM questions breakdown by user for date-filtered queries
Mahdi Naser Moghadasi
78d4c4b
- Query user_activity_log for llm_question activities on specific date
- Include question text, questionId, mode, and timestamp
- Return top 10 questions per top 5 LLM users
- Helps analyze what users are asking the LLM
Add llmUsageByVisitor to API response object
Mahdi Naser Moghadasi
481ac70
Include llmUsageByVisitor in API response
Mahdi Naser Moghadasi
ccf63e6
Add LLM usage breakdown by visitor for date-filtered queries
Mahdi Naser Moghadasi
af29a83
- Add query to get LLM usage count per visitor for specific date
- Include llmUsageByVisitor in API response when date filter is applied
- Helps analyze if LLM usage is concentrated in few users or distributed
Filter LLM usage and beta signups by date when date filter is applied
Mahdi Naser Moghadasi
4dd1bd7
- Add date filtering for llmUsageCount when filterDate is provided
- Add date filtering for betaSignups when filterDate is provided
- Query analytics_llm_usage and analytics_beta_signups tables with date filter
- Fixes issue where LLM and signup counts showed all-time values even when viewing single date
Fix 500 error in analytics API with date filter and breakdown
Mahdi Naser Moghadasi
f60f07b
- Add try-catch around date filtering to prevent crashes
- Query database directly for visitors on specific date instead of inferring from firstVisit/lastVisit
- Fix SQL parameter binding for nested subqueries in breakdown query
- Add date filtering to activity breakdown, button clicks, and tour interactions queries
- Add comprehensive error logging for debugging
- Return empty breakdown on error instead of failing entire request
Add date filter and non-engaged breakdown to dashboard
Mahdi Naser Moghadasi
2daef62
- Add checkbox to toggle between 'all data (total only)' vs 'selected day only'
- Add date picker when 'selected day' mode is selected
- Filter all analytics data by date when date is selected
- Show/hide per-day breakdowns based on mode
- Display non-engaged visitors breakdown with activity types, button clicks, and tour interactions
- API supports date filtering for non-engaged breakdown queries
Add breakdown of non-engaged visitors to analytics API
Mahdi Naser Moghadasi
bc90d03
- New query parameter: ?breakdown=true
- Shows what visitors who didn't start questions actually did
- Breakdown by activity type, button clicks, and tour interactions
- Helps understand why 511 visitors didn't start questions
Add debug logging to verify latest code is executed
Mahdi Naser Moghadasi
41423f7
- Add console.log in handleRun to show code being executed
- Add console.log in executeAndCheckWithLLM to show code sent to API
- Add console.log in execute-python API to show code received
- Helps verify that terminal is executing the latest code from editor
- Only logs in development mode
Fix Java convertToJson: remove invalid instanceof int check
Mahdi Naser Moghadasi
1ac6179
- Remove 'instanceof int' check (primitives cannot be used with instanceof)
- Integer wrapper class check handles both Integer objects and auto-boxed int primitives
- Fixes 'unexpected type' compilation error
Fix Java convertToJson to handle Object type
Mahdi Naser Moghadasi
b70b303
- Change convertToJson to accept Object parameter
- Use instanceof checks to handle int[], Integer, and int types
- Add fallback toString() for other types
- Fixes 'no suitable method found for convertToJson(Object)' error
Fix Java execution: add default return statement and convertToJson helper
Mahdi Naser Moghadasi
1a96512
- Add default return statement based on return type (int[] returns new int[0], int returns 0)
- Add convertToJson helper methods to Main class for int[] and int
- Improve return type inference to include 'Intersection' and 'Union' functions
- Fixes 'missing return statement' and 'cannot find symbol convertToJson' errors
Fix C++ execution: remove duplicate helpers, use namespace std, fix Solution method calls
Mahdi Naser Moghadasi
9a2c618
Fix C++ code execution: add proper includes, fix function extraction, and Solution class method calls
Mahdi Naser Moghadasi
2f7e139
- Add necessary C++ headers (vector, iostream, unordered_map) to template
- Fix function name extraction for C++ class methods
- Update test code generation to create Solution instance and call method
- Fix JSON conversion helpers for C++ vectors and ints
- Use 'using namespace std' for cleaner code
Fix TypeScript error: ensure tempDir is not null before using in spawn
Mahdi Naser Moghadasi
6c820f4
Add multi-language support (Python, JavaScript, Java, C++)
Mahdi Naser Moghadasi
fe2a1b2
- Add language selector dropdown to CodeEditor
- Create execution API endpoints for JavaScript, Java, and C++
- Update Dockerfile to install Java (openjdk17) and C++ (g++) compilers
- Update code execution logic to route based on selected language
- Add syntax highlighting for all supported languages in Monaco and CodeMirror
- Update executeAndCheckWithLLM to support all languages
- Extract function names based on language syntax
- Update handleRun and handleSubmit to use language-aware execution