Commit Graph
2 Commits
Author SHA1 Message Date
poli0981andClaude Opus 5.5 b204f48a0e fix(search): relevant matches, correct highlighting, accent-insensitive
- Descriptions and tags must contain the query words as real substrings (tags by word prefix);
  matching them as loose subsequences made "dns" hit ~140 of 241 commands.
- Titles rank exact > substring (word starts first) > all words present > fuzzy abbreviation, and
  the fuzzy matcher tries every starting point, so "flush" highlights the word "flush" instead of
  the first "f"/"l" it meets; weak scattered fuzzy matches are dropped.
- Accent- and case-insensitive throughout (TextFolding keeps indices 1:1 for highlighting): typing
  "don dep" finds "Dọn dẹp". Folded text is computed once per command, not per keystroke.
- Ties keep catalog order (stable sort); the "requires restart" filter means restart-always.
- Natural-language suggestions match whole words, so "ping" or "typing" no longer suggest battery.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 20:39:07 +07:00
poli0981andClaude Opus 4.8 f482f381d3 Phase 1: command catalog + browse/search UI
- Embedded catalog: categories.json (10) + commands.json (25 Safe/non-admin),
  System.Text.Json source-gen + JsonCatalogProvider with structural validation
- Application: FuzzyMatcher, SearchCommandsUseCase (fuzzy + filters), CommandPreview
- i18n: EN/VI keys for all categories/commands + {res:Loc} markup extension
- WPF: category sidebar, fuzzy search with match highlight, command list with
  Admin/Restart/Revert badges + danger indicator, detail panel with command-line
  preview + Copy, Command Palette (Ctrl+K)
- Converters (danger brush/text, icon) + TextHighlight behavior
- Tests: catalog validation, resx-key EN/VI coverage, fuzzy/search (20 total)

Build -c Release: 0 warnings. dotnet test: 20/20.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-17 19:46:50 +07:00