Keep the code-flow submit within the function limits and list its routes
CI / full-gate (push) Failing after 1m2s

This commit is contained in:
2026-10-31 12:43:16 +01:00
parent ead604f49d
commit 03d7be61b3
3 changed files with 10 additions and 5 deletions
+5 -1
View File
@@ -149,6 +149,10 @@ function toField(node: UiNode, name: string, type: string, t: Translate): FlowFi
};
}
function formAction(flow: Flow, type: FlowType): string {
return CODE_FLOWS.has(type) ? `/${type}?flow=${encodeURIComponent(flow.id)}` : flow.ui.action;
}
export function buildFlowView(flow: Flow, type: FlowType, t: Translate = ENGLISH): FlowView {
const hidden: { name: string; value: string }[] = [];
const fields: FlowField[] = [];
@@ -177,7 +181,7 @@ export function buildFlowView(flow: Flow, type: FlowType, t: Translate = ENGLISH
}
return {
action: CODE_FLOWS.has(type) ? `/${type}?flow=${encodeURIComponent(flow.id)}` : flow.ui.action,
action: formAction(flow, type),
buttons,
fields,
hidden,