feat: Add analytics dashboard with performance insights (Phase 3.2)#25
feat: Add analytics dashboard with performance insights (Phase 3.2)#25Datakult0r wants to merge 8 commits into
Conversation
- Added Dockerfile for containerized deployment - Added fly.toml with Fly.io configuration - Added .dockerignore to exclude unnecessary files - Added comprehensive DEPLOYMENT.md guide
- Created backend analytics API routes: - GET /dashboard - Overview stats (grants, proposals, relevance) - GET /success-rate - Success rate by grant source - GET /generation-time - Avg proposal generation time by mode - GET /relevance-distribution - Relevance score ranges - GET /grants-by-source - Grant count by source - GET /trends - 30-day activity trends - Created frontend analytics page with: - Overview stats cards (total grants, active, new this week, proposals) - Proposal status distribution chart - Relevance score distribution bar chart - Generation time comparison (Fast Track vs Research Track) - Success rate by source with progress bars - Grants by source horizontal bar chart - 30-day activity trend visualization - Updated server.js to include analytics routes
Original prompt from Datakult |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…s-data feat: Session 9 - Remaining Pages Data Integration
…vements docs: Add PRD, deployment config, and fix README merge conflict
Summary
This PR implements Phase 3.2 of the PRD - Analytics Dashboard. It adds a comprehensive analytics system with backend API endpoints and a frontend visualization page.
Backend (308 lines): New
/api/analyticsroutes providing dashboard stats, success rates by source, proposal generation times, relevance score distribution, grants by source, and 30-day activity trends.Frontend (436 lines): New
/analyticspage with overview stat cards, proposal status distribution, relevance distribution bar chart, generation time comparison (Fast Track vs Research Track), success rate by source, grants by source, and a 30-day trend visualization.Review & Testing Checklist for Human
/success-rateendpoint usesproposals->grantsjoin. Confirm this works with your schema:grants (source, name)nested select./api/analytics/*routes have no authentication. Decide if business metrics should be public or protected./dashboardendpoint makes 6+ sequential Supabase queries. Test with production-scale data to ensure acceptable response times.Recommended test plan:
/analyticsnpm run seed) and refresh to see populated chartsNotes
$state) - ensure project is on Svelte 5/analytics- you may want to add one manuallyLink to Devin run: https://app.devin.ai/sessions/9573820f0f6d41dab1cff8a61c26c981
Requested by: @Datakult0r