-
-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
POC with Next.js and feedback #41
Comments
|
Thanks for the quick feedback, I'll make a PR once I'll have a better overview of all the stuff that should be updated, still digging into the doc and testing stuff out. First impression is excellent, the foundation of reaflow are solid. Proper TS support, Storybook documentation give quite a good developer experience. 👍 If you'd like, I could explain a bit more what I'm trying to achieve with Reaflow, and maybe you could tell me what's currently possible, what's not yet, and what are the features I need that you want to add to reaflow in the future? |
Sure - would encourage you to join the discord channel - https://discord.com/invite/tt8wGExq35 |
Oh, great, I had missed that! Thanks. Also, I noticed there is no tests (AFAICT). I believe it would greatly increase collaborator's confidence when making PR if the most important stuff is thoroughly tested. Do you have plans regarding testing? |
There is a few tests actually - feel free to add more - though I generally sway towards pure function tests over component tests. Feel free to add more! |
When are tests being executed? I don't think they're executed on GitHub Actions, how do you detect regressions then? I believe they should be executed in https://github.com/reaviz/reaflow/blob/master/.github/workflows/build.yml to validate PRs aren't introducing regressions. They should also be executed in https://github.com/reaviz/reaflow/blob/master/.github/workflows/release.yml to make sure not to publish a release with non-passing tests. What do you think? |
I'm building a POC using Next.js + Reaflow, hosted on Vercel.
It's open source (MIT), see https://github.com/Vadorequest/poc-nextjs-reaflow
Online demo hosted on Vercel at https://poc-nextjs-reaflow.vercel.app/
Here is a little feedback about using Reaflow:
framer-motion
is a peer-dependency but it's not explicit on the README, I had to figure it out myself. Importingreaflow
will crash the whole app if it's not installed.reaflow
doesn't play well on the server (Next.js renders on both server + client) and should only be rendered on the clientUsing React Select doesn't workIt's actually because of foreignObject and CSSdisplay
property, need to document how to workaroundI'll add more feedback as my POC grows.
PR trackings (all the things I wanna do):
Features:
children
) - 🎉 PR Addchildren
property to Edges/Port components #76children
property (similar to Nodes) #67Documentation:
framer-motion
peer-dependency, etc.addNodeAndEdge
utility to also bind edges to ports #47 (comment)setEdges
is undefined on Storybook demo #42foreignObject
and its usage and limitations - 🎉 PR Add advanced documentation for custom nodes (foreignObject
) #74foreignObject
"steals" allNode
events (onEnter, etc.) - How to forward events when using foreignObject? #45useSelection
hookonKeyDown
event doesn't work withforeignObject
- Multiple selection doesn't work when using aforeignObject
#50foreignObject
) #44setNodes
doesn't update nodes - Trying to make a Node height dynamic based on textarea input size #43Bug fixes:
The text was updated successfully, but these errors were encountered: