Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit c16d156adacdc9eb5bcadf150c19b906f2adab74
parent 1fe9bf1a416b2a7ba98fb8063d245da18fed10eb
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Sat, 12 Sep 2026 02:57:57 -0400

common: the SearchMode comment travels with the type

Left behind by the move: urlState kept the doc comment for a type it no
longer declares, and searchQuery got a note about the move but not the
note about what the thing MEANS. One comment, at the definition.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

Diffstat:
Mcommon/components/urlState.ts | 8+++-----
Mcommon/lib/searchQuery.ts | 11+++++++----
2 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/common/components/urlState.ts b/common/components/urlState.ts @@ -2,11 +2,9 @@ import { useMemo, useSyncExternalStore } from "react"; -// Which corpus the legacy single-input search targets. "posts" is the social -// corpus (common/lib/posts.ts); the composite query tree can mix all of them -// freely, this only decides what a bare `?q=` URL means. -// Defined in `lib/searchQuery.ts`, which interprets it. Re-exported here so -// every existing `from "./urlState"` import site is unchanged. +// SearchMode is defined in `lib/searchQuery.ts`, which interprets it. +// Re-exported here so every existing `from "./urlState"` import site is +// unchanged. export type { SearchMode } from "../lib/searchQuery"; import type { SearchMode } from "../lib/searchQuery"; diff --git a/common/lib/searchQuery.ts b/common/lib/searchQuery.ts @@ -9,10 +9,13 @@ // and IndexedDB-backed layer cache keys. Keep field names short — they end // up in URLs. -// The three top-level search modes a share link can carry. Defined here rather -// than in `components/urlState.ts` (which re-exports it) because -// `buildSearchRoot` below turns one into a query tree — the model owns the -// vocabulary it interprets. +// Which corpus the legacy single-input search targets. "posts" is the social +// corpus (lib/posts.ts); the composite query tree can mix all of them freely, +// this only decides what a bare `?q=` URL means. +// +// Defined here rather than in `components/urlState.ts` (which re-exports it) +// because `buildSearchRoot` below turns one into a query tree — the model owns +// the vocabulary it interprets. export type SearchMode = "transcripts" | "subs" | "posts"; export type LayerScope =