Repository navigation
חיפוש חכם: הצגת שלב החיפוש בזמן ההמתנה - #5301
Merged
Merged
Conversation
במקום מחוון בלבד, מסך התוצאות מציג את השלב שהחל בפועל דרך LoadingIndicator המשותף: 'מכין את החיפוש...' בזמן בחירת המקור ופתיחת הוקטורים והמודל, ו'מחפש בספרייה...' מרגע שהמנוע מתחיל לחפש. החריגה של המחוון הגולמי הוסרה מ-baseline של ui_lint. SemanticSearchRepository.search מקבל onSearching ומפעיל אותו אחרי ensureOpen, רק כשהחיפוש לא הוחלף בינתיים. המקור מעביר אותו הלאה, וה-bloc משנה את stage רק לעמוד הראשון ורק לדור הנוכחי. חיפוש חדש מתחיל שוב ב-preparing; עצירה ועמוד נוסף אינם משנים את השלב. Fixes #3825
Y-PLONI
force-pushed
the
palmoni5/semantic-search-stages-3825
branch
from
November 17, 2026 13:21
b5de36e to
b09a390
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.
Fixes #3825
הבעיה
בזמן חיפוש חכם המסך הציג מחוון וכפתור "עצור" בלבד. החיפוש הראשון, שבו נפתחים הוקטורים והמודל, יכול להימשך זמן מה, והמשתמש לא ידע מה קורה.
השינוי
ensureOpen).SemanticSearchRepository.searchמקבלonSearchingומפעיל אותו אחריensureOpen, רק כשהחיפוש לא הוחלף בינתיים.SemanticResultsSource.fetchמעביר אותו הלאה.SemanticResultsBlocהשלב (SemanticSearchStage, שדהstageב-SemanticResultsState) משתנה רק לעמוד הראשון ורק לדור הנוכחי:LoadingIndicator(message:)המשותף, והחריגה של המחוון הגולמי (UIL-013) הוסרה מ-tool/ui_lint/baseline.json.settings_en.arb, והקטלוג נוצר מחדש.פירוט פנימי יותר, כמו "מחשב את וקטור השאילתה", דורש דיווח מהמנוע ואינו כלול כאן. השינוי לא משפיע על זמן החיפוש עצמו (#2509/#3533).
בדיקות
flutter analyze– אין בעיות.flutter test test/semantic_search/ test/settings/l10n/ test/design_system/ui_lint_test.dart– 724 עברו, 1 דולגה.onSearchingנקרא אחרי הפתיחה ולא לחיפוש שהוחלף.isCancelledוהסרת בדיקת הדור מפילות בדיקה. האפליקציה לא הורצה.PRs חופפים
settings_catalogs.g.dartשקיימת כבר מול dev, ולא נוספה מהשינוי הזה.personal_note_editor.dartשקיימת כבר מול dev, ולא נוספה מהשינוי הזה.