Repository navigation
Conversation
Callers can request verses, topics, and images together. Image hits are id and passageId. Verse and topic hits stay the existing types.
🦋 Changeset detectedLatest commit: 70a7489 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Keep the UI barrel aligned with new core runtime exports so check-public-exports passes.
Measured brotlied barrel is 21.55 kB. Set the limit to measured size plus ~10% headroom per CONTRIBUTING.
Default omitted verses/topics/images wire keys to empty arrays, drop invalid image hits per item (structural USFM on passage_id), and replace the runtime field-coverage object with a type-only check.
Use the repo @ts-expect-error pattern for an invalid fields[] value instead of a typed assertion plus SAFETY comment.
Use false instead of never in the false branch so Record<..., true> rejects non-array field mappings.
Wire a vite-react page that calls SearchClient.searchUnified for images alone or with verses, and renders thin hits plus empty/error states.
Results was reading the live Fields control, so flipping mode after an images-only search showed a false empty verses section. Co-authored-by: cameron.b.llewellyn <cameron.b.llewellyn@gmail.com>
Build on PR446 core search with an additive React hook, image-aware coverage, and documented backend availability. Validate request intents and required response fields without requiring images on the wire. Amp-Thread-ID: https://ampcode.com/threads/T-01a15a0f-f2cd-72cf-a270-2102b3d073b2
Set the hooks full-barrel budget to measured 27.044 kB plus approximately 10% headroom, following CONTRIBUTING. Leave all narrow-import budgets unchanged. Amp-Thread-ID: https://ampcode.com/threads/T-01a15a0f-f2cd-72cf-a270-2102b3d073b2
Preserve verse/topic unified search, useUnifiedSearch, and contract validation while deferring Images types, mapping, tests, and smoke page. Amp-Thread-ID: https://ampcode.com/threads/T-01a15a0f-f2cd-72cf-a270-2102b3d073b2
|
request: Could you review the unified-search-only scope on this PR? The Images work has been separated because that API is still beta. All exact-head checks are green. |
Looks like you made the changes in this PR right? |
Yep to use your existing PR and not re-create it |
Summary
Add the live unified-search endpoint to core and React hooks so apps can load top verse references and related topics in one unpaginated request. Existing search methods and the Bible reader flow stay unchanged.
Scope
searchUnified,SearchClient.searchUnified,useUnifiedSearch, and their public types.Verification
Hold merge until Cam authorizes it. YPE-6188 / YPE-6182.


Confidence Score: 5/5
The reviewed code appears safe to merge, subject to the author’s requested merge hold.Summary
Adds
searchUnifiedanduseUnifiedSearchfor one unpaginated snapshot of verse references and related topics.Diagram
Reviews (8) · Last reviewed commit: "feat(search): ship unified search withou..." · Reviewed by Greptile