Skip to content

PM-5772: Track progress for the current review phase - #2112

Merged
jmgasper merged 1 commit into
devfrom
PM-5772
Aug 10, 2026
Merged

PM-5772: Track progress for the current review phase#2112
jmgasper merged 1 commit into
devfrom
PM-5772

Conversation

@jmgasper

@jmgasper jmgasper commented Aug 9, 2026

Copy link
Copy Markdown
Collaborator

What was broken

The challenge header stayed at 0% while completed Checkpoint Review, Checkpoint Screening, or Screening work was visible in the active phase.

Root cause

The header progress calculation always consumed final Review rows. The UI already built separate phase-specific rows, but screening and checkpoint assignments never contributed to the displayed percentage.

What was changed

  • Select the row set for the current or open review-like phase.
  • Fall back to the open phase when the challenge response has no current phase label.
  • Count COMPLETED and SUBMITTED screening-style assignments, including individual assignments in multi-screener rows.
  • Preserve the existing final Review behavior for screening failures, latest submissions, and Design challenges.

Any added/updated tests

  • Added unit coverage for completed Checkpoint Review, partial Checkpoint Screening, open-phase fallback, and multi-screener Screening progress.
  • yarn test:no-watch --runTestsByPath src/apps/review/src/lib/utils/reviewProgress.spec.ts: 6 tests passed.
  • yarn test:no-watch --testPathPattern=src/apps/review/src: 49 suites and 177 tests passed.
  • yarn lint: passed.
  • yarn run build: passed with existing warnings.
  • Full yarn test:no-watch: 1,023 of 1,055 tests passed; 32 existing failures remain in 18 unrelated suites outside the Review app.

What was broken

The challenge header stayed at 0% while completed Checkpoint Review, Checkpoint Screening, or Screening work was visible in the active phase.

Root cause

The header progress calculation always consumed final Review rows, so phase-specific screening and checkpoint review assignments never contributed to the percentage.

What was changed

Made review progress select the rows for the current or open review-like phase, including an open-phase fallback when the challenge has no current phase label.

Counted COMPLETED and SUBMITTED screening-style assignments, including individual assignments within multi-screener rows, while preserving existing final Review filtering.

Any added/updated tests

Added unit coverage for completed Checkpoint Review, partial Checkpoint Screening, open-phase fallback, and multi-screener Screening progress.

All 177 Review app tests pass. The full monorepo suite was also run and retains unrelated failures outside the Review app.
@jmgasper
jmgasper requested a review from kkartunov as a code owner August 9, 2026 20:53
@jmgasper
jmgasper merged commit 8de834a into dev Aug 10, 2026
7 checks passed
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