@agentiffai/design 1.3.26 → 1.3.27

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.
@@ -20,7 +20,7 @@ var tokens = {
20
20
  text: {
21
21
  primary: "#FFFFFF",
22
22
  secondary: "#B4B8C5",
23
- tertiary: "#9CA3AF"},
23
+ tertiary: "#6B7280"},
24
24
  // Teal (brand aligned)
25
25
  error: "#EF4444",
26
26
  warning: "#F59E0B",
@@ -57,8 +57,8 @@ var tokens = {
57
57
  overlay: "rgba(0, 0, 0, 0.5)"},
58
58
  typography: {
59
59
  fontFamily: {
60
- primary: "'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif",
61
- monospace: "'Roboto Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace"
60
+ primary: "'TT Interphases Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif",
61
+ monospace: "'Monaco', 'Menlo', 'Ubuntu Mono', monospace"
62
62
  },
63
63
  fontSize: {
64
64
  xs: "0.875rem",
@@ -133,25 +133,27 @@ var WorkflowCard = ({
133
133
  $connected: integration.connected !== false,
134
134
  $optional: !!integration.optional,
135
135
  title: `${integration.name}${integration.connected === false ? integration.optional ? " (optional)" : " (not connected)" : ""}`,
136
- children: /* @__PURE__ */ jsx(
137
- IntegrationIcon,
138
- {
139
- src: integration.icon,
140
- alt: integration.name
141
- }
142
- )
136
+ children: /* @__PURE__ */ jsx(IntegrationIcon, { src: integration.icon, alt: integration.name })
143
137
  },
144
138
  integration.name
145
139
  )) }),
146
140
  /* @__PURE__ */ jsxs(Indicators, { children: [
147
- estimatedCostPerRun && /* @__PURE__ */ jsx(IndicatorPill, { $variant: "info", title: `Estimated cost: ${estimatedCostPerRun}${estimatedCostPerRun.includes("/") ? "" : " per run"}`, children: /* @__PURE__ */ jsxs(IndicatorText, { children: [
148
- estimatedCostPerRun,
149
- estimatedCostPerRun.includes("/") ? "" : "/run"
150
- ] }) }),
141
+ estimatedCostPerRun && /* @__PURE__ */ jsx(
142
+ IndicatorPill,
143
+ {
144
+ $variant: "info",
145
+ title: `Estimated cost: ${estimatedCostPerRun}${estimatedCostPerRun.includes("/") ? "" : " per run"}`,
146
+ children: /* @__PURE__ */ jsxs(IndicatorText, { children: [
147
+ estimatedCostPerRun,
148
+ estimatedCostPerRun.includes("/") ? "" : "/run"
149
+ ] })
150
+ }
151
+ ),
151
152
  missingCount > 0 && /* @__PURE__ */ jsxs(
152
153
  IndicatorPill,
153
154
  {
154
155
  $variant: "warning",
156
+ "data-testid": "workflow-card-status",
155
157
  title: `${missingCount} integration${missingCount > 1 ? "s" : ""} not connected`,
156
158
  children: [
157
159
  /* @__PURE__ */ jsx(IndicatorDot, { $variant: "warning" }),
@@ -162,10 +164,18 @@ var WorkflowCard = ({
162
164
  ]
163
165
  }
164
166
  ),
165
- needsSetup && /* @__PURE__ */ jsxs(IndicatorPill, { $variant: "warning", title: "Setup required before use", children: [
166
- /* @__PURE__ */ jsx(IndicatorDot, { $variant: "warning" }),
167
- /* @__PURE__ */ jsx(IndicatorText, { children: "Needs Setup" })
168
- ] })
167
+ needsSetup && /* @__PURE__ */ jsxs(
168
+ IndicatorPill,
169
+ {
170
+ $variant: "warning",
171
+ "data-testid": "workflow-card-needs-setup",
172
+ title: "Setup required before use",
173
+ children: [
174
+ /* @__PURE__ */ jsx(IndicatorDot, { $variant: "warning" }),
175
+ /* @__PURE__ */ jsx(IndicatorText, { children: "Needs Setup" })
176
+ ]
177
+ }
178
+ )
169
179
  ] })
170
180
  ] })
171
181
  ]
