diff --git a/src/routes/Dashboard/DashboardFavoritesView.tsx b/src/routes/Dashboard/DashboardFavoritesView.tsx
index febc0704d..cf808afde 100644
--- a/src/routes/Dashboard/DashboardFavoritesView.tsx
+++ b/src/routes/Dashboard/DashboardFavoritesView.tsx
@@ -1,4 +1,4 @@
-import { useNavigate } from "@tanstack/react-router";
+import { Link } from "@tanstack/react-router";
import { useState } from "react";
import { Button } from "@/components/ui/button";
@@ -18,26 +18,14 @@ function getFavoriteUrl(item: FavoriteItem): string {
}
const FavoriteCard = ({ item }: { item: FavoriteItem }) => {
- const navigate = useNavigate();
const { removeFavorite } = useFavorites();
const isPipeline = item.type === "pipeline";
return (
- {
- if (!e.metaKey && !e.ctrlKey) {
- e.preventDefault();
- navigate({ to: getFavoriteUrl(item) });
- }
- }}
- className={cn(
- "group relative flex flex-col gap-2 p-3 border rounded-lg cursor-pointer transition-colors text-left w-full",
- isPipeline
- ? "bg-violet-50/40 hover:bg-violet-50 border-violet-100"
- : "bg-emerald-50/40 hover:bg-emerald-50 border-emerald-100",
- )}
+
{/* Remove button */}
- {/* Type badge */}
-
-
+
-
+
{isPipeline ? "Pipeline" : "Run"}
-
+
{/* Name */}
@@ -82,7 +66,7 @@ const FavoriteCard = ({ item }: { item: FavoriteItem }) => {
{item.id}
-
+
);
};
diff --git a/src/routes/Dashboard/DashboardRecentlyViewedView.tsx b/src/routes/Dashboard/DashboardRecentlyViewedView.tsx
index 5ca966544..708af8e31 100644
--- a/src/routes/Dashboard/DashboardRecentlyViewedView.tsx
+++ b/src/routes/Dashboard/DashboardRecentlyViewedView.tsx
@@ -22,27 +22,21 @@ const RecentlyViewedCard = ({ item }: { item: RecentlyViewedItem }) => {
return (
- {/* Type badge */}
-
-
-
-
+
+
+
{isPipeline ? "Pipeline" : "Run"}
-
+
{formatRelativeTime(new Date(item.viewedAt))}