Repository navigation
feat: F2b chat search, jump to date, chat list filters - #9
Merged
Merged
Conversation
Messages are stored decrypted, so the search is a local scan of the message box: the query never reaches the server and there is no second index that could drift from what is on disk. A 250 ms debounce and a hard cap of 300 hits keep a one-letter query from walking the whole history into the list. Filters: conversation (the sender, which is the peer in a 1:1 chat), media type (an album matches when any attachment does), and a date range whose ends are inclusive. Results are newest first with a window of text around the match; the found term is highlighted, so a hit is obvious even when the match sits inside formatting markers. The page is reachable globally from Home and scoped from a chat; the scoped version returns the picked timestamp instead of opening a page.
The chat app bar gets a menu with "search in this chat" and "jump to date". Both end in the same jump: the window is widened until the target is rendered and `Scrollable.ensureVisible` moves to it, which already backs the reply quote. A picked day lands on the first message of that day (or the first one after it), with a toast when the conversation has nothing that recent. A search hit returns its timestamp from the scoped search page, and a global hit opens the chat with `jumpTo`, so the result is where the search said it is. `stepRoute` is generic now, so it can return a value from the page it opens.
Folder chips above the chat list: everything, unread, pinned. The filter lives in memory only, so it cannot go stale against the messages. The roadmap asks for unread and favourites; favourites arrive with contacts in F7, so pinned conversations stand in for them and the chips grow a fourth entry then. No new storage: the counts and the pin set the list already loads drive the filter.
jsfraz
force-pushed
the
feature/f2b-search
branch
from
November 17, 2026 22:18
45d43ce to
4e28dda
Compare
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.
F2b — search, jump to date and chat list filters. Client only, no contract change.
What lands
Search
ChatPage(jumpTo:)).hledatdoes not findhľadať).Jump to date
stepRouteis generic now so a page can return a value.Chat list folders
Also in this branch (fixes to F2a, committed first)
5197581street-address detection removed — the heuristic matched ordinary text ("Dnes 3 zprávy") as often as a real address.ddd51e0shorter fold label ("Zobrazit více").Verification
flutter analyze --no-fatal-infos: no errors, no warnings (only the 5 pre-existing infos inregister_page/settings_page).flutter test: 139/139 pass, including the newmessage_search_test(matching, scope, date bounds, types, albums, ordering cap, snippet window, highlight splitting).