# DB-backed teacher recommendations

Suggestions are computed from **stored mastery** for the teacher’s assigned students.  
Assign / Accept / Ignore / Undo are persisted in PostgreSQL (`teacher_recommendation_actions`), not browser localStorage.

## Setup

```bash
npm run seed:recommendations
```

## APIs

| Method | Path | Notes |
|---|---|---|
| GET | `/teacher/recommendations?classId=&subject=` | Up to 3 suggestions + saved status |
| PATCH | `/teacher/recommendations/:key` | `{ status, assignedCount?, classId? }` |

Statuses: `new` | `assigned` | `ignored`.

## Dashboard

Teacher **Results** loads recommendations from the API. Actions call PATCH and reload.
