Parameter search & inline display for Past Runs and Run History pages (#3985)

This commit is contained in:
Celal Zamanoglu
2025-11-14 01:33:39 +03:00
committed by GitHub
parent f1e118ab2b
commit a95837783a
10 changed files with 797 additions and 257 deletions

View File

@@ -0,0 +1,40 @@
import { MagnifyingGlassIcon } from "@radix-ui/react-icons";
import { Input } from "@/components/ui/input";
import { cn } from "@/util/utils";
import { ChangeEvent } from "react";
type TableSearchInputProps = {
value: string;
onChange: (value: string) => void;
placeholder?: string;
className?: string;
inputClassName?: string;
};
function TableSearchInput({
value,
onChange,
placeholder = "Search…",
className,
inputClassName,
}: TableSearchInputProps) {
function handleChange(event: ChangeEvent<HTMLInputElement>) {
onChange(event.target.value);
}
return (
<div className={cn("relative", className)}>
<div className="pointer-events-none absolute left-0 top-0 flex h-9 w-9 items-center justify-center">
<MagnifyingGlassIcon className="size-5 text-slate-400" />
</div>
<Input
value={value}
onChange={handleChange}
placeholder={placeholder}
className={cn("pl-9", inputClassName)}
/>
</div>
);
}
export { TableSearchInput };