mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-25 02:26:14 +03:00
e4f1edfc83
This commit refactors the search result to include the total count of matches found, alongside the limited search results (page) for better pagination support. Changes made include: - Modified the return type from `Vec<SearchResult>` to `SearchResults` structure, to include a total count. - Updated the search function implementation to handle the new data structure. - Adapted the test cases to account for the updated search result format. In addition to the previous changes, this commit addresses the issue of not knowing the total number of search results when using pagination, which can now be easily obtained from the `SearchResults` structure. |
||
---|---|---|
.. | ||
icons | ||
src | ||
.gitignore | ||
build.rs | ||
Cargo.lock | ||
Cargo.toml | ||
tauri.conf.json | ||
tauri.conf.release.json |