From debdaf418c883d25e21c1b25e689b9909604290b Mon Sep 17 00:00:00 2001 From: bennykok Date: Mon, 29 Jan 2024 22:27:05 +0800 Subject: [PATCH] feat: revamp custom nodes install --- .../custom-form/SnapshotPickerView.tsx | 145 +++++++++++++++--- .../components/custom-form/model-picker.tsx | 1 - 2 files changed, 124 insertions(+), 22 deletions(-) diff --git a/web/src/components/custom-form/SnapshotPickerView.tsx b/web/src/components/custom-form/SnapshotPickerView.tsx index 229b300..adcc201 100644 --- a/web/src/components/custom-form/SnapshotPickerView.tsx +++ b/web/src/components/custom-form/SnapshotPickerView.tsx @@ -8,7 +8,9 @@ import { AccordionItem, AccordionTrigger, } from "@/components/ui/accordion"; +import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; +import { Card } from "@/components/ui/card"; import { Command, CommandEmpty, @@ -17,6 +19,22 @@ import { CommandItem, CommandList, } from "@/components/ui/command"; +import { + Dialog, + DialogClose, + DialogContent, + DialogDescription, + DialogFooter, + DialogHeader, + DialogTitle, + DialogTrigger, +} from "@/components/ui/dialog"; +import { + DropdownMenu, + DropdownMenuContent, + DropdownMenuItem, + DropdownMenuTrigger, +} from "@/components/ui/dropdown-menu"; import { Popover, PopoverContent, @@ -25,7 +43,15 @@ import { import { Textarea } from "@/components/ui/textarea"; import { cn } from "@/lib/utils"; import { findAllDeployments } from "@/server/curdDeploments"; -import { Check, ChevronsUpDown } from "lucide-react"; +import { + Check, + ChevronsUpDown, + Edit, + ExternalLink, + FolderInput, + MoreVertical, + Plus, +} from "lucide-react"; import * as React from "react"; import { toast } from "sonner"; import useSWR from "swr"; @@ -39,19 +65,95 @@ export function SnapshotPickerView({ Custom Nodes - - +
+ + + + + + + + + Edit custom nodes + + Make advacne changes to the snapshots + + +