MCPcopy Create free account
hub / github.com/agent-tower/core / CommitDiffBody

Function CommitDiffBody

packages/web/src/components/workspace/ReviewView.tsx:173–189  ·  view source on GitHub ↗
({ workingDir, hash, path, enabled })

Source from the content-addressed store, hash-verified

171 const dir = dirname(entry.path)
172
173 return (
174 <div
175 data-card-key={key}
176 className={cn(
177 'rounded-md border border-border bg-background overflow-hidden transition-shadow',
178 flash && 'ring-2 ring-info/40',
179 )}
180 >
181 <button
182 type="button"
183 aria-expanded={!collapsed}
184 onClick={() => onStateChange(key, { collapsed: !collapsed })}
185 className="w-full flex items-center gap-2 px-3 py-2 bg-muted/40 hover:bg-muted/70 transition-colors text-left"
186 >
187 {collapsed
188 ? <ChevronRight size={13} className="text-muted-foreground/70 shrink-0" />
189 : <ChevronDown size={13} className="text-muted-foreground/70 shrink-0" />}
190 <FileStatusBadge status={entry.status} />
191 <span className="text-xs font-medium text-foreground truncate">{basename(entry.path)}</span>
192 {dir && <span className="font-mono text-[11px] text-muted-foreground truncate">{dir}</span>}

Callers

nothing calls this directly

Calls 2

useI18nFunction · 0.90
useGitCommitDiffFunction · 0.90

Tested by

no test coverage detected