Skip to content

Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.

fix(workspace): reframe co-change page as temporal hint and fix avg-strength display (#481)

Raghav Chamadiya0179a799be88
diff --git a/packages/ui/src/workspace/co-change-table.tsx b/packages/ui/src/workspace/co-change-table.tsx
index b4db9184b..0f0c8de4a 100644
--- a/packages/ui/src/workspace/co-change-table.tsx
+++ b/packages/ui/src/workspace/co-change-table.tsx
@@ -45,7 +45,15 @@ export function CoChangeTable({ coChanges, compact }: CoChangeTableProps) {
},
{
key: "strength",
- header: "Strength",
+ header: (
+ <span
+ title="Relative, recency-weighted frequency of same-author commits across these repos. Higher means more or more-recent shared activity. It is not a percentage or a verified dependency."
+ className="cursor-help underline decoration-dotted underline-offset-2"
+ >
+ Strength
+ </span>
+ ),
+ mobileLabel: "Strength",
priority: 2,
headerClassName: "w-32",
render: (cc) => (
diff --git a/packages/web/src/app/workspace/co-changes/page.tsx b/packages/web/src/app/workspace/co-changes/page.tsx
index 1693bc1e1..5e2d5077d 100644
--- a/packages/web/src/app/workspace/co-changes/page.tsx
+++ b/packages/web/src/app/workspace/co-changes/page.tsx
@@ -33,7 +33,10 @@ export default function CoChangesPage() {
</h1>
</div>
<p className="text-sm text-[var(--color-text-secondary)]">
- Files across repositories that frequently change together — implicit coupling detected from git history.
+ Files the same author committed across repositories within a short time
+ window. This is a temporal work-pattern hint from git history, not a
+ verified technical dependency, so treat it as a starting point for
+ inspection rather than proof of coupling.
</p>
</div>
@@ -61,11 +64,11 @@ export default function CoChangesPage() {
label="Avg Strength"
value={
data?.co_changes && data.co_changes.length > 0
- ? `${Math.round(
+ ? Math.round(
(data.co_changes.reduce((sum, cc) => sum + cc.strength, 0) /
data.co_changes.length) *
- 100,
- )}%`
+ 10,
+ ) / 10
: "—"
}
icon={<GitMerge className="h-4 w-4 text-orange-400" />}