Repository navigation
feat(dsa): add progress tracking with localStorage persistence - #79
Merged
Merged
Conversation
- Add per-topic completion checkboxes in the problems table - Add 'Mark as Completed' toggle in the workspace header - Persist completion state to localStorage (survives refresh) - Show overall completion percentage with progress bar - Add reset button with confirmation to clear all progress Closes pari-28#35
|
@arnavgoel17 is attempting to deploy a commit to the Pari's projects Team on Vercel. A member of the Team first needs to authorize it. |
pari-28
approved these changes
Aug 27, 2026
pari-28
left a comment
Owner
There was a problem hiding this comment.
Thanks for the contribution! The implementation fulfills all the requirements of Issue #35, including per-topic completion tracking, localStorage persistence, overall completion percentage, persistence after refresh, and progress reset. The additional workspace completion control is also closely related to the same feature and uses the existing progress-tracking logic. All CI checks are passing. Approved!
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.
Pull Request
📌 Related Issue
Fixes #35
📝 Description
Adds DSA progress tracking so users can mark topics as completed, see their overall completion percentage, and reset their progress. State persists across refreshes via
localStorage.Changes in
src/components/DsaModule.tsx:aria-label,title).aria-pressedstate), synced with the table checkboxes.prepverse_dsa_completed_topicslocalStorage key; reads are wrapped in try/catch so corrupted storage falls back safely to an empty map.🚀 Type of Change
🧪 Testing
Verified end-to-end against the live dev server:
Validation performed:
npm run lint(tsc --noEmit): passes cleannpm run build: production build succeeds📸 Screenshots / Demo
Validated functionally via live browser automation on localhost (checkbox toggles, percentage bar updates, refresh persistence, reset flow all confirmed working).
✅ Checklist
💬 Additional Notes
The completion state is intentionally scoped per browser (localStorage, guest mode) consistent with the existing bookmark behavior pattern in this module.