Skip to content

#34016 fix: Enable magnifying glass search in BusinessLookup for authenticated users - #877

Merged
Oluwapizzy merged 3 commits into
feature-solr-mergedfrom
feat/magnifying-glass-search
Jun 30, 2026
Merged

#34016 fix: Enable magnifying glass search in BusinessLookup for authenticated users#877
Oluwapizzy merged 3 commits into
feature-solr-mergedfrom
feat/magnifying-glass-search

Conversation

@Oluwapizzy

Copy link
Copy Markdown
Collaborator

bcgov/entity#34016

Fixed magnifying glass icon functionality when using BusinessLookup component (used for authenticated users). The icon was previously non-functional due to v-model binding issues and #append slot conflicts.

Changes:

  • Fixed Vue 2 compatibility: Changed v-model:search-input to :search-input.sync
  • Moved magnifying glass icon from append-icon prop to explicit v-icon in slot

stevenc987 and others added 3 commits June 18, 2026 08:41
Release: promote Solr changes to main for TEST deployment
When authenticated (IDIR/BCeID/BCSC), the BusinessLookup component is used
instead of BusinessFetch. While BusinessFetch had the magnifying glass wired
to trigger search, BusinessLookup did not. This made the icon appear
non-functional for all authenticated users in both DEV and TEST environments.

Changes:
- Wire @click:append event to call onMagnifyClick() handler
- Add async onMagnifyClick() method that performs immediate (non-debounced) search
- Validates minimum 3 characters before executing search
- Reuses existing BusinessLookupServices.search() with proper auth headers

The immediate search (no 600ms debounce) provides better UX when using the
magnifying glass, while the character validation ensures safe searches.

Works for all authentication methods (IDIR, BCeID, BCSC) via shared Keycloak
interceptors and axios auth headers.
…ed users

Fixed magnifying glass icon functionality when using BusinessLookup component
(used for authenticated users). The icon was previously non-functional due to
v-model binding issues and #append slot conflicts.

Changes:
- Fixed Vue 2 compatibility: Changed v-model:search-input to :search-input.sync
- Moved magnifying glass icon from append-icon prop to explicit v-icon in slot
- Added click handler with proper event binding (.stop to prevent propagation)
- Added CSS styling to make icon cursor:pointer and interactive
- Implemented dual-mode search: business numbers (BC1234567) and company names (3+ chars)
- Added input validation with user-friendly error messages
- Both debounced input (600ms) and immediate magnifying glass click work now
- Case-insensitive: Accepts lowercase, converts to uppercase for API

The magnifying glass now provides immediate search (no debounce) while the
input field uses 600ms debounce for auto-search as user types.
@Oluwapizzy Oluwapizzy changed the title Feat/magnifying glass search #34016 fix: Enable magnifying glass search in BusinessLookup for authenticated users Jun 30, 2026
@Oluwapizzy
Oluwapizzy merged commit ecf7273 into feature-solr-merged Jun 30, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants