Repository navigation
feat(gui): search the settings by section, name or description - #868
Conversation
Adds a filter box to the Settings page in the desktop app and browser GUI. Typing keeps only the rows whose section heading, setting name or description holds every word typed, ignoring case; groups with no matching row hide, and a query that matches nothing says so. Escape empties the box and a second Escape leaves it. Fixes LargeModGames#840
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Route the settings search box's label and its no-match line (LargeModGames#868) through the table (gui.search_settings, gui.no_settings_match); sections() takes the table after the query.
What was broken
The Settings page in the GUI lists about two dozen rows in up to six groups, and the only way to find one was to scroll and read each row.
What changed
A search box now sits under the Settings title. Typing keeps only the rows whose section name, setting name or description holds every word typed, ignoring case; a group with no matching row hides, and a query that matches nothing says so. Escape empties the box and a second Escape leaves it.
sections()insettingsModel.tstakes the query as a third parameter and filters each row against the group heading, name and description;SettingsSearchinSettings.tsxis the box itself. The Updates group keeps its special rule when the query is empty and follows the common rule when filtering.Fixes #840
Summary by CodeRabbit