-
-
Notifications
You must be signed in to change notification settings - Fork 95
add login and pro platform features to react flow docs #699
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@dimaMachina is attempting to deploy a commit to the xyflow Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for your amazing work @dimaMachina! this is already super close to what we want to achieve, here are some things that we found:
- pro example viewer should show the code, download button and readme when subscribed and signed in
- all routes under /pro: remove "React Flow Pro" button in header
- when signed in, remove the "React Flow Pro" button in header entirely
- change the user dropdown to primary color (the idea is that the "React Flow Pro" button turns into a dropdown menu when signed in)
- hide /pro/subscribe/non-commercial-edu-oss from sidebar and from search engines
- hide "request a quote" from sidebar
- examples sidebar: rename "Examples (Pro)" to "Pro Examples" and move to the bottom of the sidebar
|
closes #690
Important
don't forget to setup
NEXT_PUBLIC_NHOST_SUBDOMAIN
andNEXT_PUBLIC_NHOST_REGION
env variables!reactflow.com
UserProvider
(I previously proposed it)NhostClient
's storage type changed tocookie
so we can authenticate in RSC too/dashboard/...
will redirect to/signin
(when NOT authenticated)(auth)
will redirect to/dashboard
(when authenticated)/dashboard
Updated
No need to refactor everything to server actions (or did I miss something?)Let’s combine Sign In and Sign Out into 1 button? it takes up a lot of space in the header