authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-02-12 14:47:51-08:00
committergravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-02-12 14:47:51-08:00
logdd920846b9195275e6d8605a0f61cf8786cfa469
tree669d65674e0bbfb6fdee4ab5a20faaf76b995725
parentb7af14ad3f0aa63c3d8265720e823ae8a383a05c

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 <codex@users.noreply.github.com>

1 files changed, 4 insertions(+), 6 deletions(-)

apps/web/src/components/GitActionsControl.tsx+4-6
...@@ -746,10 +746,6 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp...@@ -746,10 +746,6 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp
746 gitModalSteps.map((step, index) => {746 gitModalSteps.map((step, index) => {
747 const borderClass =747 const borderClass =
748 index < gitModalSteps.length - 1 ? "border-b border-border/70" : "";748 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
754 return (750 return (
755 <div751 <div
...@@ -771,8 +767,10 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp...@@ -771,8 +767,10 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp
771 </span>767 </span>
772 <div className="min-w-0">768 <div className="min-w-0">
773 <p className="text-sm text-foreground">{step.label}</p>769 <p className="text-sm text-foreground">{step.label}</p>
774 {step.detail && (770 {step.status === "failed" && step.detail && (
775 <p className={`mt-0.5 text-xs ${statusTextClass}`}>{step.detail}</p>771 <p className="mt-0.5 text-xs text-rose-500 dark:text-rose-300">
772 {step.detail}
773 </p>
776 )}774 )}
777 </div>775 </div>
778 </div>776 </div>