Skip to content

Commit 38f6c93

Browse files
authored
feat(ui): explain the agent-authorship share on the contributors strip (#799)
1 parent 3a6000f commit 38f6c93

1 file changed

Lines changed: 14 additions & 9 deletions

File tree

packages/ui/src/git/contributors-strip.tsx

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { Users, Bot, ArrowRight } from "lucide-react";
22
import { Card, CardContent, CardHeader, CardTitle } from "../ui/card";
3+
import { InfoTip } from "../shared/info-tip";
4+
import { AGENT_PCT_HINT } from "../stats/stat-callout";
35

46
export interface StripOwner {
57
name: string;
@@ -129,15 +131,18 @@ export function ContributorsStrip({
129131
<Bot className="h-3 w-3" />
130132
Authorship
131133
</span>
132-
<a
133-
href={commitsHref}
134-
className="text-xs tabular-nums text-[var(--color-text-secondary)] hover:text-[var(--color-accent-primary)] transition-colors"
135-
>
136-
<span className="font-semibold text-[var(--color-accent-primary)]">
137-
{Math.round(provenance!.agentPct)}%
138-
</span>{" "}
139-
agent-written
140-
</a>
134+
<span className="flex items-center gap-1">
135+
<a
136+
href={commitsHref}
137+
className="text-xs tabular-nums text-[var(--color-text-secondary)] hover:text-[var(--color-accent-primary)] transition-colors"
138+
>
139+
<span className="font-semibold text-[var(--color-accent-primary)]">
140+
{Math.round(provenance!.agentPct)}%
141+
</span>{" "}
142+
agent-written
143+
</a>
144+
<InfoTip content={AGENT_PCT_HINT} label="How agent authorship is measured" />
145+
</span>
141146
</div>
142147
<div className="flex h-2 w-full overflow-hidden rounded-full bg-[var(--color-bg-inset)]">
143148
<div

0 commit comments

Comments
 (0)