Skip to content

refactor(search): search only inside a conversation - #10

Merged
jsfraz merged 1 commit into
developmentfrom
feature/search-in-chat
Nov 17, 2026
Merged

jsfraz merged 1 commit into
developmentfrom
feature/search-in-chat

Conversation

@jsfraz

@jsfraz jsfraz commented Nov 17, 2026

Copy link
Copy Markdown
Owner

Reworks the search code that landed with F2b.

  • One scope only: the search page is always bound to one conversation. The global search entry on Home is gone, and so are the type picker, the date range and the sender dropdown — the query is now just text, matched against message text and attachment file names.
  • Entry point: a "Search in this chat" tile on the chat info page. A picked hit is returned to the chat page, which jumps to that message.
  • The chat's "⋯" menu is gone; it only had two items, and one of them was the search that moved to the info page. "Jump to date" stays as its own icon button.
  • Unused strings removed (searchMessages, anyType, textOnly, anyDate, anySender), the empty-state hint reworded for the scoped page.
  • MessageSearchQuery drops type/from/to, and the tests for those filters are gone with them.

Verification: flutter analyze --no-fatal-infos — no errors, no warnings (5 pre-existing infos elsewhere); flutter test 135/135. Not verified on a device.

Search had grown filters it did not need: a global scope, a type picker,
a date range and a sender dropdown. The useful case is "find this message
in this chat", so the page is now scoped to one conversation and matches
the message text and attachment file names only.

It lives where the conversation's things live: a "Search in this chat"
tile on the chat info page. A picked hit is handed back to the chat page,
which jumps to it with the machinery the reply quote already uses. The
Home search entry, the type/date/sender pickers and their strings are
gone; the chat menu collapsed into the single "jump to date" action it
still had.
@jsfraz
jsfraz merged commit fe3f2df into development Nov 17, 2026
1 check passed
@jsfraz
jsfraz deleted the feature/search-in-chat branch November 17, 2026 22:25
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.

1 participant