Commit graph

16 commits

Author SHA1 Message Date
Mojmír Majer
5581471f08 Reformat code 2026-06-26 21:57:15 +02:00
Mojmír Majer
3502a07d1b Heal ADR-0005 boundary: move search result types into libraries/
Nine files in libraries/ were importing from unicode-search/, pulling
plugin-layer types and Obsidian APIs into supposedly agnostic code.

Root cause: search result types lived in unicode-search/components/,
UnicodeSearchError lived in unicode-search/errors/, and toSearchQueryMatch
imported directly from obsidian.

- Move search result types to libraries/types/characterSearch.ts;
  characterSearch.ts becomes a re-export facade
- Define SearchMatchResult inline (no obsidian import)
- Inline toSearchQueryMatch as FuzzySearchModal.toSearchMatch(); delete the file
- Introduce LibraryError in libraries/errors/ for library-layer throws;
  retire the UnicodeSearchError imports from persistCache and getRandomItem
- Delete characterSearchAttributes.ts (absorbed into the new types file)
- Document the two-tier custom error policy in ADR-0015
2026-06-26 00:13:47 +02:00
Mojmír Majer
7a33f9eb81 Collapse comparison cluster into a deep Ranking module
The 14-file comparison cluster exposed one public seam per leaf function,
forcing callers and tests to understand the entire call graph to reason
about ranking. A single rankCharacterSearchResults module concentrates
the logic, reduces the public interface to one function, and lets tests
target the ranking behaviour directly rather than internal comparators.
2026-06-25 23:57:46 +02:00
Mojmír Majer
a8b05b4c4f Redefine domain language 2026-06-25 23:43:06 +02:00
Bambus Control
36cf853806 Generate regression tests for comparison and helpers
Generate regression tests for helpers

Test move
2025-09-27 14:53:45 +02:00
Bambus Control
4044caade0 Add tests 2025-04-22 19:06:51 +02:00
Bambus Control
ccb29dffad Fix test 2024-12-23 16:57:36 +01:00
Bambus Control
7d949cdbb5 Favorite character comparison
Replace `CharacterMatchResult` with `SearchMatchAttributes`

Fix comparisons

Comparison tests
2024-12-08 01:35:33 +01:00
Bambus Control
f8f668aab2 Fix test source 2024-05-07 23:04:23 +02:00
Bambus Control
0a6641fed8 Update test sources 2024-05-07 22:58:55 +02:00
Bambus Control
9317aa5f50 Fix sorting mechanism 2024-04-26 14:12:16 +02:00
Bambus Control
8322f644a6 Character sorting 2024-04-25 14:37:27 +02:00
Bambus Control
819c76c47a Unicode Initialization Data 2024-04-25 14:37:26 +02:00
Bambus Control
a927962c91 Refactor character handling 2023-12-09 00:41:44 +01:00
Bambus Control
5450637e91 Change filename conventions 2023-12-04 21:14:45 +01:00
Bambus Control
52ce8c72b9 Move test files for Sonar 2023-11-18 20:32:09 +01:00