@getcatalystiq/agent-plane-ui 0.1.0 → 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 +3 -1
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -113,6 +113,7 @@ function useApi(key, fetcher, options) {
|
|
|
113
113
|
() => fetcher(client),
|
|
114
114
|
{
|
|
115
115
|
revalidateOnFocus: false,
|
|
116
|
+
errorRetryCount: 3,
|
|
116
117
|
onError: (err) => {
|
|
117
118
|
if (onAuthError && err && typeof err === "object" && "status" in err && err.status === 401) {
|
|
118
119
|
onAuthError(err instanceof Error ? err : new Error(String(err)));
|
|
@@ -635,7 +636,8 @@ function RunListPage({ initialData }) {
|
|
|
635
636
|
/* @__PURE__ */ jsxRuntime.jsx(Skeleton, { className: "h-96 rounded-lg" })
|
|
636
637
|
] });
|
|
637
638
|
}
|
|
638
|
-
const
|
|
639
|
+
const runs = data.data;
|
|
640
|
+
const total = data.has_more ? data.offset + data.limit + 1 : data.offset + runs.length;
|
|
639
641
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
640
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)) }) }) }),
|
|
641
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
|
-
|
|
376
|
-
|
|
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
|
-
|
|
376
|
-
|
|
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
|
@@ -87,6 +87,7 @@ function useApi(key, fetcher, options) {
|
|
|
87
87
|
() => fetcher(client),
|
|
88
88
|
{
|
|
89
89
|
revalidateOnFocus: false,
|
|
90
|
+
errorRetryCount: 3,
|
|
90
91
|
onError: (err) => {
|
|
91
92
|
if (onAuthError && err && typeof err === "object" && "status" in err && err.status === 401) {
|
|
92
93
|
onAuthError(err instanceof Error ? err : new Error(String(err)));
|
|
@@ -609,7 +610,8 @@ function RunListPage({ initialData }) {
|
|
|
609
610
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-96 rounded-lg" })
|
|
610
611
|
] });
|
|
611
612
|
}
|
|
612
|
-
const
|
|
613
|
+
const runs = data.data;
|
|
614
|
+
const total = data.has_more ? data.offset + data.limit + 1 : data.offset + runs.length;
|
|
613
615
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
614
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)) }) }) }),
|
|
615
617
|
/* @__PURE__ */ jsxs(AdminTable, { className: "overflow-x-auto", footer: /* @__PURE__ */ jsx(
|