Skip to content

Probeable toast: stop leaking the pass count of locked tests - #193

Merged
CoffeePoweredComputers merged 1 commit into
masterfrom
ladder-toast-no-leak
Oct 16, 2026
Merged

CoffeePoweredComputers merged 1 commit into
masterfrom
ladder-toast-no-leak

Conversation

@CoffeePoweredComputers

Copy link
Copy Markdown
Owner

What

For probeable problems the grading toast said {problem}: {passed}/{total} tests passed across all tests, while the ladder deliberately hides everything after the first failure. Failing test 1 with six more locked produced a toast saying "6/7 tests passed", which told the student how the locked tests fared.

The toast now reports counts only when every test passed (nothing is locked then). Otherwise it names the failing test and the locked count: Problem 3: test 1 failed · 3 more locked, or … test 4 failed when it was the last. Two i18n keys added in both locales. EiPL, Prompt, MCQ and Debug/Fix toasts are untouched.

Verification

  • B17 now asserts the warning toast text; B16 and C24b keep asserting the all-pass success toast. Ran B16, B17, B19, C24b against the dev stack: 6 passed.
  • Vitest 622 passed, eslint 0 errors, i18n parses with es at 100%.

Same leak, not fixed here

The attempts dropdown shows tests_passed/total_tests and the score badge for every attempt, and the result payload carries the full counts. For a first-test failure the badge reads 75% and the row reads 3/4. Hiding those changes what a grade means to the student, so it is a product call rather than a bug fix. If the ladder's rule is meant to hold, the backend should stop sending counts beyond the first failure for probeable types and the dropdown should show "stopped at test n" instead.

🤖 Generated with Claude Code

The ladder hides every test after the first failure, but the grading
toast still said "{passed}/{total} tests passed" over all tests, so a
student who failed test 1 learned that 6 of the 7 tests passed. The
toast now reports counts only when everything passed. Otherwise it names
the failing test and the number of locked tests, which is exactly what
the ladder shows. B17 asserts the new warning text.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 0% with 13 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...urplex/client/src/features/problems/ProblemSet.vue 0.00% 13 Missing ⚠️

📢 Thoughts on this report? Let us know!

@CoffeePoweredComputers
CoffeePoweredComputers merged commit 5cf0eed into master Oct 16, 2026
12 checks passed
@CoffeePoweredComputers
CoffeePoweredComputers deleted the ladder-toast-no-leak branch October 16, 2026 22:26
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.

2 participants