Skip to content

Add learner progress tracking - #1092

Open
lgriffin wants to merge 1 commit into
tutors-sdk:developmentfrom
lgriffin:feat/progress-tracking
Open

Add learner progress tracking#1092
lgriffin wants to merge 1 commit into
tutors-sdk:developmentfrom
lgriffin:feat/progress-tracking

Conversation

@lgriffin

Copy link
Copy Markdown
Contributor

Summary

  • Adds localStorage-based progress tracking for learner visits to learning objects (labs, talks, notes, tutorials, notebooks, etc.)
  • Displays blue SVG progress rings on topic/unit cards showing completion percentage
  • Shows a cumulative progress bar on the course home page with visited/total counts
  • Dims unvisited items in the course tree sidebar with blue checkmarks for visited ones
  • Shows progress percentage on dashboard course visit cards
  • Clears progress data when a course is deleted from the dashboard

Implementation

  • New progressService using the rune() factory pattern for reactive state updates
  • New ProgressRing SVG component and CourseProgressBar component
  • Progress persists in localStorage per-course (loProgress_{courseId}, loProgressTotal_{courseId})
  • Works for both anonymous and authenticated users
  • Trackable LO types: lab, talk, note, paneltalk, panelnote, panelvideo, book, tutorial, notebook

Test plan

  • Visit a course and navigate through several learning objects
  • Verify tree sidebar shows visited items at full opacity with blue checkmarks, unvisited dimmed
  • Verify topic/unit cards show progress rings with correct percentages
  • Verify course home page shows cumulative progress bar below breadcrumbs
  • Refresh page — progress persists from localStorage
  • Check dashboard — course visit card shows progress percentage
  • Delete a course from dashboard — verify localStorage keys are removed
  • Test across card styles: portrait, circular, landscape

🤖 Generated with Claude Code

Track which learning objects a learner has visited per course using
localStorage. Shows progress via blue SVG rings on topic/unit cards,
a cumulative progress bar on the course home page, visited/unvisited
styling in the course tree sidebar, and completion percentage on
dashboard course cards.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 21, 2026

Copy link
Copy Markdown

@lgriffin is attempting to deploy a commit to the Jordan Harrison Team on Vercel.

A member of the Team first needs to authorize it.

@lgriffin

Copy link
Copy Markdown
Contributor Author
image_480

@lgriffin

Copy link
Copy Markdown
Contributor Author

This sets up the capability to scale this as part of an observability option for lecturers to see where students are at

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