docs.page icon indicating copy to clipboard operation
docs.page copied to clipboard

feat: add react-flow component

Open cabljac opened this issue 2 years ago • 3 comments

This PR adds a react-flow component.

Keeping it as a draft as I've just used their example code as a component for now. It seems to work nicely, but worth reviewing.

One thing I haven't thought about is how to include dependencies such as Marker type enums - these can be replaced by the literal strings, but this would deviate from react flow documentation slightly, i guess.

I also wonder whether they have a dark mode?

Screenshot 2022-05-12 at 16 09 30

Live preview:

https://staging-docs-page-website-euw1-dzpolnxswq-ew.a.run.app/cabljac/test/flow

cabljac avatar May 12 '22 15:05 cabljac

Can we get a deployment preview CI action going or something, just deploying docs.page to firebase hosting preview channels or something - so we can preview changes like this and try them out

Salakar avatar May 12 '22 20:05 Salakar

Seems to be broken in prod. Unsure why right now.

cabljac avatar Aug 08 '22 15:08 cabljac

Can you also link to a docs page that has the component added in the PR so when preview is working we know where to go to preview it

Salakar avatar Aug 09 '22 11:08 Salakar