Skip to content

feat: grade history, card autocomplete in grading, portfolio integration#115

Merged
Pyronewbic merged 2 commits into
mainfrom
dev
May 15, 2026
Merged

feat: grade history, card autocomplete in grading, portfolio integration#115
Pyronewbic merged 2 commits into
mainfrom
dev

Conversation

@Pyronewbic

Copy link
Copy Markdown
Owner

Summary

  • POST /api/grade accepts cardId, stores userId + cardId in grade log, returns gradeId
  • GET /api/grades/mine — user's grade history by userId
  • DELETE /api/grades/:id — delete a grade (owner check + admin bypass)
  • Front-only uploads now return v3 (no v2 fallback)
  • Card detection resilient to API failures
  • TOGETHER_API_KEY placeholder ignored (must be >20 chars)

Test plan

  • node test/unit-test.js — 224 pass
  • CI unit + codeql pass
  • POST /api/grade with cardId returns gradeId in response
  • GET /api/grades/mine returns grades with cardId

… /grades/:id

- POST /api/grade accepts cardId, stores userId + cardId in grade log, returns gradeId
- GET /api/grades/mine — user's grade history by userId
- DELETE /api/grades/:id — delete your grade (owner check)
- getGradeLogsByUser, getGradeLog, deleteGradeLog added to firestore.js
- 3 new API tests for grade history endpoints
@Pyronewbic Pyronewbic merged commit f784661 into main May 15, 2026
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant