@burdenoff/fluidgrids-fe-sdk 2026.1029.6 → 2026.1029.8
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/ExecutionDetailPage-H6R3ZIXN.js +22 -0
- package/dist/{WorkflowsList-VA2HRYFG.js → ExecutionsListPage-TLD2E442.js} +9 -9
- package/dist/{WorkflowBuilder-PORH3H6P.js → WorkflowBuilder-XVHY7XWJ.js} +12 -12
- package/dist/{ExecutionsListPage-SCPWUXUL.js → WorkflowsList-3GXXXURR.js} +9 -8
- package/dist/{chunk-MNY2UNQH.js → chunk-2NG5VZWI.js} +1 -1
- package/dist/{chunk-CY6KX4RG.js → chunk-6AMNEX2Y.js} +6 -1
- package/dist/{chunk-LPGQTSI2.js → chunk-6CKDGT2N.js} +3 -3
- package/dist/{chunk-U6KI4AKI.js → chunk-6TMLIQHB.js} +199 -1
- package/dist/{chunk-LTVAUZ3M.js → chunk-G3KZOX52.js} +3 -3
- package/dist/{chunk-7PP6CRXS.js → chunk-GQTEHWWY.js} +26 -8
- package/dist/{chunk-LB62TAF7.js → chunk-H4AZBUWM.js} +1 -1
- package/dist/{chunk-57RS7DXZ.js → chunk-HWEKWYXQ.js} +117 -8
- package/dist/{chunk-7B2GRTUL.js → chunk-LJGC7RAL.js} +164 -101
- package/dist/{chunk-4TGUNOQQ.js → chunk-NAYPOEYM.js} +391 -112
- package/dist/{chunk-BWAUFSHC.js → chunk-NNPXN4DI.js} +5 -5
- package/dist/{chunk-QZM6EDGK.js → chunk-NUBPALBK.js} +1 -1
- package/dist/{chunk-YSUSSIWU.js → chunk-R7VHURPQ.js} +1 -1
- package/dist/{chunk-7SSZUX6E.js → chunk-S4JYBJ4X.js} +2 -2
- package/dist/{chunk-WTGBHE3J.js → chunk-T22LICGX.js} +118 -96
- package/dist/{chunk-63ZMEHZ4.js → chunk-TJ6RUV4R.js} +937 -26
- package/dist/{chunk-H364USFF.js → chunk-UIDJT3YK.js} +1 -1
- package/dist/{chunk-4XAPSIHY.js → chunk-UWNCFMHV.js} +183 -26
- package/dist/{chunk-MDPBO52Q.js → chunk-V5PA5KGV.js} +2 -2
- package/dist/{chunk-MQI7NH4Z.js → chunk-VEZ7G2FE.js} +145 -8
- package/dist/{chunk-YHTRCQ5M.js → chunk-WEXO3KAY.js} +4 -4
- package/dist/{chunk-7LFAWWVF.js → chunk-WTP343PG.js} +2 -2
- package/dist/{chunk-Z6EWB5ZG.js → chunk-X2J4ZXKD.js} +1492 -98
- package/dist/{chunk-6XZCYLAQ.js → chunk-XJBCRDWZ.js} +3 -3
- package/dist/{chunk-AVMI3XLM.js → chunk-XMKYZP6Q.js} +282 -18
- package/dist/{chunk-5GD6OXYW.js → chunk-Z6I6A47T.js} +1 -1
- package/dist/{config-T7BQ7AO2.js → config-VM7FTHMZ.js} +1 -1
- package/dist/executions.js +13 -13
- package/dist/history.js +5 -5
- package/dist/index.d.ts +2588 -26
- package/dist/index.js +36 -36
- package/dist/nodes.js +2 -2
- package/dist/observability.js +7 -7
- package/dist/settings.js +7 -7
- package/dist/templates.js +11 -11
- package/dist/{workflow-builder-CZFczcE7.d.ts → workflow-builder-BMGVSwpy.d.ts} +7 -0
- package/dist/workflow-builder.d.ts +1 -1
- package/dist/workflow-builder.js +13 -13
- package/dist/workflows-list.js +9 -9
- package/package.json +1 -1
- package/dist/ExecutionDetailPage-M6JAWY4Q.js +0 -21
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Card, FluidGridsMark } from './chunk-
|
|
1
|
+
import { Card, FluidGridsMark } from './chunk-X2J4ZXKD.js';
|
|
2
2
|
import { Input } from './chunk-IEVSFCFS.js';
|
|
3
3
|
import { Button } from './chunk-BQXVT32O.js';
|
|
4
|
-
import { useWorkflowDefinition } from './chunk-
|
|
5
|
-
import { FluidGridsProvider, useFlowStore } from './chunk-
|
|
4
|
+
import { useWorkflowDefinition } from './chunk-G3KZOX52.js';
|
|
5
|
+
import { FluidGridsProvider, useFlowStore } from './chunk-NAYPOEYM.js';
|
|
6
6
|
import { cn } from './chunk-JL7CASN5.js';
|
|
7
7
|
import { useTr } from './chunk-UULVIT25.js';
|
|
8
8
|
import { useState, useRef, useEffect, useCallback } from 'react';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ActionPoliciesTab } from './chunk-
|
|
2
|
-
import { LogStreamingTab } from './chunk-
|
|
3
|
-
import { AgentsTab } from './chunk-
|
|
1
|
+
import { ActionPoliciesTab } from './chunk-UIDJT3YK.js';
|
|
2
|
+
import { LogStreamingTab } from './chunk-R7VHURPQ.js';
|
|
3
|
+
import { AgentsTab } from './chunk-NUBPALBK.js';
|
|
4
4
|
import { FluidGridsDocsLink } from './chunk-4VJ3MDOV.js';
|
|
5
|
-
import { useFlowStore, useFluidGridsFlag, FLUIDGRIDS_FLAGS, useSaveStatusStore, useFluidGridsPermission, FLUIDGRIDS_PERMISSIONS, throwIfResultError, describeOperationError, useConnections } from './chunk-
|
|
5
|
+
import { useFlowStore, useFluidGridsFlag, FLUIDGRIDS_FLAGS, useSaveStatusStore, useFluidGridsPermission, FLUIDGRIDS_PERMISSIONS, findSaveConflict, useDurableParityEnabled, throwIfResultError, describeOperationError, useConnections } from './chunk-NAYPOEYM.js';
|
|
6
6
|
import { getGlobalStoreClient } from './chunk-PXIFUMLA.js';
|
|
7
|
-
import { getFluidGridsConfig } from './chunk-
|
|
8
|
-
import { useWorkflowDefinitionQuery, useUpdateWorkflowDefinitionMutation, useWorkflowDefinitionsQuery } from './chunk-
|
|
7
|
+
import { getFluidGridsConfig } from './chunk-6AMNEX2Y.js';
|
|
8
|
+
import { useWorkflowDefinitionQuery, useUpdateWorkflowDefinitionMutation, useWorkflowDefinitionsQuery, DurableHistoryCapsDocument, UpdateDurableHistoryCapsDocument } from './chunk-GQTEHWWY.js';
|
|
9
9
|
import { useTr } from './chunk-UULVIT25.js';
|
|
10
10
|
import { getFluidGridsClient } from './chunk-NTWG3CJX.js';
|
|
11
11
|
import { useState, useMemo, useEffect, useCallback } from 'react';
|
|
@@ -14,7 +14,7 @@ import { Icon } from '@iconify/react';
|
|
|
14
14
|
import { Button } from '@burdenoff/fe-libs/button';
|
|
15
15
|
import { Tabs, TabsList, TabsTrigger, TabsContent, Input, Switch, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, Label, Card, CardHeader, Badge, Checkbox, TooltipProvider, Tooltip, TooltipTrigger, TooltipContent } from '@burdenoff/fe-libs/ui';
|
|
16
16
|
import { toast } from 'sonner';
|
|
17
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
17
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
18
18
|
import { gql } from '@apollo/client';
|
|
19
19
|
import { resolveExternalGatewayUrls } from '@burdenoff/fe-libs/shared/config';
|
|
20
20
|
import { cn } from '@burdenoff/fe-libs/utils';
|
|
@@ -135,9 +135,255 @@ function parseBoundedInt(value, range) {
|
|
|
135
135
|
if (!Number.isFinite(parsed)) return void 0;
|
|
136
136
|
return Math.min(range.max, Math.max(range.min, Math.trunc(parsed)));
|
|
137
137
|
}
|
|
138
|
+
async function fetchDurableHistoryCaps() {
|
|
139
|
+
const result = await getFluidGridsClient().query({ query: DurableHistoryCapsDocument, fetchPolicy: "network-only" });
|
|
140
|
+
throwIfResultError(result);
|
|
141
|
+
const settings = result.data?.workflowExecutionSettings;
|
|
142
|
+
return {
|
|
143
|
+
maxHistoryEvents: settings?.maxHistoryEvents ?? null,
|
|
144
|
+
maxHistoryBytes: settings?.maxHistoryBytes ?? null
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
async function saveDurableHistoryCaps(caps) {
|
|
148
|
+
const variables = {};
|
|
149
|
+
if (caps.maxHistoryEvents !== void 0)
|
|
150
|
+
variables.maxHistoryEvents = caps.maxHistoryEvents;
|
|
151
|
+
if (caps.maxHistoryBytes !== void 0)
|
|
152
|
+
variables.maxHistoryBytes = caps.maxHistoryBytes;
|
|
153
|
+
const result = await getFluidGridsClient().mutate({ mutation: UpdateDurableHistoryCapsDocument, variables });
|
|
154
|
+
throwIfResultError(result);
|
|
155
|
+
const saved = result.data?.updateWorkflowExecutionSettings;
|
|
156
|
+
if (!saved) throw new Error("No settings returned");
|
|
157
|
+
return {
|
|
158
|
+
maxHistoryEvents: saved.maxHistoryEvents ?? null,
|
|
159
|
+
maxHistoryBytes: saved.maxHistoryBytes ?? null
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
function useDurableHistoryCaps(enabled) {
|
|
163
|
+
const [caps, setCaps] = useState(null);
|
|
164
|
+
const [error, setError] = useState(null);
|
|
165
|
+
useEffect(() => {
|
|
166
|
+
let cancelled = false;
|
|
167
|
+
fetchDurableHistoryCaps().then((next) => {
|
|
168
|
+
if (cancelled) return;
|
|
169
|
+
setCaps(next);
|
|
170
|
+
setError(null);
|
|
171
|
+
}).catch((err) => {
|
|
172
|
+
if (!cancelled) setError(describeOperationError(err));
|
|
173
|
+
});
|
|
174
|
+
return () => {
|
|
175
|
+
cancelled = true;
|
|
176
|
+
};
|
|
177
|
+
}, [enabled]);
|
|
178
|
+
const save = useCallback(async (next) => {
|
|
179
|
+
const saved = await saveDurableHistoryCaps(next);
|
|
180
|
+
setCaps(saved);
|
|
181
|
+
return saved;
|
|
182
|
+
}, []);
|
|
183
|
+
return { caps: caps , error: error , save };
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
// src/modules/settings/utils/history-caps.ts
|
|
187
|
+
var HISTORY_EVENTS_RANGE = { min: 1e3, max: 5e4 };
|
|
188
|
+
var HISTORY_MIB_RANGE = { min: 1, max: 50 };
|
|
189
|
+
var MIB = 1024 * 1024;
|
|
190
|
+
function parseCap(raw, range) {
|
|
191
|
+
const value = raw.trim();
|
|
192
|
+
if (!value) return { ok: true, value: null };
|
|
193
|
+
if (!/^\d+$/.test(value)) return { ok: false, ...range };
|
|
194
|
+
const parsed = Number(value);
|
|
195
|
+
if (parsed < range.min || parsed > range.max) return { ok: false, ...range };
|
|
196
|
+
return { ok: true, value: parsed };
|
|
197
|
+
}
|
|
198
|
+
function bytesToMibText(bytes) {
|
|
199
|
+
if (bytes === null || bytes === void 0 || !Number.isFinite(bytes))
|
|
200
|
+
return "";
|
|
201
|
+
return String(Number((bytes / MIB).toFixed(2)));
|
|
202
|
+
}
|
|
203
|
+
function historyCapChanges(loaded, eventsText, mibText) {
|
|
204
|
+
const changes = {};
|
|
205
|
+
const loadedEvents = loaded.maxHistoryEvents === null ? "" : String(loaded.maxHistoryEvents);
|
|
206
|
+
if (eventsText.trim() !== loadedEvents) {
|
|
207
|
+
const parsed = parseCap(eventsText, HISTORY_EVENTS_RANGE);
|
|
208
|
+
if (!parsed.ok) return { ok: false };
|
|
209
|
+
changes.maxHistoryEvents = parsed.value;
|
|
210
|
+
}
|
|
211
|
+
if (mibText.trim() !== bytesToMibText(loaded.maxHistoryBytes)) {
|
|
212
|
+
const parsed = parseCap(mibText, HISTORY_MIB_RANGE);
|
|
213
|
+
if (!parsed.ok) return { ok: false };
|
|
214
|
+
changes.maxHistoryBytes = parsed.value === null ? null : parsed.value * MIB;
|
|
215
|
+
}
|
|
216
|
+
return { ok: true, changes };
|
|
217
|
+
}
|
|
218
|
+
function DurableHistoryCapsCard({ canEdit }) {
|
|
219
|
+
const tr = useTr();
|
|
220
|
+
const { caps, error, save } = useDurableHistoryCaps(true);
|
|
221
|
+
const [events, setEvents] = useState("");
|
|
222
|
+
const [mib, setMib] = useState("");
|
|
223
|
+
const [saving, setSaving] = useState(false);
|
|
224
|
+
const locked = !caps || saving || !canEdit;
|
|
225
|
+
useEffect(() => {
|
|
226
|
+
if (!caps) return;
|
|
227
|
+
setEvents(
|
|
228
|
+
caps.maxHistoryEvents === null ? "" : String(caps.maxHistoryEvents)
|
|
229
|
+
);
|
|
230
|
+
setMib(bytesToMibText(caps.maxHistoryBytes));
|
|
231
|
+
}, [caps]);
|
|
232
|
+
const handleSave = async () => {
|
|
233
|
+
if (!caps) return;
|
|
234
|
+
const parsed = historyCapChanges(caps, events, mib);
|
|
235
|
+
if (!parsed.ok) {
|
|
236
|
+
toast.error(
|
|
237
|
+
tr(
|
|
238
|
+
"fluidgrids.settings.historyCaps.invalid",
|
|
239
|
+
"Enter {{eventsMin}} to {{eventsMax}} events and {{mibMin}} to {{mibMax}} MiB, or leave a field empty for the plan ceiling.",
|
|
240
|
+
{
|
|
241
|
+
eventsMin: HISTORY_EVENTS_RANGE.min,
|
|
242
|
+
eventsMax: HISTORY_EVENTS_RANGE.max,
|
|
243
|
+
mibMin: HISTORY_MIB_RANGE.min,
|
|
244
|
+
mibMax: HISTORY_MIB_RANGE.max
|
|
245
|
+
}
|
|
246
|
+
)
|
|
247
|
+
);
|
|
248
|
+
return;
|
|
249
|
+
}
|
|
250
|
+
setSaving(true);
|
|
251
|
+
try {
|
|
252
|
+
await save(parsed.changes);
|
|
253
|
+
toast.success(
|
|
254
|
+
tr("fluidgrids.settings.historyCaps.saved", "History caps saved")
|
|
255
|
+
);
|
|
256
|
+
} catch (err) {
|
|
257
|
+
toast.error(
|
|
258
|
+
tr(
|
|
259
|
+
"fluidgrids.settings.runData.saveFailedToast",
|
|
260
|
+
"Failed to save settings"
|
|
261
|
+
),
|
|
262
|
+
{ description: describeOperationError(err) }
|
|
263
|
+
);
|
|
264
|
+
} finally {
|
|
265
|
+
setSaving(false);
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
return /* @__PURE__ */ jsxs(
|
|
269
|
+
"section",
|
|
270
|
+
{
|
|
271
|
+
"data-testid": "durable-history-caps",
|
|
272
|
+
className: "mt-8 border-t border-border-secondary pt-6",
|
|
273
|
+
children: [
|
|
274
|
+
/* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold text-text-primary", children: tr(
|
|
275
|
+
"fluidgrids.settings.historyCaps.title",
|
|
276
|
+
"Durable-function history caps"
|
|
277
|
+
) }),
|
|
278
|
+
/* @__PURE__ */ jsx("p", { className: "mt-1 text-xs text-text-secondary", children: tr(
|
|
279
|
+
"fluidgrids.settings.historyCaps.intro",
|
|
280
|
+
"The most events and inline bytes a new durable-function run may record. Leave a field empty to use your plan's ceiling. Runs keep the caps they started with."
|
|
281
|
+
) }),
|
|
282
|
+
error ? /* @__PURE__ */ jsxs("p", { className: "mt-3 text-sm text-status-error-text", role: "alert", children: [
|
|
283
|
+
tr(
|
|
284
|
+
"fluidgrids.settings.historyCaps.loadFailed",
|
|
285
|
+
"Could not load the history caps:"
|
|
286
|
+
),
|
|
287
|
+
" ",
|
|
288
|
+
error
|
|
289
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
290
|
+
/* @__PURE__ */ jsxs("div", { className: "divide-y divide-border-secondary", children: [
|
|
291
|
+
/* @__PURE__ */ jsx(
|
|
292
|
+
SettingRow,
|
|
293
|
+
{
|
|
294
|
+
label: tr(
|
|
295
|
+
"fluidgrids.settings.historyCaps.eventsLabel",
|
|
296
|
+
"Events per run"
|
|
297
|
+
),
|
|
298
|
+
description: tr(
|
|
299
|
+
"fluidgrids.settings.historyCaps.eventsDescription",
|
|
300
|
+
"{{min}} to {{max}}; the run is told to continue as new at 80%.",
|
|
301
|
+
{
|
|
302
|
+
min: HISTORY_EVENTS_RANGE.min,
|
|
303
|
+
max: HISTORY_EVENTS_RANGE.max
|
|
304
|
+
}
|
|
305
|
+
),
|
|
306
|
+
children: /* @__PURE__ */ jsx(
|
|
307
|
+
Input,
|
|
308
|
+
{
|
|
309
|
+
type: "number",
|
|
310
|
+
min: HISTORY_EVENTS_RANGE.min,
|
|
311
|
+
max: HISTORY_EVENTS_RANGE.max,
|
|
312
|
+
value: events,
|
|
313
|
+
placeholder: tr(
|
|
314
|
+
"fluidgrids.settings.historyCaps.planCeiling",
|
|
315
|
+
"Plan ceiling"
|
|
316
|
+
),
|
|
317
|
+
"aria-label": tr(
|
|
318
|
+
"fluidgrids.settings.historyCaps.eventsLabel",
|
|
319
|
+
"Events per run"
|
|
320
|
+
),
|
|
321
|
+
onChange: (e) => setEvents(e.target.value),
|
|
322
|
+
disabled: locked,
|
|
323
|
+
className: "w-[140px] text-right",
|
|
324
|
+
"data-testid": "history-caps-events"
|
|
325
|
+
}
|
|
326
|
+
)
|
|
327
|
+
}
|
|
328
|
+
),
|
|
329
|
+
/* @__PURE__ */ jsx(
|
|
330
|
+
SettingRow,
|
|
331
|
+
{
|
|
332
|
+
label: tr(
|
|
333
|
+
"fluidgrids.settings.historyCaps.bytesLabel",
|
|
334
|
+
"Inline history size"
|
|
335
|
+
),
|
|
336
|
+
description: tr(
|
|
337
|
+
"fluidgrids.settings.historyCaps.bytesDescription",
|
|
338
|
+
"{{min}} to {{max}} MiB of event payloads kept inline.",
|
|
339
|
+
{ min: HISTORY_MIB_RANGE.min, max: HISTORY_MIB_RANGE.max }
|
|
340
|
+
),
|
|
341
|
+
children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
342
|
+
/* @__PURE__ */ jsx(
|
|
343
|
+
Input,
|
|
344
|
+
{
|
|
345
|
+
type: "number",
|
|
346
|
+
min: HISTORY_MIB_RANGE.min,
|
|
347
|
+
max: HISTORY_MIB_RANGE.max,
|
|
348
|
+
value: mib,
|
|
349
|
+
placeholder: tr(
|
|
350
|
+
"fluidgrids.settings.historyCaps.planCeiling",
|
|
351
|
+
"Plan ceiling"
|
|
352
|
+
),
|
|
353
|
+
"aria-label": tr(
|
|
354
|
+
"fluidgrids.settings.historyCaps.bytesLabel",
|
|
355
|
+
"Inline history size"
|
|
356
|
+
),
|
|
357
|
+
onChange: (e) => setMib(e.target.value),
|
|
358
|
+
disabled: locked,
|
|
359
|
+
className: "w-[100px] text-right",
|
|
360
|
+
"data-testid": "history-caps-mib"
|
|
361
|
+
}
|
|
362
|
+
),
|
|
363
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs text-text-secondary", children: "MiB" })
|
|
364
|
+
] })
|
|
365
|
+
}
|
|
366
|
+
)
|
|
367
|
+
] }),
|
|
368
|
+
/* @__PURE__ */ jsx("div", { className: "mt-4 flex justify-end", children: /* @__PURE__ */ jsx(
|
|
369
|
+
Button,
|
|
370
|
+
{
|
|
371
|
+
"data-agent": "confirm",
|
|
372
|
+
onClick: () => void handleSave(),
|
|
373
|
+
disabled: locked,
|
|
374
|
+
"data-testid": "history-caps-save",
|
|
375
|
+
children: saving ? tr("fluidgrids.settings.runData.saving", "Saving\u2026") : tr("fluidgrids.settings.historyCaps.save", "Save caps")
|
|
376
|
+
}
|
|
377
|
+
) })
|
|
378
|
+
] })
|
|
379
|
+
]
|
|
380
|
+
}
|
|
381
|
+
);
|
|
382
|
+
}
|
|
138
383
|
function RunDataTab() {
|
|
139
384
|
const tr = useTr();
|
|
140
385
|
const { settings, loading, error, save } = useRunDataSettings();
|
|
386
|
+
const parityEnabled = useDurableParityEnabled();
|
|
141
387
|
const [form, setForm] = useState(null);
|
|
142
388
|
const [saving, setSaving] = useState(false);
|
|
143
389
|
const { allowed: canEdit } = useFluidGridsPermission(
|
|
@@ -375,7 +621,8 @@ function RunDataTab() {
|
|
|
375
621
|
disabled: locked,
|
|
376
622
|
children: saving ? tr("fluidgrids.settings.runData.saving", "Saving\u2026") : tr("fluidgrids.settings.runData.save", "Save")
|
|
377
623
|
}
|
|
378
|
-
) })
|
|
624
|
+
) }),
|
|
625
|
+
parityEnabled && /* @__PURE__ */ jsx(DurableHistoryCapsCard, { canEdit })
|
|
379
626
|
] });
|
|
380
627
|
}
|
|
381
628
|
|
|
@@ -1907,17 +2154,34 @@ function ExecutionTab({ workflowKey }) {
|
|
|
1907
2154
|
);
|
|
1908
2155
|
const handleSave = useCallback(async () => {
|
|
1909
2156
|
if (!workflow?.id) return;
|
|
1910
|
-
|
|
1911
|
-
const
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
2157
|
+
const save = (stored) => {
|
|
2158
|
+
const definition = stored.definitionJson;
|
|
2159
|
+
return updateWorkflowDefinition({
|
|
2160
|
+
variables: {
|
|
2161
|
+
id: stored.id,
|
|
2162
|
+
input: {
|
|
2163
|
+
definitionJson: {
|
|
2164
|
+
...definition,
|
|
2165
|
+
config: mergeWorkflowExecutionSettings(
|
|
2166
|
+
definition.config ?? {},
|
|
2167
|
+
form
|
|
2168
|
+
)
|
|
2169
|
+
},
|
|
2170
|
+
// BOFF-9725: never write back a canvas someone changed meanwhile.
|
|
2171
|
+
...typeof stored.revision === "number" ? { expectedRevision: stored.revision } : {}
|
|
2172
|
+
}
|
|
2173
|
+
}
|
|
1920
2174
|
});
|
|
2175
|
+
};
|
|
2176
|
+
try {
|
|
2177
|
+
try {
|
|
2178
|
+
await save(workflow);
|
|
2179
|
+
} catch (err) {
|
|
2180
|
+
if (!findSaveConflict(err)) throw err;
|
|
2181
|
+
const latest = (await refetch()).data?.workflowDefinition;
|
|
2182
|
+
if (!latest?.id) throw err;
|
|
2183
|
+
await save(latest);
|
|
2184
|
+
}
|
|
1921
2185
|
toast.success(
|
|
1922
2186
|
tr(
|
|
1923
2187
|
"fluidgrids.settings.execution.savedToast",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FluidgridsEntityTagsDocument, AvailableFluidgridsTagsDocument, SearchFluidgridsTagsDocument, TagFluidgridsEntityDocument, UntagFluidgridsEntityDocument, ReplaceFluidgridsEntityTagsDocument, CreateFluidgridsTagDocument, DataTablesTagsDocument } from './chunk-
|
|
1
|
+
import { FluidgridsEntityTagsDocument, AvailableFluidgridsTagsDocument, SearchFluidgridsTagsDocument, TagFluidgridsEntityDocument, UntagFluidgridsEntityDocument, ReplaceFluidgridsEntityTagsDocument, CreateFluidgridsTagDocument, DataTablesTagsDocument } from './chunk-GQTEHWWY.js';
|
|
2
2
|
import { getFluidGridsClient } from './chunk-NTWG3CJX.js';
|
|
3
3
|
import { useState, useCallback, useEffect } from 'react';
|
|
4
4
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { config, getFluidGridsConfig, getGraphQLEndpoint, resetFluidGridsConfig, resetFluidGridsExecutionState, setFluidGridsConfig, validateTrustedOrigin } from './chunk-
|
|
1
|
+
export { config, getFluidGridsConfig, getGraphQLEndpoint, resetFluidGridsConfig, resetFluidGridsExecutionState, setFluidGridsConfig, validateTrustedOrigin } from './chunk-6AMNEX2Y.js';
|
|
2
2
|
import './chunk-62GWEYJ5.js';
|
package/dist/executions.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import './chunk-AD3BXTJS.js';
|
|
2
|
-
export { ExecutionsListPage } from './chunk-
|
|
3
|
-
export { ExecutionDetailPage } from './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
2
|
+
export { ExecutionsListPage } from './chunk-VEZ7G2FE.js';
|
|
3
|
+
export { ExecutionDetailPage } from './chunk-TJ6RUV4R.js';
|
|
4
|
+
import './chunk-UWNCFMHV.js';
|
|
5
|
+
import './chunk-HWEKWYXQ.js';
|
|
6
|
+
import './chunk-V5PA5KGV.js';
|
|
7
|
+
import './chunk-UIDJT3YK.js';
|
|
8
8
|
import './chunk-5ERAJC2I.js';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
9
|
+
import './chunk-T22LICGX.js';
|
|
10
|
+
import './chunk-Z6I6A47T.js';
|
|
11
11
|
import './chunk-Y53CVZVV.js';
|
|
12
|
-
import './chunk-LTVAUZ3M.js';
|
|
13
12
|
import './chunk-D3UWK7GY.js';
|
|
13
|
+
import './chunk-G3KZOX52.js';
|
|
14
14
|
import './chunk-PJAWNFJV.js';
|
|
15
|
-
import './chunk-
|
|
15
|
+
import './chunk-6TMLIQHB.js';
|
|
16
16
|
import './chunk-4VJ3MDOV.js';
|
|
17
|
-
import './chunk-
|
|
17
|
+
import './chunk-NAYPOEYM.js';
|
|
18
18
|
import './chunk-JL7CASN5.js';
|
|
19
19
|
import './chunk-PXIFUMLA.js';
|
|
20
|
-
import './chunk-
|
|
20
|
+
import './chunk-6AMNEX2Y.js';
|
|
21
21
|
import './chunk-JUUYPCFY.js';
|
|
22
|
-
import './chunk-
|
|
22
|
+
import './chunk-GQTEHWWY.js';
|
|
23
23
|
import './chunk-UULVIT25.js';
|
|
24
24
|
import './chunk-NTWG3CJX.js';
|
|
25
25
|
import './chunk-62GWEYJ5.js';
|
package/dist/history.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { HistoryPage } from './chunk-
|
|
2
|
-
import './chunk-LTVAUZ3M.js';
|
|
1
|
+
export { HistoryPage } from './chunk-WTP343PG.js';
|
|
3
2
|
import './chunk-D3UWK7GY.js';
|
|
3
|
+
import './chunk-G3KZOX52.js';
|
|
4
4
|
import './chunk-PJAWNFJV.js';
|
|
5
5
|
import './chunk-4VJ3MDOV.js';
|
|
6
|
-
import './chunk-
|
|
6
|
+
import './chunk-NAYPOEYM.js';
|
|
7
7
|
import './chunk-JL7CASN5.js';
|
|
8
8
|
import './chunk-PXIFUMLA.js';
|
|
9
|
-
import './chunk-
|
|
9
|
+
import './chunk-6AMNEX2Y.js';
|
|
10
10
|
import './chunk-JUUYPCFY.js';
|
|
11
|
-
import './chunk-
|
|
11
|
+
import './chunk-GQTEHWWY.js';
|
|
12
12
|
import './chunk-UULVIT25.js';
|
|
13
13
|
import './chunk-NTWG3CJX.js';
|
|
14
14
|
import './chunk-62GWEYJ5.js';
|