- {output.steps.map((step, i) => (
-
- ))}
+
+ {isEditing ? (
+
+ {/* Insert before the first step */}
+
handleStepInsert(-1)} />
+
+ {editableSteps.map((step, i) => (
+
+
+
+ {i + 1}.
+
+ handleStepChange(i, e.target.value)}
+ className="flex-1 rounded border border-slate-200 px-2 py-1 text-sm focus:border-neutral-400 focus:outline-none"
+ placeholder="Step description"
+ />
+
+
+ {/* Insert after each step */}
+
handleStepInsert(i)} />
+
+ ))}
+
+ ) : (
+
+ {output.steps.map((step, i) => (
+
+ ))}
+
+ )}
- {output.requires_approval && (
+ {showActions && (
-
-
+ {isEditing ? (
+
+ ) : (
+ <>
+ {/* Timer button — same ghost style as Modify, ring wraps the number inline */}
+
+
|
+
+ >
+ )}
)}
-
-
- Review the plan above and approve to start building.
-
)}
);
}
+
+function InsertButton({ onClick }: { onClick: () => void }) {
+ return (
+