@agentiffai/design 1.3.8 → 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.
@@ -2221,11 +2221,11 @@ function ItemWithLogs({
2221
2221
  setIsExpanded(!isExpanded);
2222
2222
  onRunSelect?.(run.id);
2223
2223
  };
2224
- return /* @__PURE__ */ jsxs(ItemDisclosure, { id: run.id, children: [
2224
+ return /* @__PURE__ */ jsxs(ItemDisclosure, { id: run.id, "data-testid": `run-item-${run.id}`, children: [
2225
2225
  /* @__PURE__ */ jsx(ItemHeader, { slot: "trigger", onClick: handleClick, $isExpanded: isExpanded, children: /* @__PURE__ */ jsxs(ItemContainer, { as: "div", children: [
2226
- /* @__PURE__ */ jsx(ItemIcon, { src: ICONS[run.icon || "loader"], alt: "" }),
2227
- /* @__PURE__ */ jsx(ItemName, { children: run.name }),
2228
- /* @__PURE__ */ jsxs(RunStatus, { $status: run.status, children: [
2226
+ /* @__PURE__ */ jsx(ItemIcon, { src: ICONS[run.icon || "loader"], alt: "", "data-testid": `run-icon-${run.status}` }),
2227
+ /* @__PURE__ */ jsx(ItemName, { "data-testid": "run-name", children: run.name }),
2228
+ /* @__PURE__ */ jsxs(RunStatus, { $status: run.status, "data-testid": `run-status-${run.status}`, children: [
2229
2229
  run.status === "completed" && /* @__PURE__ */ jsx("img", { src: ICONS.checkFill, alt: "", style: { width: "16px", height: "16px" } }),
2230
2230
  run.status === "running" && /* @__PURE__ */ jsx("img", { src: ICONS.hourglass, alt: "", style: { width: "16px", height: "16px" } }),
2231
2231
  run.status === "failed" && /* @__PURE__ */ jsx("img", { src: ICONS.closeFill, alt: "", style: { width: "16px", height: "16px" } })
@@ -2337,8 +2337,8 @@ function RunsTabContent({
2337
2337
  allowsMultipleExpanded: true,
2338
2338
  "aria-label": "Run sections",
2339
2339
  children: [
2340
- /* @__PURE__ */ jsxs(CategoryDisclosure, { id: "executing", children: [
2341
- /* @__PURE__ */ jsx(Heading, { level: 3, children: /* @__PURE__ */ jsxs(CategoryHeader, { slot: "trigger", children: [
2340
+ /* @__PURE__ */ jsxs(CategoryDisclosure, { id: "executing", "data-testid": "category-executing", children: [
2341
+ /* @__PURE__ */ jsx(Heading, { level: 3, children: /* @__PURE__ */ jsxs(CategoryHeader, { slot: "trigger", "data-testid": "category-header-executing", children: [
2342
2342
  /* @__PURE__ */ jsxs(CategoryTitle, { children: [
2343
2343
  /* @__PURE__ */ jsx(HashtagIcon, { src: ICONS.hashtag, alt: "" }),
2344
2344
  /* @__PURE__ */ jsx("span", { children: "EXECUTING" })
@@ -2357,8 +2357,8 @@ function RunsTabContent({
2357
2357
  }
2358
2358
  ) })
2359
2359
  ] }),
2360
- /* @__PURE__ */ jsxs(CategoryDisclosure, { id: "completed", children: [
2361
- /* @__PURE__ */ jsx(Heading, { level: 3, children: /* @__PURE__ */ jsxs(CategoryHeader, { slot: "trigger", children: [
2360
+ /* @__PURE__ */ jsxs(CategoryDisclosure, { id: "completed", "data-testid": "category-completed", children: [
2361
+ /* @__PURE__ */ jsx(Heading, { level: 3, children: /* @__PURE__ */ jsxs(CategoryHeader, { slot: "trigger", "data-testid": "category-header-completed", children: [
2362
2362
  /* @__PURE__ */ jsxs(CategoryTitle, { children: [
2363
2363
  /* @__PURE__ */ jsx(HashtagIcon, { src: ICONS.hashtag, alt: "" }),
2364
2364
  /* @__PURE__ */ jsx("span", { children: "COMPLETED" })
@@ -2377,8 +2377,8 @@ function RunsTabContent({
2377
2377
  }
2378
2378
  ) })
2379
2379
  ] }),
2380
- /* @__PURE__ */ jsxs(CategoryDisclosure, { id: "failed", children: [
2381
- /* @__PURE__ */ jsx(Heading, { level: 3, children: /* @__PURE__ */ jsxs(CategoryHeader, { slot: "trigger", children: [
2380
+ /* @__PURE__ */ jsxs(CategoryDisclosure, { id: "failed", "data-testid": "category-failed", children: [
2381
+ /* @__PURE__ */ jsx(Heading, { level: 3, children: /* @__PURE__ */ jsxs(CategoryHeader, { slot: "trigger", "data-testid": "category-header-failed", children: [
2382
2382
  /* @__PURE__ */ jsxs(CategoryTitle, { children: [
2383
2383
  /* @__PURE__ */ jsx(HashtagIcon, { src: ICONS.hashtag, alt: "" }),
2384
2384
  /* @__PURE__ */ jsx("span", { children: "FAILED" })
@@ -2489,7 +2489,16 @@ function ConnectionsTabContent({
2489
2489
  function Tab({ item, state }) {
2490
2490
  const ref = useRef(null);
2491
2491
  const { tabProps } = useTab({ key: item.key }, state, ref);
2492
- return /* @__PURE__ */ jsx(TabButton, { ...tabProps, ref, $isSelected: state.selectedKey === item.key, children: item.rendered });
2492
+ return /* @__PURE__ */ jsx(
2493
+ TabButton,
2494
+ {
2495
+ ...tabProps,
2496
+ ref,
2497
+ $isSelected: state.selectedKey === item.key,
2498
+ "data-testid": `tab-${item.key}`,
2499
+ children: item.rendered
2500
+ }
2501
+ );
2493
2502
  }
2494
2503
  function TabList({
2495
2504
  state,
@@ -2505,7 +2514,7 @@ function TabPanel({
2505
2514
  }) {
2506
2515
  const ref = useRef(null);
2507
2516
  const { tabPanelProps } = useTabPanel(props, state, ref);
2508
- return /* @__PURE__ */ jsx(TabPanelWrapper, { ...tabPanelProps, ref, children: state.selectedItem?.props.children });
2517
+ return /* @__PURE__ */ jsx(TabPanelWrapper, { ...tabPanelProps, ref, "data-testid": `tabpanel-${state.selectedKey}`, children: state.selectedItem?.props.children });
2509
2518
  }
2510
2519
  function PaneMenus({
2511
2520
  activeTab = "runs",