https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42383

--- Comment #227 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 211719
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211719&action=edit
Bug 42383: (QA follow-up) Confirm a bundle in a single modal, and bring its
list of missing items back

Checking in a bundle needed two consecutive modals: "Please confirm check
in", which only told staff that the item is a bundle, then "Please confirm
bundle contents". The first one asked for nothing the second does not
ask for. The legacy page had the single contents modal. Also:

 - the contents modal did not look like the other modals of the page: the
   explanation was below the table, as help text, and the bundle being
   checked in was only named in the title
 - the table of the expected items could no longer be exported (legacy had
   copy, CSV and print buttons)
 - the actions had no keyboard shortcuts, and "Confirm checkin without
   verifying bundle contents" did not say what it does
 - when parts were missing, the alert named them but the list could not be
   printed any more (legacy offered it in a printable modal), so staff could
   not take it with them to look for the parts

The bundle is now confirmed in one modal:

 - the bundle (barcode and title, linked to the record) is at the top, then
   the CircConfirmItemParts note if there is one, then the explanation as an
   alert, above the table of expected items
 - the barcodes box has the focus, as before
 - "Export" in the heading row of the table (copy, CSV, print), which does
   not add vertical space and leaves out the status column
 - "Check in, mark missing lost (Y)", "Check in, verify later (L)" and
   "Cancel (X)", with the cross of Cancel like the other modals

The "bundle had missing items" alert has a "Print list" button, which prints
the barcodes and titles of the missing items.

Test plan:
1. Apply the patch and rebuild the JS (yarn js:build)
2. Check in a checked out bundle
=> One modal: the bundle at the top, the explanation above the table, the
   focus in the barcodes box, Export in the table heading
3. Click Export
=> Copy, CSV and Print, without the status column in the result
4. Scan one of the two parts and press Y
=> The other part is lost, and the alert lists it with a "Print list" button
5. Check in the bundle again and press X (Cancel)
=> The bundle is not checked in
6. Run:
   $ 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 <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to