feat(insights): add learning insights dashboard (#16) #230

Merged
jack merged 2 commits from feat/16-learning-dashboard into main 2026-01-24 19:16:01 +00:00
Owner

Summary

  • Add daily stats tracking (observations, sessions, decisions, tokens)
  • Implement technology usage tracking with categories (language, framework, library, etc.)
  • Create achievement/gamification system with 15+ achievements across 4 categories
  • Build new InsightsView UI with stats cards, activity heatmap, tech badges, and achievement progress

Changes

Database

  • New migration creating daily_stats, technology_usage, and achievements tables
  • New MikroORM entities: DailyStats, TechnologyUsage, Achievement
  • New repositories with full CRUD operations and aggregation methods
  • Updated IUnitOfWork interface to include insights repositories

Backend

  • InsightsService with achievement checking and progress tracking logic
  • New API endpoints:
    • GET /api/insights/summary - Get summary stats for date range
    • GET /api/insights/activity - Get daily activity records
    • GET /api/insights/activity/heatmap - Get activity heatmap data
    • GET /api/insights/technologies - List tracked technologies
    • POST /api/insights/technologies - Track new technology
    • GET /api/insights/achievements - Get all achievements with progress
    • POST /api/insights/achievements/check - Check and update achievements

UI

  • New InsightsView component with:
    • Summary stats cards (total memories, sessions, projects, streak)
    • Activity summary (active days, longest streak, decisions, tokens)
    • Activity heatmap for last 30 days
    • Technology badges with category colors
    • Achievement cards with progress bars and unlock dates
  • API client methods for insights endpoints
  • Added "Insights" tab to main navigation

Test plan

  • Run migration on fresh database
  • Verify insights summary loads correctly
  • Verify heatmap displays activity data
  • Test achievement checking endpoint
  • Verify UI displays achievements in correct states (unlocked/in progress/locked)

🤖 Generated with Claude Code

## Summary - Add daily stats tracking (observations, sessions, decisions, tokens) - Implement technology usage tracking with categories (language, framework, library, etc.) - Create achievement/gamification system with 15+ achievements across 4 categories - Build new InsightsView UI with stats cards, activity heatmap, tech badges, and achievement progress ## Changes ### Database - New migration creating `daily_stats`, `technology_usage`, and `achievements` tables - New MikroORM entities: `DailyStats`, `TechnologyUsage`, `Achievement` - New repositories with full CRUD operations and aggregation methods - Updated `IUnitOfWork` interface to include insights repositories ### Backend - `InsightsService` with achievement checking and progress tracking logic - New API endpoints: - `GET /api/insights/summary` - Get summary stats for date range - `GET /api/insights/activity` - Get daily activity records - `GET /api/insights/activity/heatmap` - Get activity heatmap data - `GET /api/insights/technologies` - List tracked technologies - `POST /api/insights/technologies` - Track new technology - `GET /api/insights/achievements` - Get all achievements with progress - `POST /api/insights/achievements/check` - Check and update achievements ### UI - New `InsightsView` component with: - Summary stats cards (total memories, sessions, projects, streak) - Activity summary (active days, longest streak, decisions, tokens) - Activity heatmap for last 30 days - Technology badges with category colors - Achievement cards with progress bars and unlock dates - API client methods for insights endpoints - Added "Insights" tab to main navigation ## Test plan - [ ] Run migration on fresh database - [ ] Verify insights summary loads correctly - [ ] Verify heatmap displays activity data - [ ] Test achievement checking endpoint - [ ] Verify UI displays achievements in correct states (unlocked/in progress/locked) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(insights): add learning insights dashboard (#16)
All checks were successful
CI / build (pull_request) Successful in 41s
19132569f1
Add a learning insights dashboard with:
- Daily stats tracking (observations, sessions, decisions, etc.)
- Technology usage tracking with categories
- Achievement/gamification system with 15+ achievements
- Activity heatmap visualization

Database:
- New migration: daily_stats, technology_usage, achievements tables
- New entities: DailyStats, TechnologyUsage, Achievement
- New repositories with full CRUD and aggregation methods

Backend:
- InsightsService with achievement checking logic
- API endpoints: /api/insights/summary, /activity, /technologies, /achievements

UI:
- New InsightsView with stats cards, heatmap, tech badges, achievement cards
- API client methods for insights endpoints

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Merge branch 'main' into feat/16-learning-dashboard
All checks were successful
CI / build (pull_request) Successful in 40s
35f20ee90b
Resolve conflicts to include both:
- Code snippets feature (from main)
- Learning insights dashboard (from this branch)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
jack merged commit c4ae491119 into main 2026-01-24 19:16:01 +00:00
Sign in to join this conversation.
No description provided.