Diagram: Workflow Transition labels can break Mermaid Syntax

Created on 1 September 2023, about 1 year ago
Updated 2 September 2023, about 1 year ago

Problem/Motivation

If a workflow transition label includes paratheses e.g. "Restore from archive (published)", this will break the Mermaid syntax when creating a workflow diagram that includes that transition. This might be a broader issue with what is allowed for field labels in Drupal, but may not make sense when they are pulled into Mermaid syntax.

Steps to reproduce

  • Relabel one of your workflow transitions to include parentheses
  • Go to admin/reports/content-model/workflow and attempt to view the workflow diagram with All transitions

πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Diagram

Created by

πŸ‡ΊπŸ‡ΈUnited States davidmpickett

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024