Diagram: add ability to copy mermaid

Created on 9 March 2023, over 1 year ago
Updated 2 September 2023, about 1 year ago

Problem/Motivation

When I view a content model diagram, I would like to be able to copy the mermaid output so that I could use it elsewhere. When viewing mermaid diagrams on github there is a copy control that appears onscreen.
example https://github.com/department-of-veterans-affairs/va.gov-cms/blob/main/R...

It would be very useful to have that appear on our entity relationship diagrams.

Steps to reproduce

  1. visit /admin/reports/content-model/entity-diagram
  2. Choose an entity that has a lot of entity references
  3. Notice there is no way to copy the mermaid content

Proposed resolution

I am not sure if github is using an additional library to expose this, or if it is part of the mermaid library and we do not have it enabled.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Fixed

Version

1.0

Component

Diagram

Created by

πŸ‡ΊπŸ‡ΈUnited States swirt Florida

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

Comments & Activities

Production build 0.71.5 2024