Skip to content

Add options filter to web version - #28

Merged
j9t merged 1 commit into
mainfrom
feat/option-filter
Nov 23, 2026
Merged

j9t merged 1 commit into
mainfrom
feat/option-filter

Conversation

@j9t

@j9t j9t commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Addresses #20

Summary by CodeRabbit

  • New Features
    • Added search to the options panel. Search matches option labels, names, command-line flags, and descriptions, with multiple terms matched regardless of order or capitalization.
    • The panel shows the number of matching options or a message when none match. Press Escape or clear the search field to reset the filter.
    • When preset or selection changes affect options hidden by the filter, a note indicates that changes were made.

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The web options panel now supports searching options by label, ID, CLI flag, and help text. It reports match counts, and selection actions show a note when they change options hidden by the current filter.

Changes: Options filtering and selection feedback

Layer / File(s) Summary
Search and change-detection helpers
site/lib/filter.js, site/test/page.test.js
New helpers build searchable option text, match all query words, and detect changed option choices. Tests cover these behaviors.
Filter input and visible options
site/default.js, site/index.html, site/default.css
The options panel filters rows as the query changes, displays a match count or “No options match,” and clears the filter with Escape. Styles support the search field.
Feedback for hidden selection changes
site/default.js, site/index.html
Preset and selection actions count changed options outside the current filter. The panel shows a note when that count is nonzero and clears the note when the filter changes.

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

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant SearchField
  participant siteDefaultJs
  participant matchesFilter
  participant OptionsPanel
  User->>SearchField: Enter a query
  SearchField->>siteDefaultJs: Emit search event
  siteDefaultJs->>matchesFilter: Check query against cached option text
  matchesFilter->>siteDefaultJs: Return match result
  siteDefaultJs->>OptionsPanel: Update visible rows and match status
Loading

Possibly related issues

Suggested reviewers: sibiraj-s

Merge Risk: Minimal · up to 69c5d

The change adds a search field to the web options panel, with match counts and a note when selection actions change options hidden by the filter. It is limited to the site, and no merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "Add options filter to web version" matches the changeset. The PR adds a search field to the options panel, filter helpers in site/lib/filter.js, and related tests and styling. The title nam…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Add options filter to web version" matches the changeset. The PR adds a search field to the options panel, filter helpers in site/lib/filter.js, and related tests and styling. The title names the main change and is specific enough for a reviewer scanning history.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • 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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Central YAML; Path: .coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c9d73184-41d2-44da-9758-7909ff4e571e
Commits

Reviewing files that changed from the base of the PR and between 1b9e4ad and 69c5de7.

Files selected for processing: 5

  • site/default.css
  • site/default.js
  • site/index.html
  • site/lib/filter.js
  • site/test/page.test.js

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

Comment thread site/lib/filter.js Dismissed
@j9t
j9t merged commit 8634591 into main Nov 23, 2026
10 checks passed
@j9t
j9t deleted the feat/option-filter branch November 23, 2026 16:52
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.

2 participants