Repository navigation
refactor(search): search only inside a conversation - #10
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reworks the search code that landed with F2b.
searchMessages,anyType,textOnly,anyDate,anySender), the empty-state hint reworded for the scoped page.MessageSearchQuerydropstype/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 test135/135. Not verified on a device.