Skip to content

PM-5775: gate checkpoint winner indicator by pass result - #2098

Merged
jmgasper merged 1 commit into
devfrom
PM-5775-2
Aug 3, 2026
Merged

PM-5775: gate checkpoint winner indicator by pass result#2098
jmgasper merged 1 commit into
devfrom
PM-5775-2

Conversation

@jmgasper

@jmgasper jmgasper commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

What was broken

Platform UI PR #2082 added a checkpoint-winner star and eligibility tooltip by matching checkpoint winner member IDs, and PR #2096 refreshed winner data after Checkpoint Review closed. QA then found that a below-minimum checkpoint-review row for the same winning member also displayed the star and eligibility tooltip.

Root cause

Challenge checkpoint-winner records identify the member but do not identify a submission. The Review table therefore marked every row for that member and ignored the row's threshold-derived PASS or NO PASS result.

What was changed

  • Require both checkpoint-winner membership and a PASS result on the specific Checkpoint Review row before showing the star and eligibility tooltip.
  • Keep repeated passing rows for the winning member marked.
  • Leave the independent AI Virus Scan Passed status unchanged.
  • Update the Review documentation with the row-level eligibility rule.

Any added/updated tests

  • Add a same-member 0.00 NO PASS checkpoint-review row and verify it has no star or eligibility tooltip.
  • Preserve coverage showing repeated passing rows for the winner remain marked.

Validation

  • yarn test:no-watch --runInBand src/apps/review/src/lib/components/TableCheckpointSubmissions/TableCheckpointSubmissions.spec.tsx — 1 suite and 1 test passed.
  • yarn test:no-watch --runInBand src/apps/review/src — 48 suites and 171 tests passed.
  • Changed component and spec ESLint validation — passed.
  • yarn run build — passed with existing repository warnings.
  • yarn lint was run and is blocked only by a pre-existing no-confusing-arrow error in ReviewViewer.spec.tsx on the current dev baseline; that unrelated file is not changed by this PR.

What was broken

Checkpoint winner stars and eligibility tooltips appeared on below-threshold Checkpoint Review rows when the same member was listed as a checkpoint winner.

Root cause

Checkpoint winner records are member-level, and the table matched them only by member ID. It therefore marked every row for the member without considering the row's threshold-derived PASS or NO PASS result.

What was changed

Require a checkpoint-review row to have a PASS result before rendering the winner star and eligibility tooltip. Update the Review documentation to describe the row-level eligibility rule.

Any added/updated tests

Add a same-member 0.00 NO PASS row and verify it has no checkpoint-winner indicator while repeated passing rows remain marked.
@jmgasper
jmgasper requested a review from kkartunov as a code owner August 3, 2026 04:40
@jmgasper
jmgasper merged commit ce58855 into dev Aug 3, 2026
6 of 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