Desktop Material

Settings search / 設定搜尋

A search box at the top of the Settings (Preferences) dialog's left rail lets you find a setting by name, description, or keyword across every tab, and jump straight to the tab that owns it. Because the rail is present on every Preferences tab, the search box is reachable from every settings page.

呢個搜尋框喺「設定」對話框左邊嘅最頂,可以打字跨所有分頁搵設定,跟住一撳就跳去嗰個設定所屬嘅分頁。因為左邊條 rail 喺每一頁都會顯示,所以每一頁都用到呢個搜尋。

Behaviour

Localization and tone

All search UI copy (label, placeholder, result count, "in {tab}", jump hint, empty state) and every catalog entry's title, description, and tab name are localized in English, playful Hong Kong Cantonese, and bilingual mode through app/src/lib/i18n-resources.ts (settingsSearch.* keys). The search surface is purely navigational, so it carries no funny-level tone scaling; result counts, the empty state, and accessibility copy stay clear at every level.

Accessibility

Implementation

Failure modes

Verification

app/test/unit/settings-search-test.ts covers tab coverage, unique ids, bilingual match keys, empty-query handling, English/Cantonese/keyword matching, case sensitivity, invalid- and valid-regex behaviour, title highlight ranges, and tab grouping. app/test/unit/collection-surface-registry-test.ts enforces the one-to-one registry/regex-builder binding for the preferences surface.

API applicability

This feature is entirely local UI navigation and adds no HTTP endpoint, so a Postman collection is not applicable.