feat(core): quick search support search locally (#12987)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Introduced a "search locally" option in the docs quick search,
allowing users to perform searches on their local device when supported.
* Added new quick search group labels and options for local search, with
dynamic UI updates based on search mode.
* **Improvements**
  * Enhanced search responsiveness by reducing input throttling delay.
  * Added a pre-submission check to improve search item handling.
* Improved stability by handling cases where document IDs may be missing
during search result processing.
* **Localization**
* Added English language support for new local search options and
labels.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
EYHN
2025-07-03 11:11:55 +08:00
committed by GitHub
parent aa7edb7255
commit 4641b080f2
11 changed files with 101 additions and 16 deletions

View File

@@ -4519,12 +4519,22 @@ export function useAFFiNEI18N(): {
* `New`
*/
["com.affine.quicksearch.group.creation"](): string;
/**
* `Search locally`
*/
["com.affine.quicksearch.search-locally"](): string;
/**
* `Search for "{{query}}"`
*/
["com.affine.quicksearch.group.searchfor"](options: {
readonly query: string;
}): string;
/**
* `Search for "{{query}}" (locally)`
*/
["com.affine.quicksearch.group.searchfor-locally"](options: {
readonly query: string;
}): string;
/**
* `Reset sync`
*/

View File

@@ -1121,7 +1121,9 @@
"com.affine.split-view-folder-warning.description": "Split view does not support folders.",
"do-not-show-this-again": "Do not show this again",
"com.affine.quicksearch.group.creation": "New",
"com.affine.quicksearch.search-locally": "Search locally",
"com.affine.quicksearch.group.searchfor": "Search for \"{{query}}\"",
"com.affine.quicksearch.group.searchfor-locally": "Search for \"{{query}}\" (locally)",
"com.affine.resetSyncStatus.button": "Reset sync",
"com.affine.resetSyncStatus.description": "This operation may fix some synchronization issues.",
"com.affine.rootAppSidebar.collections": "Collections",