feat(frontend): add JSON script import functionality (#11563)

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.
This commit is contained in:
ls-root
2026-02-07 19:36:32 +01:00
committed by GitHub
parent 2c39cab0c1
commit a524431c0e
2 changed files with 168 additions and 2 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ import { Button } from "./ui/button";
import { Badge } from "./ui/badge";
import Link from "next/link";
function search(scripts: Script[], query: string): Script[] {
export function search(scripts: Script[], query: string): Script[] {
const queryLower = query.toLowerCase().trim();
const searchWords = queryLower.split(/\s+/).filter(Boolean);