Repository navigation
Tags
Tags
feat(settings): add a search box over settings sections (MIK-65) (ope… …n-legal-products#745) The settings area has twelve tabs and the one people most often need, Bring Your Own Keys, is tenth; on a phone it is off-screen until the tab strip is swiped. A search box at the right end of the "Settings" title row now lists the sections and controls that match what was typed, exact name matches first and meaning-based matches after, and opens the chosen one at its section heading. The tab column and the open page keep their places; the result list overlays them. Matching runs in the browser against a hand-written index: each entry carries its title, tab, a one-line description and the words people use for it ("api key", "2fa", "dark"). Exact matches are whole-phrase hits on a name; related matches score query words against that vocabulary with prefix matching and bigram similarity for typos, with typo tolerance applied only to words the index does not know. A drift test checks every entry's page exists and its hash names a heading id. Section headings gain stable ids so a result can scroll to them, and SettingsHeading takes a scroll margin and a focus ring for the heading the search lands on. The result list prevents the default on mousedown so Safari and Firefox, which do not focus a button on press, keep focus in the box until the click lands; the poll for the chosen heading is cleared when the box unmounts. A Playwright spec covers the flows. Co-authored-by: mlx51 <343383278+mlx51@users.noreply.github.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>