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

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

The Android app's part of backend PR kroshtan/unfret_backend#261 (and extension kroshtan/unfret_extension#61). The app builds the result card natively from the server's fields, so the new fields need rendering here.

  • A step that didn't finish: verdict.incomplete.text is the first thing under the band card: "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."
  • "What we checked" adds up: with checklist[].checks the heading reads "What we checked: 16 checks in 5 areas", counting the areas that have a check, and each area line carries "· N checks". TalkBack reads a clean area 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 server writes it. The no-charge cases go under the band, where "No check was used." used to be: "You checked this page recently, so no new check was used.", "This page couldn't be assessed, so no check was used.", "Quick checks are free.". A check that used one ("This check used one of your free checks; 4 are left.") is shown at the end. Against an older server, the same words without the count, picked by AnalysisResult.charge.

Tests in ResultsTest.kt. make check (lint, unit tests, build) passes locally.

Note: the main checkout's free-checks branch also has uncommitted changes in Results.kt; this branch was made from origin/main in its own worktree.

🤖 Generated with Claude Code

https://claude.ai/code/session_014HgVKRoNZC5gcKdzyYgCWJ

The Android app's part of backend PR kroshtan/unfret_backend#261 (and extension kroshtan/unfret_extension#61). The app builds the result card natively from the server's fields, so the new fields need rendering here. - **A step that didn't finish:** `verdict.incomplete.text` is the first thing under the band card: "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." - **"What we checked" adds up:** with `checklist[].checks` the heading reads "What we checked: 16 checks in 5 areas", counting the areas that have a check, and each area line carries "· N checks". TalkBack reads a clean area 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 server writes it. The no-charge cases go under the band, where "No check was used." used to be: "You checked this page recently, so no new check was used.", "This page couldn't be assessed, so no check was used.", "Quick checks are free.". A check that used one ("This check used one of your free checks; 4 are left.") is shown at the end. Against an older server, the same words without the count, picked by `AnalysisResult.charge`. Tests in `ResultsTest.kt`. `make check` (lint, unit tests, build) passes locally. Note: the main checkout's `free-checks` branch also has uncommitted changes in `Results.kt`; this branch was made from `origin/main` in its own worktree. 🤖 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 / extractor (pull_request) Successful in 21s
CI / android (pull_request) Successful in 4m48s
e55906a9e5
As the website and the extension show it (backend #261, extension #61):
- verdict.incomplete: the server's line, first under the band card, when the AI read of the page didn't finish.
- checklist[].checks: "What we checked: 16 checks in 5 areas" and "Who's behind the shop · 4 checks"; 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: under the band when no check was used ("You checked this page
  recently, so no new check was used."), at the end when one was ("This check used one of your free checks; 4 are
  left."). Without it, 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 / extractor (pull_request) Successful in 21s
Required
Details
CI / android (pull_request) Successful in 4m48s
Required
Details
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_android!14
No description provided.