Skip to content

[v2] Topic Analytics for Curated Tree Prioritization #228

@nicholaspsmith

Description

@nicholaspsmith

Overview

Track what topics users are learning to prioritize creating curated skill trees.

Part of

Memoryloop v2 Pivot - Branch 014-goal-based-learning

Analytics Tracked

  • Normalized topic names (lowercase, trimmed)
  • User count per topic
  • Total cards generated per topic
  • Average retention rate per topic
  • Explicit curation requests

Database

topic_analytics table

  • id (uuid)
  • normalizedTopic (varchar, unique)
  • userCount (integer)
  • totalCards (integer)
  • avgRetention (float)
  • requestedCuration (boolean)
  • firstSeen, lastSeen (timestamps)

API Endpoints

  • GET /api/analytics/topics - List top topics (admin)
  • POST /api/analytics/topics/request-curation - User requests curated tree

Admin Dashboard (future)

  • Top 10 topics by user count
  • Topics with curation requests
  • One-click to create GitHub issue for curation

Topic Normalization

  • Lowercase
  • Trim whitespace
  • Remove common prefixes ("learn ", "study ", "master ")
  • Consider fuzzy matching for similar topics

Acceptance Criteria

  • Topics tracked when goals created
  • Analytics aggregated correctly
  • Top 10 surfaced monthly (SC-009)
  • Users can request curation for their topic

Dependencies

Related Spec

See specs/014-goal-based-learning/spec.md - User Story 6

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestp3Priority 3 - Medium

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions