diff --git a/ui/src/components/ExecutionWorkspaceCloseDialog.tsx b/ui/src/components/ExecutionWorkspaceCloseDialog.tsx index f0547684..1f79d52a 100644 --- a/ui/src/components/ExecutionWorkspaceCloseDialog.tsx +++ b/ui/src/components/ExecutionWorkspaceCloseDialog.tsx @@ -88,27 +88,27 @@ export function ExecutionWorkspaceCloseDialog({ { if (!closeWorkspace.isPending) onOpenChange(nextOpen); }}> - + {actionLabel} - + Archive {workspaceName} and clean up any owned workspace artifacts. Paperclip keeps the workspace record and issue history, but removes it from active workspace views. {readinessQuery.isLoading ? ( -
- +
+ Checking whether this workspace is safe to close...
) : readinessQuery.error ? ( -
+
{readinessQuery.error instanceof Error ? readinessQuery.error.message : "Failed to inspect workspace close readiness."}
) : readiness ? ( -
-
+
+
{readiness.state === "blocked" ? "Close is blocked" @@ -129,10 +129,10 @@ export function ExecutionWorkspaceCloseDialog({ {blockingIssues.length > 0 ? (
-

Blocking issues

-
+

Blocking issues

+
{blockingIssues.map((issue) => ( -
+
{issue.identifier ?? issue.id} · {issue.title} @@ -147,10 +147,10 @@ export function ExecutionWorkspaceCloseDialog({ {readiness.blockingReasons.length > 0 ? (
-

Blocking reasons

-
    +

    Blocking reasons

    +
      {readiness.blockingReasons.map((reason, idx) => ( -
    • +
    • {reason}
    • ))} @@ -160,10 +160,10 @@ export function ExecutionWorkspaceCloseDialog({ {readiness.warnings.length > 0 ? (
      -

      Warnings

      -
        +

        Warnings

        +
          {readiness.warnings.map((warning, idx) => ( -
        • +
        • {warning}
        • ))} @@ -173,9 +173,9 @@ export function ExecutionWorkspaceCloseDialog({ {readiness.git ? (
          -

          Git status

          -
          -
          +

          Git status

          +
          +
          Branch
          {readiness.git.branchName ?? "Unknown"}
          @@ -209,10 +209,10 @@ export function ExecutionWorkspaceCloseDialog({ {otherLinkedIssues.length > 0 ? (
          -

          Other linked issues

          -
          +

          Other linked issues

          +
          {otherLinkedIssues.map((issue) => ( -
          +
          {issue.identifier ?? issue.id} · {issue.title} @@ -227,10 +227,10 @@ export function ExecutionWorkspaceCloseDialog({ {readiness.runtimeServices.length > 0 ? (
          -

          Attached runtime services

          -
          +

          Attached runtime services

          +
          {readiness.runtimeServices.map((service) => ( -
          +
          {service.serviceName} {service.status} · {service.lifecycle} @@ -245,10 +245,10 @@ export function ExecutionWorkspaceCloseDialog({ ) : null}
          -

          Cleanup actions

          -
          +

          Cleanup actions

          +
          {readiness.plannedActions.map((action, index) => ( -
          +
          {action.label}
          {action.description}
          {action.command ? ( @@ -262,14 +262,14 @@ export function ExecutionWorkspaceCloseDialog({
          {currentStatus === "cleanup_failed" ? ( -
          +
          Cleanup previously failed on this workspace. Retrying close will rerun the cleanup flow and update the workspace status if it succeeds.
          ) : null} {currentStatus === "archived" ? ( -
          +
          This workspace is already archived.
          ) : null} @@ -291,7 +291,7 @@ export function ExecutionWorkspaceCloseDialog({
          ) : null} - +