Skip to content

feat(gui): search the settings by section, name or description - #868

Merged
LargeModGames merged 1 commit into
LargeModGames:mainfrom
niukanen1:gui-settings-search-840
Oct 16, 2026
Merged

LargeModGames merged 1 commit into
LargeModGames:mainfrom
niukanen1:gui-settings-search-840

Conversation

@niukanen1

@niukanen1 niukanen1 commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

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() in settingsModel.ts takes the query as a third parameter and filters each row against the group heading, name and description; SettingsSearch in Settings.tsx is the box itself. The Updates group keeps its special rule when the query is empty and follows the common rule when filtering.

Fixes #840

Settings search filtering to the Streaming group

Summary by CodeRabbit

  • New Features
    • Added settings search in the desktop and browser interfaces. Search by section, setting name, or description; results update as you type.
    • Press Escape to clear a search. A message appears when there are no matching settings.

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
@coderabbitai

coderabbitai Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: LargeModGames/spotatui/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1cc474fb-6cb9-403f-8ba4-9862c3cb3d6b
📥 Commits

Reviewing files that changed from the base of the PR and between 9853820 and 7a7ab14.

📒 Files selected for processing: 7
  • CHANGELOG.md
  • gui/e2e/scenes.shot.ts
  • gui/src/Settings.css
  • gui/src/Settings.tsx
  • gui/src/settings.test.tsx
  • gui/src/settingsModel.test.ts
  • gui/src/settingsModel.ts

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

📝 Walkthrough

The Settings page now filters settings by query terms across section headings, setting names, and descriptions. It includes an input that appears after settings load, supports clearing the query with Escape, and displays a no-results message when no sections match.

Changes: Settings search

Layer / File(s) Summary
Query filtering
gui/src/settingsModel.ts, gui/src/settingsModel.test.ts
sections accepts an optional query and filters settings by case-insensitive query terms. Tests cover matches across section headings, names, and descriptions, plus blank queries and Updates visibility.
Settings search UI
gui/src/Settings.tsx, gui/src/Settings.css, gui/src/settings.test.tsx, gui/e2e/scenes.shot.ts, CHANGELOG.md
The Settings page renders the search input after settings load and shows a no-results message when needed. Escape clears a nonempty query unless IME composition is active. Tests and a screenshot scene cover the search UI. The changelog describes the feature.

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant SettingsSearch
  participant Settings
  participant sections
  User->>SettingsSearch: Enter a search query
  SettingsSearch->>Settings: Call onQuery(query)
  Settings->>sections: Request filtered sections
  sections-->>Settings: Return matching sections
  Settings-->>User: Render sections or no-results message
Loading
Merge Risk: ⚪ Minimal · up to 7a7ab

The change adds a settings search to the GUI and appears ready to merge. No actionable risk remains.

Pre-merge checks: Passed 4
Check name Status Explanation
Linked Issues check Passed Issue #840 coding requirements are met. Settings.tsx adds the search input, no-results status, case-insensitive Escape handling, IME protection, and the existing .settings data-focus target. `se…
Out of Scope Changes check Passed The reviewed changes stay within issue #840 scope. The changes affect the GUI Settings component, model, styles, tests, screenshot scene, and changelog. The tests and screenshot support the requested …
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title uses the permitted conventional-commit prefix feat(gui):, clearly describes the settings search change, and uses a concise imperative subject.
Full details: Linked Issues check

Explanation

Issue #840 coding requirements are met. Settings.tsx adds the search input, no-results status, case-insensitive Escape handling, IME protection, and the existing .settings data-focus target. settingsModel.ts matches every query term across section heading, setting name, and description, hides empty groups, and preserves the Updates rule for blank and active queries. The shared Settings page remains mounted across navigation, so its local query state persists. Tests cover filtering, Escape behavior, and loading visibility. The change also adds themed styling, a screenshot scene, and an Unreleased changelog entry.

Full details: Out of Scope Changes check

Explanation

The reviewed changes stay within issue #840 scope. The changes affect the GUI Settings component, model, styles, tests, screenshot scene, and changelog. The tests and screenshot support the requested feature. The supplied change summary shows no changes to the server, actions, generated bindings, areas.ts, or Shell.tsx.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
✨ Simplify code
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@LargeModGames
LargeModGames merged commit 60c7e94 into LargeModGames:main Oct 16, 2026
32 checks passed
kapok-4o pushed a commit to kapok-4o/spotatui that referenced this pull request Oct 16, 2026
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.
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.

GUI: add a search box to the Settings page

2 participants