Result card: a line when part of the check didn't finish, checks per area, what a check cost as a sentence #61

Open
kroshtan wants to merge 1 commit from card-incomplete-counts into main
Owner

The extension's part of backend PR kroshtan/unfret_backend#261. The popup builds the card from the server's fields itself, so new fields need rendering here.

  • A step that didn't finish: verdict.incomplete.text appears right under the headline: "Part of this check didn't finish (the AI read of the page), so this answer may be milder than it should be. It still counted as a check. Checking again after an hour may help." The shared-result preview shows it too (it gets the first sentence only).
  • "What we checked" adds up: with checklist[].checks the heading is "What we checked: 16 checks in 5 areas", counting the areas that have a check, and each area line carries "· N checks". A clean area is read out as "nothing to note" (it was "checked"). An older server's result keeps "What we checked · N checks".
  • What a check cost: charge_note is shown as the sentence the server writes, e.g. "This check used one of your free checks; 4 are left.". A no-charge note stays under the headline ("Quick checks are free." after the quick-check line; "You checked this page recently, so no new check was used."; "This page couldn't be assessed, so no check was used."). A check that did use one is now stated too, at the end. Against an older server, the same words without the count.

Same wording as /check (backend check-render.js). Tests in test/view.test.ts. npm run lint, typecheck and test all pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_014HgVKRoNZC5gcKdzyYgCWJ

The extension's part of backend PR kroshtan/unfret_backend#261. The popup builds the card from the server's fields itself, so new fields need rendering here. - **A step that didn't finish:** `verdict.incomplete.text` appears right under the headline: "Part of this check didn't finish (the AI read of the page), so this answer may be milder than it should be. It still counted as a check. Checking again after an hour may help." The shared-result preview shows it too (it gets the first sentence only). - **"What we checked" adds up:** with `checklist[].checks` the heading is "What we checked: 16 checks in 5 areas", counting the areas that have a check, and each area line carries "· N checks". A clean area is read out as "nothing to note" (it was "checked"). An older server's result keeps "What we checked · N checks". - **What a check cost:** `charge_note` is shown as the sentence the server writes, e.g. "This check used one of your free checks; 4 are left.". A no-charge note stays under the headline ("Quick checks are free." after the quick-check line; "You checked this page recently, so no new check was used."; "This page couldn't be assessed, so no check was used."). A check that did use one is now stated too, at the end. Against an older server, the same words without the count. Same wording as `/check` (backend `check-render.js`). Tests in `test/view.test.ts`. `npm run lint`, `typecheck` and `test` all pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_014HgVKRoNZC5gcKdzyYgCWJ
Result card: a line when part of the check didn't finish, checks that add up per area, what a check cost as a sentence
All checks were successful
CI / check (pull_request) Successful in 1m53s
CI / publish-dev (pull_request) Has been skipped
4286b7285b
As the website shows it (backend #261):
- verdict.incomplete: one line under the headline when the AI read of the page didn't finish.
- checklist[].checks: "What we checked: 16 checks in 5 areas", and "· N checks" on each area; a clean area is read
  out as "nothing to note". An older server's result keeps "What we checked · N checks".
- charge_note: what the check cost as a sentence ("This check used one of your free checks; 4 are left.", "Quick
  checks are free.", "You checked this page recently, so no new check was used."); a used check is now said too, at
  the end. Without it (an older server), the same words without the count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014HgVKRoNZC5gcKdzyYgCWJ
All checks were successful
CI / check (pull_request) Successful in 1m53s
Required
Details
CI / publish-dev (pull_request) Has been skipped
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin card-incomplete-counts:card-incomplete-counts
git switch card-incomplete-counts
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kroshtan/unfret_extension!61
No description provided.