@getcatalystiq/agent-plane-ui 0.1.1 → 0.1.2

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.cjs CHANGED
@@ -636,7 +636,8 @@ function RunListPage({ initialData }) {
636
636
  /* @__PURE__ */ jsxRuntime.jsx(Skeleton, { className: "h-96 rounded-lg" })
637
637
  ] });
638
638
  }
639
- const { runs, total } = data;
639
+ const runs = data.data;
640
+ const total = data.has_more ? data.offset + data.limit + 1 : data.offset + runs.length;
640
641
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
641
642
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center mb-6", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-40", children: /* @__PURE__ */ jsxRuntime.jsx(Select, { value: sourceFilter ?? "", onChange: handleSourceChange, children: SOURCES.map((s) => /* @__PURE__ */ jsxRuntime.jsx("option", { value: s.value, children: s.label }, s.value)) }) }) }),
642
643
  /* @__PURE__ */ jsxRuntime.jsxs(AdminTable, { className: "overflow-x-auto", footer: /* @__PURE__ */ jsxRuntime.jsx(
package/dist/index.d.cts CHANGED
@@ -372,8 +372,10 @@ interface RunItem {
372
372
  created_at: string;
373
373
  }
374
374
  interface RunListResponse {
375
- runs: RunItem[];
376
- total: number;
375
+ data: RunItem[];
376
+ limit: number;
377
+ offset: number;
378
+ has_more: boolean;
377
379
  }
378
380
  interface RunListPageProps {
379
381
  /** Optional initial data for SSR hosts */
package/dist/index.d.ts CHANGED
@@ -372,8 +372,10 @@ interface RunItem {
372
372
  created_at: string;
373
373
  }
374
374
  interface RunListResponse {
375
- runs: RunItem[];
376
- total: number;
375
+ data: RunItem[];
376
+ limit: number;
377
+ offset: number;
378
+ has_more: boolean;
377
379
  }
378
380
  interface RunListPageProps {
379
381
  /** Optional initial data for SSR hosts */
package/dist/index.js CHANGED
@@ -610,7 +610,8 @@ function RunListPage({ initialData }) {
610
610
  /* @__PURE__ */ jsx(Skeleton, { className: "h-96 rounded-lg" })
611
611
  ] });
612
612
  }
613
- const { runs, total } = data;
613
+ const runs = data.data;
614
+ const total = data.has_more ? data.offset + data.limit + 1 : data.offset + runs.length;
614
615
  return /* @__PURE__ */ jsxs("div", { children: [
615
616
  /* @__PURE__ */ jsx("div", { className: "flex items-center mb-6", children: /* @__PURE__ */ jsx("div", { className: "w-40", children: /* @__PURE__ */ jsx(Select, { value: sourceFilter ?? "", onChange: handleSourceChange, children: SOURCES.map((s) => /* @__PURE__ */ jsx("option", { value: s.value, children: s.label }, s.value)) }) }) }),
616
617
  /* @__PURE__ */ jsxs(AdminTable, { className: "overflow-x-auto", footer: /* @__PURE__ */ jsx(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getcatalystiq/agent-plane-ui",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Embeddable React component library for AgentPlane",
5
5
  "type": "module",
6
6
  "exports": {