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

--- Comment #72 from Paul Derscheid <[email protected]> ---
Created attachment 203651
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=203651&action=edit
Bug 41129: Add frontend clients for booking workflows

Add frontend API clients for the resources needed to create and edit bookings.

- add biblio client methods for items, bookings, availability, checkouts, and
  pickup locations
- add clients for circulation rules and library closed dates
- add paginated patron search and per-request configuration to existing clients
- allow booking create and update requests to receive request configuration
- add staff and OPAC adapters for the booking data interface
- pass AbortSignal through HttpClient and preserve HTTP status and Koha error
  codes when a request fails
- allow callers that display their own errors to suppress the default dialog
- add a translated formatter for errors returned by frontend API clients
- document parameters and return values for the added client operations
- add component tests for HttpClient and API error formatting

Test plan:
1. Run:
   `yarn cypress run --component --browser electron --spec
   't/cypress/component/HttpClient_spec.ts,
   t/cypress/component/fetch/api-error_spec.ts'`
2. Verify that cancelled requests do not display an error.
3. Verify that failed requests retain their status, code, and message.
4. Verify that suppressing the default dialog does not change the error
returned
   to the caller.
5. Verify the translated messages for unauthorized, forbidden, server, string,
   and empty errors.

Sponsored-by: Büchereizentrale Schleswig-Holstein <https://www.bz-sh.de/>
Assisted-by: Opus 4.8 (Anthropic)
Assisted-by: GPT 5.6 (OpenAI)

-- 
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