In #16621, a business search component was written, based on a similar component in Create UI and Edit UI. In fact, a similar component also exists in MHR and in Business Search. Some are written in Class API and some are written in Composition API.
Ideally, there would be 1 common business search component, written as a composable, that all UIs could import once they are upgraded to Vue3.
[ ] create reusable composable (from Business Search?)
needs to support various search parameters
needs to support various business search URLs
needs to support various business search API keys
needs to supoprt various account IDs
probably needs slot(s) to display results (list) in a flexible manner
may need props (or equivalent) to display messages in a flexible manner
see also extra functionality in Auth Web for disabling businesses that are already affiliated
what about the Business Search service (API code)?
I put an initial estimate on this ticket to show that it's a fair bit of work/refactoring (across multiple UIs). In fact, we may want to bring this down into sub-tickets when we get close to working on this.
In #16621, a business search component was written, based on a similar component in Create UI and Edit UI. In fact, a similar component also exists in MHR and in Business Search. Some are written in Class API and some are written in Composition API.
Ideally, there would be 1 common business search component, written as a composable, that all UIs could import once they are upgraded to Vue3.
Refs: https://github.com/bcgov/sbc-auth/pull/2365#discussion_r1235819821 https://github.com/bcgov/sbc-auth/pull/2365#discussion_r1235945743