diff --git a/src/components/card/commit-history.tsx b/src/components/card/commit-history.tsx index 63d16b4..ea00655 100644 --- a/src/components/card/commit-history.tsx +++ b/src/components/card/commit-history.tsx @@ -4,6 +4,7 @@ import { useState } from "react"; import { Code2 } from "lucide-react"; import { relativeTime } from "@/lib/time/relative"; +import { LoggedTag } from "@/components/ui/logged-tag"; import type { CommitRecord } from "@/lib/pb/types"; /** @@ -18,6 +19,7 @@ import type { CommitRecord } from "@/lib/pb/types"; */ export function CommitHistory({ commits }: { commits: CommitRecord[] }) { const [showRaw, setShowRaw] = useState(false); + const hasGitCommits = commits.some((commit) => commit.source !== "manual"); if (commits.length === 0) return null; @@ -30,15 +32,17 @@ export function CommitHistory({ commits }: { commits: CommitRecord[] }) { {commits.length} {commits.length === 1 ? "change" : "changes"} - + {hasGitCommits && ( + + )}
{relativeTime(commit.authored_at)} diff --git a/src/components/dashboard/recent-activity.tsx b/src/components/dashboard/recent-activity.tsx index b47ed22..ef53ef7 100644 --- a/src/components/dashboard/recent-activity.tsx +++ b/src/components/dashboard/recent-activity.tsx @@ -1,4 +1,5 @@ import { relativeTime } from "@/lib/time/relative"; +import { LoggedTag } from "@/components/ui/logged-tag"; import type { CommitRecord } from "@/lib/pb/types"; /** @@ -25,11 +26,7 @@ export function RecentActivity({ commits }: { commits: CommitRecord[] }) {
{commit.summary || commit.subject}
- {commit.source === "manual" && ( - - Logged - - )} + {commit.source === "manual" &&
{commit.source === "manual" ? (
-
- Logged
-
+ {commit.short_sha}
)}
@@ -89,7 +88,7 @@ export function UnassignedList({