Allow users to import scripts into the JSON editor via local file
upload or by selecting from the existing script library.
- Dropdown toggle for 'Local' and 'Library' import sources.
- Script selection dialog with category and search filters.
- Global search using the existing command menu logic.
* fix(frontend): implement weighted search scoring for command menu
The previous cmdk search was filtered correctly but then sorted by category
order rather than match strength. This caused "Dokpoly" to appear above
"Traefik", if you searched for Traefik, simply because its category (Containers) comes before Traefik's
category alphabetically.
- Flatten search results into a single "Search Results" group.
- Implement scoring to prioritize name matches over descriptions.
- Revert to category grouping only when the search query is empty.
* perf(frontend): optimize search logic
Limiting the results to 20 helps a lot.
When a user searches for a script that does not exist, the CommandMenu
now displays a link to the contribution guide. This encourages community
contributions.
* Removed double entries from the search to improve navigation
* change input on search field to improve searchability
* added type to search to make sure that LXC and VM's dont get mixed up
* run linting over changes
---------
Co-authored-by: Bram Suurd <bram.suurd@infracom.nl>
* Update ScriptAccordion and ScriptItem components for improved styling
* Add README.md for Proxmox VE Helper-Scripts Frontend
* Remove testing dependencies and related test files from the frontend project
* Update analytics URL in siteConfig to point to community-scripts.org
* Refactor ESLint configuration to have one source of truth and run "npm lint" to apply new changes
* Update lint script in package.json to remove npm
* Add 'next' option to ESLint configuration for improved compatibility
* Update package dependencies and versions in package.json and package-lock.json
* Refactor theme provider import and enhance calendar component for dynamic icon rendering
* rename sidebar, alerts and buttons
* rename description and interfaces files
* rename more files
* change folder name
* Refactor tooltip logic to improve updateable condition handling
* Enhance CommandMenu to prevent duplicate scripts across categories
* Remove test step from frontend CI/CD workflow