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

            Bug ID: 43518
           Summary: Add a reusable PatronSelect Vue component with patron
                    search
   Initiative type: ---
        Sponsorship ---
            status:
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Patrons
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected], [email protected]
            Blocks: 41129
  Target Milestone: ---

This patch adds a reusable PatronSelect.vue component: a searchable, debounced
patron picker built on v-select, showing age and library context in results,
with loading/disabled states and slots for custom option/no-options/spinner
rendering.

It also adds a paginated patrons.search() method to fetch/patron-api-client.js,
used by the new component to query the patrons API.

This is generic UI infrastructure with no feature-specific behaviour; it's
split out from bug 41129 (booking workflows), where it was originally extracted
from inline logic in the booking patron-selection step, because it benefits
from independent review and other patron-picking UIs can reuse it.

Test plan:
1. Run: yarn cypress run --component --browser electron --spec
't/cypress/component/PatronSelect_spec.ts'
2. Verify the component mounts, debounced search calls the API, and selecting
an option emits the expected value.


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41129
[Bug 41129] Migrate place_booking.js to a Vue island.
-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
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