@widgetic/workflows 0.2.6 → 0.2.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 +51 -44
- package/dist/api/types.d.ts +17 -0
- package/dist/api/types.js +7 -0
- package/dist/api/workflowsApi.js +23 -2
- package/dist/components/Workflows.svelte +13 -15
- package/dist/components/WorkflowsEmptyState.svelte +14 -12
- package/dist/components/WorkflowsHeader.svelte +9 -5
- package/dist/components/WorkflowsHeader.svelte.d.ts +4 -16
- package/dist/components/WorkflowsWorkspace.svelte +3 -2
- package/dist/components/canvas/AddBlockMenu.svelte +11 -2
- package/dist/components/canvas/CanvasToolbar.svelte +42 -31
- package/dist/components/canvas/CanvasToolbar.svelte.d.ts +2 -0
- package/dist/components/canvas/CompositionNodeView.svelte +58 -36
- package/dist/components/canvas/ConditionNodeView.svelte +31 -18
- package/dist/components/canvas/HandlePoint.svelte +10 -3
- package/dist/components/canvas/HandlePoint.svelte.d.ts +1 -1
- package/dist/components/canvas/TriggerNodeView.svelte +39 -13
- package/dist/components/canvas/WorkflowCanvas.svelte +22 -7
- package/dist/components/canvas/WorkflowCanvas.svelte.d.ts +2 -0
- package/dist/components/canvas/WorkflowEdgeView.svelte +5 -6
- package/dist/components/editor/ConflictBanner.svelte +1 -1
- package/dist/components/editor/EditorBanners.svelte +11 -4
- package/dist/components/editor/EditorCanvasArea.svelte +17 -10
- package/dist/components/editor/EditorTabs.svelte +10 -44
- package/dist/components/editor/EditorTopBar.svelte +166 -54
- package/dist/components/editor/PresenceBanner.svelte +106 -85
- package/dist/components/editor/RunsFlow.svelte +136 -42
- package/dist/components/editor/RunsTab.svelte +52 -46
- package/dist/components/editor/SettingsRow.svelte +35 -0
- package/dist/components/editor/SettingsRow.svelte.d.ts +14 -0
- package/dist/components/editor/SettingsTab.svelte +66 -50
- package/dist/components/editor/WorkflowEditor.svelte +4 -5
- package/dist/components/list/CreateWorkflowDialog.svelte +123 -73
- package/dist/components/list/WorkflowList.svelte +227 -100
- package/dist/components/list/WorkflowRow.svelte +84 -42
- package/dist/components/panel/BlockProblems.svelte +9 -8
- package/dist/components/panel/CompositionForm.svelte +52 -34
- package/dist/components/panel/CompositionPicker.svelte +43 -21
- package/dist/components/panel/CompositionPicker.svelte.d.ts +5 -0
- package/dist/components/panel/CompositionSelect.svelte +105 -0
- package/dist/components/panel/CompositionSelect.svelte.d.ts +23 -0
- package/dist/components/panel/ConditionForm.svelte +50 -17
- package/dist/components/panel/EventValueRow.svelte +5 -4
- package/dist/components/panel/ProblemsList.svelte +17 -19
- package/dist/components/panel/RuleCard.svelte +127 -89
- package/dist/components/panel/RuleCard.svelte.d.ts +2 -0
- package/dist/components/panel/SidePanel.svelte +101 -50
- package/dist/components/panel/TestResultLine.svelte +35 -0
- package/dist/components/panel/TestResultLine.svelte.d.ts +9 -0
- package/dist/components/panel/TestRow.svelte +21 -18
- package/dist/components/panel/TestRunPanel.svelte +61 -39
- package/dist/components/panel/TestTriggerCard.svelte +66 -6
- package/dist/components/panel/TestTriggerCard.svelte.d.ts +10 -0
- package/dist/components/panel/TriggerForm.svelte +24 -25
- package/dist/components/panel/VersionHistory.svelte +31 -43
- package/dist/components/ui/ActionButton.svelte +44 -12
- package/dist/components/ui/ActionButton.svelte.d.ts +2 -1
- package/dist/components/ui/Badge.svelte +39 -0
- package/dist/components/ui/Badge.svelte.d.ts +12 -0
- package/dist/components/ui/ConfirmDialog.svelte +4 -3
- package/dist/components/ui/Menu.svelte +28 -14
- package/dist/components/ui/Menu.svelte.d.ts +3 -1
- package/dist/components/ui/Modal.svelte +15 -8
- package/dist/components/ui/Notice.svelte +35 -11
- package/dist/components/ui/Notice.svelte.d.ts +4 -1
- package/dist/components/ui/SelectField.svelte +48 -20
- package/dist/components/ui/SelectField.svelte.d.ts +2 -0
- package/dist/components/ui/StatusBadge.svelte +13 -24
- package/dist/components/ui/StatusBadge.svelte.d.ts +0 -2
- package/dist/components/ui/Tabs.svelte +79 -0
- package/dist/components/ui/Tabs.svelte.d.ts +21 -0
- package/dist/components/ui/TextField.svelte +47 -27
- package/dist/components/ui/TextField.svelte.d.ts +5 -0
- package/dist/components/ui/icons.d.ts +43 -29
- package/dist/components/ui/icons.js +101 -40
- package/dist/editor/editorState.svelte.d.ts +23 -2
- package/dist/editor/editorState.svelte.js +36 -0
- package/dist/editor/listState.svelte.d.ts +32 -2
- package/dist/editor/listState.svelte.js +41 -0
- package/dist/editor/runsFlow.d.ts +28 -3
- package/dist/editor/runsFlow.js +27 -2
- package/dist/editor/runsFlowLayout.d.ts +6 -2
- package/dist/editor/runsFlowLayout.js +7 -2
- package/dist/editor/statsRange.d.ts +7 -1
- package/dist/editor/statsRange.js +14 -0
- package/dist/i18n/language.d.ts +3 -3
- package/dist/i18n/messages.d.ts +32 -13
- package/dist/i18n/messages.js +33 -14
- package/dist/i18n/statusWords.d.ts +12 -0
- package/dist/i18n/statusWords.js +12 -0
- package/package.json +3 -3
|
@@ -63,6 +63,11 @@ export class WorkflowEditorState {
|
|
|
63
63
|
canvasTouchOnly = $state(false);
|
|
64
64
|
/** Set when a publish was tried while the draft has problems: the blocks with problems are outlined until it is published. */
|
|
65
65
|
problemsRevealed = $state(false);
|
|
66
|
+
/**
|
|
67
|
+
* What was in the Problems panel when the person closed it with its X (`problemsPanelKey`); the panel stays closed for that
|
|
68
|
+
* list and comes back when the findings change or a publish is tried.
|
|
69
|
+
*/
|
|
70
|
+
problemsPanelClosedFor = $state(null);
|
|
66
71
|
// ---- versions ------------------------------------------------------------------------------------------------
|
|
67
72
|
versions = $state.raw(null);
|
|
68
73
|
versionsState = $state('idle');
|
|
@@ -123,6 +128,33 @@ export class WorkflowEditorState {
|
|
|
123
128
|
issuesOnCanvas = $derived(groupIssues(this.viewing !== null ? [] : this.issues));
|
|
124
129
|
/** Errors stop a publish; warnings are advice. */
|
|
125
130
|
hasPublishBlockers = $derived(hasErrors(this.issues));
|
|
131
|
+
/**
|
|
132
|
+
* Names the findings the Problems panel lists (what a refused publish said is among them), so that closing the panel is
|
|
133
|
+
* about this list and not about the next one. Empty while there is nothing to list.
|
|
134
|
+
*/
|
|
135
|
+
problemsPanelKey = $derived.by(() => {
|
|
136
|
+
const findings = [...this.issues, ...this.refusedIssues];
|
|
137
|
+
if (findings.length === 0)
|
|
138
|
+
return '';
|
|
139
|
+
const names = findings.map((issue) => [
|
|
140
|
+
issue.code,
|
|
141
|
+
issue.nodeId ?? '',
|
|
142
|
+
issue.edgeId ?? '',
|
|
143
|
+
issue.caseId ?? '',
|
|
144
|
+
issue.detail ?? ''
|
|
145
|
+
].join('|'));
|
|
146
|
+
return `${this.problemsRevealed}\n${names.join('\n')}`;
|
|
147
|
+
});
|
|
148
|
+
/** The Problems panel is drawn while nothing is selected, there is something to say, and it was not closed for this list. */
|
|
149
|
+
showsProblemsPanel = $derived(this.problemsPanelKey !== '' && this.problemsPanelClosedFor !== this.problemsPanelKey);
|
|
150
|
+
/**
|
|
151
|
+
* Whether there is anything for the panel beside the canvas to show: a block's form, the version history, the test run,
|
|
152
|
+
* or what is wrong with the draft. With none of those the canvas has the whole width (as in the design).
|
|
153
|
+
*/
|
|
154
|
+
showsSidePanel = $derived(this.panel !== 'selection' ||
|
|
155
|
+
this.selectedNodeIds.length > 0 ||
|
|
156
|
+
this.selectedEdgeIds.length > 0 ||
|
|
157
|
+
this.showsProblemsPanel);
|
|
126
158
|
status = $derived(this.workflow?.status ?? 'draft');
|
|
127
159
|
/**
|
|
128
160
|
* Archived workflows are only looked at; so is a version, and so is a workflow somebody else is editing (the person
|
|
@@ -678,6 +710,10 @@ export class WorkflowEditorState {
|
|
|
678
710
|
this.leaveVersion();
|
|
679
711
|
this.panel = 'selection';
|
|
680
712
|
}
|
|
713
|
+
/** Closes the Problems panel for the findings it lists now (see `problemsPanelClosedFor`). */
|
|
714
|
+
closeProblemsPanel() {
|
|
715
|
+
this.problemsPanelClosedFor = this.problemsPanelKey === '' ? null : this.problemsPanelKey;
|
|
716
|
+
}
|
|
681
717
|
/** Shows a published version read-only on the canvas. */
|
|
682
718
|
async viewVersion(versionId) {
|
|
683
719
|
if (this.busy !== null)
|
|
@@ -5,6 +5,17 @@ import type { WorkflowsError } from '../types/index.js';
|
|
|
5
5
|
import { type EditingBadges, type EditingWatcherOptions } from './editingWatcher.js';
|
|
6
6
|
/** What the list is filtered by. Empty is "not archived" (drafts, live and paused), which is what the API lists by default. */
|
|
7
7
|
export type ListStatusFilter = '' | WorkflowStatus | 'all';
|
|
8
|
+
/**
|
|
9
|
+
* The tab that is open above the list: what the list covers before the Status menu narrows it. `active` is "Not archived"
|
|
10
|
+
* (what the API lists by default) and `all` is "All workflows", the only place the archived ones are.
|
|
11
|
+
*/
|
|
12
|
+
export type ListScope = 'active' | 'all';
|
|
13
|
+
/** What the Status menu can show: `any` leaves the tab as it is, and a state narrows the list to the workflows in it. */
|
|
14
|
+
export type ListStatusChoice = 'any' | WorkflowStatus;
|
|
15
|
+
/** The lines of the Status menu, in the order the design draws them. */
|
|
16
|
+
export declare const LIST_STATUS_CHOICES: readonly ListStatusChoice[];
|
|
17
|
+
/** Whether what a control reported is one of the lines of the Status menu (a select reports plain text). */
|
|
18
|
+
export declare function isListStatusChoice(value: string): value is ListStatusChoice;
|
|
8
19
|
/** One page of the list is this many workflows; "Show more" reads the next. */
|
|
9
20
|
export declare const LIST_PAGE_SIZE = 25;
|
|
10
21
|
/** How long the list waits after the last letter typed in the search before it asks. */
|
|
@@ -40,9 +51,14 @@ export declare class WorkflowListState {
|
|
|
40
51
|
total: number;
|
|
41
52
|
loadState: "loading" | "ready" | "failed";
|
|
42
53
|
loadingMore: boolean;
|
|
43
|
-
failure: "workflows.region.label" | "workflows.header.title" | "workflows.header.subtitle" | "workflows.common.cancel" | "workflows.common.close" | "workflows.common.dismiss" | "workflows.common.loading" | "workflows.empty.title" | "workflows.empty.hint" | "workflows.error.title" | "workflows.error.hint" | "workflows.error.retry" | "workflows.error.generic" | "workflows.error.network" | "workflows.error.timeout" | "workflows.error.server" | "workflows.error.sessionEnded" | "workflows.error.planRestricted" | "workflows.error.notFound" | "workflows.error.revisionChanged" | "workflows.error.archived" | "workflows.error.nothingToPublish" | "workflows.error.nothingToDiscard" | "workflows.error.wrongState" | "workflows.error.tooManyWorkflows" | "workflows.error.presetGone" | "workflows.error.presetCopyFailed" | "workflows.error.stillWorking" | "workflows.error.publishBlocked" | "workflows.error.invalidGraph" | "workflows.error.tooManyRequests" | "workflows.list.label" | "workflows.list.newWorkflow" | "workflows.list.searchLabel" | "workflows.list.searchPlaceholder" | "workflows.list.filterLabel" | "workflows.list.filterActive" | "workflows.list.filterAll" | "workflows.list.sortLabel" | "workflows.list.sortCreated" | "workflows.list.sortPublished" | "workflows.list.sortRuns" | "workflows.list.sortName" | "workflows.list.sortAscending" | "workflows.list.sortDescending" | "workflows.list.columnName" | "workflows.list.columnStatus" | "workflows.list.columnRuns" | "workflows.list.columnPublished" | "workflows.list.columnCreated" | "workflows.list.compositionsCount" | "workflows.list.runsCount" | "workflows.list.publishedOn" | "workflows.list.neverPublished" | "workflows.list.never" | "workflows.list.open" | "workflows.list.rowMenu" | "workflows.list.showMore" | "workflows.list.noMatches" | "workflows.list.duplicated" | "workflows.list.deleted" | "workflows.list.editingNamed" | "workflows.list.editingSomeone" | "workflows.create.title" | "workflows.create.nameLabel" | "workflows.create.namePlaceholder" | "workflows.create.compositionLabel" | "workflows.create.compositionHelp" | "workflows.create.create" | "workflows.create.creating" | "workflows.create.startLabel" | "workflows.create.blankTitle" | "workflows.create.blankHint" | "workflows.create.presetSummary" | "workflows.create.presetMorePictures" | "workflows.create.presetsLoading" | "workflows.create.presetsFailed" | "workflows.create.presetHelp" | "workflows.create.presetNameHelp" | "workflows.create.settingUp" | "workflows.status.draft" | "workflows.status.live" | "workflows.status.paused" | "workflows.status.archived" | "workflows.status.unpublishedChanges" | "workflows.top.back" | "workflows.top.nameLabel" | "workflows.top.testRun" | "workflows.top.history" | "workflows.top.embedCode" | "workflows.top.publish" | "workflows.top.publishChanges" | "workflows.top.publishing" | "workflows.save.saved" | "workflows.save.saving" | "workflows.save.pending" | "workflows.save.failed" | "workflows.save.conflict" | "workflows.tabs.label" | "workflows.tabs.editor" | "workflows.tabs.runs" | "workflows.tabs.settings" | "workflows.banner.unpublishedChanges" | "workflows.banner.publishChanges" | "workflows.banner.discard" | "workflows.banner.discardTitle" | "workflows.banner.discardMessage" | "workflows.banner.neverPublished" | "workflows.banner.paused" | "workflows.banner.archived" | "workflows.banner.conflict" | "workflows.banner.reload" | "workflows.banner.touchOnly" | "workflows.conflict.keepCopy" | "workflows.conflict.keepingCopy" | "workflows.conflict.copyName" | "workflows.conflict.copyKept" | "workflows.conflict.openCopy" | "workflows.conflict.loadTitle" | "workflows.conflict.loadMessage" | "workflows.presence.blockedTitleNamed" | "workflows.presence.blockedTitleYou" | "workflows.presence.blockedTitle" | "workflows.presence.blockedBody" | "workflows.presence.lostTitleNamed" | "workflows.presence.lostTitleYou" | "workflows.presence.lostTitle" | "workflows.presence.lostBody" | "workflows.presence.takeOver" | "workflows.presence.takeOverHint" | "workflows.presence.lookOnly" | "workflows.presence.lookOnlyHint" | "workflows.presence.working" | "workflows.presence.actionFailed" | "workflows.presence.readOnlyNamed" | "workflows.presence.readOnlyYou" | "workflows.presence.readOnly" | "workflows.presence.readOnlyFree" | "workflows.presence.startEditing" | "workflows.editor.published" | "workflows.editor.discarded" | "workflows.editor.restored" | "workflows.editor.reloaded" | "workflows.editor.paused" | "workflows.editor.resumed" | "workflows.editor.archived" | "workflows.editor.unarchived" | "workflows.editor.saveFirst" | "workflows.editor.fixProblems" | "workflows.editor.blockLimit" | "workflows.publish.firstTitle" | "workflows.publish.firstMessage" | "workflows.publish.changesTitle" | "workflows.publish.changesMessage" | "workflows.leave.title" | "workflows.leave.message" | "workflows.leave.confirm" | "workflows.canvas.label" | "workflows.canvas.pointIn" | "workflows.canvas.pointOut" | "workflows.toolbar.label" | "workflows.toolbar.addBlock" | "workflows.toolbar.undo" | "workflows.toolbar.redo" | "workflows.toolbar.zoomIn" | "workflows.toolbar.zoomOut" | "workflows.toolbar.fit" | "workflows.addBlock.composition" | "workflows.addBlock.helpComposition" | "workflows.addBlock.condition" | "workflows.addBlock.helpCondition" | "workflows.addBlock.triggerHeading" | "workflows.addBlock.helpInput" | "workflows.addBlock.helpAction" | "workflows.addBlock.helpPageEvent" | "workflows.addBlock.helpScheduled" | "workflows.block.startsHere" | "workflows.block.trigger" | "workflows.block.condition" | "workflows.block.unknown" | "workflows.block.compositionNotChosen" | "workflows.block.compositionLoading" | "workflows.block.compositionUnavailable" | "workflows.block.notPublished" | "workflows.block.numbered" | "workflows.block.problems" | "workflows.panel.label" | "workflows.panel.overviewHeading" | "workflows.panel.overviewHelp" | "workflows.panel.problemsHeading" | "workflows.panel.problemsLabel" | "workflows.panel.noProblems" | "workflows.panel.manyBlocksSelected" | "workflows.panel.connectionSelected" | "workflows.panel.removeBlock" | "workflows.panel.removeBlocks" | "workflows.panel.removeConnection" | "workflows.composition.heading" | "workflows.composition.help" | "workflows.composition.searchLabel" | "workflows.composition.searchPlaceholder" | "workflows.composition.none" | "workflows.composition.alreadyUsed" | "workflows.composition.isStart" | "workflows.composition.makeStart" | "workflows.composition.capabilitiesHeading" | "workflows.composition.capabilityInput" | "workflows.composition.capabilityAction" | "workflows.composition.capabilityWebsites" | "workflows.composition.inputTables" | "workflows.composition.actionCount" | "workflows.trigger.heading" | "workflows.trigger.help" | "workflows.trigger.kindLabel" | "workflows.trigger.kindInput" | "workflows.trigger.kindAction" | "workflows.trigger.kindPageEvent" | "workflows.trigger.kindScheduled" | "workflows.trigger.unavailable" | "workflows.trigger.tableLabel" | "workflows.trigger.tableHelp" | "workflows.trigger.actionLabel" | "workflows.trigger.actionHelp" | "workflows.trigger.chooseOne" | "workflows.trigger.notFound" | "workflows.trigger.readableValues" | "workflows.trigger.noReadableValues" | "workflows.trigger.nextLabel" | "workflows.trigger.nextHelp" | "workflows.trigger.nextNone" | "workflows.trigger.summaryInput" | "workflows.trigger.summaryAction" | "workflows.trigger.summaryPageEvent" | "workflows.trigger.summaryAt" | "workflows.trigger.summaryUnfinished" | "workflows.reason.widgetKeepsNoData" | "workflows.reason.widgetReportsNoActions" | "workflows.reason.widgetNotPublished" | "workflows.schedule.modeLabel" | "workflows.schedule.modeAfter" | "workflows.schedule.modeAt" | "workflows.schedule.afterHelp" | "workflows.schedule.amountLabel" | "workflows.schedule.unitLabel" | "workflows.schedule.unitSeconds" | "workflows.schedule.unitMinutes" | "workflows.schedule.unitHours" | "workflows.schedule.unitDays" | "workflows.schedule.unitWeeks" | "workflows.schedule.waitSeconds" | "workflows.schedule.waitMinutes" | "workflows.schedule.waitHours" | "workflows.schedule.waitDays" | "workflows.schedule.waitWeeks" | "workflows.schedule.momentLabel" | "workflows.schedule.momentHelp" | "workflows.schedule.invalidMoment" | "workflows.event.nameLabel" | "workflows.event.namePlaceholder" | "workflows.event.nameHelp" | "workflows.event.nameInvalid" | "workflows.event.howToSend" | "workflows.event.valuesHeading" | "workflows.event.valuesHelp" | "workflows.event.addValue" | "workflows.event.valueName" | "workflows.event.valueNamePlaceholder" | "workflows.event.valueNameInvalid" | "workflows.event.valueType" | "workflows.event.removeValue" | "workflows.fieldType.text" | "workflows.fieldType.number" | "workflows.fieldType.boolean" | "workflows.value.yes" | "workflows.value.no" | "workflows.condition.heading" | "workflows.condition.help" | "workflows.condition.noTrigger" | "workflows.condition.noValues" | "workflows.condition.addRule" | "workflows.condition.ruleLimit" | "workflows.condition.defaultName" | "workflows.condition.defaultLabel" | "workflows.condition.defaultStay" | "workflows.condition.defaultHelp" | "workflows.condition.defaultHint" | "workflows.condition.defaultStays" | "workflows.rule.defaultName" | "workflows.rule.nameLabel" | "workflows.rule.moveUp" | "workflows.rule.moveDown" | "workflows.rule.remove" | "workflows.rule.matchLabel" | "workflows.rule.matchAll" | "workflows.rule.matchAny" | "workflows.rule.noTests" | "workflows.rule.addTest" | "workflows.rule.testLimit" | "workflows.rule.thenGoTo" | "workflows.rule.testWithValue" | "workflows.rule.testWithoutValue" | "workflows.rule.testAndMore" | "workflows.test.field" | "workflows.test.operator" | "workflows.test.value" | "workflows.test.valuePlaceholder" | "workflows.test.remove" | "workflows.operator.is" | "workflows.operator.isNot" | "workflows.operator.contains" | "workflows.operator.doesNotContain" | "workflows.operator.startsWith" | "workflows.operator.endsWith" | "workflows.operator.greaterThan" | "workflows.operator.atLeast" | "workflows.operator.lessThan" | "workflows.operator.atMost" | "workflows.operator.isEmpty" | "workflows.operator.isNotEmpty" | "workflows.test.heading" | "workflows.test.help" | "workflows.test.close" | "workflows.test.start" | "workflows.test.restart" | "workflows.test.ended" | "workflows.test.noStart" | "workflows.test.noTriggers" | "workflows.test.visitorIsOn" | "workflows.test.fire" | "workflows.test.resultMoved" | "workflows.test.resultStayed" | "workflows.test.resultIgnored" | "workflows.history.heading" | "workflows.history.help" | "workflows.history.close" | "workflows.history.none" | "workflows.history.failed" | "workflows.history.version" | "workflows.history.live" | "workflows.history.by" | "workflows.history.view" | "workflows.history.viewing" | "workflows.history.backToDraft" | "workflows.history.restore" | "workflows.history.restoreTitle" | "workflows.history.restoreMessage" | "workflows.runs.help" | "workflows.runs.flowLabel" | "workflows.runs.rangeLabel" | "workflows.runs.lastDays" | "workflows.runs.versionLabel" | "workflows.runs.allVersions" | "workflows.runs.versionLive" | "workflows.runs.started" | "workflows.runs.entered" | "workflows.runs.stayed" | "workflows.runs.failed" | "workflows.runs.pathLabel" | "workflows.runs.none" | "workflows.runs.neverPublished" | "workflows.settings.zoneHeading" | "workflows.settings.zoneLabel" | "workflows.settings.zoneHelp" | "workflows.settings.embedHeading" | "workflows.settings.embedHelp" | "workflows.settings.stateHeading" | "workflows.settings.pause" | "workflows.settings.pauseHelp" | "workflows.settings.resume" | "workflows.settings.resumeHelp" | "workflows.settings.archive" | "workflows.settings.archiveHelp" | "workflows.settings.archiveTitle" | "workflows.settings.archiveMessage" | "workflows.settings.unarchive" | "workflows.settings.unarchiveHelp" | "workflows.settings.duplicate" | "workflows.settings.duplicateHelp" | "workflows.settings.delete" | "workflows.settings.deleteHelp" | "workflows.settings.deleteTitle" | "workflows.settings.deleteMessageDraft" | "workflows.settings.deleteMessageLive" | "workflows.settings.deleteMessagePaused" | "workflows.settings.deleteMessageArchived" | "workflows.issue.unknown" | "workflows.issue.malformed" | "workflows.issue.schemaVersion" | "workflows.issue.graphTooLarge" | "workflows.issue.unknownNodeType" | "workflows.issue.unknownTriggerKind" | "workflows.issue.badId" | "workflows.issue.duplicateId" | "workflows.issue.tooManyBlocks" | "workflows.issue.tooManyEdges" | "workflows.issue.noComposition" | "workflows.issue.noStart" | "workflows.issue.manyStarts" | "workflows.issue.compositionMissingId" | "workflows.issue.duplicateComposition" | "workflows.issue.compositionNotAvailable" | "workflows.issue.compositionWebsiteMismatch" | "workflows.issue.unreachableBlock" | "workflows.issue.edgeUnknownNode" | "workflows.issue.edgeBadPort" | "workflows.issue.edgeInvalidConnection" | "workflows.issue.portManyTargets" | "workflows.issue.cycle" | "workflows.issue.triggerNoSource" | "workflows.issue.triggerManySources" | "workflows.issue.triggerNoTarget" | "workflows.issue.triggerConfigIncomplete" | "workflows.issue.triggerNeedsTable" | "workflows.issue.triggerNeedsAction" | "workflows.issue.triggerNeedsName" | "workflows.issue.scheduleInvalid" | "workflows.issue.eventValueInvalid" | "workflows.issue.eventTooManyValues" | "workflows.issue.triggerCapabilityMissing" | "workflows.issue.triggerInputMissing" | "workflows.issue.triggerActionMissing" | "workflows.issue.conditionNoSource" | "workflows.issue.conditionManySources" | "workflows.issue.conditionNoCases" | "workflows.issue.conditionTooManyCases" | "workflows.issue.caseBadId" | "workflows.issue.caseDuplicateId" | "workflows.issue.caseNoTests" | "workflows.issue.caseTooManyTests" | "workflows.issue.caseNoTarget" | "workflows.issue.testBadField" | "workflows.issue.testBadOperator" | "workflows.issue.testMissingValue" | "workflows.issue.fieldUnknown" | null;
|
|
54
|
+
failure: "workflows.region.label" | "workflows.header.title" | "workflows.common.cancel" | "workflows.common.close" | "workflows.common.dismiss" | "workflows.common.loading" | "workflows.empty.title" | "workflows.empty.hint" | "workflows.error.title" | "workflows.error.hint" | "workflows.error.retry" | "workflows.error.generic" | "workflows.error.network" | "workflows.error.timeout" | "workflows.error.server" | "workflows.error.sessionEnded" | "workflows.error.planRestricted" | "workflows.error.notFound" | "workflows.error.revisionChanged" | "workflows.error.archived" | "workflows.error.nothingToPublish" | "workflows.error.nothingToDiscard" | "workflows.error.wrongState" | "workflows.error.tooManyWorkflows" | "workflows.error.presetGone" | "workflows.error.presetCopyFailed" | "workflows.error.stillWorking" | "workflows.error.publishBlocked" | "workflows.error.invalidGraph" | "workflows.error.tooManyRequests" | "workflows.list.label" | "workflows.list.newWorkflow" | "workflows.list.searchLabel" | "workflows.list.searchPlaceholder" | "workflows.list.filterLabel" | "workflows.list.filterActive" | "workflows.list.filterAll" | "workflows.list.statusLabel" | "workflows.list.statusAny" | "workflows.list.sortLabel" | "workflows.list.sortCreated" | "workflows.list.sortPublished" | "workflows.list.sortRuns" | "workflows.list.sortName" | "workflows.list.sortAscending" | "workflows.list.sortDescending" | "workflows.list.compositionsCount" | "workflows.list.runsCount" | "workflows.list.publishedOn" | "workflows.list.neverPublished" | "workflows.list.open" | "workflows.list.rowMenu" | "workflows.list.showMore" | "workflows.list.noMatches" | "workflows.list.duplicated" | "workflows.list.deleted" | "workflows.list.editingNamed" | "workflows.list.editingSomeone" | "workflows.create.title" | "workflows.create.nameLabel" | "workflows.create.namePlaceholder" | "workflows.create.compositionLabel" | "workflows.create.compositionHelp" | "workflows.create.compositionPlaceholder" | "workflows.create.create" | "workflows.create.creating" | "workflows.create.startLabel" | "workflows.create.blankTitle" | "workflows.create.blankHint" | "workflows.create.presetSummary" | "workflows.create.presetMorePictures" | "workflows.create.presetsLoading" | "workflows.create.presetsFailed" | "workflows.create.presetHelp" | "workflows.create.presetNameHelp" | "workflows.create.settingUp" | "workflows.status.draft" | "workflows.status.live" | "workflows.status.paused" | "workflows.status.archived" | "workflows.status.unpublishedChanges" | "workflows.top.back" | "workflows.top.nameLabel" | "workflows.top.testRun" | "workflows.top.history" | "workflows.top.embedCode" | "workflows.top.publish" | "workflows.top.publishChanges" | "workflows.top.publishing" | "workflows.top.moreActions" | "workflows.save.saved" | "workflows.save.saving" | "workflows.save.pending" | "workflows.save.failed" | "workflows.save.conflict" | "workflows.tabs.label" | "workflows.tabs.editor" | "workflows.tabs.runs" | "workflows.tabs.settings" | "workflows.banner.unpublishedChanges" | "workflows.banner.publishChanges" | "workflows.banner.discard" | "workflows.banner.discardTitle" | "workflows.banner.discardMessage" | "workflows.banner.neverPublished" | "workflows.banner.paused" | "workflows.banner.archived" | "workflows.banner.conflict" | "workflows.banner.reload" | "workflows.banner.touchOnly" | "workflows.conflict.keepCopy" | "workflows.conflict.keepingCopy" | "workflows.conflict.copyName" | "workflows.conflict.copyKept" | "workflows.conflict.openCopy" | "workflows.conflict.loadTitle" | "workflows.conflict.loadMessage" | "workflows.presence.blockedTitleNamed" | "workflows.presence.blockedTitleYou" | "workflows.presence.blockedTitle" | "workflows.presence.blockedBody" | "workflows.presence.lostTitleNamed" | "workflows.presence.lostTitleYou" | "workflows.presence.lostTitle" | "workflows.presence.lostBody" | "workflows.presence.takeOver" | "workflows.presence.takeOverHint" | "workflows.presence.lookOnly" | "workflows.presence.lookOnlyHint" | "workflows.presence.working" | "workflows.presence.actionFailed" | "workflows.presence.readOnlyNamed" | "workflows.presence.readOnlyYou" | "workflows.presence.readOnly" | "workflows.presence.readOnlyFree" | "workflows.presence.startEditing" | "workflows.editor.published" | "workflows.editor.discarded" | "workflows.editor.restored" | "workflows.editor.reloaded" | "workflows.editor.paused" | "workflows.editor.resumed" | "workflows.editor.archived" | "workflows.editor.unarchived" | "workflows.editor.saveFirst" | "workflows.editor.fixProblems" | "workflows.editor.blockLimit" | "workflows.publish.firstTitle" | "workflows.publish.firstMessage" | "workflows.publish.changesTitle" | "workflows.publish.changesMessage" | "workflows.leave.title" | "workflows.leave.message" | "workflows.leave.confirm" | "workflows.canvas.label" | "workflows.canvas.pointIn" | "workflows.canvas.pointOut" | "workflows.toolbar.label" | "workflows.toolbar.addBlock" | "workflows.toolbar.undo" | "workflows.toolbar.redo" | "workflows.toolbar.zoomIn" | "workflows.toolbar.zoomOut" | "workflows.toolbar.fit" | "workflows.toolbar.zoomLevel" | "workflows.block.publishedMeta" | "workflows.block.draftMeta" | "workflows.block.emptyCompositionHelp" | "workflows.block.conditionNoRulesBadge" | "workflows.addBlock.composition" | "workflows.addBlock.helpComposition" | "workflows.addBlock.condition" | "workflows.addBlock.helpCondition" | "workflows.addBlock.triggerHeading" | "workflows.addBlock.helpInput" | "workflows.addBlock.helpAction" | "workflows.addBlock.helpPageEvent" | "workflows.addBlock.helpScheduled" | "workflows.block.startsHere" | "workflows.block.trigger" | "workflows.block.condition" | "workflows.block.unknown" | "workflows.block.compositionNotChosen" | "workflows.block.compositionLoading" | "workflows.block.compositionUnavailable" | "workflows.block.notPublished" | "workflows.block.numbered" | "workflows.block.problems" | "workflows.panel.label" | "workflows.panel.close" | "workflows.panel.selectionHeading" | "workflows.panel.problemsHeading" | "workflows.panel.problemsLabel" | "workflows.panel.manyBlocksSelected" | "workflows.panel.connectionSelected" | "workflows.panel.removeBlock" | "workflows.panel.removeBlocks" | "workflows.panel.removeConnection" | "workflows.composition.heading" | "workflows.composition.label" | "workflows.composition.help" | "workflows.composition.searchLabel" | "workflows.composition.searchPlaceholder" | "workflows.composition.none" | "workflows.composition.alreadyUsed" | "workflows.composition.isStart" | "workflows.composition.makeStart" | "workflows.composition.capabilitiesHeading" | "workflows.composition.capabilityInput" | "workflows.composition.capabilityAction" | "workflows.composition.capabilityWebsites" | "workflows.composition.inputTables" | "workflows.composition.actionCount" | "workflows.trigger.heading" | "workflows.trigger.help" | "workflows.trigger.kindLabel" | "workflows.trigger.kindInput" | "workflows.trigger.kindAction" | "workflows.trigger.kindPageEvent" | "workflows.trigger.kindScheduled" | "workflows.trigger.unavailable" | "workflows.trigger.tableLabel" | "workflows.trigger.tableHelp" | "workflows.trigger.actionLabel" | "workflows.trigger.actionHelp" | "workflows.trigger.chooseOne" | "workflows.trigger.notFound" | "workflows.trigger.readableValues" | "workflows.trigger.noReadableValues" | "workflows.trigger.nextLabel" | "workflows.trigger.nextHelp" | "workflows.trigger.nextNone" | "workflows.trigger.summaryInput" | "workflows.trigger.summaryAction" | "workflows.trigger.summaryPageEvent" | "workflows.trigger.summaryAt" | "workflows.trigger.summaryUnfinished" | "workflows.reason.widgetKeepsNoData" | "workflows.reason.widgetReportsNoActions" | "workflows.reason.widgetNotPublished" | "workflows.schedule.modeLabel" | "workflows.schedule.modeAfter" | "workflows.schedule.modeAt" | "workflows.schedule.afterHelp" | "workflows.schedule.amountLabel" | "workflows.schedule.unitLabel" | "workflows.schedule.unitSeconds" | "workflows.schedule.unitMinutes" | "workflows.schedule.unitHours" | "workflows.schedule.unitDays" | "workflows.schedule.unitWeeks" | "workflows.schedule.waitSeconds" | "workflows.schedule.waitMinutes" | "workflows.schedule.waitHours" | "workflows.schedule.waitDays" | "workflows.schedule.waitWeeks" | "workflows.schedule.momentLabel" | "workflows.schedule.momentHelp" | "workflows.schedule.invalidMoment" | "workflows.event.nameLabel" | "workflows.event.namePlaceholder" | "workflows.event.nameHelp" | "workflows.event.nameInvalid" | "workflows.event.howToSend" | "workflows.event.valuesHeading" | "workflows.event.valuesHelp" | "workflows.event.addValue" | "workflows.event.valueName" | "workflows.event.valueNamePlaceholder" | "workflows.event.valueNameInvalid" | "workflows.event.valueType" | "workflows.event.removeValue" | "workflows.fieldType.text" | "workflows.fieldType.number" | "workflows.fieldType.boolean" | "workflows.value.yes" | "workflows.value.no" | "workflows.condition.heading" | "workflows.condition.help" | "workflows.condition.noTrigger" | "workflows.condition.noValues" | "workflows.condition.addRule" | "workflows.condition.ruleLimit" | "workflows.condition.defaultName" | "workflows.condition.defaultLabel" | "workflows.condition.defaultStay" | "workflows.condition.defaultHelp" | "workflows.condition.defaultHint" | "workflows.condition.defaultStays" | "workflows.rule.defaultName" | "workflows.rule.nameLabel" | "workflows.rule.moveUp" | "workflows.rule.moveDown" | "workflows.rule.remove" | "workflows.rule.matchLabel" | "workflows.rule.matchAll" | "workflows.rule.matchAny" | "workflows.rule.noTests" | "workflows.rule.addTest" | "workflows.rule.testLimit" | "workflows.rule.thenGoTo" | "workflows.rule.expand" | "workflows.rule.collapse" | "workflows.rule.testWithValue" | "workflows.rule.testWithoutValue" | "workflows.rule.testAndMore" | "workflows.test.field" | "workflows.test.operator" | "workflows.test.value" | "workflows.test.valuePlaceholder" | "workflows.test.remove" | "workflows.operator.is" | "workflows.operator.isNot" | "workflows.operator.contains" | "workflows.operator.doesNotContain" | "workflows.operator.startsWith" | "workflows.operator.endsWith" | "workflows.operator.greaterThan" | "workflows.operator.atLeast" | "workflows.operator.lessThan" | "workflows.operator.atMost" | "workflows.operator.isEmpty" | "workflows.operator.isNotEmpty" | "workflows.test.heading" | "workflows.test.help" | "workflows.test.close" | "workflows.test.start" | "workflows.test.restart" | "workflows.test.ended" | "workflows.test.noStart" | "workflows.test.noTriggers" | "workflows.test.visitorIsOn" | "workflows.test.fire" | "workflows.test.resultMoved" | "workflows.test.resultStayed" | "workflows.test.resultIgnored" | "workflows.history.heading" | "workflows.history.help" | "workflows.history.close" | "workflows.history.none" | "workflows.history.failed" | "workflows.history.version" | "workflows.history.live" | "workflows.history.byOn" | "workflows.history.view" | "workflows.history.viewingShort" | "workflows.history.viewing" | "workflows.history.backToDraft" | "workflows.history.restore" | "workflows.history.restoreConfirm" | "workflows.history.restoreTitle" | "workflows.history.restoreMessage" | "workflows.runs.help" | "workflows.runs.flowLabel" | "workflows.runs.rangeLabel" | "workflows.runs.lastDays" | "workflows.runs.versionLabel" | "workflows.runs.allVersions" | "workflows.runs.versionLive" | "workflows.runs.started" | "workflows.runs.entered" | "workflows.runs.stayed" | "workflows.runs.failed" | "workflows.runs.failedTimeout" | "workflows.runs.failedWidgetError" | "workflows.runs.failedBuild" | "workflows.runs.failedOther" | "workflows.runs.failedUnrecorded" | "workflows.runs.pathLabel" | "workflows.runs.none" | "workflows.runs.neverPublished" | "workflows.settings.zoneLabel" | "workflows.settings.zoneHelp" | "workflows.settings.embedHeading" | "workflows.settings.embedHelp" | "workflows.settings.stateHeading" | "workflows.settings.pause" | "workflows.settings.pauseHelp" | "workflows.settings.resume" | "workflows.settings.resumeHelp" | "workflows.settings.archive" | "workflows.settings.archiveHelp" | "workflows.settings.archiveTitle" | "workflows.settings.archiveMessage" | "workflows.settings.unarchive" | "workflows.settings.unarchiveHelp" | "workflows.settings.duplicate" | "workflows.settings.duplicateHelp" | "workflows.settings.delete" | "workflows.settings.deleteHelp" | "workflows.settings.deleteTitle" | "workflows.settings.deleteMessageDraft" | "workflows.settings.deleteMessageLive" | "workflows.settings.deleteMessagePaused" | "workflows.settings.deleteMessageArchived" | "workflows.issue.unknown" | "workflows.issue.malformed" | "workflows.issue.schemaVersion" | "workflows.issue.graphTooLarge" | "workflows.issue.unknownNodeType" | "workflows.issue.unknownTriggerKind" | "workflows.issue.badId" | "workflows.issue.duplicateId" | "workflows.issue.tooManyBlocks" | "workflows.issue.tooManyEdges" | "workflows.issue.noComposition" | "workflows.issue.noStart" | "workflows.issue.manyStarts" | "workflows.issue.compositionMissingId" | "workflows.issue.duplicateComposition" | "workflows.issue.compositionNotAvailable" | "workflows.issue.compositionWebsiteMismatch" | "workflows.issue.unreachableBlock" | "workflows.issue.edgeUnknownNode" | "workflows.issue.edgeBadPort" | "workflows.issue.edgeInvalidConnection" | "workflows.issue.portManyTargets" | "workflows.issue.cycle" | "workflows.issue.triggerNoSource" | "workflows.issue.triggerManySources" | "workflows.issue.triggerNoTarget" | "workflows.issue.triggerConfigIncomplete" | "workflows.issue.triggerNeedsTable" | "workflows.issue.triggerNeedsAction" | "workflows.issue.triggerNeedsName" | "workflows.issue.scheduleInvalid" | "workflows.issue.eventValueInvalid" | "workflows.issue.eventTooManyValues" | "workflows.issue.triggerCapabilityMissing" | "workflows.issue.triggerInputMissing" | "workflows.issue.triggerActionMissing" | "workflows.issue.conditionNoSource" | "workflows.issue.conditionManySources" | "workflows.issue.conditionNoCases" | "workflows.issue.conditionTooManyCases" | "workflows.issue.caseBadId" | "workflows.issue.caseDuplicateId" | "workflows.issue.caseNoTests" | "workflows.issue.caseTooManyTests" | "workflows.issue.caseNoTarget" | "workflows.issue.testBadField" | "workflows.issue.testBadOperator" | "workflows.issue.testMissingValue" | "workflows.issue.fieldUnknown" | null;
|
|
44
55
|
search: string;
|
|
45
56
|
statusFilter: ListStatusFilter;
|
|
57
|
+
/**
|
|
58
|
+
* The tab that is open. It is kept here and not worked out from `statusFilter`: once one state is chosen in the Status menu
|
|
59
|
+
* the filter no longer says which tab it was chosen under, and the tab must not move by itself.
|
|
60
|
+
*/
|
|
61
|
+
scope: ListScope;
|
|
46
62
|
sortField: WorkflowSortField;
|
|
47
63
|
sortDirection: SortDirection;
|
|
48
64
|
/** Workflows something is being done to (a duplicate on its way, a state change). */
|
|
@@ -57,6 +73,8 @@ export declare class WorkflowListState {
|
|
|
57
73
|
hasMore: boolean;
|
|
58
74
|
/** Whether the person asked for anything that narrows the list (so "nothing" means "nothing matches", not "nothing yet"). */
|
|
59
75
|
isNarrowed: boolean;
|
|
76
|
+
/** What the Status menu shows: the one state the list is narrowed to, or `any` when the tab alone decides. */
|
|
77
|
+
statusChoice: ListStatusChoice;
|
|
60
78
|
/**
|
|
61
79
|
* The presets "New workflow" offers, as the API gave them the last time they were read (none until then, and none when
|
|
62
80
|
* the workspace is offered none: the dialog then has only the blank start, as it always had).
|
|
@@ -105,13 +123,25 @@ export declare class WorkflowListState {
|
|
|
105
123
|
loadMore(): Promise<void>;
|
|
106
124
|
/** The person typed in the search: ask again once they stop. */
|
|
107
125
|
setSearch(text: string): void;
|
|
126
|
+
/**
|
|
127
|
+
* Narrows the list by state and reads it again. The tab follows what is asked: "all" and "archived" (which only the whole
|
|
128
|
+
* list holds) are the second tab, empty is the first, and one of the other states leaves the tab where it was.
|
|
129
|
+
*/
|
|
108
130
|
setStatusFilter(filter: ListStatusFilter): void;
|
|
131
|
+
/** A tab was chosen: the list covers what the tab says, and the Status menu goes back to Any. */
|
|
132
|
+
chooseScope(scope: ListScope): void;
|
|
133
|
+
/**
|
|
134
|
+
* A line of the Status menu was chosen. A state narrows the list to it (Archived also opens the second tab, where the
|
|
135
|
+
* archived workflows are), and Any gives the list back to the tab that is open. What a select reports is plain text, so
|
|
136
|
+
* a line the menu does not have is said once and changes nothing.
|
|
137
|
+
*/
|
|
138
|
+
chooseStatus(choice: string): void;
|
|
109
139
|
setSort(field: WorkflowSortField): void;
|
|
110
140
|
toggleSortDirection(): void;
|
|
111
141
|
private setBusy;
|
|
112
142
|
private runFor;
|
|
113
143
|
/** Makes a workflow (the dialog asked). Resolves to it, or to `undefined` with the reason in `createFailure`. */
|
|
114
|
-
createFailure: "workflows.region.label" | "workflows.header.title" | "workflows.header.subtitle" | "workflows.common.cancel" | "workflows.common.close" | "workflows.common.dismiss" | "workflows.common.loading" | "workflows.empty.title" | "workflows.empty.hint" | "workflows.error.title" | "workflows.error.hint" | "workflows.error.retry" | "workflows.error.generic" | "workflows.error.network" | "workflows.error.timeout" | "workflows.error.server" | "workflows.error.sessionEnded" | "workflows.error.planRestricted" | "workflows.error.notFound" | "workflows.error.revisionChanged" | "workflows.error.archived" | "workflows.error.nothingToPublish" | "workflows.error.nothingToDiscard" | "workflows.error.wrongState" | "workflows.error.tooManyWorkflows" | "workflows.error.presetGone" | "workflows.error.presetCopyFailed" | "workflows.error.stillWorking" | "workflows.error.publishBlocked" | "workflows.error.invalidGraph" | "workflows.error.tooManyRequests" | "workflows.list.label" | "workflows.list.newWorkflow" | "workflows.list.searchLabel" | "workflows.list.searchPlaceholder" | "workflows.list.filterLabel" | "workflows.list.filterActive" | "workflows.list.filterAll" | "workflows.list.sortLabel" | "workflows.list.sortCreated" | "workflows.list.sortPublished" | "workflows.list.sortRuns" | "workflows.list.sortName" | "workflows.list.sortAscending" | "workflows.list.sortDescending" | "workflows.list.columnName" | "workflows.list.columnStatus" | "workflows.list.columnRuns" | "workflows.list.columnPublished" | "workflows.list.columnCreated" | "workflows.list.compositionsCount" | "workflows.list.runsCount" | "workflows.list.publishedOn" | "workflows.list.neverPublished" | "workflows.list.never" | "workflows.list.open" | "workflows.list.rowMenu" | "workflows.list.showMore" | "workflows.list.noMatches" | "workflows.list.duplicated" | "workflows.list.deleted" | "workflows.list.editingNamed" | "workflows.list.editingSomeone" | "workflows.create.title" | "workflows.create.nameLabel" | "workflows.create.namePlaceholder" | "workflows.create.compositionLabel" | "workflows.create.compositionHelp" | "workflows.create.create" | "workflows.create.creating" | "workflows.create.startLabel" | "workflows.create.blankTitle" | "workflows.create.blankHint" | "workflows.create.presetSummary" | "workflows.create.presetMorePictures" | "workflows.create.presetsLoading" | "workflows.create.presetsFailed" | "workflows.create.presetHelp" | "workflows.create.presetNameHelp" | "workflows.create.settingUp" | "workflows.status.draft" | "workflows.status.live" | "workflows.status.paused" | "workflows.status.archived" | "workflows.status.unpublishedChanges" | "workflows.top.back" | "workflows.top.nameLabel" | "workflows.top.testRun" | "workflows.top.history" | "workflows.top.embedCode" | "workflows.top.publish" | "workflows.top.publishChanges" | "workflows.top.publishing" | "workflows.save.saved" | "workflows.save.saving" | "workflows.save.pending" | "workflows.save.failed" | "workflows.save.conflict" | "workflows.tabs.label" | "workflows.tabs.editor" | "workflows.tabs.runs" | "workflows.tabs.settings" | "workflows.banner.unpublishedChanges" | "workflows.banner.publishChanges" | "workflows.banner.discard" | "workflows.banner.discardTitle" | "workflows.banner.discardMessage" | "workflows.banner.neverPublished" | "workflows.banner.paused" | "workflows.banner.archived" | "workflows.banner.conflict" | "workflows.banner.reload" | "workflows.banner.touchOnly" | "workflows.conflict.keepCopy" | "workflows.conflict.keepingCopy" | "workflows.conflict.copyName" | "workflows.conflict.copyKept" | "workflows.conflict.openCopy" | "workflows.conflict.loadTitle" | "workflows.conflict.loadMessage" | "workflows.presence.blockedTitleNamed" | "workflows.presence.blockedTitleYou" | "workflows.presence.blockedTitle" | "workflows.presence.blockedBody" | "workflows.presence.lostTitleNamed" | "workflows.presence.lostTitleYou" | "workflows.presence.lostTitle" | "workflows.presence.lostBody" | "workflows.presence.takeOver" | "workflows.presence.takeOverHint" | "workflows.presence.lookOnly" | "workflows.presence.lookOnlyHint" | "workflows.presence.working" | "workflows.presence.actionFailed" | "workflows.presence.readOnlyNamed" | "workflows.presence.readOnlyYou" | "workflows.presence.readOnly" | "workflows.presence.readOnlyFree" | "workflows.presence.startEditing" | "workflows.editor.published" | "workflows.editor.discarded" | "workflows.editor.restored" | "workflows.editor.reloaded" | "workflows.editor.paused" | "workflows.editor.resumed" | "workflows.editor.archived" | "workflows.editor.unarchived" | "workflows.editor.saveFirst" | "workflows.editor.fixProblems" | "workflows.editor.blockLimit" | "workflows.publish.firstTitle" | "workflows.publish.firstMessage" | "workflows.publish.changesTitle" | "workflows.publish.changesMessage" | "workflows.leave.title" | "workflows.leave.message" | "workflows.leave.confirm" | "workflows.canvas.label" | "workflows.canvas.pointIn" | "workflows.canvas.pointOut" | "workflows.toolbar.label" | "workflows.toolbar.addBlock" | "workflows.toolbar.undo" | "workflows.toolbar.redo" | "workflows.toolbar.zoomIn" | "workflows.toolbar.zoomOut" | "workflows.toolbar.fit" | "workflows.addBlock.composition" | "workflows.addBlock.helpComposition" | "workflows.addBlock.condition" | "workflows.addBlock.helpCondition" | "workflows.addBlock.triggerHeading" | "workflows.addBlock.helpInput" | "workflows.addBlock.helpAction" | "workflows.addBlock.helpPageEvent" | "workflows.addBlock.helpScheduled" | "workflows.block.startsHere" | "workflows.block.trigger" | "workflows.block.condition" | "workflows.block.unknown" | "workflows.block.compositionNotChosen" | "workflows.block.compositionLoading" | "workflows.block.compositionUnavailable" | "workflows.block.notPublished" | "workflows.block.numbered" | "workflows.block.problems" | "workflows.panel.label" | "workflows.panel.overviewHeading" | "workflows.panel.overviewHelp" | "workflows.panel.problemsHeading" | "workflows.panel.problemsLabel" | "workflows.panel.noProblems" | "workflows.panel.manyBlocksSelected" | "workflows.panel.connectionSelected" | "workflows.panel.removeBlock" | "workflows.panel.removeBlocks" | "workflows.panel.removeConnection" | "workflows.composition.heading" | "workflows.composition.help" | "workflows.composition.searchLabel" | "workflows.composition.searchPlaceholder" | "workflows.composition.none" | "workflows.composition.alreadyUsed" | "workflows.composition.isStart" | "workflows.composition.makeStart" | "workflows.composition.capabilitiesHeading" | "workflows.composition.capabilityInput" | "workflows.composition.capabilityAction" | "workflows.composition.capabilityWebsites" | "workflows.composition.inputTables" | "workflows.composition.actionCount" | "workflows.trigger.heading" | "workflows.trigger.help" | "workflows.trigger.kindLabel" | "workflows.trigger.kindInput" | "workflows.trigger.kindAction" | "workflows.trigger.kindPageEvent" | "workflows.trigger.kindScheduled" | "workflows.trigger.unavailable" | "workflows.trigger.tableLabel" | "workflows.trigger.tableHelp" | "workflows.trigger.actionLabel" | "workflows.trigger.actionHelp" | "workflows.trigger.chooseOne" | "workflows.trigger.notFound" | "workflows.trigger.readableValues" | "workflows.trigger.noReadableValues" | "workflows.trigger.nextLabel" | "workflows.trigger.nextHelp" | "workflows.trigger.nextNone" | "workflows.trigger.summaryInput" | "workflows.trigger.summaryAction" | "workflows.trigger.summaryPageEvent" | "workflows.trigger.summaryAt" | "workflows.trigger.summaryUnfinished" | "workflows.reason.widgetKeepsNoData" | "workflows.reason.widgetReportsNoActions" | "workflows.reason.widgetNotPublished" | "workflows.schedule.modeLabel" | "workflows.schedule.modeAfter" | "workflows.schedule.modeAt" | "workflows.schedule.afterHelp" | "workflows.schedule.amountLabel" | "workflows.schedule.unitLabel" | "workflows.schedule.unitSeconds" | "workflows.schedule.unitMinutes" | "workflows.schedule.unitHours" | "workflows.schedule.unitDays" | "workflows.schedule.unitWeeks" | "workflows.schedule.waitSeconds" | "workflows.schedule.waitMinutes" | "workflows.schedule.waitHours" | "workflows.schedule.waitDays" | "workflows.schedule.waitWeeks" | "workflows.schedule.momentLabel" | "workflows.schedule.momentHelp" | "workflows.schedule.invalidMoment" | "workflows.event.nameLabel" | "workflows.event.namePlaceholder" | "workflows.event.nameHelp" | "workflows.event.nameInvalid" | "workflows.event.howToSend" | "workflows.event.valuesHeading" | "workflows.event.valuesHelp" | "workflows.event.addValue" | "workflows.event.valueName" | "workflows.event.valueNamePlaceholder" | "workflows.event.valueNameInvalid" | "workflows.event.valueType" | "workflows.event.removeValue" | "workflows.fieldType.text" | "workflows.fieldType.number" | "workflows.fieldType.boolean" | "workflows.value.yes" | "workflows.value.no" | "workflows.condition.heading" | "workflows.condition.help" | "workflows.condition.noTrigger" | "workflows.condition.noValues" | "workflows.condition.addRule" | "workflows.condition.ruleLimit" | "workflows.condition.defaultName" | "workflows.condition.defaultLabel" | "workflows.condition.defaultStay" | "workflows.condition.defaultHelp" | "workflows.condition.defaultHint" | "workflows.condition.defaultStays" | "workflows.rule.defaultName" | "workflows.rule.nameLabel" | "workflows.rule.moveUp" | "workflows.rule.moveDown" | "workflows.rule.remove" | "workflows.rule.matchLabel" | "workflows.rule.matchAll" | "workflows.rule.matchAny" | "workflows.rule.noTests" | "workflows.rule.addTest" | "workflows.rule.testLimit" | "workflows.rule.thenGoTo" | "workflows.rule.testWithValue" | "workflows.rule.testWithoutValue" | "workflows.rule.testAndMore" | "workflows.test.field" | "workflows.test.operator" | "workflows.test.value" | "workflows.test.valuePlaceholder" | "workflows.test.remove" | "workflows.operator.is" | "workflows.operator.isNot" | "workflows.operator.contains" | "workflows.operator.doesNotContain" | "workflows.operator.startsWith" | "workflows.operator.endsWith" | "workflows.operator.greaterThan" | "workflows.operator.atLeast" | "workflows.operator.lessThan" | "workflows.operator.atMost" | "workflows.operator.isEmpty" | "workflows.operator.isNotEmpty" | "workflows.test.heading" | "workflows.test.help" | "workflows.test.close" | "workflows.test.start" | "workflows.test.restart" | "workflows.test.ended" | "workflows.test.noStart" | "workflows.test.noTriggers" | "workflows.test.visitorIsOn" | "workflows.test.fire" | "workflows.test.resultMoved" | "workflows.test.resultStayed" | "workflows.test.resultIgnored" | "workflows.history.heading" | "workflows.history.help" | "workflows.history.close" | "workflows.history.none" | "workflows.history.failed" | "workflows.history.version" | "workflows.history.live" | "workflows.history.by" | "workflows.history.view" | "workflows.history.viewing" | "workflows.history.backToDraft" | "workflows.history.restore" | "workflows.history.restoreTitle" | "workflows.history.restoreMessage" | "workflows.runs.help" | "workflows.runs.flowLabel" | "workflows.runs.rangeLabel" | "workflows.runs.lastDays" | "workflows.runs.versionLabel" | "workflows.runs.allVersions" | "workflows.runs.versionLive" | "workflows.runs.started" | "workflows.runs.entered" | "workflows.runs.stayed" | "workflows.runs.failed" | "workflows.runs.pathLabel" | "workflows.runs.none" | "workflows.runs.neverPublished" | "workflows.settings.zoneHeading" | "workflows.settings.zoneLabel" | "workflows.settings.zoneHelp" | "workflows.settings.embedHeading" | "workflows.settings.embedHelp" | "workflows.settings.stateHeading" | "workflows.settings.pause" | "workflows.settings.pauseHelp" | "workflows.settings.resume" | "workflows.settings.resumeHelp" | "workflows.settings.archive" | "workflows.settings.archiveHelp" | "workflows.settings.archiveTitle" | "workflows.settings.archiveMessage" | "workflows.settings.unarchive" | "workflows.settings.unarchiveHelp" | "workflows.settings.duplicate" | "workflows.settings.duplicateHelp" | "workflows.settings.delete" | "workflows.settings.deleteHelp" | "workflows.settings.deleteTitle" | "workflows.settings.deleteMessageDraft" | "workflows.settings.deleteMessageLive" | "workflows.settings.deleteMessagePaused" | "workflows.settings.deleteMessageArchived" | "workflows.issue.unknown" | "workflows.issue.malformed" | "workflows.issue.schemaVersion" | "workflows.issue.graphTooLarge" | "workflows.issue.unknownNodeType" | "workflows.issue.unknownTriggerKind" | "workflows.issue.badId" | "workflows.issue.duplicateId" | "workflows.issue.tooManyBlocks" | "workflows.issue.tooManyEdges" | "workflows.issue.noComposition" | "workflows.issue.noStart" | "workflows.issue.manyStarts" | "workflows.issue.compositionMissingId" | "workflows.issue.duplicateComposition" | "workflows.issue.compositionNotAvailable" | "workflows.issue.compositionWebsiteMismatch" | "workflows.issue.unreachableBlock" | "workflows.issue.edgeUnknownNode" | "workflows.issue.edgeBadPort" | "workflows.issue.edgeInvalidConnection" | "workflows.issue.portManyTargets" | "workflows.issue.cycle" | "workflows.issue.triggerNoSource" | "workflows.issue.triggerManySources" | "workflows.issue.triggerNoTarget" | "workflows.issue.triggerConfigIncomplete" | "workflows.issue.triggerNeedsTable" | "workflows.issue.triggerNeedsAction" | "workflows.issue.triggerNeedsName" | "workflows.issue.scheduleInvalid" | "workflows.issue.eventValueInvalid" | "workflows.issue.eventTooManyValues" | "workflows.issue.triggerCapabilityMissing" | "workflows.issue.triggerInputMissing" | "workflows.issue.triggerActionMissing" | "workflows.issue.conditionNoSource" | "workflows.issue.conditionManySources" | "workflows.issue.conditionNoCases" | "workflows.issue.conditionTooManyCases" | "workflows.issue.caseBadId" | "workflows.issue.caseDuplicateId" | "workflows.issue.caseNoTests" | "workflows.issue.caseTooManyTests" | "workflows.issue.caseNoTarget" | "workflows.issue.testBadField" | "workflows.issue.testBadOperator" | "workflows.issue.testMissingValue" | "workflows.issue.fieldUnknown" | null;
|
|
144
|
+
createFailure: "workflows.region.label" | "workflows.header.title" | "workflows.common.cancel" | "workflows.common.close" | "workflows.common.dismiss" | "workflows.common.loading" | "workflows.empty.title" | "workflows.empty.hint" | "workflows.error.title" | "workflows.error.hint" | "workflows.error.retry" | "workflows.error.generic" | "workflows.error.network" | "workflows.error.timeout" | "workflows.error.server" | "workflows.error.sessionEnded" | "workflows.error.planRestricted" | "workflows.error.notFound" | "workflows.error.revisionChanged" | "workflows.error.archived" | "workflows.error.nothingToPublish" | "workflows.error.nothingToDiscard" | "workflows.error.wrongState" | "workflows.error.tooManyWorkflows" | "workflows.error.presetGone" | "workflows.error.presetCopyFailed" | "workflows.error.stillWorking" | "workflows.error.publishBlocked" | "workflows.error.invalidGraph" | "workflows.error.tooManyRequests" | "workflows.list.label" | "workflows.list.newWorkflow" | "workflows.list.searchLabel" | "workflows.list.searchPlaceholder" | "workflows.list.filterLabel" | "workflows.list.filterActive" | "workflows.list.filterAll" | "workflows.list.statusLabel" | "workflows.list.statusAny" | "workflows.list.sortLabel" | "workflows.list.sortCreated" | "workflows.list.sortPublished" | "workflows.list.sortRuns" | "workflows.list.sortName" | "workflows.list.sortAscending" | "workflows.list.sortDescending" | "workflows.list.compositionsCount" | "workflows.list.runsCount" | "workflows.list.publishedOn" | "workflows.list.neverPublished" | "workflows.list.open" | "workflows.list.rowMenu" | "workflows.list.showMore" | "workflows.list.noMatches" | "workflows.list.duplicated" | "workflows.list.deleted" | "workflows.list.editingNamed" | "workflows.list.editingSomeone" | "workflows.create.title" | "workflows.create.nameLabel" | "workflows.create.namePlaceholder" | "workflows.create.compositionLabel" | "workflows.create.compositionHelp" | "workflows.create.compositionPlaceholder" | "workflows.create.create" | "workflows.create.creating" | "workflows.create.startLabel" | "workflows.create.blankTitle" | "workflows.create.blankHint" | "workflows.create.presetSummary" | "workflows.create.presetMorePictures" | "workflows.create.presetsLoading" | "workflows.create.presetsFailed" | "workflows.create.presetHelp" | "workflows.create.presetNameHelp" | "workflows.create.settingUp" | "workflows.status.draft" | "workflows.status.live" | "workflows.status.paused" | "workflows.status.archived" | "workflows.status.unpublishedChanges" | "workflows.top.back" | "workflows.top.nameLabel" | "workflows.top.testRun" | "workflows.top.history" | "workflows.top.embedCode" | "workflows.top.publish" | "workflows.top.publishChanges" | "workflows.top.publishing" | "workflows.top.moreActions" | "workflows.save.saved" | "workflows.save.saving" | "workflows.save.pending" | "workflows.save.failed" | "workflows.save.conflict" | "workflows.tabs.label" | "workflows.tabs.editor" | "workflows.tabs.runs" | "workflows.tabs.settings" | "workflows.banner.unpublishedChanges" | "workflows.banner.publishChanges" | "workflows.banner.discard" | "workflows.banner.discardTitle" | "workflows.banner.discardMessage" | "workflows.banner.neverPublished" | "workflows.banner.paused" | "workflows.banner.archived" | "workflows.banner.conflict" | "workflows.banner.reload" | "workflows.banner.touchOnly" | "workflows.conflict.keepCopy" | "workflows.conflict.keepingCopy" | "workflows.conflict.copyName" | "workflows.conflict.copyKept" | "workflows.conflict.openCopy" | "workflows.conflict.loadTitle" | "workflows.conflict.loadMessage" | "workflows.presence.blockedTitleNamed" | "workflows.presence.blockedTitleYou" | "workflows.presence.blockedTitle" | "workflows.presence.blockedBody" | "workflows.presence.lostTitleNamed" | "workflows.presence.lostTitleYou" | "workflows.presence.lostTitle" | "workflows.presence.lostBody" | "workflows.presence.takeOver" | "workflows.presence.takeOverHint" | "workflows.presence.lookOnly" | "workflows.presence.lookOnlyHint" | "workflows.presence.working" | "workflows.presence.actionFailed" | "workflows.presence.readOnlyNamed" | "workflows.presence.readOnlyYou" | "workflows.presence.readOnly" | "workflows.presence.readOnlyFree" | "workflows.presence.startEditing" | "workflows.editor.published" | "workflows.editor.discarded" | "workflows.editor.restored" | "workflows.editor.reloaded" | "workflows.editor.paused" | "workflows.editor.resumed" | "workflows.editor.archived" | "workflows.editor.unarchived" | "workflows.editor.saveFirst" | "workflows.editor.fixProblems" | "workflows.editor.blockLimit" | "workflows.publish.firstTitle" | "workflows.publish.firstMessage" | "workflows.publish.changesTitle" | "workflows.publish.changesMessage" | "workflows.leave.title" | "workflows.leave.message" | "workflows.leave.confirm" | "workflows.canvas.label" | "workflows.canvas.pointIn" | "workflows.canvas.pointOut" | "workflows.toolbar.label" | "workflows.toolbar.addBlock" | "workflows.toolbar.undo" | "workflows.toolbar.redo" | "workflows.toolbar.zoomIn" | "workflows.toolbar.zoomOut" | "workflows.toolbar.fit" | "workflows.toolbar.zoomLevel" | "workflows.block.publishedMeta" | "workflows.block.draftMeta" | "workflows.block.emptyCompositionHelp" | "workflows.block.conditionNoRulesBadge" | "workflows.addBlock.composition" | "workflows.addBlock.helpComposition" | "workflows.addBlock.condition" | "workflows.addBlock.helpCondition" | "workflows.addBlock.triggerHeading" | "workflows.addBlock.helpInput" | "workflows.addBlock.helpAction" | "workflows.addBlock.helpPageEvent" | "workflows.addBlock.helpScheduled" | "workflows.block.startsHere" | "workflows.block.trigger" | "workflows.block.condition" | "workflows.block.unknown" | "workflows.block.compositionNotChosen" | "workflows.block.compositionLoading" | "workflows.block.compositionUnavailable" | "workflows.block.notPublished" | "workflows.block.numbered" | "workflows.block.problems" | "workflows.panel.label" | "workflows.panel.close" | "workflows.panel.selectionHeading" | "workflows.panel.problemsHeading" | "workflows.panel.problemsLabel" | "workflows.panel.manyBlocksSelected" | "workflows.panel.connectionSelected" | "workflows.panel.removeBlock" | "workflows.panel.removeBlocks" | "workflows.panel.removeConnection" | "workflows.composition.heading" | "workflows.composition.label" | "workflows.composition.help" | "workflows.composition.searchLabel" | "workflows.composition.searchPlaceholder" | "workflows.composition.none" | "workflows.composition.alreadyUsed" | "workflows.composition.isStart" | "workflows.composition.makeStart" | "workflows.composition.capabilitiesHeading" | "workflows.composition.capabilityInput" | "workflows.composition.capabilityAction" | "workflows.composition.capabilityWebsites" | "workflows.composition.inputTables" | "workflows.composition.actionCount" | "workflows.trigger.heading" | "workflows.trigger.help" | "workflows.trigger.kindLabel" | "workflows.trigger.kindInput" | "workflows.trigger.kindAction" | "workflows.trigger.kindPageEvent" | "workflows.trigger.kindScheduled" | "workflows.trigger.unavailable" | "workflows.trigger.tableLabel" | "workflows.trigger.tableHelp" | "workflows.trigger.actionLabel" | "workflows.trigger.actionHelp" | "workflows.trigger.chooseOne" | "workflows.trigger.notFound" | "workflows.trigger.readableValues" | "workflows.trigger.noReadableValues" | "workflows.trigger.nextLabel" | "workflows.trigger.nextHelp" | "workflows.trigger.nextNone" | "workflows.trigger.summaryInput" | "workflows.trigger.summaryAction" | "workflows.trigger.summaryPageEvent" | "workflows.trigger.summaryAt" | "workflows.trigger.summaryUnfinished" | "workflows.reason.widgetKeepsNoData" | "workflows.reason.widgetReportsNoActions" | "workflows.reason.widgetNotPublished" | "workflows.schedule.modeLabel" | "workflows.schedule.modeAfter" | "workflows.schedule.modeAt" | "workflows.schedule.afterHelp" | "workflows.schedule.amountLabel" | "workflows.schedule.unitLabel" | "workflows.schedule.unitSeconds" | "workflows.schedule.unitMinutes" | "workflows.schedule.unitHours" | "workflows.schedule.unitDays" | "workflows.schedule.unitWeeks" | "workflows.schedule.waitSeconds" | "workflows.schedule.waitMinutes" | "workflows.schedule.waitHours" | "workflows.schedule.waitDays" | "workflows.schedule.waitWeeks" | "workflows.schedule.momentLabel" | "workflows.schedule.momentHelp" | "workflows.schedule.invalidMoment" | "workflows.event.nameLabel" | "workflows.event.namePlaceholder" | "workflows.event.nameHelp" | "workflows.event.nameInvalid" | "workflows.event.howToSend" | "workflows.event.valuesHeading" | "workflows.event.valuesHelp" | "workflows.event.addValue" | "workflows.event.valueName" | "workflows.event.valueNamePlaceholder" | "workflows.event.valueNameInvalid" | "workflows.event.valueType" | "workflows.event.removeValue" | "workflows.fieldType.text" | "workflows.fieldType.number" | "workflows.fieldType.boolean" | "workflows.value.yes" | "workflows.value.no" | "workflows.condition.heading" | "workflows.condition.help" | "workflows.condition.noTrigger" | "workflows.condition.noValues" | "workflows.condition.addRule" | "workflows.condition.ruleLimit" | "workflows.condition.defaultName" | "workflows.condition.defaultLabel" | "workflows.condition.defaultStay" | "workflows.condition.defaultHelp" | "workflows.condition.defaultHint" | "workflows.condition.defaultStays" | "workflows.rule.defaultName" | "workflows.rule.nameLabel" | "workflows.rule.moveUp" | "workflows.rule.moveDown" | "workflows.rule.remove" | "workflows.rule.matchLabel" | "workflows.rule.matchAll" | "workflows.rule.matchAny" | "workflows.rule.noTests" | "workflows.rule.addTest" | "workflows.rule.testLimit" | "workflows.rule.thenGoTo" | "workflows.rule.expand" | "workflows.rule.collapse" | "workflows.rule.testWithValue" | "workflows.rule.testWithoutValue" | "workflows.rule.testAndMore" | "workflows.test.field" | "workflows.test.operator" | "workflows.test.value" | "workflows.test.valuePlaceholder" | "workflows.test.remove" | "workflows.operator.is" | "workflows.operator.isNot" | "workflows.operator.contains" | "workflows.operator.doesNotContain" | "workflows.operator.startsWith" | "workflows.operator.endsWith" | "workflows.operator.greaterThan" | "workflows.operator.atLeast" | "workflows.operator.lessThan" | "workflows.operator.atMost" | "workflows.operator.isEmpty" | "workflows.operator.isNotEmpty" | "workflows.test.heading" | "workflows.test.help" | "workflows.test.close" | "workflows.test.start" | "workflows.test.restart" | "workflows.test.ended" | "workflows.test.noStart" | "workflows.test.noTriggers" | "workflows.test.visitorIsOn" | "workflows.test.fire" | "workflows.test.resultMoved" | "workflows.test.resultStayed" | "workflows.test.resultIgnored" | "workflows.history.heading" | "workflows.history.help" | "workflows.history.close" | "workflows.history.none" | "workflows.history.failed" | "workflows.history.version" | "workflows.history.live" | "workflows.history.byOn" | "workflows.history.view" | "workflows.history.viewingShort" | "workflows.history.viewing" | "workflows.history.backToDraft" | "workflows.history.restore" | "workflows.history.restoreConfirm" | "workflows.history.restoreTitle" | "workflows.history.restoreMessage" | "workflows.runs.help" | "workflows.runs.flowLabel" | "workflows.runs.rangeLabel" | "workflows.runs.lastDays" | "workflows.runs.versionLabel" | "workflows.runs.allVersions" | "workflows.runs.versionLive" | "workflows.runs.started" | "workflows.runs.entered" | "workflows.runs.stayed" | "workflows.runs.failed" | "workflows.runs.failedTimeout" | "workflows.runs.failedWidgetError" | "workflows.runs.failedBuild" | "workflows.runs.failedOther" | "workflows.runs.failedUnrecorded" | "workflows.runs.pathLabel" | "workflows.runs.none" | "workflows.runs.neverPublished" | "workflows.settings.zoneLabel" | "workflows.settings.zoneHelp" | "workflows.settings.embedHeading" | "workflows.settings.embedHelp" | "workflows.settings.stateHeading" | "workflows.settings.pause" | "workflows.settings.pauseHelp" | "workflows.settings.resume" | "workflows.settings.resumeHelp" | "workflows.settings.archive" | "workflows.settings.archiveHelp" | "workflows.settings.archiveTitle" | "workflows.settings.archiveMessage" | "workflows.settings.unarchive" | "workflows.settings.unarchiveHelp" | "workflows.settings.duplicate" | "workflows.settings.duplicateHelp" | "workflows.settings.delete" | "workflows.settings.deleteHelp" | "workflows.settings.deleteTitle" | "workflows.settings.deleteMessageDraft" | "workflows.settings.deleteMessageLive" | "workflows.settings.deleteMessagePaused" | "workflows.settings.deleteMessageArchived" | "workflows.issue.unknown" | "workflows.issue.malformed" | "workflows.issue.schemaVersion" | "workflows.issue.graphTooLarge" | "workflows.issue.unknownNodeType" | "workflows.issue.unknownTriggerKind" | "workflows.issue.badId" | "workflows.issue.duplicateId" | "workflows.issue.tooManyBlocks" | "workflows.issue.tooManyEdges" | "workflows.issue.noComposition" | "workflows.issue.noStart" | "workflows.issue.manyStarts" | "workflows.issue.compositionMissingId" | "workflows.issue.duplicateComposition" | "workflows.issue.compositionNotAvailable" | "workflows.issue.compositionWebsiteMismatch" | "workflows.issue.unreachableBlock" | "workflows.issue.edgeUnknownNode" | "workflows.issue.edgeBadPort" | "workflows.issue.edgeInvalidConnection" | "workflows.issue.portManyTargets" | "workflows.issue.cycle" | "workflows.issue.triggerNoSource" | "workflows.issue.triggerManySources" | "workflows.issue.triggerNoTarget" | "workflows.issue.triggerConfigIncomplete" | "workflows.issue.triggerNeedsTable" | "workflows.issue.triggerNeedsAction" | "workflows.issue.triggerNeedsName" | "workflows.issue.scheduleInvalid" | "workflows.issue.eventValueInvalid" | "workflows.issue.eventTooManyValues" | "workflows.issue.triggerCapabilityMissing" | "workflows.issue.triggerInputMissing" | "workflows.issue.triggerActionMissing" | "workflows.issue.conditionNoSource" | "workflows.issue.conditionManySources" | "workflows.issue.conditionNoCases" | "workflows.issue.conditionTooManyCases" | "workflows.issue.caseBadId" | "workflows.issue.caseDuplicateId" | "workflows.issue.caseNoTests" | "workflows.issue.caseTooManyTests" | "workflows.issue.caseNoTarget" | "workflows.issue.testBadField" | "workflows.issue.testBadOperator" | "workflows.issue.testMissingValue" | "workflows.issue.fieldUnknown" | null;
|
|
115
145
|
create(input: {
|
|
116
146
|
name: string;
|
|
117
147
|
composition: CompositionOption | null;
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { getContext, setContext } from 'svelte';
|
|
2
2
|
import { WorkflowsApiError, isCancelled, makeIdempotencyKey } from '../api/workflowsApi.js';
|
|
3
|
+
import { WORKFLOW_STATUSES } from '../api/types.js';
|
|
3
4
|
import { workflowsError, workflowsWarn } from '../utils/logger.js';
|
|
4
5
|
import { pickApiErrorMessage } from './apiErrorText.js';
|
|
5
6
|
import { EditingWatcher } from './editingWatcher.js';
|
|
6
7
|
import { detectBrowserTimeZone } from './zonedTime.js';
|
|
8
|
+
/** The lines of the Status menu, in the order the design draws them. */
|
|
9
|
+
export const LIST_STATUS_CHOICES = ['any', ...WORKFLOW_STATUSES];
|
|
10
|
+
/** Whether what a control reported is one of the lines of the Status menu (a select reports plain text). */
|
|
11
|
+
export function isListStatusChoice(value) {
|
|
12
|
+
return LIST_STATUS_CHOICES.includes(value);
|
|
13
|
+
}
|
|
7
14
|
/** One page of the list is this many workflows; "Show more" reads the next. */
|
|
8
15
|
export const LIST_PAGE_SIZE = 25;
|
|
9
16
|
/** How long the list waits after the last letter typed in the search before it asks. */
|
|
@@ -21,6 +28,11 @@ export class WorkflowListState {
|
|
|
21
28
|
failure = $state.raw(null);
|
|
22
29
|
search = $state('');
|
|
23
30
|
statusFilter = $state('');
|
|
31
|
+
/**
|
|
32
|
+
* The tab that is open. It is kept here and not worked out from `statusFilter`: once one state is chosen in the Status menu
|
|
33
|
+
* the filter no longer says which tab it was chosen under, and the tab must not move by itself.
|
|
34
|
+
*/
|
|
35
|
+
scope = $state('active');
|
|
24
36
|
sortField = $state('createdAt');
|
|
25
37
|
sortDirection = $state('desc');
|
|
26
38
|
/** Workflows something is being done to (a duplicate on its way, a state change). */
|
|
@@ -39,6 +51,8 @@ export class WorkflowListState {
|
|
|
39
51
|
hasMore = $derived(this.items.length < this.total);
|
|
40
52
|
/** Whether the person asked for anything that narrows the list (so "nothing" means "nothing matches", not "nothing yet"). */
|
|
41
53
|
isNarrowed = $derived(this.search.trim() !== '' || this.statusFilter !== '');
|
|
54
|
+
/** What the Status menu shows: the one state the list is narrowed to, or `any` when the tab alone decides. */
|
|
55
|
+
statusChoice = $derived(this.statusFilter === '' || this.statusFilter === 'all' ? 'any' : this.statusFilter);
|
|
42
56
|
/**
|
|
43
57
|
* The presets "New workflow" offers, as the API gave them the last time they were read (none until then, and none when
|
|
44
58
|
* the workspace is offered none: the dialog then has only the blank start, as it always had).
|
|
@@ -185,12 +199,39 @@ export class WorkflowListState {
|
|
|
185
199
|
void this.load();
|
|
186
200
|
}, this.searchDelay);
|
|
187
201
|
}
|
|
202
|
+
/**
|
|
203
|
+
* Narrows the list by state and reads it again. The tab follows what is asked: "all" and "archived" (which only the whole
|
|
204
|
+
* list holds) are the second tab, empty is the first, and one of the other states leaves the tab where it was.
|
|
205
|
+
*/
|
|
188
206
|
setStatusFilter(filter) {
|
|
207
|
+
if (filter === 'all' || filter === 'archived')
|
|
208
|
+
this.scope = 'all';
|
|
209
|
+
else if (filter === '')
|
|
210
|
+
this.scope = 'active';
|
|
189
211
|
if (filter === this.statusFilter)
|
|
190
212
|
return;
|
|
191
213
|
this.statusFilter = filter;
|
|
192
214
|
void this.load();
|
|
193
215
|
}
|
|
216
|
+
/** A tab was chosen: the list covers what the tab says, and the Status menu goes back to Any. */
|
|
217
|
+
chooseScope(scope) {
|
|
218
|
+
this.setStatusFilter(scope === 'all' ? 'all' : '');
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* A line of the Status menu was chosen. A state narrows the list to it (Archived also opens the second tab, where the
|
|
222
|
+
* archived workflows are), and Any gives the list back to the tab that is open. What a select reports is plain text, so
|
|
223
|
+
* a line the menu does not have is said once and changes nothing.
|
|
224
|
+
*/
|
|
225
|
+
chooseStatus(choice) {
|
|
226
|
+
if (!isListStatusChoice(choice)) {
|
|
227
|
+
workflowsWarn(`The Status menu reported "${choice}", which it does not offer; the list is left as it is.`);
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
230
|
+
if (choice === 'any')
|
|
231
|
+
this.chooseScope(this.scope);
|
|
232
|
+
else
|
|
233
|
+
this.setStatusFilter(choice);
|
|
234
|
+
}
|
|
194
235
|
setSort(field) {
|
|
195
236
|
this.sortField = field;
|
|
196
237
|
void this.load();
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { WorkflowGraph } from '@widgetic/workflows-engine';
|
|
2
|
+
import type { WorkflowFailureReason } from '../api/types.js';
|
|
2
3
|
import type { RunCounts } from './statsRange.js';
|
|
3
4
|
/**
|
|
4
5
|
* The Runs chart: how far visitors came in a workflow, as a Sankey diagram used as a funnel. Every composition is a bar, and
|
|
@@ -16,7 +17,10 @@ import type { RunCounts } from './statsRange.js';
|
|
|
16
17
|
* line of a way belongs to that way alone, and its count is the width of the band;
|
|
17
18
|
* - the counts are written one by one and may not add up (a visitor who left half way, a count lost). The model never
|
|
18
19
|
* makes up a number, but it never lets one draw something that cannot be drawn either: a bar is at least as large as what
|
|
19
|
-
* arrives at it and what leaves it, and what stopped there is never below zero
|
|
20
|
+
* arrives at it and what leaves it, and what stopped there is never below zero;
|
|
21
|
+
* - the times a composition could not be shown may say why (`failedReasons`): the same rule holds, so the times that are
|
|
22
|
+
* told apart are never more than the times counted, and the rest are the times whose reason was not recorded (an older
|
|
23
|
+
* embed does not say why).
|
|
20
24
|
*/
|
|
21
25
|
/** What a person reads off the chart for one composition. */
|
|
22
26
|
export interface RunsFlowStep {
|
|
@@ -36,11 +40,32 @@ export interface RunsFlowStep {
|
|
|
36
40
|
stayed: number;
|
|
37
41
|
/** Whether any band leaves it. */
|
|
38
42
|
hasWayOn: boolean;
|
|
39
|
-
/** The times it could not be shown. */
|
|
43
|
+
/** The times it could not be shown (never fewer than the reasons that were told add up to). */
|
|
40
44
|
failed: number;
|
|
45
|
+
/** Why, for the times a reason was recorded: in the order of `WORKFLOW_FAILURE_REASONS`, and none of them 0. */
|
|
46
|
+
failedReasons: ReadonlyArray<{
|
|
47
|
+
reason: WorkflowFailureReason;
|
|
48
|
+
total: number;
|
|
49
|
+
}>;
|
|
50
|
+
/** The times it could not be shown whose reason was not recorded: `failed` less the reasons told. */
|
|
51
|
+
failedWithoutReason: number;
|
|
41
52
|
/** What the height of its bar stands for: the larger of the visitors who entered and the visitors who left. */
|
|
42
53
|
size: number;
|
|
43
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* The lines of numbers under a composition's name, before they are put into words: `entered` and, when they apply, `stayed`
|
|
57
|
+
* and `failed`; under `failed`, one line for each reason that was told (named by the reason) and, when some were told and
|
|
58
|
+
* some were not, `unrecorded` for the rest. A step whose failures say nothing about why (every older embed) has no line below
|
|
59
|
+
* `failed`, so the chart reads as it always did.
|
|
60
|
+
*/
|
|
61
|
+
export type RunsFlowLineKind = 'entered' | 'stayed' | 'failed' | WorkflowFailureReason | 'unrecorded';
|
|
62
|
+
export interface RunsFlowNumberLine {
|
|
63
|
+
/** Which line it is (and so which words): unique among the lines of one step. */
|
|
64
|
+
kind: RunsFlowLineKind;
|
|
65
|
+
count: number;
|
|
66
|
+
}
|
|
67
|
+
/** The lines of numbers of a step, in the order they are read. The layout counts them and the screen draws them: one list, so they agree. */
|
|
68
|
+
export declare function listNumberLines(step: Pick<RunsFlowStep, 'entered' | 'stayed' | 'failed' | 'failedReasons' | 'failedWithoutReason'>): RunsFlowNumberLine[];
|
|
44
69
|
/** A condition on the way of a band, and the way out of it the band takes (a rule's id, or `default`). */
|
|
45
70
|
export interface RunsFlowRule {
|
|
46
71
|
conditionId: string;
|
|
@@ -71,4 +96,4 @@ export interface RunsFlow {
|
|
|
71
96
|
hasVisitors: boolean;
|
|
72
97
|
}
|
|
73
98
|
/** Makes the chart of a workflow from the counts of a range of days and a version. Never throws, whatever the graph holds. */
|
|
74
|
-
export declare function buildRunsFlow(graph: WorkflowGraph, counts: Pick<RunCounts, 'entered' | 'followed' | 'failed'>): RunsFlow;
|
|
99
|
+
export declare function buildRunsFlow(graph: WorkflowGraph, counts: Pick<RunCounts, 'entered' | 'followed' | 'failed'> & Partial<Pick<RunCounts, 'failedReasons'>>): RunsFlow;
|
package/dist/editor/runsFlow.js
CHANGED
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
import { MAX_BLOCKS, MAX_EDGES, buildGraphIndex, findStartNode, isCompositionNode, isConditionNode, isTriggerNode, outgoingEdgesOf } from '@widgetic/workflows-engine';
|
|
2
|
+
import { WORKFLOW_FAILURE_REASONS } from '../api/types.js';
|
|
3
|
+
/** The lines of numbers of a step, in the order they are read. The layout counts them and the screen draws them: one list, so they agree. */
|
|
4
|
+
export function listNumberLines(step) {
|
|
5
|
+
const lines = [{ kind: 'entered', count: step.entered }];
|
|
6
|
+
if (step.stayed > 0)
|
|
7
|
+
lines.push({ kind: 'stayed', count: step.stayed });
|
|
8
|
+
if (step.failed > 0) {
|
|
9
|
+
lines.push({ kind: 'failed', count: step.failed });
|
|
10
|
+
for (const told of step.failedReasons)
|
|
11
|
+
lines.push({ kind: told.reason, count: told.total });
|
|
12
|
+
if (step.failedReasons.length > 0 && step.failedWithoutReason > 0)
|
|
13
|
+
lines.push({ kind: 'unrecorded', count: step.failedWithoutReason });
|
|
14
|
+
}
|
|
15
|
+
return lines;
|
|
16
|
+
}
|
|
2
17
|
/** A count that can be drawn: a whole number of visitors, 0 when the count is missing, negative or not a number. */
|
|
3
18
|
function readCount(lookup, id) {
|
|
4
|
-
const value = lookup
|
|
19
|
+
const value = lookup?.get(id);
|
|
5
20
|
return typeof value === 'number' && Number.isFinite(value) && value > 0 ? Math.floor(value) : 0;
|
|
6
21
|
}
|
|
7
22
|
/**
|
|
@@ -92,6 +107,14 @@ export function buildRunsFlow(graph, counts) {
|
|
|
92
107
|
const left = leaving.reduce((total, link) => total + link.value, 0);
|
|
93
108
|
const entered = Math.max(readCount(counts.entered, composition.id), arrived);
|
|
94
109
|
const hasWayOn = leaving.length > 0;
|
|
110
|
+
// The reasons that were told, in the fixed order, none of them 0; the times they leave out are the ones that said nothing
|
|
111
|
+
const reasonsOfStep = counts.failedReasons?.get(composition.id);
|
|
112
|
+
const failedReasons = WORKFLOW_FAILURE_REASONS.map((reason) => ({
|
|
113
|
+
reason,
|
|
114
|
+
total: readCount(reasonsOfStep, reason)
|
|
115
|
+
})).filter((told) => told.total > 0);
|
|
116
|
+
const failedReasonsTotal = failedReasons.reduce((total, told) => total + told.total, 0);
|
|
117
|
+
const failed = Math.max(readCount(counts.failed, composition.id), failedReasonsTotal);
|
|
95
118
|
return {
|
|
96
119
|
nodeId: composition.id,
|
|
97
120
|
column: columnOf.get(composition.id) ?? 0,
|
|
@@ -101,7 +124,9 @@ export function buildRunsFlow(graph, counts) {
|
|
|
101
124
|
left,
|
|
102
125
|
stayed: hasWayOn ? Math.max(0, entered - left) : 0,
|
|
103
126
|
hasWayOn,
|
|
104
|
-
failed
|
|
127
|
+
failed,
|
|
128
|
+
failedReasons,
|
|
129
|
+
failedWithoutReason: failed - failedReasonsTotal,
|
|
105
130
|
size: Math.max(entered, left)
|
|
106
131
|
};
|
|
107
132
|
});
|
|
@@ -55,8 +55,12 @@ export declare const RUNS_FLOW_METRICS: {
|
|
|
55
55
|
/** The space kept between a label and the next column's bars. */
|
|
56
56
|
readonly labelGutter: 16;
|
|
57
57
|
};
|
|
58
|
-
/**
|
|
59
|
-
|
|
58
|
+
/**
|
|
59
|
+
* How many lines of words a step's label has: its name, then its lines of numbers (how many entered, and the ones that are
|
|
60
|
+
* only there when they apply: how many stopped, how many could not be shown and, under those, why). The screen draws the
|
|
61
|
+
* very list this counts (`listNumberLines`), so the label is never taller or shorter than its words.
|
|
62
|
+
*/
|
|
63
|
+
export declare function countLabelLines(step: Pick<RunsFlowStep, 'entered' | 'stayed' | 'failed' | 'failedReasons' | 'failedWithoutReason'>): number;
|
|
60
64
|
/** A bar, with the place of its label. */
|
|
61
65
|
export interface PlacedStep extends RunsFlowStep {
|
|
62
66
|
/** The left edge of the bar and of its label. */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { listNumberLines } from './runsFlow.js';
|
|
1
2
|
/**
|
|
2
3
|
* Where everything of the Runs chart goes: the pixels of its bars, its labels and its bands, from the model
|
|
3
4
|
* (`runsFlow.ts`) and the width the screen has. Plain numbers in and out, so it is tested without a screen.
|
|
@@ -54,9 +55,13 @@ export const RUNS_FLOW_METRICS = {
|
|
|
54
55
|
/** The space kept between a label and the next column's bars. */
|
|
55
56
|
labelGutter: 16
|
|
56
57
|
};
|
|
57
|
-
/**
|
|
58
|
+
/**
|
|
59
|
+
* How many lines of words a step's label has: its name, then its lines of numbers (how many entered, and the ones that are
|
|
60
|
+
* only there when they apply: how many stopped, how many could not be shown and, under those, why). The screen draws the
|
|
61
|
+
* very list this counts (`listNumberLines`), so the label is never taller or shorter than its words.
|
|
62
|
+
*/
|
|
58
63
|
export function countLabelLines(step) {
|
|
59
|
-
return
|
|
64
|
+
return 1 + listNumberLines(step).length;
|
|
60
65
|
}
|
|
61
66
|
const EMPTY_CHART = { width: 0, height: 0, steps: [], links: [] };
|
|
62
67
|
/** Pixel values are kept to two places, so the same chart is always the same text. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { WorkflowStats } from '../api/types.js';
|
|
1
|
+
import type { WorkflowFailureReason, WorkflowStats } from '../api/types.js';
|
|
2
2
|
/** The longest range the API answers for: a year and a day (a leap year's days). */
|
|
3
3
|
export declare const MAX_RANGE_DAYS = 366;
|
|
4
4
|
/** The ranges the Runs tab offers, in days. */
|
|
@@ -19,6 +19,12 @@ export interface RunCounts {
|
|
|
19
19
|
entered: ReadonlyMap<string, number>;
|
|
20
20
|
followed: ReadonlyMap<string, number>;
|
|
21
21
|
failed: ReadonlyMap<string, number>;
|
|
22
|
+
/**
|
|
23
|
+
* Why a composition could not be shown, by composition id: the times for each reason that was told (a reason nobody told is
|
|
24
|
+
* missing, not 0). What is told never adds up to more than `failed` for the composition, and may add up to less: an older
|
|
25
|
+
* embed does not say why.
|
|
26
|
+
*/
|
|
27
|
+
failedReasons: ReadonlyMap<string, ReadonlyMap<WorkflowFailureReason, number>>;
|
|
22
28
|
/** The most visitors that reached any one block: the busiest block sets the scale of the story. */
|
|
23
29
|
busiest: number;
|
|
24
30
|
}
|
|
@@ -25,6 +25,18 @@ function toLookup(items) {
|
|
|
25
25
|
lookup.set(item.id, (lookup.get(item.id) ?? 0) + item.total);
|
|
26
26
|
return lookup;
|
|
27
27
|
}
|
|
28
|
+
/** The counts of the reasons, as a lookup of lookups: by composition id, then by reason. A count that is not above 0 is not a count. */
|
|
29
|
+
function toReasonLookup(items) {
|
|
30
|
+
const lookup = new Map();
|
|
31
|
+
for (const item of items) {
|
|
32
|
+
if (!(item.total > 0))
|
|
33
|
+
continue;
|
|
34
|
+
const reasons = lookup.get(item.id) ?? new Map();
|
|
35
|
+
reasons.set(item.reason, (reasons.get(item.reason) ?? 0) + item.total);
|
|
36
|
+
lookup.set(item.id, reasons);
|
|
37
|
+
}
|
|
38
|
+
return lookup;
|
|
39
|
+
}
|
|
28
40
|
/** Turns the API's lists (ids are values, never keys) into lookups the blocks and lines ask by id. */
|
|
29
41
|
export function readRunCounts(stats) {
|
|
30
42
|
const entered = toLookup(stats.nodes);
|
|
@@ -36,6 +48,8 @@ export function readRunCounts(stats) {
|
|
|
36
48
|
entered,
|
|
37
49
|
followed: toLookup(stats.edges),
|
|
38
50
|
failed: toLookup(stats.failed),
|
|
51
|
+
// A stats object made before the reasons existed (a test's, an older mock) has none, and that is not an error
|
|
52
|
+
failedReasons: toReasonLookup(stats.failedReasons ?? []),
|
|
39
53
|
busiest
|
|
40
54
|
};
|
|
41
55
|
}
|