Commit Graph
21 Commits
Author SHA1 Message Date
Dries Augustyns c32b54f588 fix: Prevent switching if nodes are attached to multi-branch 2026-03-11 15:30:00 +01:00
mdwtandClaude Opus 4.6 92949b7596 feat: Add multi-branch workflow conditions (switch/case)
Add a `mode: 'multi'` variant to CONDITION steps that allows matching a
field against multiple values, each routing to its own named branch.
Branches are evaluated in order; first match wins. A `default` branch
catches unmatched contacts.

- Schema: z.union for legacy binary + multi-branch condition configs
- Backend: executeCondition handles multi-branch evaluation with stable
  branch IDs, falls back to default when no branch matches
- Builder: Dynamic branch rendering with per-branch colors/labels,
  dagre layout spreads branches horizontally
- Config UI: Mode toggle (Simple If/Else vs Multi-branch Switch),
  dynamic branch list with add/remove
- Tests: 8 new multi-branch tests covering matching, ordering, default
  fallback, mixed operators, and transition routing
- Full backward compatibility: all changes gated on config.mode === 'multi'

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-03-11 12:57:05 +02:00
Dries Augustyns eec37ecb31 feat: Ability to change workflow trigger 2026-02-18 20:26:41 +01:00
Dries Augustyns d9ae171cc7 chore: fix linting errors 2026-02-17 19:09:01 +01:00
Dries Augustyns 78d3d224af feat: Add support for custom email recipients in workflow steps 2026-02-17 18:57:15 +01:00
Dries Augustyns fa22b8220a fix: Update templates data fetching to use PaginatedResponse type 2026-01-06 07:35:12 +01:00
Dries Augustyns da7f3e5718 chore: Remove comments 2026-01-01 14:08:08 +01:00
Dries Augustyns 85c992a9f9 types: Abstract inline interfaces to @plunk/types 2026-01-01 10:52:43 +01:00
Dries Augustyns 1019ba0d82 feat: Improved createdAt and updatedAt visualisation 2025-12-11 10:57:56 +01:00
Dries Augustyns 82e846e993 Add improved filtering in conditions block of workflows 2025-12-07 17:35:44 +01:00
Dries Augustyns 4d7c68db3a Use alert instead of custom component 2025-12-07 16:29:38 +01:00
Dries Augustyns 16572b8f49 Remove emojis and improve descriptions 2025-12-07 16:25:34 +01:00
Dries Augustyns c189175658 Selectors with description 2025-12-07 14:20:44 +01:00
Dries Augustyns 73a1cdfefa Fix lint errors 2025-12-04 11:50:52 +01:00
Dries Augustyns 6fe3779fcb Responsive design 2025-12-04 11:23:55 +01:00
Dries Augustyns 3b73273629 Remove gray colours 2025-12-04 09:45:03 +01:00
Dries Augustyns 382e97e5b2 Refactorings, error handling and logout 2025-12-03 20:39:11 +01:00
Dries Augustyns c1f823e2f1 Improvement to workflow creation 2025-12-03 17:36:05 +01:00
Dries Augustyns fe2e038037 Add better segmenting 2025-12-02 09:03:05 +01:00
Dries Augustyns b1f0043940 Add events to workflows 2025-12-01 18:37:53 +01:00
Dries Augustyns ff1876d580 Initial push of Plunk Next 2025-12-01 09:56:56 +01:00