[PR #10800] [MERGED] Add search filtering to CommandDialog for improved script search functionality #9011

Closed
opened 2026-02-26 16:34:51 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/community-scripts/ProxmoxVE/pull/10800
Author: @BramSuurdje
Created: 1/14/2026
Status: Merged
Merged: 1/14/2026
Merged by: @michelroegl-brunner

Base: mainHead: fix-search


📝 Commits (1)

  • ff2fe87 Add search filtering to CommandDialog for improved script search functionality

📊 Changes

2 files changed (+23 additions, -5 deletions)

View changed files

📝 frontend/src/components/command-menu.tsx (+15 -2)
📝 frontend/src/components/ui/command.tsx (+8 -3)

📄 Description

✍️ Description

This pull request enhances the search functionality in the command menu for scripts, making it easier for users to find scripts by matching all search words across the script's name, type, and description. It also introduces a customizable filter prop to the CommandDialog component for more flexible search behavior.

Improvements to search functionality:

  • Updated the filtering logic in CommandMenu so that all words in the user's search query must appear somewhere in the script's name, type, or description, making search results more relevant. (frontend/src/components/command-menu.tsx)
  • Modified the value prop for each CommandItem to include the script's name, type, and description, allowing the search to match against more fields. (frontend/src/components/command-menu.tsx)

Component API enhancements:

  • Added a filter prop to the CommandDialog component, enabling custom filtering logic to be passed in and used for searching items. (frontend/src/components/ui/command.tsx)

Fixes #

Prerequisites (X in brackets)

  • Self-review completed – Code follows project standards.
  • Tested thoroughly – Changes work as expected.
  • No security risks – No hardcoded secrets, unnecessary privilege escalations, or permission issues.

🛠️ Type of Change (X in brackets)

  • 🐞 Bug fix – Resolves an issue without breaking functionality.
  • New feature – Adds new, non-breaking functionality.
  • 💥 Breaking change – Alters existing functionality in a way that may require updates.
  • 🆕 New script – A fully functional and tested script or script set.
  • 🌍 Website update – Changes to website-related JSON files or metadata.
  • 🔧 Refactoring / Code Cleanup – Improves readability or maintainability without changing functionality.
  • 📝 Documentation update – Changes to README, AppName.md, CONTRIBUTING.md, or other docs.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/community-scripts/ProxmoxVE/pull/10800 **Author:** [@BramSuurdje](https://github.com/BramSuurdje) **Created:** 1/14/2026 **Status:** ✅ Merged **Merged:** 1/14/2026 **Merged by:** [@michelroegl-brunner](https://github.com/michelroegl-brunner) **Base:** `main` ← **Head:** `fix-search` --- ### 📝 Commits (1) - [`ff2fe87`](https://github.com/community-scripts/ProxmoxVE/commit/ff2fe876c6f52f6bf45e4864aab5ec82219434ee) Add search filtering to CommandDialog for improved script search functionality ### 📊 Changes **2 files changed** (+23 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/command-menu.tsx` (+15 -2) 📝 `frontend/src/components/ui/command.tsx` (+8 -3) </details> ### 📄 Description <!--🛑 New scripts must be submitted to [ProxmoxVED](https://github.com/community-scripts/ProxmoxVED) for testing. PRs without prior testing will be closed. --> ## ✍️ Description This pull request enhances the search functionality in the command menu for scripts, making it easier for users to find scripts by matching all search words across the script's name, type, and description. It also introduces a customizable filter prop to the `CommandDialog` component for more flexible search behavior. **Improvements to search functionality:** * Updated the filtering logic in `CommandMenu` so that all words in the user's search query must appear somewhere in the script's name, type, or description, making search results more relevant. (`frontend/src/components/command-menu.tsx`) * Modified the `value` prop for each `CommandItem` to include the script's name, type, and description, allowing the search to match against more fields. (`frontend/src/components/command-menu.tsx`) **Component API enhancements:** * Added a `filter` prop to the `CommandDialog` component, enabling custom filtering logic to be passed in and used for searching items. (`frontend/src/components/ui/command.tsx`) ## 🔗 Related Issue Fixes # ## ✅ Prerequisites (**X** in brackets) - [x] **Self-review completed** – Code follows project standards. - [x] **Tested thoroughly** – Changes work as expected. - [x] **No security risks** – No hardcoded secrets, unnecessary privilege escalations, or permission issues. --- ## 🛠️ Type of Change (**X** in brackets) - [x] 🐞 **Bug fix** – Resolves an issue without breaking functionality. - [x] ✨ **New feature** – Adds new, non-breaking functionality. - [ ] 💥 **Breaking change** – Alters existing functionality in a way that may require updates. - [ ] 🆕 **New script** – A fully functional and tested script or script set. - [ ] 🌍 **Website update** – Changes to website-related JSON files or metadata. - [ ] 🔧 **Refactoring / Code Cleanup** – Improves readability or maintainability without changing functionality. - [ ] 📝 **Documentation update** – Changes to `README`, `AppName.md`, `CONTRIBUTING.md`, or other docs. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 16:34:51 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ProxmoxVE#9011
No description provided.