Skip to content

Settings: search box - #117

Merged
ncbudd merged 2 commits into
mainfrom
settings-search
Nov 27, 2026
Merged

ncbudd merged 2 commits into
mainfrom
settings-search

Conversation

@ncbudd

@ncbudd ncbudd commented Nov 27, 2026

Copy link
Copy Markdown
Owner

A search box at the top of the phone's Settings. There are a lot of settings, so typing a word now shows just the settings that match.

  • It works on what's on screen, so every setting can be found without a list to keep up to date. It matches the visible words, plus aria-labels, titles and an optional data-keywords attribute for other words people might type.
  • Blocks with no match are hidden. Inside the blocks that match, rows that don't match are hidden too, unless the section's own name matched; then the whole section shows.
  • Collapsed sections show their contents while searching (FoldSearch context in Fold.tsx). Their headers can't be tapped then, and their remembered open or closed state isn't changed.
  • Group headings stay only above something that's left. With no match, it says so and points to Studio.
  • Escape clears the search.

Checked in a browser on a local server: "alarm", "dark", "hot flash", "pets", "units" and a no-match search each show the right rows, and clearing the box brings back all 25 blocks. tsc passes.

@ncbudd
ncbudd merged commit 541100a into main Nov 27, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant