Skip to content

Send an explicit types list from global search - #579

Open
rnambaale wants to merge 4 commits into
mainfrom
fix/search-explicit-types
Open

rnambaale wants to merge 4 commits into
mainfrom
fix/search-explicit-types

Conversation

@rnambaale

@rnambaale rnambaale commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Description

Global search now tells the backend which result types it wants, instead of leaving types off.

The backend is about to make transcripts searchable (PR in review, not merged). A request without types searches every active type, and that set grows as new types ship. Global search ignores hit types it can't render, so once transcripts land, a page could come back mostly or entirely as transcript hits that we drop, leaving short or empty pages and understated counts on the people chips.

GitHub Issue: [Resolves] #refactor-group/refactor-platform-rs#404

Changes

  • buildSearchQuery sends every type the client can parse when the caller gives no types, so all callers are covered, not only global search
  • PARSEABLE_TYPES is derived from a hit-type to request-value mapping, so a hit type with no request value fails to compile
  • Tests pin the default list and the full request URL, and check that every requested type has a working parser case

Screenshots / Videos Showing UI Changes (if applicable)

N/a

Testing Strategy

  • npx vitest run __tests__/components/ui/search
  • In the app, open search and type a query. In the network tab, the /search request carries the types parameter above, and results look the same as before.

Concerns

  • Results today are unchanged: these six are every type that is currently active.
  • Transcript hits are not shown yet. That is a follow-up, waiting on a design decision for the transcript row and on whether up to three segments from one transcript show as three rows or one. Requesting them will mean adding the hit type, its parser case and its entry in the mapping.

@rnambaale rnambaale self-assigned this Nov 24, 2026
@rnambaale rnambaale added the enhancement Improves existing functionality or feature label Nov 24, 2026
@rnambaale rnambaale added this to the 1.0.0-beta4 milestone Nov 24, 2026
@rnambaale
rnambaale requested a review from jhodapp November 24, 2026 16:31
@jhodapp jhodapp changed the title fix(search): send an explicit types list from global search Send an explicit types list from global search Nov 24, 2026
The backend is about to make transcripts searchable, and a request
without `types` searches every active type. Global search drops hit
types it cannot render, so pages would come back short or empty.

Ask only for the six types the popover renders.
@rnambaale
rnambaale force-pushed the fix/search-explicit-types branch from 9d0353b to c572074 Compare November 25, 2026 05:15

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improves existing functionality or feature

Projects

Status: Review

Development

Successfully merging this pull request may close these issues.

1 participant