Skip to content

Commit dd92084

Browse files
juliusmarmingecodex
andcommitted
Show git step details only on failure
- Render `step.detail` only for failed step states - Keep failed detail text styled in warning red tone Co-authored-by: codex <[email protected]>
1 parent b7af14a commit dd92084

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

‎apps/web/src/components/GitActionsControl.tsx‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -746,10 +746,6 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp
746746
gitModalSteps.map((step, index) => {
747747
const borderClass =
748748
index < gitModalSteps.length - 1 ? "border-b border-border/70" : "";
749-
const statusTextClass =
750-
step.status === "failed"
751-
? "text-rose-500 dark:text-rose-300"
752-
: "text-muted-foreground/70";
753749

754750
return (
755751
<div
@@ -771,8 +767,10 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp
771767
</span>
772768
<div className="min-w-0">
773769
<p className="text-sm text-foreground">{step.label}</p>
774-
{step.detail && (
775-
<p className={`mt-0.5 text-xs ${statusTextClass}`}>{step.detail}</p>
770+
{step.status === "failed" && step.detail && (
771+
<p className="mt-0.5 text-xs text-rose-500 dark:text-rose-300">
772+
{step.detail}
773+
</p>
776774
)}
777775
</div>
778776
</div>

0 commit comments

Comments
 (0)