Skip to content

fix: mobile progress counting for shared blocks#1792

Open
Sembauke wants to merge 1 commit into
freeCodeCamp:mainfrom
Sembauke:codex/fix-mobile-progress-counting
Open

fix: mobile progress counting for shared blocks#1792
Sembauke wants to merge 1 commit into
freeCodeCamp:mainfrom
Sembauke:codex/fix-mobile-progress-counting

Conversation

@Sembauke
Copy link
Copy Markdown
Member

Summary

  • scope block challenge orders to the current superblock when the metadata is present
  • de-duplicate challenge ids before building block progress lists
  • add regression coverage for shared-block progress counting and legacy challenge order entries

Why

Shared block names can include challenge order entries from more than one curriculum. On mobile this can inflate block.challenges.length, causing completed progress to show below 100% even when the relevant steps are complete.

Fixes #1785
Related to freeCodeCamp/freeCodeCamp#67048

Testing

  • flutter test test/unit/curriculum_model_test.dart
  • flutter analyze

@Sembauke Sembauke changed the title [codex] fix mobile progress counting for shared blocks fix: mobile progress counting for shared blocks May 13, 2026
@Sembauke Sembauke marked this pull request as ready for review May 13, 2026 06:50
@Sembauke Sembauke requested a review from a team as a code owner May 13, 2026 06:50
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.

When doing a workshop, the progress bar along the bottom treats the 50% mark as the 100%

1 participant