diff --git a/docs/superpowers/specs/2026-06-01-blog-search-design.md b/docs/superpowers/specs/2026-06-01-blog-search-design.md index db45cec..3fc4f69 100644 --- a/docs/superpowers/specs/2026-06-01-blog-search-design.md +++ b/docs/superpowers/specs/2026-06-01-blog-search-design.md @@ -42,7 +42,7 @@ The inline script (~30 lines) does: 1. On `input`, normalize query: `value.toLowerCase().trim().split(/\s+/).filter(Boolean)`. 2. For each `[data-search]`: visible iff every token is a substring of its `data-search` value. Toggle `.is-hidden`. -3. The featured block (marked `data-featured`) is additionally `.is-hidden` whenever the query is non-empty, independent of match. +3. The featured block (marked `data-featured`) is itself a `[data-search]` row, so it filters by the same match check — visible iff it matches the query. (Originally it hid whenever a query was active; changed per `docs/superpowers/follow-ups/2026-06-02-blog-search-featured-match.md` so featured behaves like any other filterable row.) 4. For each `[data-year-head]`: count visible siblings until the next year head; hide the head if zero. 5. Toggle a no-results message (`
`) on/off based on whether any row is visible. 6. Empty query: clear `.is-hidden` from everything (including featured); hide the no-results message. @@ -103,7 +103,7 @@ Empty-state `
` reuses the `.count` style (mono 11px, `--fg-on-dark-3`).
| Whitespace-only query | Treated as empty: full archive restored. |
| Tokens with regex-special chars | Safe — only `String.includes()` is used. |
| Query matches nothing | No-results message shown; all rows + year heads hidden. |
-| Single-post archive | Featured shows with empty query; non-empty query hides featured and the lone archive entry. Acceptable. |
+| Single-post archive | Featured shows with empty query; a non-empty query keeps the featured (and lone archive entry) visible iff it matches. Acceptable. |
| JavaScript disabled | Input renders but does nothing; full archive visible. No regression. |
## Theme parity
diff --git a/src/components/molecules/BlogSearch.astro b/src/components/molecules/BlogSearch.astro
index 0aad4ac..8bf991c 100644
--- a/src/components/molecules/BlogSearch.astro
+++ b/src/components/molecules/BlogSearch.astro
@@ -88,7 +88,6 @@
const rows = Array.from(
document.querySelectorAll