Skip to content

Bug #671 Progress bar not showing full stats#750

Open
rolivares93 wants to merge 1 commit intomainfrom
bug-671/progress-bar-not-showing-full-stats
Open

Bug #671 Progress bar not showing full stats#750
rolivares93 wants to merge 1 commit intomainfrom
bug-671/progress-bar-not-showing-full-stats

Conversation

@rolivares93
Copy link

Proposed changes

For the layout, I fixed some inconsistencies related to the full statuses (full started and full completed). The border radius was breaking for them. Here are all the statuses:

NO STARTED
NO ONE STARTED

PARTIALLY STARTED AND NO COMPLETED
PARTIALLY STARTED

PARTIALLY STARTED AND PARTIALLY COMPLETED
PARTIALLY STARTED AND COMPLETED

ALL STARTED AND PARTIALLY COMPLETED
ALL STARTED AND PARTIALLY COMPLETED

ALL COMPLETED
ALL COMPLETED

For the refactoring (readability improvement), I updated the plotting function to move from started to completed when the user completes the assignment. This allowed me to give the right results for:

  • Started
  • Completed
  • Not Started
Screen.Recording.2026-01-06.at.15.30.40.mov

Types of changes

What types of changes does this pull request introduce?

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactor (non-breaking change that does not add functionality but makes code cleaner or more efficient)
  • Tests (new or updated tests)
  • Styles (changes to code styling)
  • CI (continuous integration changes)
  • Other (please describe below)

Additional Notes

@rolivares93 rolivares93 requested review from Zio-4 and fhconte January 6, 2026 18:42
@rolivares93 rolivares93 self-assigned this Jan 6, 2026
@rolivares93 rolivares93 linked an issue Jan 6, 2026 that may be closed by this pull request
@github-actions
Copy link

github-actions bot commented Jan 6, 2026

Visit the preview URL for this PR (updated for commit 7567d16):

https://hs-levante-admin-dev--pr750-bug-671-progress-bar-66d4b9u4.web.app

(expires Tue, 13 Jan 2026 18:47:54 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 7889bff1da3bcc333d7422b9fc863c65b3962be7

const numOfCompleted = Number(completed) || 0;
const numOfAssigned = Number(assigned) || 0;
const numOfStarted = Number(started) || 0;
const numOfIncomplete = numOfStarted - numOfCompleted;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is causing an issue when adults complete surveys - for children, assignments have multiple tasks so they may often be started but not completed, but adults only have one survey so it may get done in one go. When e.g., a child starts (but doesn't finish), and then an adult finishes (but was never tallied as started), it shows started as 0 (or some number of adults less than it actually is) even though there may still be users who have started but not finished. I think we might need to do something more complicated here to fix that - do we have different options for what the orgStats returns?

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] Progress bar on assignment card not showing full stats

3 participants