From 8e7b002914bb3627a5ae0362af003e66c5d61fe8 Mon Sep 17 00:00:00 2001 From: 4gray Date: Sat, 20 Jun 2026 21:15:45 +0200 Subject: [PATCH] fix(search): address follow-up review feedback --- docs/architecture/sqlite-db-worker.md | 5 +- .../search-layout.component.html | 27 ++++- .../search-layout.component.scss | 5 +- .../search-layout.component.spec.ts | 59 ++++++++++ .../search-results.component.spec.ts | 106 +++++++++++++++++- .../search-results.component.ts | 15 +-- .../database/src/lib/connection.spec.ts | 71 ++++++++++++ libs/shared/database/src/lib/connection.ts | 3 +- 8 files changed, 267 insertions(+), 24 deletions(-) create mode 100644 libs/portal/shared/ui/src/lib/components/search-layout/search-layout.component.spec.ts diff --git a/docs/architecture/sqlite-db-worker.md b/docs/architecture/sqlite-db-worker.md index 7b8111bb0..34fa62b7d 100644 --- a/docs/architecture/sqlite-db-worker.md +++ b/docs/architecture/sqlite-db-worker.md @@ -213,8 +213,9 @@ Xtream-only row shape: passed to `MATCH`, so FTS reserved words such as `and` are treated as search text instead of degrading to the slow fallback path. Existing databases rebuild this index once through the `migration:content-title-fts-trigram:v1` - app-state marker; fresh inserts, deletes, and title updates stay - synchronized through SQLite triggers. + app-state marker before legacy content cleanup/normalization migrations run; + fresh inserts, deletes, and title updates stay synchronized through SQLite + triggers. 2. `source_type = "m3u"` rows come from M3U playlist payloads stored in `playlists.payload`. The worker uses SQL `payload LIKE` only as a coarse candidate prefilter, then parses candidate JSON payloads and matches channel diff --git a/libs/portal/shared/ui/src/lib/components/search-layout/search-layout.component.html b/libs/portal/shared/ui/src/lib/components/search-layout/search-layout.component.html index 8253c17ae..7901f338c 100644 --- a/libs/portal/shared/ui/src/lib/components/search-layout/search-layout.component.html +++ b/libs/portal/shared/ui/src/lib/components/search-layout/search-layout.component.html @@ -3,7 +3,7 @@ @if (!showDetails()) { -
+