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

--- Comment #150 from Matt Blenkinsop <[email protected]> ---
Created attachment 210459
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=210459&action=edit
Bug 42383: Add Vue.js checkin page

Adds the Vue-based checkin (returns) page that consumes the checkin REST
API and its sub-resource confirmation/cancellation endpoints:

* circ/checkin.pl + checkin.tt entry point
* Vue module, store and components (BarcodeInput, CheckedInItems,
  CheckinOptions, ConfirmationModal, ResolveClaimModal,
  BundleVerificationModal, Main) under vue/components/Circ/Checkin/
* checkin-api-client fetch client, registered in the Vue api-client
* rspack: new `checkin` entry building to js/vue/dist/checkin.js
* http-client: honour return_response on non-ok responses so callers
  can inspect the error body/headers
* Koha::Checkin->verify_bundle for the bundle verification modal
* docs/checkin-vue-usecases.md

The Vue app reads its module policy from the page hydration at load time
(it is not fetched per request). When the API refuses a request because
of the policy (e.g. a permission was revoked since the page was loaded),
the error object carries the current policy: the store applies it, so
the revoked options are no longer offered, and tells the user why the
request was refused.

Test plan:
1. Apply patch
2. Run:
   $ ktd --shell
  k$ yarn build
=> SUCCESS: rspack compiles, js/vue/dist/checkin.js is produced
3. Enable the page, go to Circulation -> Check in (checkin.pl), scan a
   barcode
=> SUCCESS: item is checked in, confirmations/messages render
4. Sign off :-D

Assisted-by: Sonnet 4.6 (Anthropic)
Signed-off-by: Brendan Lawlor <[email protected]>
Signed-off-by: Matt Blenkinsop <[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