@agentiffai/design 1.3.7 → 1.3.9

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.
@@ -2227,11 +2227,11 @@ function ItemWithLogs({
2227
2227
  setIsExpanded(!isExpanded);
2228
2228
  onRunSelect?.(run.id);
2229
2229
  };
2230
- return /* @__PURE__ */ jsxRuntime.jsxs(ItemDisclosure, { id: run.id, children: [
2230
+ return /* @__PURE__ */ jsxRuntime.jsxs(ItemDisclosure, { id: run.id, "data-testid": `run-item-${run.id}`, children: [
2231
2231
  /* @__PURE__ */ jsxRuntime.jsx(ItemHeader, { slot: "trigger", onClick: handleClick, $isExpanded: isExpanded, children: /* @__PURE__ */ jsxRuntime.jsxs(ItemContainer, { as: "div", children: [
2232
- /* @__PURE__ */ jsxRuntime.jsx(ItemIcon, { src: ICONS[run.icon || "loader"], alt: "" }),
2233
- /* @__PURE__ */ jsxRuntime.jsx(ItemName, { children: run.name }),
2234
- /* @__PURE__ */ jsxRuntime.jsxs(RunStatus, { $status: run.status, children: [
2232
+ /* @__PURE__ */ jsxRuntime.jsx(ItemIcon, { src: ICONS[run.icon || "loader"], alt: "", "data-testid": `run-icon-${run.status}` }),
2233
+ /* @__PURE__ */ jsxRuntime.jsx(ItemName, { "data-testid": "run-name", children: run.name }),
2234
+ /* @__PURE__ */ jsxRuntime.jsxs(RunStatus, { $status: run.status, "data-testid": `run-status-${run.status}`, children: [
2235
2235
  run.status === "completed" && /* @__PURE__ */ jsxRuntime.jsx("img", { src: ICONS.checkFill, alt: "", style: { width: "16px", height: "16px" } }),
2236
2236
  run.status === "running" && /* @__PURE__ */ jsxRuntime.jsx("img", { src: ICONS.hourglass, alt: "", style: { width: "16px", height: "16px" } }),
2237
2237
  run.status === "failed" && /* @__PURE__ */ jsxRuntime.jsx("img", { src: ICONS.closeFill, alt: "", style: { width: "16px", height: "16px" } })
@@ -2343,8 +2343,8 @@ function RunsTabContent({
2343
2343
  allowsMultipleExpanded: true,
2344
2344
  "aria-label": "Run sections",
2345
2345
  children: [
2346
- /* @__PURE__ */ jsxRuntime.jsxs(CategoryDisclosure, { id: "executing", children: [
2347
- /* @__PURE__ */ jsxRuntime.jsx(reactAriaComponents.Heading, { level: 3, children: /* @__PURE__ */ jsxRuntime.jsxs(CategoryHeader, { slot: "trigger", children: [
2346
+ /* @__PURE__ */ jsxRuntime.jsxs(CategoryDisclosure, { id: "executing", "data-testid": "category-executing", children: [
2347
+ /* @__PURE__ */ jsxRuntime.jsx(reactAriaComponents.Heading, { level: 3, children: /* @__PURE__ */ jsxRuntime.jsxs(CategoryHeader, { slot: "trigger", "data-testid": "category-header-executing", children: [
2348
2348
  /* @__PURE__ */ jsxRuntime.jsxs(CategoryTitle, { children: [
2349
2349
  /* @__PURE__ */ jsxRuntime.jsx(HashtagIcon, { src: ICONS.hashtag, alt: "" }),
2350
2350
  /* @__PURE__ */ jsxRuntime.jsx("span", { children: "EXECUTING" })
@@ -2363,8 +2363,8 @@ function RunsTabContent({
2363
2363
  }
2364
2364
  ) })
2365
2365
  ] }),
2366
- /* @__PURE__ */ jsxRuntime.jsxs(CategoryDisclosure, { id: "completed", children: [
2367
- /* @__PURE__ */ jsxRuntime.jsx(reactAriaComponents.Heading, { level: 3, children: /* @__PURE__ */ jsxRuntime.jsxs(CategoryHeader, { slot: "trigger", children: [
2366
+ /* @__PURE__ */ jsxRuntime.jsxs(CategoryDisclosure, { id: "completed", "data-testid": "category-completed", children: [
2367
+ /* @__PURE__ */ jsxRuntime.jsx(reactAriaComponents.Heading, { level: 3, children: /* @__PURE__ */ jsxRuntime.jsxs(CategoryHeader, { slot: "trigger", "data-testid": "category-header-completed", children: [
2368
2368
  /* @__PURE__ */ jsxRuntime.jsxs(CategoryTitle, { children: [
2369
2369
  /* @__PURE__ */ jsxRuntime.jsx(HashtagIcon, { src: ICONS.hashtag, alt: "" }),
2370
2370
  /* @__PURE__ */ jsxRuntime.jsx("span", { children: "COMPLETED" })
@@ -2383,8 +2383,8 @@ function RunsTabContent({
2383
2383
  }
2384
2384
  ) })
2385
2385
  ] }),
2386
- /* @__PURE__ */ jsxRuntime.jsxs(CategoryDisclosure, { id: "failed", children: [
2387
- /* @__PURE__ */ jsxRuntime.jsx(reactAriaComponents.Heading, { level: 3, children: /* @__PURE__ */ jsxRuntime.jsxs(CategoryHeader, { slot: "trigger", children: [
2386
+ /* @__PURE__ */ jsxRuntime.jsxs(CategoryDisclosure, { id: "failed", "data-testid": "category-failed", children: [
2387
+ /* @__PURE__ */ jsxRuntime.jsx(reactAriaComponents.Heading, { level: 3, children: /* @__PURE__ */ jsxRuntime.jsxs(CategoryHeader, { slot: "trigger", "data-testid": "category-header-failed", children: [
2388
2388
  /* @__PURE__ */ jsxRuntime.jsxs(CategoryTitle, { children: [
2389
2389
  /* @__PURE__ */ jsxRuntime.jsx(HashtagIcon, { src: ICONS.hashtag, alt: "" }),
2390
2390
  /* @__PURE__ */ jsxRuntime.jsx("span", { children: "FAILED" })
@@ -2495,7 +2495,16 @@ function ConnectionsTabContent({
2495
2495
  function Tab({ item, state }) {
2496
2496
  const ref = react.useRef(null);
2497
2497
  const { tabProps } = tabs$1.useTab({ key: item.key }, state, ref);
2498
- return /* @__PURE__ */ jsxRuntime.jsx(TabButton, { ...tabProps, ref, $isSelected: state.selectedKey === item.key, children: item.rendered });
2498
+ return /* @__PURE__ */ jsxRuntime.jsx(
2499
+ TabButton,
2500
+ {
2501
+ ...tabProps,
2502
+ ref,
2503
+ $isSelected: state.selectedKey === item.key,
2504
+ "data-testid": `tab-${item.key}`,
2505
+ children: item.rendered
2506
+ }
2507
+ );
2499
2508
  }
2500
2509
  function TabList({
2501
2510
  state,
@@ -2511,7 +2520,7 @@ function TabPanel({
2511
2520
  }) {
2512
2521
  const ref = react.useRef(null);
2513
2522
  const { tabPanelProps } = tabs$1.useTabPanel(props, state, ref);
2514
- return /* @__PURE__ */ jsxRuntime.jsx(TabPanelWrapper, { ...tabPanelProps, ref, children: state.selectedItem?.props.children });
2523
+ return /* @__PURE__ */ jsxRuntime.jsx(TabPanelWrapper, { ...tabPanelProps, ref, "data-testid": `tabpanel-${state.selectedKey}`, children: state.selectedItem?.props.children });
2515
2524
  }
2516
2525
  function PaneMenus({
2517
2526
  activeTab = "runs",