Skip to content

SearchMatchChip Component ​

File Information ​

  • Path: app/components/search/SearchMatchChip.vue
  • Purpose: Compact "Matched In" badge for a search result, with a hover menu showing the match details.
  • Type: Search Component

Overview ​

Shows an icon badge for one SearchMatch (tag, custom field or description). Hovering the badge opens a v-menu containing SearchMatchDetails. Clicks on the chip are stopped (@click.stop) so they do not trigger the parent card or row. All state and hover logic lives in useSearchMatchChip.

match.kindIconAccessible labelCount shown
tagtagsIconMatched tags1 + match.others.length
custom_fieldcustomFieldsIconMatched custom fields1 + match.others.length
descriptioninfoIconMatched in descriptionnone (icon only)

Props ​

PropTypeRequiredDescription
matchSearchMatchYesMatch entry from the result's search_matches
assetIdstring | numberNoPassed through to SearchMatchDetails

Events ​

None.

Usage Example ​

vue
<SearchMatchChip v-for="match in item.search_matches" :key="match.kind" :match="match" />