Skip to content

CompanyOrSpeakerOrMemberAutocompleteWithDialog component refactored#566

Merged
Francisca105 merged 1 commit intostagingfrom
565-refactor-companyorspeakerormemberautocompletewithdialog
Mar 3, 2026
Merged

CompanyOrSpeakerOrMemberAutocompleteWithDialog component refactored#566
Francisca105 merged 1 commit intostagingfrom
565-refactor-companyorspeakerormemberautocompletewithdialog

Conversation

@sancheslfl
Copy link
Copy Markdown
Contributor

This includes the separation of searching logic of this component into a composable

@sancheslfl sancheslfl requested a review from Francisca105 March 3, 2026 17:40
@sancheslfl sancheslfl linked an issue Mar 3, 2026 that may be closed by this pull request
@Francisca105 Francisca105 changed the base branch from master to staging March 3, 2026 18:04
@Francisca105 Francisca105 requested a review from Copilot March 3, 2026 18:05
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the CompanySpeakerMemberAutocompleteWithDialog search behavior by extracting the fuzzy-search and ordering logic into a dedicated Vue composable, reducing component complexity and improving reuse.

Changes:

  • Added useCompanySpeakerMemberSearch composable to encapsulate fuzzy search, group ordering, and flattened result generation.
  • Updated CompanySpeakerMemberAutocompleteWithDialog.vue to use the new composable and removed in-component fuzzy-search implementation.
  • Updated Navbar.vue to use the renamed/updated autocomplete component import and tags.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
frontend/src/composables/useCompanySpeakerMemberSearch.ts Introduces shared fuzzy-search + group ordering logic for companies/speakers/members.
frontend/src/components/Navbar.vue Switches navbar usage to the CompanySpeakerMemberAutocompleteWithDialog component.
frontend/src/components/CompanySpeakerMemberAutocompleteWithDialog.vue Replaces embedded search logic with the new composable and keeps UI/selection behavior in the component.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Member

@Francisca105 Francisca105 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Francisca105 Francisca105 merged commit bc849d5 into staging Mar 3, 2026
5 checks passed
@Francisca105 Francisca105 deleted the 565-refactor-companyorspeakerormemberautocompletewithdialog branch March 3, 2026 18:45
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.

Refactor CompanyOrSpeakerOrMemberAutocompleteWithDialog

3 participants