@fluidgrids/fe-sdk 0.0.0-stage → 2026.1203.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/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,1285 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { t as Icon } from "./Icon-BtQ0HXLh.js";
|
|
3
|
+
import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
|
|
4
|
+
import { n as getFluidGridsClient } from "./client-holder-C0M5Cfwl.js";
|
|
5
|
+
import { s as throwIfResultError } from "./errors-ClKb5sEt.js";
|
|
6
|
+
import { $N as RunFailureClusterStatus } from "./graphql-types-UTYtujY9.js";
|
|
7
|
+
import { useCallback, useEffect, useState } from "react";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { Button, EmptyState } from "@burdenoff/fe-libs/ui";
|
|
10
|
+
|
|
11
|
+
// src/generated/documents/wspace/DismissRunFailureClusterDocument.ts
|
|
12
|
+
const DismissRunFailureClusterDocument = {
|
|
13
|
+
"kind": "Document",
|
|
14
|
+
"definitions": [{
|
|
15
|
+
"kind": "OperationDefinition",
|
|
16
|
+
"operation": "mutation",
|
|
17
|
+
"name": {
|
|
18
|
+
"kind": "Name",
|
|
19
|
+
"value": "DismissRunFailureCluster"
|
|
20
|
+
},
|
|
21
|
+
"variableDefinitions": [{
|
|
22
|
+
"kind": "VariableDefinition",
|
|
23
|
+
"variable": {
|
|
24
|
+
"kind": "Variable",
|
|
25
|
+
"name": {
|
|
26
|
+
"kind": "Name",
|
|
27
|
+
"value": "id"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"type": {
|
|
31
|
+
"kind": "NonNullType",
|
|
32
|
+
"type": {
|
|
33
|
+
"kind": "NamedType",
|
|
34
|
+
"name": {
|
|
35
|
+
"kind": "Name",
|
|
36
|
+
"value": "ID"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"directives": []
|
|
41
|
+
}],
|
|
42
|
+
"directives": [],
|
|
43
|
+
"selectionSet": {
|
|
44
|
+
"kind": "SelectionSet",
|
|
45
|
+
"selections": [{
|
|
46
|
+
"kind": "Field",
|
|
47
|
+
"name": {
|
|
48
|
+
"kind": "Name",
|
|
49
|
+
"value": "dismissRunFailureCluster"
|
|
50
|
+
},
|
|
51
|
+
"arguments": [{
|
|
52
|
+
"kind": "Argument",
|
|
53
|
+
"name": {
|
|
54
|
+
"kind": "Name",
|
|
55
|
+
"value": "id"
|
|
56
|
+
},
|
|
57
|
+
"value": {
|
|
58
|
+
"kind": "Variable",
|
|
59
|
+
"name": {
|
|
60
|
+
"kind": "Name",
|
|
61
|
+
"value": "id"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}],
|
|
65
|
+
"directives": [],
|
|
66
|
+
"selectionSet": {
|
|
67
|
+
"kind": "SelectionSet",
|
|
68
|
+
"selections": [
|
|
69
|
+
{
|
|
70
|
+
"kind": "Field",
|
|
71
|
+
"name": {
|
|
72
|
+
"kind": "Name",
|
|
73
|
+
"value": "id"
|
|
74
|
+
},
|
|
75
|
+
"arguments": [],
|
|
76
|
+
"directives": []
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"kind": "Field",
|
|
80
|
+
"name": {
|
|
81
|
+
"kind": "Name",
|
|
82
|
+
"value": "status"
|
|
83
|
+
},
|
|
84
|
+
"arguments": [],
|
|
85
|
+
"directives": []
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"kind": "Field",
|
|
89
|
+
"name": {
|
|
90
|
+
"kind": "Name",
|
|
91
|
+
"value": "dismissedAt"
|
|
92
|
+
},
|
|
93
|
+
"arguments": [],
|
|
94
|
+
"directives": []
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
}]
|
|
99
|
+
}
|
|
100
|
+
}]
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
// src/generated/documents/wspace/FgTriageFailedRunsDocument.ts
|
|
104
|
+
const FgTriageFailedRunsDocument = {
|
|
105
|
+
"kind": "Document",
|
|
106
|
+
"definitions": [{
|
|
107
|
+
"kind": "OperationDefinition",
|
|
108
|
+
"operation": "mutation",
|
|
109
|
+
"name": {
|
|
110
|
+
"kind": "Name",
|
|
111
|
+
"value": "FgTriageFailedRuns"
|
|
112
|
+
},
|
|
113
|
+
"variableDefinitions": [{
|
|
114
|
+
"kind": "VariableDefinition",
|
|
115
|
+
"variable": {
|
|
116
|
+
"kind": "Variable",
|
|
117
|
+
"name": {
|
|
118
|
+
"kind": "Name",
|
|
119
|
+
"value": "input"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"type": {
|
|
123
|
+
"kind": "NamedType",
|
|
124
|
+
"name": {
|
|
125
|
+
"kind": "Name",
|
|
126
|
+
"value": "FgTriageFailedRunsInput"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"directives": []
|
|
130
|
+
}],
|
|
131
|
+
"directives": [],
|
|
132
|
+
"selectionSet": {
|
|
133
|
+
"kind": "SelectionSet",
|
|
134
|
+
"selections": [{
|
|
135
|
+
"kind": "Field",
|
|
136
|
+
"name": {
|
|
137
|
+
"kind": "Name",
|
|
138
|
+
"value": "fgTriageFailedRuns"
|
|
139
|
+
},
|
|
140
|
+
"arguments": [{
|
|
141
|
+
"kind": "Argument",
|
|
142
|
+
"name": {
|
|
143
|
+
"kind": "Name",
|
|
144
|
+
"value": "input"
|
|
145
|
+
},
|
|
146
|
+
"value": {
|
|
147
|
+
"kind": "Variable",
|
|
148
|
+
"name": {
|
|
149
|
+
"kind": "Name",
|
|
150
|
+
"value": "input"
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}],
|
|
154
|
+
"directives": [],
|
|
155
|
+
"selectionSet": {
|
|
156
|
+
"kind": "SelectionSet",
|
|
157
|
+
"selections": [
|
|
158
|
+
{
|
|
159
|
+
"kind": "Field",
|
|
160
|
+
"name": {
|
|
161
|
+
"kind": "Name",
|
|
162
|
+
"value": "skipped"
|
|
163
|
+
},
|
|
164
|
+
"arguments": [],
|
|
165
|
+
"directives": []
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"kind": "Field",
|
|
169
|
+
"name": {
|
|
170
|
+
"kind": "Name",
|
|
171
|
+
"value": "reason"
|
|
172
|
+
},
|
|
173
|
+
"arguments": [],
|
|
174
|
+
"directives": []
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"kind": "Field",
|
|
178
|
+
"name": {
|
|
179
|
+
"kind": "Name",
|
|
180
|
+
"value": "scannedRuns"
|
|
181
|
+
},
|
|
182
|
+
"arguments": [],
|
|
183
|
+
"directives": []
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"kind": "Field",
|
|
187
|
+
"name": {
|
|
188
|
+
"kind": "Name",
|
|
189
|
+
"value": "suppressedTransient"
|
|
190
|
+
},
|
|
191
|
+
"arguments": [],
|
|
192
|
+
"directives": []
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"kind": "Field",
|
|
196
|
+
"name": {
|
|
197
|
+
"kind": "Name",
|
|
198
|
+
"value": "recoveredRuns"
|
|
199
|
+
},
|
|
200
|
+
"arguments": [],
|
|
201
|
+
"directives": []
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"kind": "Field",
|
|
205
|
+
"name": {
|
|
206
|
+
"kind": "Name",
|
|
207
|
+
"value": "newClusterCount"
|
|
208
|
+
},
|
|
209
|
+
"arguments": [],
|
|
210
|
+
"directives": []
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"kind": "Field",
|
|
214
|
+
"name": {
|
|
215
|
+
"kind": "Name",
|
|
216
|
+
"value": "deferredClusters"
|
|
217
|
+
},
|
|
218
|
+
"arguments": [],
|
|
219
|
+
"directives": []
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"kind": "Field",
|
|
223
|
+
"name": {
|
|
224
|
+
"kind": "Name",
|
|
225
|
+
"value": "updatedClusters"
|
|
226
|
+
},
|
|
227
|
+
"arguments": [],
|
|
228
|
+
"directives": []
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"kind": "Field",
|
|
232
|
+
"name": {
|
|
233
|
+
"kind": "Name",
|
|
234
|
+
"value": "resolvedClusters"
|
|
235
|
+
},
|
|
236
|
+
"arguments": [],
|
|
237
|
+
"directives": []
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"kind": "Field",
|
|
241
|
+
"name": {
|
|
242
|
+
"kind": "Name",
|
|
243
|
+
"value": "cursorAt"
|
|
244
|
+
},
|
|
245
|
+
"arguments": [],
|
|
246
|
+
"directives": []
|
|
247
|
+
}
|
|
248
|
+
]
|
|
249
|
+
}
|
|
250
|
+
}]
|
|
251
|
+
}
|
|
252
|
+
}]
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
// src/generated/documents/wspace/SetRunFailureTriageEnabledDocument.ts
|
|
256
|
+
const SetRunFailureTriageEnabledDocument = {
|
|
257
|
+
"kind": "Document",
|
|
258
|
+
"definitions": [{
|
|
259
|
+
"kind": "OperationDefinition",
|
|
260
|
+
"operation": "mutation",
|
|
261
|
+
"name": {
|
|
262
|
+
"kind": "Name",
|
|
263
|
+
"value": "SetRunFailureTriageEnabled"
|
|
264
|
+
},
|
|
265
|
+
"variableDefinitions": [{
|
|
266
|
+
"kind": "VariableDefinition",
|
|
267
|
+
"variable": {
|
|
268
|
+
"kind": "Variable",
|
|
269
|
+
"name": {
|
|
270
|
+
"kind": "Name",
|
|
271
|
+
"value": "enabled"
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
"type": {
|
|
275
|
+
"kind": "NonNullType",
|
|
276
|
+
"type": {
|
|
277
|
+
"kind": "NamedType",
|
|
278
|
+
"name": {
|
|
279
|
+
"kind": "Name",
|
|
280
|
+
"value": "Boolean"
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
"directives": []
|
|
285
|
+
}],
|
|
286
|
+
"directives": [],
|
|
287
|
+
"selectionSet": {
|
|
288
|
+
"kind": "SelectionSet",
|
|
289
|
+
"selections": [{
|
|
290
|
+
"kind": "Field",
|
|
291
|
+
"name": {
|
|
292
|
+
"kind": "Name",
|
|
293
|
+
"value": "setRunFailureTriageEnabled"
|
|
294
|
+
},
|
|
295
|
+
"arguments": [{
|
|
296
|
+
"kind": "Argument",
|
|
297
|
+
"name": {
|
|
298
|
+
"kind": "Name",
|
|
299
|
+
"value": "enabled"
|
|
300
|
+
},
|
|
301
|
+
"value": {
|
|
302
|
+
"kind": "Variable",
|
|
303
|
+
"name": {
|
|
304
|
+
"kind": "Name",
|
|
305
|
+
"value": "enabled"
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}],
|
|
309
|
+
"directives": [],
|
|
310
|
+
"selectionSet": {
|
|
311
|
+
"kind": "SelectionSet",
|
|
312
|
+
"selections": [
|
|
313
|
+
{
|
|
314
|
+
"kind": "Field",
|
|
315
|
+
"name": {
|
|
316
|
+
"kind": "Name",
|
|
317
|
+
"value": "enabled"
|
|
318
|
+
},
|
|
319
|
+
"arguments": [],
|
|
320
|
+
"directives": []
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"kind": "Field",
|
|
324
|
+
"name": {
|
|
325
|
+
"kind": "Name",
|
|
326
|
+
"value": "enabledBy"
|
|
327
|
+
},
|
|
328
|
+
"arguments": [],
|
|
329
|
+
"directives": []
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"kind": "Field",
|
|
333
|
+
"name": {
|
|
334
|
+
"kind": "Name",
|
|
335
|
+
"value": "enabledAt"
|
|
336
|
+
},
|
|
337
|
+
"arguments": [],
|
|
338
|
+
"directives": []
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"kind": "Field",
|
|
342
|
+
"name": {
|
|
343
|
+
"kind": "Name",
|
|
344
|
+
"value": "killSwitchOn"
|
|
345
|
+
},
|
|
346
|
+
"arguments": [],
|
|
347
|
+
"directives": []
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"kind": "Field",
|
|
351
|
+
"name": {
|
|
352
|
+
"kind": "Name",
|
|
353
|
+
"value": "lastTickAt"
|
|
354
|
+
},
|
|
355
|
+
"arguments": [],
|
|
356
|
+
"directives": []
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"kind": "Field",
|
|
360
|
+
"name": {
|
|
361
|
+
"kind": "Name",
|
|
362
|
+
"value": "lastTickSummary"
|
|
363
|
+
},
|
|
364
|
+
"arguments": [],
|
|
365
|
+
"directives": []
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"kind": "Field",
|
|
369
|
+
"name": {
|
|
370
|
+
"kind": "Name",
|
|
371
|
+
"value": "lastDigestAt"
|
|
372
|
+
},
|
|
373
|
+
"arguments": [],
|
|
374
|
+
"directives": []
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"kind": "Field",
|
|
378
|
+
"name": {
|
|
379
|
+
"kind": "Name",
|
|
380
|
+
"value": "systemWorkflows"
|
|
381
|
+
},
|
|
382
|
+
"arguments": [],
|
|
383
|
+
"directives": [],
|
|
384
|
+
"selectionSet": {
|
|
385
|
+
"kind": "SelectionSet",
|
|
386
|
+
"selections": [
|
|
387
|
+
{
|
|
388
|
+
"kind": "Field",
|
|
389
|
+
"name": {
|
|
390
|
+
"kind": "Name",
|
|
391
|
+
"value": "systemKey"
|
|
392
|
+
},
|
|
393
|
+
"arguments": [],
|
|
394
|
+
"directives": []
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"kind": "Field",
|
|
398
|
+
"name": {
|
|
399
|
+
"kind": "Name",
|
|
400
|
+
"value": "workflowKey"
|
|
401
|
+
},
|
|
402
|
+
"arguments": [],
|
|
403
|
+
"directives": []
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"kind": "Field",
|
|
407
|
+
"name": {
|
|
408
|
+
"kind": "Name",
|
|
409
|
+
"value": "version"
|
|
410
|
+
},
|
|
411
|
+
"arguments": [],
|
|
412
|
+
"directives": []
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"kind": "Field",
|
|
416
|
+
"name": {
|
|
417
|
+
"kind": "Name",
|
|
418
|
+
"value": "enabled"
|
|
419
|
+
},
|
|
420
|
+
"arguments": [],
|
|
421
|
+
"directives": []
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"kind": "Field",
|
|
425
|
+
"name": {
|
|
426
|
+
"kind": "Name",
|
|
427
|
+
"value": "installedBy"
|
|
428
|
+
},
|
|
429
|
+
"arguments": [],
|
|
430
|
+
"directives": []
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"kind": "Field",
|
|
434
|
+
"name": {
|
|
435
|
+
"kind": "Name",
|
|
436
|
+
"value": "updatedAt"
|
|
437
|
+
},
|
|
438
|
+
"arguments": [],
|
|
439
|
+
"directives": []
|
|
440
|
+
}
|
|
441
|
+
]
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
]
|
|
445
|
+
}
|
|
446
|
+
}]
|
|
447
|
+
}
|
|
448
|
+
}]
|
|
449
|
+
};
|
|
450
|
+
|
|
451
|
+
// src/generated/documents/wspace/RunFailureClustersDocument.ts
|
|
452
|
+
const RunFailureClustersDocument = {
|
|
453
|
+
"kind": "Document",
|
|
454
|
+
"definitions": [{
|
|
455
|
+
"kind": "OperationDefinition",
|
|
456
|
+
"operation": "query",
|
|
457
|
+
"name": {
|
|
458
|
+
"kind": "Name",
|
|
459
|
+
"value": "RunFailureClusters"
|
|
460
|
+
},
|
|
461
|
+
"variableDefinitions": [
|
|
462
|
+
{
|
|
463
|
+
"kind": "VariableDefinition",
|
|
464
|
+
"variable": {
|
|
465
|
+
"kind": "Variable",
|
|
466
|
+
"name": {
|
|
467
|
+
"kind": "Name",
|
|
468
|
+
"value": "filter"
|
|
469
|
+
}
|
|
470
|
+
},
|
|
471
|
+
"type": {
|
|
472
|
+
"kind": "NamedType",
|
|
473
|
+
"name": {
|
|
474
|
+
"kind": "Name",
|
|
475
|
+
"value": "RunFailureClusterFilter"
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
"directives": []
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"kind": "VariableDefinition",
|
|
482
|
+
"variable": {
|
|
483
|
+
"kind": "Variable",
|
|
484
|
+
"name": {
|
|
485
|
+
"kind": "Name",
|
|
486
|
+
"value": "limit"
|
|
487
|
+
}
|
|
488
|
+
},
|
|
489
|
+
"type": {
|
|
490
|
+
"kind": "NamedType",
|
|
491
|
+
"name": {
|
|
492
|
+
"kind": "Name",
|
|
493
|
+
"value": "Int"
|
|
494
|
+
}
|
|
495
|
+
},
|
|
496
|
+
"directives": []
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
"kind": "VariableDefinition",
|
|
500
|
+
"variable": {
|
|
501
|
+
"kind": "Variable",
|
|
502
|
+
"name": {
|
|
503
|
+
"kind": "Name",
|
|
504
|
+
"value": "offset"
|
|
505
|
+
}
|
|
506
|
+
},
|
|
507
|
+
"type": {
|
|
508
|
+
"kind": "NamedType",
|
|
509
|
+
"name": {
|
|
510
|
+
"kind": "Name",
|
|
511
|
+
"value": "Int"
|
|
512
|
+
}
|
|
513
|
+
},
|
|
514
|
+
"directives": []
|
|
515
|
+
}
|
|
516
|
+
],
|
|
517
|
+
"directives": [],
|
|
518
|
+
"selectionSet": {
|
|
519
|
+
"kind": "SelectionSet",
|
|
520
|
+
"selections": [{
|
|
521
|
+
"kind": "Field",
|
|
522
|
+
"name": {
|
|
523
|
+
"kind": "Name",
|
|
524
|
+
"value": "runFailureClusters"
|
|
525
|
+
},
|
|
526
|
+
"arguments": [
|
|
527
|
+
{
|
|
528
|
+
"kind": "Argument",
|
|
529
|
+
"name": {
|
|
530
|
+
"kind": "Name",
|
|
531
|
+
"value": "filter"
|
|
532
|
+
},
|
|
533
|
+
"value": {
|
|
534
|
+
"kind": "Variable",
|
|
535
|
+
"name": {
|
|
536
|
+
"kind": "Name",
|
|
537
|
+
"value": "filter"
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"kind": "Argument",
|
|
543
|
+
"name": {
|
|
544
|
+
"kind": "Name",
|
|
545
|
+
"value": "limit"
|
|
546
|
+
},
|
|
547
|
+
"value": {
|
|
548
|
+
"kind": "Variable",
|
|
549
|
+
"name": {
|
|
550
|
+
"kind": "Name",
|
|
551
|
+
"value": "limit"
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"kind": "Argument",
|
|
557
|
+
"name": {
|
|
558
|
+
"kind": "Name",
|
|
559
|
+
"value": "offset"
|
|
560
|
+
},
|
|
561
|
+
"value": {
|
|
562
|
+
"kind": "Variable",
|
|
563
|
+
"name": {
|
|
564
|
+
"kind": "Name",
|
|
565
|
+
"value": "offset"
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
],
|
|
570
|
+
"directives": [],
|
|
571
|
+
"selectionSet": {
|
|
572
|
+
"kind": "SelectionSet",
|
|
573
|
+
"selections": [{
|
|
574
|
+
"kind": "Field",
|
|
575
|
+
"name": {
|
|
576
|
+
"kind": "Name",
|
|
577
|
+
"value": "total"
|
|
578
|
+
},
|
|
579
|
+
"arguments": [],
|
|
580
|
+
"directives": []
|
|
581
|
+
}, {
|
|
582
|
+
"kind": "Field",
|
|
583
|
+
"name": {
|
|
584
|
+
"kind": "Name",
|
|
585
|
+
"value": "items"
|
|
586
|
+
},
|
|
587
|
+
"arguments": [],
|
|
588
|
+
"directives": [],
|
|
589
|
+
"selectionSet": {
|
|
590
|
+
"kind": "SelectionSet",
|
|
591
|
+
"selections": [{
|
|
592
|
+
"kind": "FragmentSpread",
|
|
593
|
+
"name": {
|
|
594
|
+
"kind": "Name",
|
|
595
|
+
"value": "RunFailureClusterFields"
|
|
596
|
+
},
|
|
597
|
+
"directives": []
|
|
598
|
+
}]
|
|
599
|
+
}
|
|
600
|
+
}]
|
|
601
|
+
}
|
|
602
|
+
}]
|
|
603
|
+
}
|
|
604
|
+
}, {
|
|
605
|
+
"kind": "FragmentDefinition",
|
|
606
|
+
"name": {
|
|
607
|
+
"kind": "Name",
|
|
608
|
+
"value": "RunFailureClusterFields"
|
|
609
|
+
},
|
|
610
|
+
"variableDefinitions": [],
|
|
611
|
+
"typeCondition": {
|
|
612
|
+
"kind": "NamedType",
|
|
613
|
+
"name": {
|
|
614
|
+
"kind": "Name",
|
|
615
|
+
"value": "RunFailureCluster"
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
"directives": [],
|
|
619
|
+
"selectionSet": {
|
|
620
|
+
"kind": "SelectionSet",
|
|
621
|
+
"selections": [
|
|
622
|
+
{
|
|
623
|
+
"kind": "Field",
|
|
624
|
+
"name": {
|
|
625
|
+
"kind": "Name",
|
|
626
|
+
"value": "id"
|
|
627
|
+
},
|
|
628
|
+
"arguments": [],
|
|
629
|
+
"directives": []
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
"kind": "Field",
|
|
633
|
+
"name": {
|
|
634
|
+
"kind": "Name",
|
|
635
|
+
"value": "workflowKey"
|
|
636
|
+
},
|
|
637
|
+
"arguments": [],
|
|
638
|
+
"directives": []
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"kind": "Field",
|
|
642
|
+
"name": {
|
|
643
|
+
"kind": "Name",
|
|
644
|
+
"value": "workflowName"
|
|
645
|
+
},
|
|
646
|
+
"arguments": [],
|
|
647
|
+
"directives": []
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
"kind": "Field",
|
|
651
|
+
"name": {
|
|
652
|
+
"kind": "Name",
|
|
653
|
+
"value": "nodeId"
|
|
654
|
+
},
|
|
655
|
+
"arguments": [],
|
|
656
|
+
"directives": []
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
"kind": "Field",
|
|
660
|
+
"name": {
|
|
661
|
+
"kind": "Name",
|
|
662
|
+
"value": "nodeType"
|
|
663
|
+
},
|
|
664
|
+
"arguments": [],
|
|
665
|
+
"directives": []
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"kind": "Field",
|
|
669
|
+
"name": {
|
|
670
|
+
"kind": "Name",
|
|
671
|
+
"value": "bucket"
|
|
672
|
+
},
|
|
673
|
+
"arguments": [],
|
|
674
|
+
"directives": []
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
"kind": "Field",
|
|
678
|
+
"name": {
|
|
679
|
+
"kind": "Name",
|
|
680
|
+
"value": "errorType"
|
|
681
|
+
},
|
|
682
|
+
"arguments": [],
|
|
683
|
+
"directives": []
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
"kind": "Field",
|
|
687
|
+
"name": {
|
|
688
|
+
"kind": "Name",
|
|
689
|
+
"value": "signature"
|
|
690
|
+
},
|
|
691
|
+
"arguments": [],
|
|
692
|
+
"directives": []
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
"kind": "Field",
|
|
696
|
+
"name": {
|
|
697
|
+
"kind": "Name",
|
|
698
|
+
"value": "sampleError"
|
|
699
|
+
},
|
|
700
|
+
"arguments": [],
|
|
701
|
+
"directives": []
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
"kind": "Field",
|
|
705
|
+
"name": {
|
|
706
|
+
"kind": "Name",
|
|
707
|
+
"value": "sampleRunIds"
|
|
708
|
+
},
|
|
709
|
+
"arguments": [],
|
|
710
|
+
"directives": []
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
"kind": "Field",
|
|
714
|
+
"name": {
|
|
715
|
+
"kind": "Name",
|
|
716
|
+
"value": "lastRunId"
|
|
717
|
+
},
|
|
718
|
+
"arguments": [],
|
|
719
|
+
"directives": []
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"kind": "Field",
|
|
723
|
+
"name": {
|
|
724
|
+
"kind": "Name",
|
|
725
|
+
"value": "runCount"
|
|
726
|
+
},
|
|
727
|
+
"arguments": [],
|
|
728
|
+
"directives": []
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
"kind": "Field",
|
|
732
|
+
"name": {
|
|
733
|
+
"kind": "Name",
|
|
734
|
+
"value": "firstSeenAt"
|
|
735
|
+
},
|
|
736
|
+
"arguments": [],
|
|
737
|
+
"directives": []
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
"kind": "Field",
|
|
741
|
+
"name": {
|
|
742
|
+
"kind": "Name",
|
|
743
|
+
"value": "lastSeenAt"
|
|
744
|
+
},
|
|
745
|
+
"arguments": [],
|
|
746
|
+
"directives": []
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
"kind": "Field",
|
|
750
|
+
"name": {
|
|
751
|
+
"kind": "Name",
|
|
752
|
+
"value": "status"
|
|
753
|
+
},
|
|
754
|
+
"arguments": [],
|
|
755
|
+
"directives": []
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
"kind": "Field",
|
|
759
|
+
"name": {
|
|
760
|
+
"kind": "Name",
|
|
761
|
+
"value": "proposalId"
|
|
762
|
+
},
|
|
763
|
+
"arguments": [],
|
|
764
|
+
"directives": []
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
"kind": "Field",
|
|
768
|
+
"name": {
|
|
769
|
+
"kind": "Name",
|
|
770
|
+
"value": "proposedAt"
|
|
771
|
+
},
|
|
772
|
+
"arguments": [],
|
|
773
|
+
"directives": []
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
"kind": "Field",
|
|
777
|
+
"name": {
|
|
778
|
+
"kind": "Name",
|
|
779
|
+
"value": "advice"
|
|
780
|
+
},
|
|
781
|
+
"arguments": [],
|
|
782
|
+
"directives": []
|
|
783
|
+
}
|
|
784
|
+
]
|
|
785
|
+
}
|
|
786
|
+
}]
|
|
787
|
+
};
|
|
788
|
+
|
|
789
|
+
// src/generated/documents/wspace/RunFailureTriageSettingsDocument.ts
|
|
790
|
+
const RunFailureTriageSettingsDocument = {
|
|
791
|
+
"kind": "Document",
|
|
792
|
+
"definitions": [{
|
|
793
|
+
"kind": "OperationDefinition",
|
|
794
|
+
"operation": "query",
|
|
795
|
+
"name": {
|
|
796
|
+
"kind": "Name",
|
|
797
|
+
"value": "RunFailureTriageSettings"
|
|
798
|
+
},
|
|
799
|
+
"variableDefinitions": [],
|
|
800
|
+
"directives": [],
|
|
801
|
+
"selectionSet": {
|
|
802
|
+
"kind": "SelectionSet",
|
|
803
|
+
"selections": [{
|
|
804
|
+
"kind": "Field",
|
|
805
|
+
"name": {
|
|
806
|
+
"kind": "Name",
|
|
807
|
+
"value": "runFailureTriageSettings"
|
|
808
|
+
},
|
|
809
|
+
"arguments": [],
|
|
810
|
+
"directives": [],
|
|
811
|
+
"selectionSet": {
|
|
812
|
+
"kind": "SelectionSet",
|
|
813
|
+
"selections": [{
|
|
814
|
+
"kind": "FragmentSpread",
|
|
815
|
+
"name": {
|
|
816
|
+
"kind": "Name",
|
|
817
|
+
"value": "RunFailureTriageSettingsFields"
|
|
818
|
+
},
|
|
819
|
+
"directives": []
|
|
820
|
+
}]
|
|
821
|
+
}
|
|
822
|
+
}]
|
|
823
|
+
}
|
|
824
|
+
}, {
|
|
825
|
+
"kind": "FragmentDefinition",
|
|
826
|
+
"name": {
|
|
827
|
+
"kind": "Name",
|
|
828
|
+
"value": "RunFailureTriageSettingsFields"
|
|
829
|
+
},
|
|
830
|
+
"variableDefinitions": [],
|
|
831
|
+
"typeCondition": {
|
|
832
|
+
"kind": "NamedType",
|
|
833
|
+
"name": {
|
|
834
|
+
"kind": "Name",
|
|
835
|
+
"value": "RunFailureTriageSettings"
|
|
836
|
+
}
|
|
837
|
+
},
|
|
838
|
+
"directives": [],
|
|
839
|
+
"selectionSet": {
|
|
840
|
+
"kind": "SelectionSet",
|
|
841
|
+
"selections": [
|
|
842
|
+
{
|
|
843
|
+
"kind": "Field",
|
|
844
|
+
"name": {
|
|
845
|
+
"kind": "Name",
|
|
846
|
+
"value": "enabled"
|
|
847
|
+
},
|
|
848
|
+
"arguments": [],
|
|
849
|
+
"directives": []
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
"kind": "Field",
|
|
853
|
+
"name": {
|
|
854
|
+
"kind": "Name",
|
|
855
|
+
"value": "enabledBy"
|
|
856
|
+
},
|
|
857
|
+
"arguments": [],
|
|
858
|
+
"directives": []
|
|
859
|
+
},
|
|
860
|
+
{
|
|
861
|
+
"kind": "Field",
|
|
862
|
+
"name": {
|
|
863
|
+
"kind": "Name",
|
|
864
|
+
"value": "enabledAt"
|
|
865
|
+
},
|
|
866
|
+
"arguments": [],
|
|
867
|
+
"directives": []
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
"kind": "Field",
|
|
871
|
+
"name": {
|
|
872
|
+
"kind": "Name",
|
|
873
|
+
"value": "killSwitchOn"
|
|
874
|
+
},
|
|
875
|
+
"arguments": [],
|
|
876
|
+
"directives": []
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
"kind": "Field",
|
|
880
|
+
"name": {
|
|
881
|
+
"kind": "Name",
|
|
882
|
+
"value": "lastTickAt"
|
|
883
|
+
},
|
|
884
|
+
"arguments": [],
|
|
885
|
+
"directives": []
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
"kind": "Field",
|
|
889
|
+
"name": {
|
|
890
|
+
"kind": "Name",
|
|
891
|
+
"value": "lastTickSummary"
|
|
892
|
+
},
|
|
893
|
+
"arguments": [],
|
|
894
|
+
"directives": []
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
"kind": "Field",
|
|
898
|
+
"name": {
|
|
899
|
+
"kind": "Name",
|
|
900
|
+
"value": "lastDigestAt"
|
|
901
|
+
},
|
|
902
|
+
"arguments": [],
|
|
903
|
+
"directives": []
|
|
904
|
+
},
|
|
905
|
+
{
|
|
906
|
+
"kind": "Field",
|
|
907
|
+
"name": {
|
|
908
|
+
"kind": "Name",
|
|
909
|
+
"value": "systemWorkflows"
|
|
910
|
+
},
|
|
911
|
+
"arguments": [],
|
|
912
|
+
"directives": [],
|
|
913
|
+
"selectionSet": {
|
|
914
|
+
"kind": "SelectionSet",
|
|
915
|
+
"selections": [
|
|
916
|
+
{
|
|
917
|
+
"kind": "Field",
|
|
918
|
+
"name": {
|
|
919
|
+
"kind": "Name",
|
|
920
|
+
"value": "systemKey"
|
|
921
|
+
},
|
|
922
|
+
"arguments": [],
|
|
923
|
+
"directives": []
|
|
924
|
+
},
|
|
925
|
+
{
|
|
926
|
+
"kind": "Field",
|
|
927
|
+
"name": {
|
|
928
|
+
"kind": "Name",
|
|
929
|
+
"value": "workflowKey"
|
|
930
|
+
},
|
|
931
|
+
"arguments": [],
|
|
932
|
+
"directives": []
|
|
933
|
+
},
|
|
934
|
+
{
|
|
935
|
+
"kind": "Field",
|
|
936
|
+
"name": {
|
|
937
|
+
"kind": "Name",
|
|
938
|
+
"value": "version"
|
|
939
|
+
},
|
|
940
|
+
"arguments": [],
|
|
941
|
+
"directives": []
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
"kind": "Field",
|
|
945
|
+
"name": {
|
|
946
|
+
"kind": "Name",
|
|
947
|
+
"value": "enabled"
|
|
948
|
+
},
|
|
949
|
+
"arguments": [],
|
|
950
|
+
"directives": []
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
"kind": "Field",
|
|
954
|
+
"name": {
|
|
955
|
+
"kind": "Name",
|
|
956
|
+
"value": "installedBy"
|
|
957
|
+
},
|
|
958
|
+
"arguments": [],
|
|
959
|
+
"directives": []
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
"kind": "Field",
|
|
963
|
+
"name": {
|
|
964
|
+
"kind": "Name",
|
|
965
|
+
"value": "updatedAt"
|
|
966
|
+
},
|
|
967
|
+
"arguments": [],
|
|
968
|
+
"directives": []
|
|
969
|
+
}
|
|
970
|
+
]
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
]
|
|
974
|
+
}
|
|
975
|
+
}]
|
|
976
|
+
};
|
|
977
|
+
|
|
978
|
+
// src/modules/observability/hooks/useFailureTriage.ts
|
|
979
|
+
/**
|
|
980
|
+
* Failure triage (BOFF-3698): the opt-in, the caller's failure clusters and a
|
|
981
|
+
* manual triage pass. Clusters are built from the caller's own runs only.
|
|
982
|
+
*/
|
|
983
|
+
/** Clusters that still need a decision. */
|
|
984
|
+
const OPEN_STATUSES = ["OPEN", "PROPOSED"];
|
|
985
|
+
function messageOf(error) {
|
|
986
|
+
return error instanceof Error ? error.message : String(error);
|
|
987
|
+
}
|
|
988
|
+
/** The caller's clusters, optionally only those that include one run. */
|
|
989
|
+
async function fetchRunFailureClusters(variables) {
|
|
990
|
+
return throwIfResultError(await getFluidGridsClient().query({
|
|
991
|
+
query: RunFailureClustersDocument,
|
|
992
|
+
variables,
|
|
993
|
+
fetchPolicy: "network-only"
|
|
994
|
+
})).data?.runFailureClusters.items ?? [];
|
|
995
|
+
}
|
|
996
|
+
async function dismissRunFailureCluster(id) {
|
|
997
|
+
throwIfResultError(await getFluidGridsClient().mutate({
|
|
998
|
+
mutation: DismissRunFailureClusterDocument,
|
|
999
|
+
variables: { id }
|
|
1000
|
+
}));
|
|
1001
|
+
}
|
|
1002
|
+
function useFailureTriage() {
|
|
1003
|
+
const [settings, setSettings] = useState(null);
|
|
1004
|
+
const [clusters, setClusters] = useState([]);
|
|
1005
|
+
const [loading, setLoading] = useState(true);
|
|
1006
|
+
const [busy, setBusy] = useState(false);
|
|
1007
|
+
const [error, setError] = useState(null);
|
|
1008
|
+
const [lastRun, setLastRun] = useState(null);
|
|
1009
|
+
const refetch = useCallback(async () => {
|
|
1010
|
+
setLoading(true);
|
|
1011
|
+
setError(null);
|
|
1012
|
+
try {
|
|
1013
|
+
const [settingsResult, items] = await Promise.all([getFluidGridsClient().query({
|
|
1014
|
+
query: RunFailureTriageSettingsDocument,
|
|
1015
|
+
fetchPolicy: "network-only"
|
|
1016
|
+
}), fetchRunFailureClusters({
|
|
1017
|
+
filter: { status: OPEN_STATUSES },
|
|
1018
|
+
limit: 20
|
|
1019
|
+
})]);
|
|
1020
|
+
setSettings(throwIfResultError(settingsResult).data?.runFailureTriageSettings ?? null);
|
|
1021
|
+
setClusters(items);
|
|
1022
|
+
} catch (loadError) {
|
|
1023
|
+
setError(messageOf(loadError));
|
|
1024
|
+
} finally {
|
|
1025
|
+
setLoading(false);
|
|
1026
|
+
}
|
|
1027
|
+
}, []);
|
|
1028
|
+
useEffect(() => {
|
|
1029
|
+
refetch();
|
|
1030
|
+
}, [refetch]);
|
|
1031
|
+
return {
|
|
1032
|
+
settings,
|
|
1033
|
+
clusters,
|
|
1034
|
+
loading,
|
|
1035
|
+
busy,
|
|
1036
|
+
error,
|
|
1037
|
+
lastRun,
|
|
1038
|
+
refetch,
|
|
1039
|
+
setEnabled: useCallback(async (enabled) => {
|
|
1040
|
+
setBusy(true);
|
|
1041
|
+
setError(null);
|
|
1042
|
+
try {
|
|
1043
|
+
const result = throwIfResultError(await getFluidGridsClient().mutate({
|
|
1044
|
+
mutation: SetRunFailureTriageEnabledDocument,
|
|
1045
|
+
variables: { enabled }
|
|
1046
|
+
}));
|
|
1047
|
+
setSettings(result.data?.setRunFailureTriageEnabled ?? null);
|
|
1048
|
+
} catch (toggleError) {
|
|
1049
|
+
setError(messageOf(toggleError));
|
|
1050
|
+
} finally {
|
|
1051
|
+
setBusy(false);
|
|
1052
|
+
}
|
|
1053
|
+
}, []),
|
|
1054
|
+
runNow: useCallback(async () => {
|
|
1055
|
+
setBusy(true);
|
|
1056
|
+
setError(null);
|
|
1057
|
+
try {
|
|
1058
|
+
const result = throwIfResultError(await getFluidGridsClient().mutate({
|
|
1059
|
+
mutation: FgTriageFailedRunsDocument,
|
|
1060
|
+
variables: {}
|
|
1061
|
+
}));
|
|
1062
|
+
setLastRun(result.data?.fgTriageFailedRuns ?? null);
|
|
1063
|
+
setClusters(await fetchRunFailureClusters({
|
|
1064
|
+
filter: { status: OPEN_STATUSES },
|
|
1065
|
+
limit: 20
|
|
1066
|
+
}));
|
|
1067
|
+
} catch (runError) {
|
|
1068
|
+
setError(messageOf(runError));
|
|
1069
|
+
} finally {
|
|
1070
|
+
setBusy(false);
|
|
1071
|
+
}
|
|
1072
|
+
}, []),
|
|
1073
|
+
dismiss: useCallback(async (id) => {
|
|
1074
|
+
setError(null);
|
|
1075
|
+
try {
|
|
1076
|
+
await dismissRunFailureCluster(id);
|
|
1077
|
+
setClusters((current) => current.filter((cluster) => cluster.id !== id));
|
|
1078
|
+
} catch (dismissError) {
|
|
1079
|
+
setError(messageOf(dismissError));
|
|
1080
|
+
}
|
|
1081
|
+
}, [])
|
|
1082
|
+
};
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
// src/modules/observability/components/FailureTriagePanel.tsx
|
|
1086
|
+
/**
|
|
1087
|
+
* Insights: Failure triage (BOFF-3698).
|
|
1088
|
+
*
|
|
1089
|
+
* Failure triage is an opt-in, hourly FluidGrids workflow that groups this
|
|
1090
|
+
* workspace's failed production runs into clusters, leaves transient failures
|
|
1091
|
+
* to the retry, prepares an AI fix proposal for each new cluster and tells the
|
|
1092
|
+
* person the runs ran as. It only proposes: nothing changes until someone
|
|
1093
|
+
* applies a proposal on the run page. This panel turns it on and off and lists
|
|
1094
|
+
* the caller's open clusters.
|
|
1095
|
+
*/
|
|
1096
|
+
const BUCKET_LABELS = {
|
|
1097
|
+
EXPIRED_CONNECTION: {
|
|
1098
|
+
label: "Expired connection",
|
|
1099
|
+
icon: "mdi:key-alert-outline"
|
|
1100
|
+
},
|
|
1101
|
+
CONNECTOR_CONTRACT_CHANGE: {
|
|
1102
|
+
label: "Connector change",
|
|
1103
|
+
icon: "mdi:swap-horizontal"
|
|
1104
|
+
},
|
|
1105
|
+
BAD_NODE_CONFIG: {
|
|
1106
|
+
label: "Node configuration",
|
|
1107
|
+
icon: "mdi:cog-outline"
|
|
1108
|
+
},
|
|
1109
|
+
UPSTREAM_TRANSIENT: {
|
|
1110
|
+
label: "Transient",
|
|
1111
|
+
icon: "mdi:weather-cloudy-alert"
|
|
1112
|
+
},
|
|
1113
|
+
UNKNOWN: {
|
|
1114
|
+
label: "Unclassified",
|
|
1115
|
+
icon: "mdi:help-circle-outline"
|
|
1116
|
+
}
|
|
1117
|
+
};
|
|
1118
|
+
function ClusterRow({ cluster, canRetry, onOpenRun, onRetry, onDismiss }) {
|
|
1119
|
+
const tr = useTr();
|
|
1120
|
+
const bucket = BUCKET_LABELS[String(cluster.bucket)] ?? {
|
|
1121
|
+
label: String(cluster.bucket),
|
|
1122
|
+
icon: "mdi:alert-outline"
|
|
1123
|
+
};
|
|
1124
|
+
return /* @__PURE__ */ jsx("li", {
|
|
1125
|
+
className: "rounded-lg border border-border-default bg-surface-canvas p-3",
|
|
1126
|
+
"data-testid": "failure-cluster",
|
|
1127
|
+
"data-bucket": String(cluster.bucket),
|
|
1128
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
1129
|
+
className: "flex flex-col gap-2 sm:flex-row sm:items-start sm:justify-between",
|
|
1130
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
1131
|
+
className: "min-w-0",
|
|
1132
|
+
children: [
|
|
1133
|
+
/* @__PURE__ */ jsxs("div", {
|
|
1134
|
+
className: "flex flex-wrap items-center gap-2 text-sm",
|
|
1135
|
+
children: [
|
|
1136
|
+
/* @__PURE__ */ jsxs("span", {
|
|
1137
|
+
className: "inline-flex items-center gap-1 rounded-full bg-surface px-2 py-0.5 text-xs text-text-secondary",
|
|
1138
|
+
children: [/* @__PURE__ */ jsx(Icon, {
|
|
1139
|
+
icon: bucket.icon,
|
|
1140
|
+
width: 14
|
|
1141
|
+
}), tr(`fluidgrids.triage.bucket.${String(cluster.bucket)}`, bucket.label)]
|
|
1142
|
+
}),
|
|
1143
|
+
/* @__PURE__ */ jsx("span", {
|
|
1144
|
+
className: "font-medium text-text-primary",
|
|
1145
|
+
children: cluster.workflowName || cluster.workflowKey
|
|
1146
|
+
}),
|
|
1147
|
+
/* @__PURE__ */ jsx("span", {
|
|
1148
|
+
className: "text-text-secondary",
|
|
1149
|
+
children: tr("fluidgrids.triage.atNode", "at {{node}}", { node: cluster.nodeId })
|
|
1150
|
+
})
|
|
1151
|
+
]
|
|
1152
|
+
}),
|
|
1153
|
+
/* @__PURE__ */ jsx("p", {
|
|
1154
|
+
className: "mt-1 break-words text-sm text-text-secondary",
|
|
1155
|
+
children: cluster.signature
|
|
1156
|
+
}),
|
|
1157
|
+
/* @__PURE__ */ jsxs("p", {
|
|
1158
|
+
className: "mt-1 text-xs text-text-secondary",
|
|
1159
|
+
children: [tr("fluidgrids.triage.runCount", "{{count}} failed run(s), last {{when}}", {
|
|
1160
|
+
count: cluster.runCount,
|
|
1161
|
+
when: new Date(String(cluster.lastSeenAt)).toLocaleString()
|
|
1162
|
+
}), cluster.proposalId ? ` · ${tr("fluidgrids.triage.proposalReady", "Fix proposal ready to review")}` : ""]
|
|
1163
|
+
}),
|
|
1164
|
+
/* @__PURE__ */ jsx("p", {
|
|
1165
|
+
className: "mt-1 text-xs text-text-primary",
|
|
1166
|
+
children: cluster.advice
|
|
1167
|
+
})
|
|
1168
|
+
]
|
|
1169
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
1170
|
+
className: "flex shrink-0 flex-wrap gap-2",
|
|
1171
|
+
children: [
|
|
1172
|
+
/* @__PURE__ */ jsx(Button, {
|
|
1173
|
+
size: "sm",
|
|
1174
|
+
variant: "outline",
|
|
1175
|
+
onClick: () => onOpenRun(cluster.lastRunId),
|
|
1176
|
+
"data-testid": "failure-cluster-open",
|
|
1177
|
+
children: cluster.proposalId ? tr("fluidgrids.triage.reviewFix", "Review fix") : tr("fluidgrids.triage.openRun", "Open run")
|
|
1178
|
+
}),
|
|
1179
|
+
canRetry && /* @__PURE__ */ jsx(Button, {
|
|
1180
|
+
size: "sm",
|
|
1181
|
+
variant: "outline",
|
|
1182
|
+
onClick: () => onRetry([cluster.lastRunId]),
|
|
1183
|
+
children: tr("fluidgrids.triage.retry", "Retry")
|
|
1184
|
+
}),
|
|
1185
|
+
/* @__PURE__ */ jsx(Button, {
|
|
1186
|
+
size: "sm",
|
|
1187
|
+
variant: "ghost",
|
|
1188
|
+
onClick: () => onDismiss(cluster.id),
|
|
1189
|
+
"data-testid": "failure-cluster-dismiss",
|
|
1190
|
+
children: tr("fluidgrids.triage.dismiss", "Dismiss")
|
|
1191
|
+
})
|
|
1192
|
+
]
|
|
1193
|
+
})]
|
|
1194
|
+
})
|
|
1195
|
+
});
|
|
1196
|
+
}
|
|
1197
|
+
function FailureTriagePanel({ canManage, canRetry, onOpenRun, onRetry }) {
|
|
1198
|
+
const tr = useTr();
|
|
1199
|
+
const triage = useFailureTriage();
|
|
1200
|
+
const enabled = triage.settings?.enabled ?? false;
|
|
1201
|
+
return /* @__PURE__ */ jsxs("section", {
|
|
1202
|
+
className: "mb-6 rounded-xl border border-border-default bg-surface p-4",
|
|
1203
|
+
"data-testid": "failure-triage-panel",
|
|
1204
|
+
children: [
|
|
1205
|
+
/* @__PURE__ */ jsxs("div", {
|
|
1206
|
+
className: "flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",
|
|
1207
|
+
children: [/* @__PURE__ */ jsxs("div", { children: [
|
|
1208
|
+
/* @__PURE__ */ jsxs("h2", {
|
|
1209
|
+
className: "flex items-center gap-2 text-base font-semibold text-text-primary",
|
|
1210
|
+
children: [/* @__PURE__ */ jsx(Icon, {
|
|
1211
|
+
icon: "mdi:stethoscope",
|
|
1212
|
+
width: 18
|
|
1213
|
+
}), tr("fluidgrids.triage.title", "Failure triage")]
|
|
1214
|
+
}),
|
|
1215
|
+
/* @__PURE__ */ jsx("p", {
|
|
1216
|
+
className: "mt-1 max-w-2xl text-sm text-text-secondary",
|
|
1217
|
+
children: tr("fluidgrids.triage.description", "Every hour, groups failed production runs, leaves temporary failures to the retry and prepares a fix proposal for you to review. It never changes a workflow on its own.")
|
|
1218
|
+
}),
|
|
1219
|
+
/* @__PURE__ */ jsxs("p", {
|
|
1220
|
+
className: "mt-1 text-xs text-text-secondary",
|
|
1221
|
+
"data-testid": "failure-triage-status",
|
|
1222
|
+
children: [
|
|
1223
|
+
enabled ? tr("fluidgrids.triage.on", "On") : tr("fluidgrids.triage.off", "Off"),
|
|
1224
|
+
triage.settings?.lastTickAt ? ` · ${tr("fluidgrids.triage.lastRun", "last run {{when}}", { when: new Date(String(triage.settings.lastTickAt)).toLocaleString() })}` : "",
|
|
1225
|
+
triage.settings && !triage.settings.killSwitchOn ? ` · ${tr("fluidgrids.triage.paused", "paused for this workspace")}` : ""
|
|
1226
|
+
]
|
|
1227
|
+
})
|
|
1228
|
+
] }), canManage && /* @__PURE__ */ jsxs("div", {
|
|
1229
|
+
className: "flex shrink-0 flex-wrap gap-2",
|
|
1230
|
+
children: [enabled && /* @__PURE__ */ jsx(Button, {
|
|
1231
|
+
size: "sm",
|
|
1232
|
+
variant: "outline",
|
|
1233
|
+
onClick: () => void triage.runNow(),
|
|
1234
|
+
disabled: triage.busy,
|
|
1235
|
+
"data-testid": "failure-triage-run-now",
|
|
1236
|
+
children: tr("fluidgrids.triage.runNow", "Run now")
|
|
1237
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
1238
|
+
size: "sm",
|
|
1239
|
+
variant: enabled ? "outline" : "default",
|
|
1240
|
+
onClick: () => void triage.setEnabled(!enabled),
|
|
1241
|
+
disabled: triage.busy || triage.loading,
|
|
1242
|
+
"data-testid": "failure-triage-toggle",
|
|
1243
|
+
children: enabled ? tr("fluidgrids.triage.turnOff", "Turn off") : tr("fluidgrids.triage.turnOn", "Turn on")
|
|
1244
|
+
})]
|
|
1245
|
+
})]
|
|
1246
|
+
}),
|
|
1247
|
+
triage.error && /* @__PURE__ */ jsx("p", {
|
|
1248
|
+
className: "mt-3 text-sm text-status-error-text",
|
|
1249
|
+
children: triage.error
|
|
1250
|
+
}),
|
|
1251
|
+
triage.lastRun && !triage.lastRun.skipped && /* @__PURE__ */ jsx("p", {
|
|
1252
|
+
className: "mt-3 text-xs text-text-secondary",
|
|
1253
|
+
children: tr("fluidgrids.triage.lastRunSummary", "Checked {{scanned}} failed run(s): {{created}} new cluster(s), {{suppressed}} left to the retry.", {
|
|
1254
|
+
scanned: triage.lastRun.scannedRuns,
|
|
1255
|
+
created: triage.lastRun.newClusterCount,
|
|
1256
|
+
suppressed: triage.lastRun.suppressedTransient
|
|
1257
|
+
})
|
|
1258
|
+
}),
|
|
1259
|
+
triage.clusters.length > 0 ? /* @__PURE__ */ jsx("ul", {
|
|
1260
|
+
className: "mt-4 space-y-2",
|
|
1261
|
+
"data-testid": "failure-cluster-list",
|
|
1262
|
+
children: triage.clusters.map((cluster) => /* @__PURE__ */ jsx(ClusterRow, {
|
|
1263
|
+
cluster,
|
|
1264
|
+
canRetry,
|
|
1265
|
+
onOpenRun,
|
|
1266
|
+
onRetry,
|
|
1267
|
+
onDismiss: (id) => void triage.dismiss(id)
|
|
1268
|
+
}, cluster.id))
|
|
1269
|
+
}) : !triage.loading && /* @__PURE__ */ jsx("div", {
|
|
1270
|
+
className: "mt-4",
|
|
1271
|
+
"data-testid": "failure-triage-empty",
|
|
1272
|
+
children: /* @__PURE__ */ jsx(EmptyState, {
|
|
1273
|
+
kind: enabled ? "all-done" : "first-use",
|
|
1274
|
+
illustration: "charts",
|
|
1275
|
+
size: "inline",
|
|
1276
|
+
compact: true,
|
|
1277
|
+
icon: null,
|
|
1278
|
+
title: enabled ? tr("fluidgrids.triage.empty", "No repeated failures need attention.") : tr("fluidgrids.triage.emptyOff", "Turn failure triage on to have repeated failures grouped and explained here.")
|
|
1279
|
+
})
|
|
1280
|
+
})
|
|
1281
|
+
]
|
|
1282
|
+
});
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
export { fetchRunFailureClusters as a, SetRunFailureTriageEnabledDocument as c, dismissRunFailureCluster as i, FgTriageFailedRunsDocument as l, FailureTriagePanel as n, RunFailureTriageSettingsDocument as o, OPEN_STATUSES as r, RunFailureClustersDocument as s, BUCKET_LABELS as t, DismissRunFailureClusterDocument as u };
|