@fluidgrids/fe-sdk 0.0.0-stage → 2026.1203.7
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/README.md +564 -2
- package/dist/ActivityOptionsFields-C2u-hY2U.js +142 -0
- package/dist/AiStudioPage-B_hNTj-_.js +1137 -0
- package/dist/ApprovalInboxPage-ClITra3n.js +1312 -0
- package/dist/ChoiceSelect-LkK-uS9J.js +65 -0
- package/dist/ConfirmActionDialog-DHWTDRbp.js +31 -0
- package/dist/ConnectionFormDialog-C0kDgcrZ.js +153 -0
- package/dist/CreateFluidgridsTagDocument-Dtp9KPLJ.js +1055 -0
- package/dist/DataSinkDashboardPage-b4ezeqa6.js +278 -0
- package/dist/DataTablesPage-C1d9YGHz.js +5575 -0
- package/dist/DateTimeField-B1qR4ruo.js +51 -0
- package/dist/Disclosure-BNKij7-v.js +45 -0
- package/dist/ElementLibraryPage-8jNO6YmE.js +2256 -0
- package/dist/ElementLibrarySequenceDocument-B-W8SPzn.js +3979 -0
- package/dist/EnsureThemeProvider-BvlNjAd0.js +24 -0
- package/dist/EntityTagBadge-1OlP6p0c.js +25 -0
- package/dist/EntityTagPicker-BBrU5cE0.js +137 -0
- package/dist/ExecuteStepDocument-B4j1mdRT.js +189 -0
- package/dist/ExecutionDetailDocument-D6QuM-kp.js +875 -0
- package/dist/ExecutionDetailPage-D4CBtFdo.js +12217 -0
- package/dist/ExecutionDetailPage-DvQ667OE.d.ts +10 -0
- package/dist/ExecutionStatusBadge-BsDVor9t.js +221 -0
- package/dist/ExecutionsListDocument-Dan7ZiqB.js +459 -0
- package/dist/ExecutionsListPage-B3XT8ITL.js +4307 -0
- package/dist/FailureTriagePanel-DOJMaJ0n.js +1285 -0
- package/dist/FileDownloadUrlDocument-CVOYKcL5.js +92 -0
- package/dist/FluidGridsDocsLink-bX0Hnhxr.js +66 -0
- package/dist/FluidGridsMark-CE2blT7K.js +74 -0
- package/dist/HeldLoadRegion-BtTxbvOW.js +34 -0
- package/dist/HistoryPage-BLoRpJ1R.d.ts +6 -0
- package/dist/HistoryPage-BSBISXoj.js +2835 -0
- package/dist/Icon-BtQ0HXLh.js +160 -0
- package/dist/InsightsPage-D7ybj8N9.js +11245 -0
- package/dist/IsolationSetting-vy911E8b.js +1153 -0
- package/dist/LibraryParts-DOeNgR8A.js +413 -0
- package/dist/ManagedAiPolicyAuthority-BxwJ3ptd.js +40 -0
- package/dist/ManagedAiPolicyAuthority-DM3t3wNr.d.ts +18 -0
- package/dist/ManagedAiPolicyAuthorityContext-CNkxIOZ1.js +10 -0
- package/dist/McpTriggerServers-BCPCAOWB.js +459 -0
- package/dist/MissingNodesInstallModal-rO_SEDrC.js +224 -0
- package/dist/NavigationV2Provider-DCDt35eG.js +17 -0
- package/dist/NodeSchemaIntrospectionDocument-C1vAIcHd.js +95 -0
- package/dist/NodesPage-DEbnz9iU.d.ts +6 -0
- package/dist/NodesPage-O7KeeKtd.js +653 -0
- package/dist/OfflineIcon-TwMKYWjA.js +207 -0
- package/dist/OpenTemplateAsCodeButton-BhWJWIF3.js +94 -0
- package/dist/PaidTemplateConfirm-_G3ag6S4.js +28 -0
- package/dist/PublishCustomNodeAction-CIySbK4c.js +134 -0
- package/dist/RecordTaskDialog-BkpCDvhR.js +2078 -0
- package/dist/RunActionsMenu-DodOgIQm.js +59 -0
- package/dist/RunnerStatusPill-C1v967iq.js +24 -0
- package/dist/RunnersPage-dB0RSdY_.js +1929 -0
- package/dist/SandboxRuntimeExhaustedNotice-BFOIF93C.js +120 -0
- package/dist/SchedulesPage-DPWr1yvf.js +1607 -0
- package/dist/SearchBox-BGtYjvfs.js +49 -0
- package/dist/SequenceEditor-CFiHeHkR.js +497 -0
- package/dist/SettingsPage-0CQBNPZV.js +8695 -0
- package/dist/StewardPages-DAJhepen.js +47 -0
- package/dist/StewardRunImportPanel-Kva2DO0u.js +2844 -0
- package/dist/StoreTemplateCardCompact-CHn5kP7A.js +2166 -0
- package/dist/TagFilterSelect-CyA8QrS7.js +42 -0
- package/dist/TaskQueuesPage-DdnDCyat.js +3571 -0
- package/dist/TechnicalDetails-B0Oi4aZw.js +19 -0
- package/dist/TemplateConfigurationModal-CdvCYJLM.js +332 -0
- package/dist/TemplateDetailPanel-CbiKciuB.js +222 -0
- package/dist/TemplatePreview-cx7-NOeG.js +868 -0
- package/dist/TemplatesPage-BG3H-6v6.d.ts +10 -0
- package/dist/TemplatesPage-BVQpGYIV.js +3251 -0
- package/dist/TerminateExecutionDocument-B_HKNVrN.js +581 -0
- package/dist/TranslationBridge-Bd4aJKMs.d.ts +11 -0
- package/dist/TranslationBridge-Da-TPgQm.js +68 -0
- package/dist/TriggerWorkflowDocument-D9Km2Vv2.js +460 -0
- package/dist/UiSequencePickerSequenceDocument-BSYnSDV7.js +607 -0
- package/dist/UiStepScreenshot-Qh4QMyUp.js +146 -0
- package/dist/UsageTimeSeriesDocument-DcInx9-z.js +177 -0
- package/dist/VariablesPage-ChfGuW22.js +2243 -0
- package/dist/VersionDiffDialog-Bd2AeUwf.js +1702 -0
- package/dist/VersionLifecycleBar-BBeWVtz-.js +143 -0
- package/dist/WebhookDeliveriesPage-D66bua0j.js +1563 -0
- package/dist/WorkflowBuilder-B6wQD1TK.js +539 -0
- package/dist/WorkflowBuilder-DR4ku8Tr.js +1611 -0
- package/dist/WorkflowDefinitionDocument-DZLbTPUZ.js +321 -0
- package/dist/WorkflowEmbed-BXfFGy0i.js +708 -0
- package/dist/WorkflowEmbed-Cbqe1s1z.d.ts +6 -0
- package/dist/WorkflowPinnedDataDocument-BODT5omd.js +782 -0
- package/dist/WorkflowProposalCard-BruukdeF.js +96 -0
- package/dist/WorkflowProposalDocument-BdUbsrd0.js +620 -0
- package/dist/WorkflowSearchRedirect-C7zJ2MKH.js +40 -0
- package/dist/WorkflowSettingsDrawer-MVU1BKfY.d.ts +18 -0
- package/dist/WorkflowSettingsDrawer-gazs97WR.js +196 -0
- package/dist/WorkflowShareDialog-e8jJtLjU.js +469 -0
- package/dist/WorkflowVersionsDocument-DRVOp8Uj.js +3213 -0
- package/dist/WorkflowsList--hR2_8gf.js +4593 -0
- package/dist/WorkflowsList-CcNDQge5.d.ts +6 -0
- package/dist/WorkflowsListPageDocument-CnzcQm_o.js +934 -0
- package/dist/addonCatalog-CbZS4deh.js +58 -0
- package/dist/addonCatalog-sjlonAmR.d.ts +15 -0
- package/dist/addons.d.ts +3 -0
- package/dist/addons.js +4 -0
- package/dist/agent-form-Bfvm32j1.js +83 -0
- package/dist/agent-tools.d.ts +3 -0
- package/dist/agent-tools.js +5 -0
- package/dist/agentTools-CyL7DLOF.js +320 -0
- package/dist/ai-usage-BrxDgvdR.js +240 -0
- package/dist/aiCreditsBridge-BuE92tKo.js +49 -0
- package/dist/api-BKq-nIOZ.js +2286 -0
- package/dist/api-Ol7I8NxE.js +8289 -0
- package/dist/apollo-type-policies.d.ts +11 -0
- package/dist/apollo-type-policies.js +64 -0
- package/dist/askAboutBridge-ByYsQams.js +106 -0
- package/dist/askQuestions-Cmx7VnMm.js +742 -0
- package/dist/assert-rules-lfYEMc99.js +318 -0
- package/dist/assistant.d.ts +94 -0
- package/dist/assistant.js +99 -0
- package/dist/attach-node-helpers-HDKQOtrD.js +32 -0
- package/dist/badge-CXfPhoMH.js +26 -0
- package/dist/basil.generated-BK-EHbwN.js +10 -0
- package/dist/browser-steps-DMpS5TyB.js +533 -0
- package/dist/builderTimings-pvGnK1m-.js +510 -0
- package/dist/button-DG7y_FVJ.js +48 -0
- package/dist/canvasNoteTools-BxuP_AYO.js +137 -0
- package/dist/card-Bomy_1UG.js +44 -0
- package/dist/catalogGrid-BOrfMgi-.js +41 -0
- package/dist/channel-CPyQ1NR1.js +212 -0
- package/dist/chips-CvNrYJZa.js +27 -0
- package/dist/client-holder-C0M5Cfwl.js +68 -0
- package/dist/cn-QqidFIgr.js +10 -0
- package/dist/code-editor-diagnostics-Zr0cIcx1.js +46 -0
- package/dist/code-editor-field-x_JrY8KR.js +113 -0
- package/dist/codec-client-DPuD6mw7.js +515 -0
- package/dist/conditionBuilder-DwfEF0Q-.js +1144 -0
- package/dist/config-DO68jw5k.js +322 -0
- package/dist/constants-DgbVc24O.d.ts +296 -0
- package/dist/constants-DlRnHBfQ.js +217 -0
- package/dist/convert-browser-action-pfecelF7.js +347 -0
- package/dist/convert-dialog-B_o22NiJ.js +382 -0
- package/dist/create-workflow-first-Azg3JUdX.js +120 -0
- package/dist/definition-canvas-Bsda-rDT.js +31 -0
- package/dist/dialog-BVd152GS.js +94 -0
- package/dist/durable-nodes-BXyYCLxT.js +91 -0
- package/dist/duration-CDb7-mT_.js +33 -0
- package/dist/edge-mapper-wEAdGVU2.js +4477 -0
- package/dist/element-library-DkSlg_VE.js +727 -0
- package/dist/entities-I_0kio3q.js +38 -0
- package/dist/error-advice-QLr5NCm7.js +65 -0
- package/dist/errors-ClKb5sEt.js +188 -0
- package/dist/executions.d.ts +3 -0
- package/dist/executions.js +5 -0
- package/dist/feature-flags-B2qetXKd.js +385 -0
- package/dist/field-label-DPZRmE_B.js +153 -0
- package/dist/firstWorkflow-C_h0KMB2.js +133 -0
- package/dist/flags.d.ts +3 -0
- package/dist/flags.js +4 -0
- package/dist/flow-builder-DIvLOhz0.js +28038 -0
- package/dist/flow-store-holder-CUN7Terz.js +52 -0
- package/dist/fluent.generated-CA_e6-4l.js +14 -0
- package/dist/fluidgridsEvents-bbEQbwU6.js +175 -0
- package/dist/fluidgridsTheme-DUhvOgoy.js +297 -0
- package/dist/global-client-BQPuFrFa.js +433 -0
- package/dist/global-operations-BG6YgxrM.js +136 -0
- package/dist/graphql-types-UTYtujY9.js +21358 -0
- package/dist/history.d.ts +3 -0
- package/dist/history.js +4 -0
- package/dist/index-AoJAa5vU.d.ts +164958 -0
- package/dist/index-DEMT3iAM.d.ts +120 -0
- package/dist/index-ROZzNGyY.d.ts +76 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +8123 -0
- package/dist/ion.generated-mbajjcAg.js +10 -0
- package/dist/label-Lzb8ZXf_.js +29 -0
- package/dist/labels-rXd9gYQz.js +1236 -0
- package/dist/liveCanvas-D5ytXDp8.js +103 -0
- package/dist/logos.generated-X6_0kjVR.js +21 -0
- package/dist/logs-panel-Cw0DkG0l.js +468 -0
- package/dist/lucide.generated-B6NVd3GT.js +29 -0
- package/dist/marksStore-a9oIMMot.js +175 -0
- package/dist/mcp-trigger-D0nRdvq5.js +307 -0
- package/dist/mdi.generated-D1BV74d6.js +292 -0
- package/dist/menus-CU3hDGYl.js +160 -0
- package/dist/mynaui.generated-DMWr5cXz.js +66 -0
- package/dist/navigation-v2.d.ts +3 -0
- package/dist/navigation-v2.js +5 -0
- package/dist/node-detail-view-Cgm5H1P-.js +1372 -0
- package/dist/node-editor-tab-body-CZ0fVuVP.js +187 -0
- package/dist/node-operation-selection-CdV3KI_V.js +3534 -0
- package/dist/node-registry-refresh-s3okf83X.js +27 -0
- package/dist/node-role-TMbnkmeP.js +132 -0
- package/dist/node-type-icon-BZa8n4iG.js +33 -0
- package/dist/nodes.d.ts +3 -0
- package/dist/nodes.js +4 -0
- package/dist/notesKey-5EaREBGA.js +12 -0
- package/dist/observability.d.ts +3 -0
- package/dist/observability.js +5 -0
- package/dist/offset-pages-zghoClB3.js +55 -0
- package/dist/operations-BBmT9ToP.js +663 -0
- package/dist/operations-WxRJWeqO.js +3133 -0
- package/dist/output-files-Ba8bu5lv.js +196 -0
- package/dist/page-operation-DrWuhd6Y.js +129 -0
- package/dist/page-twins.d.ts +13 -0
- package/dist/page-twins.js +186 -0
- package/dist/pageControlSpecs-DZJ9K37m.js +134 -0
- package/dist/pageControlsBridge-0pX9s-3k.js +54 -0
- package/dist/pageControlsBridge-DAuT3w7L.d.ts +36 -0
- package/dist/panels-PfBBAToE.js +346 -0
- package/dist/parts-B7fBcw-B.js +346 -0
- package/dist/popover-Dms9Vz3j.js +3389 -0
- package/dist/preloadable-lazy-Pp47mqQ9.js +65 -0
- package/dist/proactive.d.ts +66 -0
- package/dist/proactive.js +237 -0
- package/dist/quick-config-panel-DFd77xho.js +451 -0
- package/dist/quota-DeA_CJ2e.js +175 -0
- package/dist/quota.d.ts +3 -0
- package/dist/quota.js +4 -0
- package/dist/read-only-context-Dt9N9SIG.js +18 -0
- package/dist/relative-time-Dxt8ZIIu.js +55 -0
- package/dist/results-CwK_yDxK.js +325 -0
- package/dist/rolldown-runtime-hDbaFkMy.js +18 -0
- package/dist/route-data.d.ts +12 -0
- package/dist/route-data.js +69 -0
- package/dist/route-match-C-0_EnAt.d.ts +5 -0
- package/dist/route-match-DMkUICYV.js +41 -0
- package/dist/route-preload-C4DlGoCd.js +120 -0
- package/dist/run-display-UjLAoYqQ.js +81 -0
- package/dist/run-history-arGiHzGU.js +285 -0
- package/dist/run-list-links-DJn4Mf1T.js +98 -0
- package/dist/run-mode-USmM0-Uo.js +82 -0
- package/dist/run-parity-CWXqEJqM.js +144 -0
- package/dist/runsQuota-B6SyTbne.js +100 -0
- package/dist/runsQuota-DsniKiSg.d.ts +20 -0
- package/dist/safe-expression-Cw7-SCsm.js +1251 -0
- package/dist/save-status-store-C7nEYpfb.js +631 -0
- package/dist/schedule-panel-B4GYXzXQ.js +13774 -0
- package/dist/schedule-rules-ggVKRkBH.js +358 -0
- package/dist/secrets-Re_wSiE3.js +153 -0
- package/dist/settings.d.ts +4 -0
- package/dist/settings.js +6 -0
- package/dist/shared-DAWGGMSM.js +177 -0
- package/dist/sidebar-node-editor-6eSSgCzc.js +178 -0
- package/dist/solar.generated-CGYuUQAC.js +10 -0
- package/dist/stableTabbedDialog-BBhrfXGe.js +20 -0
- package/dist/start-url-CT6Yz96K.js +24 -0
- package/dist/status-CessxGpm.js +55 -0
- package/dist/store-icon-OctYp5zP.js +155 -0
- package/dist/styles-WGmTnZ2n.js +26 -0
- package/dist/styles.css +139 -0
- package/dist/svg-spinners.generated-CIPT7IhM.js +10 -0
- package/dist/template-code-CzN6JWNV.js +191 -0
- package/dist/template-graph-DLF9dygU.js +20 -0
- package/dist/template-preview-DcIIKOOL.js +32 -0
- package/dist/template-price-CdUHZRMF.js +40 -0
- package/dist/templates.d.ts +3 -0
- package/dist/templates.js +5 -0
- package/dist/theme-provider-CntfC4_i.js +23 -0
- package/dist/transient-DgZfhDfN.js +57 -0
- package/dist/typed-calls-C5tO03wq.js +26 -0
- package/dist/ui-script-By74Guk3.js +1094 -0
- package/dist/ui-script-editor-CqPu2bCN.js +2447 -0
- package/dist/ui-step-fix-8uM2_Hft.js +67 -0
- package/dist/ui-step-fix-store-CcO1FdRx.js +19 -0
- package/dist/ui-step-run-context-o7bLE6KP.js +46 -0
- package/dist/ui-target-editor-D2JhB_lD.js +673 -0
- package/dist/uiMarkTools-CSznnO1i.js +1054 -0
- package/dist/upgradePrompt-BAFBKKW5.js +72 -0
- package/dist/use-bare-node-registry-O6mKJO_n.js +11498 -0
- package/dist/use-browser-available-hj8wc3Kb.js +241 -0
- package/dist/use-edge-mapper-schemas-Bonofxow.js +496 -0
- package/dist/use-extension-bridge-B9ZreOkQ.js +608 -0
- package/dist/use-mobile-BTqCUjzS.js +27 -0
- package/dist/use-sdk-query-C697xZVv.js +116 -0
- package/dist/use-workflow-code-editor-CFoRFrZ5.js +753 -0
- package/dist/useActionParam-B2tU2BlY.js +85 -0
- package/dist/useAgentTokenStream-Bko_J0d0.js +4217 -0
- package/dist/useBrowserClients-3v95-gSh.js +103 -0
- package/dist/useCodeWorkflowInsights-w0tz9Ap_.js +600 -0
- package/dist/useConnections-DsgEJs05.js +439 -0
- package/dist/useDebouncedValue-BFekcv6n.js +18 -0
- package/dist/useDurableParity-8fnMZmBc.js +1787 -0
- package/dist/useEntityTags-D0spL6Ut.js +460 -0
- package/dist/useExecutions-2u5nGJJk.js +681 -0
- package/dist/useFluidGridsAnalytics-VM8lAi2x.js +238 -0
- package/dist/useGlobalStoreClient-BTdhkA2I.js +24 -0
- package/dist/useHumanRequests-zlYDp3l1.js +221 -0
- package/dist/useNavigationV2-C2WeqN7d.js +29 -0
- package/dist/useNavigationV2-DANUmg12.d.ts +9 -0
- package/dist/useObservability-BRlQ0tOA.js +285 -0
- package/dist/useRequestedProposal-B7uPXfZB.js +51 -0
- package/dist/useRunHistory-CXCMUPyf.js +2759 -0
- package/dist/useRunLive-D0JvVZT2.js +1060 -0
- package/dist/useRunnerList-Dbi59i1K.js +446 -0
- package/dist/useRunners-URUc5quU.js +173 -0
- package/dist/useRunsPage-DG656UCK.js +2709 -0
- package/dist/useVariables-BIelxcWr.js +463 -0
- package/dist/useVersionHistoryData-CTjqVw7l.js +292 -0
- package/dist/useWorkflowCodeExport-pqxyLHD1.js +522 -0
- package/dist/useWorkflowListExport-hcZNvTaB.js +232 -0
- package/dist/useWorkflowOrganization-CpBbOrs7.js +1772 -0
- package/dist/useWorkflowProposal-BH0VdNMA.js +3280 -0
- package/dist/useWorkflows-Cvg-Z_IE.js +1606 -0
- package/dist/utils-fvBb5qOD.js +89 -0
- package/dist/webhook-deliveries-AvQujaZy.js +99 -0
- package/dist/workflow-builder-CJygVkVv.d.ts +2 -0
- package/dist/workflow-builder.d.ts +3 -0
- package/dist/workflow-builder.js +8 -0
- package/dist/workflow-code-transfer-Bsy0JKAZ.js +323 -0
- package/dist/workflow-embed.d.ts +3 -0
- package/dist/workflow-embed.js +4 -0
- package/dist/workflow-git-sync--K9ZsPDC.js +263 -0
- package/dist/workflow-host.d.ts +6 -0
- package/dist/workflow-host.js +11 -0
- package/dist/workflow-pages-D-7ByLTB.d.ts +68 -0
- package/dist/workflow-pages.d.ts +3 -0
- package/dist/workflow-pages.js +115 -0
- package/dist/workflow-preview-canvas-CO8yzdE3.js +848 -0
- package/dist/workflow-preview.d.ts +65 -0
- package/dist/workflow-preview.js +4 -0
- package/dist/workflow-route.d.ts +33 -0
- package/dist/workflow-route.js +4 -0
- package/dist/workflow-save-state-D0l-DkLf.js +767 -0
- package/dist/workflow-transfer-CQnQC-ke.js +104 -0
- package/dist/workflowRouteData-BkfVOc-O.js +169 -0
- package/dist/workflows-list.d.ts +10 -0
- package/dist/workflows-list.js +5 -0
- package/package.json +320 -4
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-hDbaFkMy.js";
|
|
3
|
+
import { t as Icon } from "./Icon-BtQ0HXLh.js";
|
|
4
|
+
import { h as useWorkflowDefinition } from "./useWorkflows-Cvg-Z_IE.js";
|
|
5
|
+
import { Navigate, useParams } from "react-router";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { CompactMarkOr } from "@burdenoff/fe-libs/ui";
|
|
8
|
+
|
|
9
|
+
// src/pages/WorkflowSearchRedirect.tsx
|
|
10
|
+
var WorkflowSearchRedirect_exports = /* @__PURE__ */ __exportAll({ WorkflowSearchRedirect: () => WorkflowSearchRedirect });
|
|
11
|
+
/**
|
|
12
|
+
* Global search indexes WorkflowDefinition by its database id, but the
|
|
13
|
+
* builder route (`workflow/:workflowKey/:version`) is keyed by workflowKey +
|
|
14
|
+
* version. This page bridges the two: it resolves the id to its current
|
|
15
|
+
* workflowKey/version and redirects there.
|
|
16
|
+
*/
|
|
17
|
+
function WorkflowSearchRedirect() {
|
|
18
|
+
const { id } = useParams();
|
|
19
|
+
const { workflow, loading, error } = useWorkflowDefinition(void 0, id);
|
|
20
|
+
if (loading) return /* @__PURE__ */ jsxs("div", {
|
|
21
|
+
className: "flex h-full min-h-[40vh] items-center justify-center gap-2 text-sm text-muted-foreground",
|
|
22
|
+
children: [/* @__PURE__ */ jsx(CompactMarkOr, {
|
|
23
|
+
today: /* @__PURE__ */ jsx(Icon, {
|
|
24
|
+
icon: "svg-spinners:ring-resize",
|
|
25
|
+
className: "size-4"
|
|
26
|
+
}),
|
|
27
|
+
className: "size-4"
|
|
28
|
+
}), "Opening workflow…"]
|
|
29
|
+
});
|
|
30
|
+
if (error || !workflow) return /* @__PURE__ */ jsx(Navigate, {
|
|
31
|
+
to: "../list",
|
|
32
|
+
replace: true
|
|
33
|
+
});
|
|
34
|
+
return /* @__PURE__ */ jsx(Navigate, {
|
|
35
|
+
to: `../workflow/${workflow.workflowKey}/${workflow.version}`,
|
|
36
|
+
replace: true
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { WorkflowSearchRedirect_exports as n, WorkflowSearchRedirect as t };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
declare namespace SettingsPage_d_exports {
|
|
3
|
+
export { SETTINGS_TAB_PARAM, SettingsPage, SettingsPageProps };
|
|
4
|
+
}
|
|
5
|
+
interface SettingsPageProps {
|
|
6
|
+
workflowKey?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const SETTINGS_TAB_PARAM = "tab";
|
|
9
|
+
declare function SettingsPage({ workflowKey: workflowKeyProp }?: SettingsPageProps): import("react").JSX.Element;
|
|
10
|
+
interface WorkflowSettingsDrawerProps {
|
|
11
|
+
workflowKey: string | null;
|
|
12
|
+
workflowName: string;
|
|
13
|
+
onClose: () => void;
|
|
14
|
+
allSettingsHref: string;
|
|
15
|
+
onOpenAllSettings?: (href: string) => void;
|
|
16
|
+
}
|
|
17
|
+
declare function WorkflowSettingsDrawer({ workflowKey, workflowName, onClose, allSettingsHref, onOpenAllSettings }: WorkflowSettingsDrawerProps): import("react").JSX.Element;
|
|
18
|
+
export { SettingsPageProps as a, SettingsPage as i, WorkflowSettingsDrawerProps as n, SettingsPage_d_exports as o, SETTINGS_TAB_PARAM as r, WorkflowSettingsDrawer as t };
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-hDbaFkMy.js";
|
|
3
|
+
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
4
|
+
import { a as RetentionSettings, i as OnErrorSetting, n as ErrorWorkflowSetting, o as RunDataSavingSettings, r as MaxParallelSetting, s as TimeoutSetting, t as IsolationSetting, u as useWorkflowExecutionSettingsForm, y as useWorkflowNotificationSettings } from "./IsolationSetting-vy911E8b.js";
|
|
5
|
+
import { x as executionSaveErrorText } from "./workflow-save-state-D0l-DkLf.js";
|
|
6
|
+
import { useEffect, useId, useState } from "react";
|
|
7
|
+
import { Link } from "react-router";
|
|
8
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { toast } from "sonner";
|
|
10
|
+
import { Label, OptionalFields, Sheet, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, Switch } from "@burdenoff/fe-libs/ui";
|
|
11
|
+
import { Button as Button$1 } from "@burdenoff/fe-libs/button";
|
|
12
|
+
|
|
13
|
+
// src/modules/settings/components/WorkflowSettingsDrawer.tsx
|
|
14
|
+
/**
|
|
15
|
+
* One workflow's settings in a side drawer (Navigation v2, BOFF-11843).
|
|
16
|
+
*
|
|
17
|
+
* Opened from a row's "⋯ › More options › Settings" on My Workflows and from
|
|
18
|
+
* the builder's header. It always names the workflow it edits.
|
|
19
|
+
*
|
|
20
|
+
* - Level 1: "Tell me when this fails", the workflow's existing failure
|
|
21
|
+
* notification (`notifyOnFailure`, BOFF-9974): in the app and by push.
|
|
22
|
+
* Email for it is backend work (BOFF-13715), so the drawer does not offer it.
|
|
23
|
+
* - Level 2, under "More options": Timeout, Max parallel, On error, Error
|
|
24
|
+
* workflow, keep run data and retention. They are read and saved by the same
|
|
25
|
+
* hook as Settings › Execution (`useWorkflowExecutionSettingsForm`), so the
|
|
26
|
+
* conflict check and its single retry are the same.
|
|
27
|
+
* - "All settings" opens the full page for the workflow.
|
|
28
|
+
*
|
|
29
|
+
* Saving needs workflow:update (both the notification preference and the
|
|
30
|
+
* execution settings are workflow:update at the gateway); without it the
|
|
31
|
+
* drawer is read-only and says so.
|
|
32
|
+
*/
|
|
33
|
+
var WorkflowSettingsDrawer_exports = /* @__PURE__ */ __exportAll({ WorkflowSettingsDrawer: () => WorkflowSettingsDrawer });
|
|
34
|
+
function WorkflowSettingsDrawer({ workflowKey, workflowName, onClose, allSettingsHref, onOpenAllSettings }) {
|
|
35
|
+
return /* @__PURE__ */ jsx(Sheet, {
|
|
36
|
+
open: workflowKey !== null,
|
|
37
|
+
onOpenChange: (open) => {
|
|
38
|
+
if (!open) onClose();
|
|
39
|
+
},
|
|
40
|
+
children: /* @__PURE__ */ jsx(SheetContent, {
|
|
41
|
+
side: "right",
|
|
42
|
+
className: "flex w-full flex-col gap-0 overflow-y-auto p-0 sm:max-w-md",
|
|
43
|
+
"data-testid": "workflow-settings-drawer",
|
|
44
|
+
children: workflowKey !== null && /* @__PURE__ */ jsx(DrawerBody, {
|
|
45
|
+
workflowKey,
|
|
46
|
+
workflowName,
|
|
47
|
+
onClose,
|
|
48
|
+
allSettingsHref,
|
|
49
|
+
onOpenAllSettings
|
|
50
|
+
}, workflowKey)
|
|
51
|
+
})
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
function DrawerBody({ workflowKey, workflowName, onClose, allSettingsHref, onOpenAllSettings }) {
|
|
55
|
+
const tr = useTr();
|
|
56
|
+
const notifyId = useId();
|
|
57
|
+
const execution = useWorkflowExecutionSettingsForm(workflowKey);
|
|
58
|
+
const notifications = useWorkflowNotificationSettings(workflowKey);
|
|
59
|
+
const [notifyOnFailure, setNotifyOnFailure] = useState(null);
|
|
60
|
+
const [saving, setSaving] = useState(false);
|
|
61
|
+
const storedNotify = notifications.settings?.notifyOnFailure;
|
|
62
|
+
useEffect(() => {
|
|
63
|
+
if (storedNotify !== void 0) setNotifyOnFailure(storedNotify);
|
|
64
|
+
}, [storedNotify]);
|
|
65
|
+
const canEdit = execution.canEdit;
|
|
66
|
+
const notifyChanged = notifyOnFailure !== null && storedNotify !== void 0 && notifyOnFailure !== storedNotify;
|
|
67
|
+
const busy = saving || execution.saving;
|
|
68
|
+
const handleSave = async () => {
|
|
69
|
+
setSaving(true);
|
|
70
|
+
try {
|
|
71
|
+
if (notifyChanged && notifyOnFailure !== null) await notifications.save({ notifyOnFailure });
|
|
72
|
+
if (execution.dirty) await execution.save();
|
|
73
|
+
toast.success(tr("fluidgrids.workflowSettingsDrawer.savedToast", "Settings saved"));
|
|
74
|
+
onClose();
|
|
75
|
+
} catch (err) {
|
|
76
|
+
toast.error(tr("fluidgrids.settings.execution.saveFailedToast", "Failed to save settings"), { description: executionSaveErrorText(err, tr) });
|
|
77
|
+
} finally {
|
|
78
|
+
setSaving(false);
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
const notifyLabel = tr("fluidgrids.workflowSettingsDrawer.notifyOnFailureLabel", "Tell me when this fails");
|
|
82
|
+
const shownName = workflowName || tr("fluidgrids.builder.flowBuilder.untitledWorkflow", "Untitled Workflow");
|
|
83
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
84
|
+
/* @__PURE__ */ jsxs(SheetHeader, {
|
|
85
|
+
className: "border-b border-border p-4 pr-12",
|
|
86
|
+
children: [/* @__PURE__ */ jsx(SheetTitle, {
|
|
87
|
+
className: "break-words",
|
|
88
|
+
"data-testid": "workflow-settings-drawer-title",
|
|
89
|
+
children: shownName
|
|
90
|
+
}), /* @__PURE__ */ jsx(SheetDescription, { children: tr("fluidgrids.workflowSettingsDrawer.description", "Settings for this workflow") })]
|
|
91
|
+
}),
|
|
92
|
+
/* @__PURE__ */ jsxs("div", {
|
|
93
|
+
className: "flex-1 space-y-4 p-4",
|
|
94
|
+
children: [
|
|
95
|
+
/* @__PURE__ */ jsxs("div", {
|
|
96
|
+
className: "flex items-start justify-between gap-4 rounded-lg border border-border p-3",
|
|
97
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
98
|
+
className: "min-w-0 space-y-1",
|
|
99
|
+
children: [/* @__PURE__ */ jsx(Label, {
|
|
100
|
+
htmlFor: notifyId,
|
|
101
|
+
className: "text-sm font-medium",
|
|
102
|
+
children: notifyLabel
|
|
103
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
104
|
+
className: "text-xs text-muted-foreground",
|
|
105
|
+
children: tr("fluidgrids.workflowSettingsDrawer.notifyOnFailureHelp", "When a live run of this workflow fails, you get a notification in the app and a push to your devices. Email alerts aren't available yet.")
|
|
106
|
+
})]
|
|
107
|
+
}), /* @__PURE__ */ jsx(Switch, {
|
|
108
|
+
id: notifyId,
|
|
109
|
+
className: "mt-1 shrink-0",
|
|
110
|
+
checked: notifyOnFailure ?? false,
|
|
111
|
+
onCheckedChange: (checked) => setNotifyOnFailure(checked),
|
|
112
|
+
disabled: !canEdit || busy || notifications.loading || notifyOnFailure === null,
|
|
113
|
+
"data-testid": "workflow-settings-notify-on-failure"
|
|
114
|
+
})]
|
|
115
|
+
}),
|
|
116
|
+
notifications.error && /* @__PURE__ */ jsx("p", {
|
|
117
|
+
className: "text-sm text-destructive",
|
|
118
|
+
role: "alert",
|
|
119
|
+
children: tr("fluidgrids.settings.workflowNotifications.loadFailed", "Could not load this workflow's notification settings.")
|
|
120
|
+
}),
|
|
121
|
+
/* @__PURE__ */ jsx(OptionalFields, {
|
|
122
|
+
storageKey: `workflows.settings.${workflowKey}`,
|
|
123
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
124
|
+
className: "divide-y divide-border",
|
|
125
|
+
children: [
|
|
126
|
+
/* @__PURE__ */ jsx(TimeoutSetting, {
|
|
127
|
+
ctl: execution,
|
|
128
|
+
stacked: true
|
|
129
|
+
}),
|
|
130
|
+
/* @__PURE__ */ jsx(MaxParallelSetting, {
|
|
131
|
+
ctl: execution,
|
|
132
|
+
stacked: true
|
|
133
|
+
}),
|
|
134
|
+
/* @__PURE__ */ jsx(IsolationSetting, {
|
|
135
|
+
ctl: execution,
|
|
136
|
+
stacked: true
|
|
137
|
+
}),
|
|
138
|
+
/* @__PURE__ */ jsx(OnErrorSetting, {
|
|
139
|
+
ctl: execution,
|
|
140
|
+
stacked: true
|
|
141
|
+
}),
|
|
142
|
+
/* @__PURE__ */ jsx(ErrorWorkflowSetting, {
|
|
143
|
+
ctl: execution,
|
|
144
|
+
stacked: true
|
|
145
|
+
}),
|
|
146
|
+
/* @__PURE__ */ jsx(RunDataSavingSettings, {
|
|
147
|
+
ctl: execution,
|
|
148
|
+
stacked: true
|
|
149
|
+
}),
|
|
150
|
+
/* @__PURE__ */ jsx(RetentionSettings, {
|
|
151
|
+
ctl: execution,
|
|
152
|
+
stacked: true
|
|
153
|
+
})
|
|
154
|
+
]
|
|
155
|
+
})
|
|
156
|
+
}),
|
|
157
|
+
!canEdit && /* @__PURE__ */ jsx("p", {
|
|
158
|
+
className: "text-xs text-muted-foreground",
|
|
159
|
+
role: "note",
|
|
160
|
+
children: tr("fluidgrids.settings.execution.readOnly", "You can see these settings but not change them: changing them needs permission to edit workflows.")
|
|
161
|
+
})
|
|
162
|
+
]
|
|
163
|
+
}),
|
|
164
|
+
/* @__PURE__ */ jsxs(SheetFooter, {
|
|
165
|
+
className: "flex-row flex-wrap items-center justify-between gap-2 border-t border-border p-4",
|
|
166
|
+
children: [/* @__PURE__ */ jsx(Link, {
|
|
167
|
+
to: allSettingsHref,
|
|
168
|
+
onClick: (event) => {
|
|
169
|
+
if (!onOpenAllSettings) return;
|
|
170
|
+
event.preventDefault();
|
|
171
|
+
onOpenAllSettings(allSettingsHref);
|
|
172
|
+
},
|
|
173
|
+
className: "inline-flex min-h-11 items-center text-sm font-medium text-primary underline-offset-4 hover:underline",
|
|
174
|
+
"data-testid": "workflow-settings-all-settings",
|
|
175
|
+
children: tr("fluidgrids.workflowSettingsDrawer.allSettings", "All settings")
|
|
176
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
177
|
+
className: "flex gap-2",
|
|
178
|
+
children: [/* @__PURE__ */ jsx(Button$1, {
|
|
179
|
+
variant: "outline",
|
|
180
|
+
onClick: onClose,
|
|
181
|
+
className: "min-h-11",
|
|
182
|
+
children: tr("fluidgrids.workflowSettingsDrawer.cancel", "Cancel")
|
|
183
|
+
}), /* @__PURE__ */ jsx(Button$1, {
|
|
184
|
+
"data-agent": "confirm",
|
|
185
|
+
onClick: () => void handleSave(),
|
|
186
|
+
disabled: !canEdit || busy || execution.loading,
|
|
187
|
+
className: "min-h-11",
|
|
188
|
+
"data-testid": "workflow-settings-save",
|
|
189
|
+
children: busy ? tr("fluidgrids.settings.execution.saving", "Saving…") : tr("fluidgrids.settings.execution.save", "Save")
|
|
190
|
+
})]
|
|
191
|
+
})]
|
|
192
|
+
})
|
|
193
|
+
] });
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export { WorkflowSettingsDrawer_exports as n, WorkflowSettingsDrawer as t };
|