diff --git a/src/routes/Dashboard/DashboardFavoritesView.tsx b/src/routes/Dashboard/DashboardFavoritesView.tsx
index 15999aa55..e72be73cb 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 { ChevronLeft, ChevronRight, GitBranch, Play, X } from "lucide-react";
import { useState } from "react";
@@ -18,23 +18,19 @@ function getFavoriteUrl(item: FavoriteItem): string {
}
const FavoriteCard = ({ item }: { item: FavoriteItem }) => {
- const navigate = useNavigate();
const { removeFavorite } = useFavorites();
const isPipeline = item.type === "pipeline";
return (
-
navigate({ to: getFavoriteUrl(item) })}
- className={`group relative flex flex-col gap-2 p-3 border rounded-lg cursor-pointer transition-colors ${
- 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 ? (
-
- ) : (
-
- )}
-
+
+ {isPipeline ? (
+
+ ) : (
+
+ )}
{isPipeline ? "Pipeline" : "Run"}
-
-
+
+
{/* Name */}
@@ -69,7 +67,7 @@ const FavoriteCard = ({ item }: { item: FavoriteItem }) => {
{item.id}
-
+
);
};
diff --git a/src/routes/Dashboard/DashboardRecentlyViewedView.tsx b/src/routes/Dashboard/DashboardRecentlyViewedView.tsx
index d6c2f1fb2..ece643f10 100644
--- a/src/routes/Dashboard/DashboardRecentlyViewedView.tsx
+++ b/src/routes/Dashboard/DashboardRecentlyViewedView.tsx
@@ -1,4 +1,4 @@
-import { useNavigate } from "@tanstack/react-router";
+import { Link } from "@tanstack/react-router";
import { GitBranch, Play } from "lucide-react";
import { BlockStack, InlineStack } from "@/components/ui/layout";
@@ -27,34 +27,29 @@ function formatRelativeTime(viewedAt: number): string {
}
const RecentlyViewedCard = ({ item }: { item: RecentlyViewedItem }) => {
- const navigate = useNavigate();
const isPipeline = item.type === "pipeline";
return (
- navigate({ to: getRecentlyViewedUrl(item) })}
- className={`flex flex-col gap-2 p-3 border rounded-lg cursor-pointer transition-colors ${
- isPipeline
- ? "bg-violet-50/40 hover:bg-violet-50 border-violet-100"
- : "bg-emerald-50/40 hover:bg-emerald-50 border-emerald-100"
- }`}
+
- {/* Type badge */}
-
-
+ {/* Type pill + timestamp */}
+
+
{isPipeline ? (
-
+
) : (
-
+
)}
-
- {isPipeline ? "Pipeline" : "Run"}
-
-
+ {isPipeline ? "Pipeline" : "Run"}
+
{formatRelativeTime(item.viewedAt)}
@@ -69,7 +64,7 @@ const RecentlyViewedCard = ({ item }: { item: RecentlyViewedItem }) => {
{item.id}
-
+
);
};