JS-9874: avoid unused highlights in mention and picker searches #2369

Merged
requilence opened 12:55pm on September 8, 2026 wanted to merge 1 commit into anyproto/anytype-ts develop from
fix/JS-9874-mention-search-without-meta

Pull Request Overview

  • Opened on September 8, 2026
  • Status Merged
  • Commit count 1 with first commit September 8, 2026

Total Delta

0 Total Diff Delta

Open Days

Open 9 weekdays

Test Delta

0 Diff Delta in Test Files
Breakdown by Phase

How long has this pull request spent in each phase of its lifecycle?

Data pending calculation for pull request

Author avatar

JS-9874: avoid unused highlights in mention and picker searches

Typing @ in chat/discussion or the editor requested highlight metadata that the mention menu never renders, causing unnecessary gt index syscalls for short queries. Make U.Subscription.search call ObjectSearch while forwarding fullText and preserving filters, sorts, keys, pagination, and result mapping.

This also removes unused metadata requests from 15 audited callers: dataview/widget/library filtering, object and file pickers, block add/link menus, type/relation suggestions, and media/cover/icon libraries. The search popup keeps its separate ObjectSearchWithMeta call because it renders highlights.

Fixes JS-9874.

Validation:
- bun run typecheck passed for renderer and Electron.
- 181 tests passed across subscription, object, chat, comment, and search-match suites.
- Biome and ESLint passed for the changed file.
- git diff --check passed.

PR was closed without comments.