@synergenius/flow-weaver-pack-weaver 0.9.81 → 0.9.83

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -383,7 +383,7 @@ function SubtaskRowItem({ sub, onBack }) {
383
383
  }, `#${sub.attempt}`)
384
384
  );
385
385
  }
386
- function TaskDetailView({ taskId, onBack }) {
386
+ function TaskDetailView({ taskId, onBack, onEdit }) {
387
387
  const ctx = usePackWorkspace();
388
388
  const { callTool } = ctx;
389
389
  const packId = ctx.packId;
@@ -479,7 +479,7 @@ function TaskDetailView({ taskId, onBack }) {
479
479
  const ok = await ctx.confirm("Cancel this task? It cannot be undone.", {
480
480
  title: "Cancel Task",
481
481
  confirmLabel: "Cancel Task",
482
- state: "warning"
482
+ state: "danger"
483
483
  });
484
484
  if (!ok) return;
485
485
  setActionLoading("cancel");
@@ -660,25 +660,36 @@ function TaskDetailView({ taskId, onBack }) {
660
660
  variant: "column-stretch-start-nowrap-6",
661
661
  style: { ...headerStyle, padding: "12px 16px", borderBottom: "1px solid var(--color-border-default)" }
662
662
  },
663
- // Top row: back + title + status
663
+ // Top row: back + title + status + edit
664
664
  React2.createElement(
665
665
  Flex,
666
- { variant: "row-center-start-nowrap-8" },
667
- React2.createElement(IconButton, {
668
- icon: "back",
666
+ { variant: "row-center-space-between-nowrap-8" },
667
+ React2.createElement(
668
+ Flex,
669
+ { variant: "row-center-start-nowrap-8", style: { flex: 1, minWidth: 0 } },
670
+ React2.createElement(IconButton, {
671
+ icon: "back",
672
+ size: "xs",
673
+ variant: "clear",
674
+ onClick: onBack
675
+ }),
676
+ React2.createElement(StatusIcon, {
677
+ status: statusToIcon[task.status] || "pending",
678
+ size: "sm"
679
+ }),
680
+ React2.createElement(Typography, {
681
+ variant: "caption-thick",
682
+ color: "color-text-high",
683
+ style: { flex: 1, minWidth: 0, wordBreak: "break-word" }
684
+ }, task.title || "Untitled Task")
685
+ ),
686
+ onEdit && React2.createElement(IconButton, {
687
+ icon: "edit",
669
688
  size: "xs",
670
689
  variant: "clear",
671
- onClick: onBack
672
- }),
673
- React2.createElement(StatusIcon, {
674
- status: statusToIcon[task.status] || "pending",
675
- size: "sm"
676
- }),
677
- React2.createElement(Typography, {
678
- variant: "caption-thick",
679
- color: "color-text-high",
680
- style: { flex: 1, minWidth: 0, wordBreak: "break-word" }
681
- }, task.title || "Untitled Task")
690
+ onClick: () => onEdit(taskId),
691
+ title: "Edit task"
692
+ })
682
693
  ),
683
694
  // Meta row: status tag, assigned profile, priority, attempts
684
695
  React2.createElement(