feat: add notification

This commit is contained in:
Henry Li
2026-01-31 11:08:27 +08:00
parent cb660c2643
commit 47fe2f8195
18 changed files with 482 additions and 56 deletions

View File

@@ -1,4 +1,4 @@
import { DownloadIcon } from "lucide-react";
import { DownloadIcon, PackageIcon } from "lucide-react";
import { useCallback } from "react";
import { Button } from "@/components/ui/button";
@@ -48,6 +48,22 @@ export function ArtifactFileList({
{getFileExtensionDisplayName(file)} file
</CardDescription>
<CardAction>
{file.endsWith(".skill") && (
<a
href={urlOfArtifact({
filepath: file,
threadId: threadId,
download: true,
})}
target="_blank"
onClick={(e) => e.stopPropagation()}
>
<Button variant="ghost">
<PackageIcon className="size-4" />
{t.common.install}
</Button>
</a>
)}
<a
href={urlOfArtifact({
filepath: file,