feat(gamification): add XP, streaks, and achievements engine#62
Open
nymulinfoinlet wants to merge 4 commits intomainfrom
Open
feat(gamification): add XP, streaks, and achievements engine#62nymulinfoinlet wants to merge 4 commits intomainfrom
nymulinfoinlet wants to merge 4 commits intomainfrom
Conversation
Expand the quiz system from 4 to 8 question types to support deeper assessments. New types include partial credit scoring (matching, ordering), auto-graded code execution via code-sandbox service (coding), and AI-evaluated long-form answers with rubric-based feedback (essay). Closes #46 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Add a new import-export module that enables students to bring in their existing flashcard collections and export study sets for use in other tools. - AnkiImportService: parses .apkg files (ZIP + SQLite), extracts notes with field separator parsing, strips HTML/media references, creates flashcards via existing FlashcardsService.createBulk - AnkiExportService: generates minimal .apkg files with proper Anki schema (col, notes, cards tables), Basic model template, and media stub - CsvImportService: handles CSV/TSV with auto-detected delimiters, quoted field parsing, header detection (Quizlet compatible) - CsvExportService: exports study set as CSV with front, back, tags columns - ImportExportController: four endpoints mounted on study-sets/:id (POST import/anki, POST import/csv, GET export/anki, GET export/csv) Dependencies: adm-zip, better-sqlite3 (+ @types) Closes #47 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Implement LTI 1.3 (Learning Tools Interoperability) so Studyield can be embedded as a learning tool inside Canvas, Moodle, Blackboard, and other LMS platforms. Uses manual OAuth2 + JWT implementation for clean NestJS integration instead of ltijs. - OIDC login initiation and launch callback endpoints - JWT verification against platform JWKS - User mapping (find-or-create by email on LTI launch) - Assignment and Grade Services (AGS) for posting scores back to the LMS - Admin API for registering/listing/deleting LMS platforms - JWKS endpoint for platforms to verify tool signatures - Database migration for lti_platforms and lti_contexts tables - Environment variables for LTI configuration Closes #48 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Implement a full gamification system with XP tracking, study streaks, achievement conditions, and leaderboards. Integrates with flashcard reviews, quiz completions, exam attempts, teach-back sessions, and knowledge-base uploads to award XP and track progress. Closes #51 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
backend/src/modules/gamification/) with XP ledger, streak tracking, achievement conditions engine, and leaderboards016_gamification.sql) withxp_ledger,user_gamification,achievement_definitions, anduser_achievementstables, plus 10 seeded achievementsGET /gamification/profile,GET /gamification/leaderboard,GET /gamification/achievementsTest plan
cd backend && npx tsc --noEmit-- 0 errorsxp_ledgeranduser_gamification.total_xpincrementsquiz_completeandquiz_perfectXP entriesGET /gamification/profileand verify all fields are returnedGET /gamification/leaderboard?period=weekly&limit=10and verify rankingGET /gamification/achievementsand verify progress trackingCloses #51
🤖 Generated with Claude Code