Skip to content

fix: Study Progress Does Not Update Immediately After Completing Tasks (#435)#454

Open
Parmarprashant wants to merge 3 commits into
Charushi06:mainfrom
Parmarprashant:main
Open

fix: Study Progress Does Not Update Immediately After Completing Tasks (#435)#454
Parmarprashant wants to merge 3 commits into
Charushi06:mainfrom
Parmarprashant:main

Conversation

@Parmarprashant
Copy link
Copy Markdown

This PR resolves issue #435 where the study progress tracker and completion statistics failed to update instantly when a task was marked as completed. Users previously had to refresh or navigate away to see their updated progress.

Changes

  • Reactive UI Updates : Subscribed the renderSummary function to the central store in app.js . This ensures that any change in task status (Done/Pending) triggers an immediate re-render of the summary statistics.
  • Visual Progress Bar : Added a dynamic progress bar and percentage indicator to the Summary Box for better visual feedback.
  • Accurate Badge Counting : Refined the sidebar badge logic to count only pending tasks, aligning with the "All Tasks" display and improving productivity tracking accuracy.
  • Accessibility Improvements : Updated aria-label attributes on badges to dynamically reflect the number of remaining tasks.

Verification

  • Marking a task as "Done" instantly updates the "Overall Progress" bar and percentage.
  • Daily and Weekly task counts in the summary panel update immediately.
  • Sidebar badges correctly decrement upon task completion without page refresh.

Fixes

Fixes #435

- Fix missing closing brace in DOMContentLoaded
- Fix signup endpoint to return email
- Remove duplicate CSS rules
- Fix indentation consistency
- Fix string concatenation error
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.

bug: Study Progress Does Not Update Immediately After Completing Tasks

1 participant