ultisuite-client/components/landing/product/product-demos/ultimail-demo-workflow.ts
R3D347HR4Y efaaf16f60
Some checks are pending
E2E / Playwright e2e (push) Waiting to run
feat: update metadata and layout for new product pages
- Refactored metadata for contacts, administration, and Ulticards pages to utilize dynamic app names and descriptions.
- Introduced new product pages for Ultiai, Ultical, Ulticards, Ultidrive, Ultimail, and Ultimeet with appropriate metadata.
- Enhanced layout components to ensure consistent styling and functionality across new product sections.
- Updated various components to replace hardcoded labels with dynamic references to improve maintainability and consistency.
2026-06-19 22:11:42 +02:00

58 lines
1.7 KiB
TypeScript

import type { RuleEditorState } from "@/lib/mail-automation/types"
/** Règle pré-remplie pour la démo produit Ultimail (éditeur no-code). */
export function createUltimailProductDemoRuleState(): RuleEditorState {
const startId = "product-demo-start"
const condId = "product-demo-cond"
const actionsId = "product-demo-actions"
const endId = "product-demo-end"
return {
name: "Tri factures → Comptabilité",
priority: 10,
is_active: true,
rule_kind: "rule",
workflow: {
version: 1,
kind: "rule",
triggers: {
operator: "or",
groups: [
{
operator: "and",
items: [{ type: "message_received" }],
},
],
},
variables: [],
nodes: [
{ id: startId, type: "start", position: { x: 40, y: 160 }, data: {} },
{
id: condId,
type: "condition",
position: { x: 240, y: 140 },
data: { field: "subject", operator: "contains", value: "facture" },
},
{
id: actionsId,
type: "actions",
position: { x: 480, y: 120 },
data: {
actions: [
{ type: "label", value: "Comptabilité" },
{ type: "archive", value: "" },
],
},
},
{ id: endId, type: "end", position: { x: 720, y: 160 }, data: {} },
],
edges: [
{ id: "product-demo-e1", source: startId, target: condId },
{ id: "product-demo-e2", source: condId, target: actionsId, sourceHandle: "true" },
{ id: "product-demo-e3", source: actionsId, target: endId },
{ id: "product-demo-e4", source: condId, target: endId, sourceHandle: "false" },
],
},
}
}