feat: build Intervention Tracking and Best Practices workflow with reassessment and worksheet linking - #149
Open
Ashishpatra0-0 wants to merge 6 commits into
Conversation
…riggers and worksheet matching
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.
What this PR does
The problem: The backend already had a fully-built Intervention Tracking and Best
Practices system (routes, database models, seed data, and automatic outcome detection)
but there was zero frontend integration. A misleading placeholder in the Teacher
Dashboard ("Use sidebar → Interventions") pointed to a sidebar link that didn't exist.
What I built:
Core Feature (frontend integration on top of existing backend)
see auto-detected outcomes (improved/not improved with level before→after)
level jump, browse proven strategies from other teachers
repository
New backend features
pending_reviewstatus. Calculates whether an intervention's planned duration has elapsed
and allows the teacher to trigger a follow-up assessment once due, with a
live countdown shown on each card.
worksheets by how well their questions match an intervention's weak
competencies (not just a static list - real relevance scoring based on
question topic/subtopic overlap).
an intervention plan, with a persistent display and a modal to view full
worksheet contents (including reconstructing full question text where the
seed data had been truncated).
Files changed
Backend:
backend/src/db.ts— addedlinkedWorksheetIdstoInterventionandBestPracticebackend/src/index.ts— added/trigger-reassessment,/suggested-worksheets,/linked-worksheets,/notes, and/worksheets/:id/viewroutesFrontend:
frontend/src/components/Layout.tsx— added Interventions + Best Practicesnavigation entries
frontend/src/components/RoleDashboards.tsx— fixed the orphaned placeholderbanner to link to the real Interventions page
frontend/src/components/InterventionTracking.tsx— new component (main feature)frontend/src/components/BestPractices.tsx— new componentfrontend/src/components/PanelViews.tsx— added Intervention Plan tab toStudent Profile
How I tested this
works correctly before wiring up the frontend
real worksheet data
notes/worksheets)