reenbale the download action (#4299)

This commit is contained in:
LawyZheng
2025-12-15 14:30:32 +08:00
committed by GitHub
parent 6178a20824
commit ce717146f3
9 changed files with 208 additions and 37 deletions

View File

@@ -1,5 +1,10 @@
import { ActionType, ReadableActionTypes } from "@/api/types";
import { CursorArrowIcon, HandIcon, InputIcon } from "@radix-ui/react-icons";
import {
CursorArrowIcon,
HandIcon,
DownloadIcon,
InputIcon,
} from "@radix-ui/react-icons";
type Props = {
actionType: ActionType;
@@ -9,6 +14,7 @@ const icons: Partial<Record<ActionType, React.ReactNode>> = {
click: <CursorArrowIcon className="h-4 w-4" />,
hover: <HandIcon className="h-4 w-4" />,
input_text: <InputIcon className="h-4 w-4" />,
download_file: <DownloadIcon className="h-4 w-4" />,
};
function ActionTypePill({ actionType }: Props) {

View File

@@ -3,6 +3,7 @@ import {
CheckCircledIcon,
CursorArrowIcon,
HandIcon,
DownloadIcon,
InputIcon,
QuestionMarkIcon,
} from "@radix-ui/react-icons";
@@ -17,6 +18,7 @@ const icons: Partial<Record<ActionType, React.ReactNode>> = {
hover: <HandIcon className="h-4 w-4" />,
complete: <CheckCircledIcon className="h-4 w-4" />,
input_text: <InputIcon className="h-4 w-4" />,
download_file: <DownloadIcon className="h-4 w-4" />,
};
function ActionTypePillMinimal({ actionType }: Props) {