https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42383 --- Comment #233 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 211725 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211725&action=edit Bug 42383: (QA follow-up) Show "Not checked out" and "Local use recorded" as alerts, and say when a hold was cancelled The new check-in page only showed "Not checked out" and "Local use" as small badges in the Status column of the row, where the legacy page shows them as messages. They were also both blue. The page also cancels, like the legacy one, the waiting holds that the patron asked to cancel before returning the item, and said nothing about it: the only thing visible was "Not checked out" and "Local use", as if the item had been scanned with no hold on it. The results are now alerts under the form, like the other results: - "Not checked out." is a warning (yellow). The message is a warning in the API, so its badge is yellow as well - "Local use recorded." (RecordLocalUseOnReturn) is information (blue) - "The hold waiting for this item was cancelled: the patron asked for it to be cancelled." is information, and the row has a "Hold cancelled" badge. The API reports it as a "hold_cancelled" message with the hold and the patron The tests also cover the note a patron leaves on a checkout, which the page already shows as a "Patron note" alert and which had no test. Test plan: 1. Apply the patch, rebuild the JS (yarn js:build) and restart_all 2. Set RecordLocalUseOnReturn to "Record", and check in an item that is not checked out => A yellow alert says "Not checked out." and a blue one "Local use recorded." 3. Place a hold on an item, set it waiting (check it in and confirm the hold), then cancel it as the patron from the OPAC (Request cancellation) and check the item in again => A blue alert says that the hold was cancelled, and the row says "Hold cancelled" 4. Check out an item with a note (OPAC, AllowCheckoutNotes) and check it in => The "Patron note" alert is shown 5. Run: $ prove t/db_dependent/api/v1/checkins.t $ yarn cypress run --spec t/cypress/integration/Circulation/Checkin_spec.ts => SUCCESS: Tests pass! Assisted-by: Sonnet 5.5 (Anthropic) Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> -- You are receiving this mail because: You are watching all bug changes.