@@ -567,37 +577,47 @@ var WorkflowErrorAlert = ({
567
577
  return /* @__PURE__ */ jsx(InfoIcon, {});
568
578
  }
569
579
  };
570
- const alertContent = /* @__PURE__ */ jsx(AlertContainer, { variant, severity, className, role: "alert", children: /* @__PURE__ */ jsxs(Header, { children: [
571
- /* @__PURE__ */ jsx(IconContainer, { severity, "aria-hidden": "true", children: getIcon() }),
572
- /* @__PURE__ */ jsxs(Content, { children: [
573
- /* @__PURE__ */ jsx(Title, { children: displayTitle }),
574
- /* @__PURE__ */ jsx(ErrorMessage, { children: errorMessage }),
575
- errorCode && /* @__PURE__ */ jsxs(ErrorCode, { children: [
576
- "Error Code: ",
577
- errorCode
578
- ] }),
579
- timestamp && /* @__PURE__ */ jsx(Timestamp, { children: new Date(timestamp).toLocaleString() }),
580
- showDetails && (stackTrace || typeof error === "object" && error.stack) && /* @__PURE__ */ jsxs(
581
- Details,
582
- {
583
- open: detailsOpen,
584
- onToggle: (e) => setDetailsOpen(e.target.open),
585
- children: [
586
- /* @__PURE__ */ jsxs("summary", { children: [
587
- /* @__PURE__ */ jsx(DetailsIcon, { open: detailsOpen, children: /* @__PURE__ */ jsx(ChevronIcon, {}) }),
588
- "Show Details"
589
- ] }),
590
- /* @__PURE__ */ jsx(StackTrace, { children: stackTrace || (typeof error === "object" ? error.stack : "") })
591
- ]
592
- }
593
- ),
594
- (retryable || onDismiss) && /* @__PURE__ */ jsxs(Actions, { children: [
595
- retryable && onRetry && /* @__PURE__ */ jsx(Button, { variant: "primary", onClick: onRetry, children: "Retry" }),
596
- onDismiss && /* @__PURE__ */ jsx(Button, { variant: "secondary", onClick: handleDismiss, children: "Dismiss" })
580
+ const alertContent = /* @__PURE__ */ jsx(
581
+ AlertContainer,
582
+ {
583
+ variant,
584
+ severity,
585
+ className,
586
+ "data-testid": "error-alert",
587
+ role: "alert",
588
+ children: /* @__PURE__ */ jsxs(Header, { children: [
589
+ /* @__PURE__ */ jsx(IconContainer, { severity, "aria-hidden": "true", children: getIcon() }),
590
+ /* @__PURE__ */ jsxs(Content, { children: [
591
+ /* @__PURE__ */ jsx(Title, { children: displayTitle }),
592
+ /* @__PURE__ */ jsx(ErrorMessage, { children: errorMessage }),
593
+ errorCode && /* @__PURE__ */ jsxs(ErrorCode, { children: [
594
+ "Error Code: ",
595
+ errorCode
596
+ ] }),
597
+ timestamp && /* @__PURE__ */ jsx(Timestamp, { children: new Date(timestamp).toLocaleString() }),
598
+ showDetails && (stackTrace || typeof error === "object" && error.stack) && /* @__PURE__ */ jsxs(
599
+ Details,
600
+ {
601
+ open: detailsOpen,
602
+ onToggle: (e) => setDetailsOpen(e.target.open),
603
+ children: [
604
+ /* @__PURE__ */ jsxs("summary", { children: [
605
+ /* @__PURE__ */ jsx(DetailsIcon, { open: detailsOpen, children: /* @__PURE__ */ jsx(ChevronIcon, {}) }),
606
+ "Show Details"
607
+ ] }),
608
+ /* @__PURE__ */ jsx(StackTrace, { children: stackTrace || (typeof error === "object" ? error.stack : "") })
609
+ ]
610
+ }
611
+ ),
612
+ (retryable || onDismiss) && /* @__PURE__ */ jsxs(Actions, { children: [
613
+ retryable && onRetry && /* @__PURE__ */ jsx(Button, { variant: "primary", onClick: onRetry, children: "Retry" }),
614
+ onDismiss && /* @__PURE__ */ jsx(Button, { variant: "secondary", onClick: handleDismiss, children: "Dismiss" })
615
+ ] })
616
+ ] }),
617
+ variant !== "modal" && onDismiss && /* @__PURE__ */ jsx(CloseButton, { onClick: handleDismiss, "aria-label": "Dismiss alert", children: /* @__PURE__ */ jsx(CloseIcon, {}) })
597
618
  ] })
598
- ] }),
599
- variant !== "modal" && onDismiss && /* @__PURE__ */ jsx(CloseButton, { onClick: handleDismiss, "aria-label": "Dismiss alert", children: /* @__PURE__ */ jsx(CloseIcon, {}) })
600
- ] }) });
619
+ }
620
+ );
601
621
  if (variant === "modal") {
602
622
  return /* @__PURE__ */ jsx(ModalOverlay, { isOpen: isModalOpen, onClick: handleDismiss, children: /* @__PURE__ */ jsxs(ModalContent, { onClick: (e) => e.stopPropagation(), children: [
603
623
  alertContent,
@@ -1068,19 +1088,28 @@ var WorkflowResultPanel = ({
1068
1088
  return /* @__PURE__ */ jsx(EmptyState, { children: "Unsupported variant" });
1069
1089
  }
1070
1090
  };
1071
- return /* @__PURE__ */ jsxs(Panel, { collapsible, expanded, className, children: [
1072
- /* @__PURE__ */ jsxs(Header2, { collapsible, onClick: handleToggle, children: [
1073
- /* @__PURE__ */ jsxs(Title2, { children: [
1074
- title,
1075
- collapsible && /* @__PURE__ */ jsx(CollapseIcon, { expanded, children: /* @__PURE__ */ jsx(ChevronIcon2, {}) })
1076
- ] }),
1077
- /* @__PURE__ */ jsxs(Actions2, { onClick: (e) => e.stopPropagation(), children: [
1078
- onCopy && /* @__PURE__ */ jsx(IconButton, { onClick: onCopy, title: "Copy to clipboard", "aria-label": "Copy to clipboard", children: /* @__PURE__ */ jsx(CopyIcon, {}) }),
1079
- onDownload && /* @__PURE__ */ jsx(IconButton, { onClick: onDownload, title: "Download", "aria-label": "Download results", children: /* @__PURE__ */ jsx(DownloadIcon, {}) })
1080
- ] })
1081
- ] }),
1082
- /* @__PURE__ */ jsx(Content2, { maxHeight, expanded, children: renderContent() })
1083
- ] });
1091
+ return /* @__PURE__ */ jsxs(
1092
+ Panel,
1093
+ {
1094
+ collapsible,
1095
+ expanded,
1096
+ className,
1097
+ "data-testid": "result-panel",
1098
+ children: [
1099
+ /* @__PURE__ */ jsxs(Header2, { collapsible, onClick: handleToggle, children: [
1100
+ /* @__PURE__ */ jsxs(Title2, { children: [
1101
+ title,
1102
+ collapsible && /* @__PURE__ */ jsx(CollapseIcon, { expanded, children: /* @__PURE__ */ jsx(ChevronIcon2, {}) })
1103
+ ] }),
1104
+ /* @__PURE__ */ jsxs(Actions2, { onClick: (e) => e.stopPropagation(), children: [
1105
+ onCopy && /* @__PURE__ */ jsx(IconButton, { onClick: onCopy, title: "Copy to clipboard", "aria-label": "Copy to clipboard", children: /* @__PURE__ */ jsx(CopyIcon, {}) }),
1106
+ onDownload && /* @__PURE__ */ jsx(IconButton, { onClick: onDownload, title: "Download", "aria-label": "Download results", children: /* @__PURE__ */ jsx(DownloadIcon, {}) })
1107
+ ] })
1108
+ ] }),
1109
+ /* @__PURE__ */ jsx(Content2, { maxHeight, expanded, children: renderContent() })
1110
+ ]
1111
+ }
1112
+ );
1084
1113
  };
1085
1114
  WorkflowResultPanel.displayName = "WorkflowResultPanel";
1086
1115
  var spin = keyframes`
@@ -1286,6 +1315,7 @@ var WorkflowStatusBadge = ({
1286
1315
  $status: status,
1287
1316
  $size: size,
1288
1317
  className,
1318
+ "data-testid": "execution-status-badge",
1289
1319
  role: "status",
1290
1320
  "aria-label": displayLabel,
1291
1321
  children: [