@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.
package/dist/index.js CHANGED
@@ -2800,11 +2800,11 @@ function ItemWithLogs({
2800
2800
  setIsExpanded(!isExpanded);
2801
2801
  onRunSelect?.(run.id);
2802
2802
  };
2803
- return /* @__PURE__ */ jsxs(ItemDisclosure, { id: run.id, children: [
2803
+ return /* @__PURE__ */ jsxs(ItemDisclosure, { id: run.id, "data-testid": `run-item-${run.id}`, children: [
2804
2804
  /* @__PURE__ */ jsx(ItemHeader, { slot: "trigger", onClick: handleClick, $isExpanded: isExpanded, children: /* @__PURE__ */ jsxs(ItemContainer, { as: "div", children: [
2805
- /* @__PURE__ */ jsx(ItemIcon, { src: ICONS[run.icon || "loader"], alt: "" }),
2806
- /* @__PURE__ */ jsx(ItemName, { children: run.name }),
2807
- /* @__PURE__ */ jsxs(RunStatus, { $status: run.status, children: [
2805
+ /* @__PURE__ */ jsx(ItemIcon, { src: ICONS[run.icon || "loader"], alt: "", "data-testid": `run-icon-${run.status}` }),
2806
+ /* @__PURE__ */ jsx(ItemName, { "data-testid": "run-name", children: run.name }),
2807
+ /* @__PURE__ */ jsxs(RunStatus, { $status: run.status, "data-testid": `run-status-${run.status}`, children: [
2808
2808
  run.status === "completed" && /* @__PURE__ */ jsx("img", { src: ICONS.checkFill, alt: "", style: { width: "16px", height: "16px" } }),
2809
2809
  run.status === "running" && /* @__PURE__ */ jsx("img", { src: ICONS.hourglass, alt: "", style: { width: "16px", height: "16px" } }),
2810
2810
  run.status === "failed" && /* @__PURE__ */ jsx("img", { src: ICONS.closeFill, alt: "", style: { width: "16px", height: "16px" } })
@@ -2916,8 +2916,8 @@ function RunsTabContent({
2916
2916
  allowsMultipleExpanded: true,
2917
2917
  "aria-label": "Run sections",
2918
2918
  children: [
2919
- /* @__PURE__ */ jsxs(CategoryDisclosure, { id: "executing", children: [
2920
- /* @__PURE__ */ jsx(Heading, { level: 3, children: /* @__PURE__ */ jsxs(CategoryHeader, { slot: "trigger", children: [
2919
+ /* @__PURE__ */ jsxs(CategoryDisclosure, { id: "executing", "data-testid": "category-executing", children: [
2920
+ /* @__PURE__ */ jsx(Heading, { level: 3, children: /* @__PURE__ */ jsxs(CategoryHeader, { slot: "trigger", "data-testid": "category-header-executing", children: [
2921
2921
  /* @__PURE__ */ jsxs(CategoryTitle, { children: [
2922
2922
  /* @__PURE__ */ jsx(HashtagIcon, { src: ICONS.hashtag, alt: "" }),
2923
2923
  /* @__PURE__ */ jsx("span", { children: "EXECUTING" })
@@ -2936,8 +2936,8 @@ function RunsTabContent({
2936
2936
  }
2937
2937
  ) })
2938
2938
  ] }),
2939
- /* @__PURE__ */ jsxs(CategoryDisclosure, { id: "completed", children: [
2940
- /* @__PURE__ */ jsx(Heading, { level: 3, children: /* @__PURE__ */ jsxs(CategoryHeader, { slot: "trigger", children: [
2939
+ /* @__PURE__ */ jsxs(CategoryDisclosure, { id: "completed", "data-testid": "category-completed", children: [
2940
+ /* @__PURE__ */ jsx(Heading, { level: 3, children: /* @__PURE__ */ jsxs(CategoryHeader, { slot: "trigger", "data-testid": "category-header-completed", children: [
2941
2941
  /* @__PURE__ */ jsxs(CategoryTitle, { children: [
2942
2942
  /* @__PURE__ */ jsx(HashtagIcon, { src: ICONS.hashtag, alt: "" }),
2943
2943
  /* @__PURE__ */ jsx("span", { children: "COMPLETED" })
@@ -2956,8 +2956,8 @@ function RunsTabContent({
2956
2956
  }
2957
2957
  ) })
2958
2958
  ] }),
2959
- /* @__PURE__ */ jsxs(CategoryDisclosure, { id: "failed", children: [
2960
- /* @__PURE__ */ jsx(Heading, { level: 3, children: /* @__PURE__ */ jsxs(CategoryHeader, { slot: "trigger", children: [
2959
+ /* @__PURE__ */ jsxs(CategoryDisclosure, { id: "failed", "data-testid": "category-failed", children: [
2960
+ /* @__PURE__ */ jsx(Heading, { level: 3, children: /* @__PURE__ */ jsxs(CategoryHeader, { slot: "trigger", "data-testid": "category-header-failed", children: [
2961
2961
  /* @__PURE__ */ jsxs(CategoryTitle, { children: [
2962
2962
  /* @__PURE__ */ jsx(HashtagIcon, { src: ICONS.hashtag, alt: "" }),
2963
2963
  /* @__PURE__ */ jsx("span", { children: "FAILED" })
@@ -3068,7 +3068,16 @@ function ConnectionsTabContent({
3068
3068
  function Tab({ item, state }) {
3069
3069
  const ref = useRef(null);
3070
3070
  const { tabProps } = useTab({ key: item.key }, state, ref);
3071
- return /* @__PURE__ */ jsx(TabButton, { ...tabProps, ref, $isSelected: state.selectedKey === item.key, children: item.rendered });
3071
+ return /* @__PURE__ */ jsx(
3072
+ TabButton,
3073
+ {
3074
+ ...tabProps,
3075
+ ref,
3076
+ $isSelected: state.selectedKey === item.key,
3077
+ "data-testid": `tab-${item.key}`,
3078
+ children: item.rendered
3079
+ }
3080
+ );
3072
3081
  }
3073
3082
  function TabList({
3074
3083
  state,
@@ -3084,7 +3093,7 @@ function TabPanel({
3084
3093
  }) {
3085
3094
  const ref = useRef(null);
3086
3095
  const { tabPanelProps } = useTabPanel(props, state, ref);
3087
- return /* @__PURE__ */ jsx(TabPanelWrapper, { ...tabPanelProps, ref, children: state.selectedItem?.props.children });
3096
+ return /* @__PURE__ */ jsx(TabPanelWrapper, { ...tabPanelProps, ref, "data-testid": `tabpanel-${state.selectedKey}`, children: state.selectedItem?.props.children });
3088
3097
  }
3089
3098
  function PaneMenus({
3090
3099
  activeTab = "runs",