Skip to content

Commit 3516a33

Browse files
committed
feat: added report bug card
1 parent 1f529af commit 3516a33

7 files changed

Lines changed: 1852 additions & 1855 deletions

File tree

web/src/components/app.tsx

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Table, TableBody, TableCell, TableRow } from "./ui/table";
22
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./ui/tooltip";
33
import { Badge } from "./ui/badge";
4-
import { ExternalLink, Image as ImageIcon, LucideTerminalSquare, Package, ScrollText, Download } from "lucide-react";
4+
import { ExternalLink, Image as ImageIcon, LucideTerminalSquare, Package, ScrollText, Download, Bug } from "lucide-react";
55
import { buttonVariants } from "./ui/button";
66
import { useClipboard } from "../hooks/use-clipboard";
77
import FormulaLinks from "./formula-links";
@@ -322,23 +322,20 @@ export default function App({ data, logs: build, repo }: AppProps) {
322322
</div>
323323
)}
324324

325-
{data.icon && (
326-
<div className="flex flex-col items-center space-y-2 p-3 rounded-lg border bg-card">
327-
<h2 className="text-lg font-semibold flex items-center space-x-2">
328-
<ImageIcon className="text-amber-600 dark:text-amber-400" />
329-
<span>Package Icon</span>
330-
</h2>
331-
<img src={data.icon} alt="Package Icon" className="w-16 h-16 rounded-lg" />
332-
<a href={data.icon} target="_blank" rel="noreferrer"
333-
className={buttonVariants({
334-
variant: "outline",
335-
className: "w-full flex items-center justify-center space-x-2"
336-
})}>
337-
<span>View Raw</span>
338-
<ExternalLink className="h-4 w-4" />
339-
</a>
340-
</div>
341-
)}
325+
<div className="flex flex-col items-center space-y-2 p-3 rounded-lg border bg-card">
326+
<h2 className="text-lg font-semibold flex items-center space-x-2">
327+
<Bug className="text-red-600 dark:text-red-400" />
328+
<span>Report Issues</span>
329+
</h2>
330+
<a href="https://github.com/pkgforge/soarpkgs/issues/new/choose" target="_blank" rel="noreferrer"
331+
className={buttonVariants({
332+
variant: "outline",
333+
className: "w-full flex items-center justify-center space-x-2"
334+
})}>
335+
<span>Create Issue</span>
336+
<ExternalLink className="h-4 w-4" />
337+
</a>
338+
</div>
342339
</div>
343340
</div>
344341
</TooltipProvider>

web/src/metadata_bincache_aarch64-linux.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

web/src/metadata_bincache_x86_64-linux.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

web/src/pages/repo/bincache/aarch64-linux/_apps.json

Lines changed: 538 additions & 538 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)