8000 add login and pro platform features to react flow docs by dimaMachina · Pull Request #699 · xyflow/web · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 70 commits into from
Jun 26, 2025

Conversation

dimaMachina
Copy link
Contributor
@dimaMachina dimaMachina commented Mar 7, 2025

closes #690

Important

don't forget to setup NEXT_PUBLIC_NHOST_SUBDOMAIN and NEXT_PUBLIC_NHOST_REGION env variables!

  • moved all pro components/pages to reactflow.com
  • magic link works like before
  • No need for a manual new UserProvider (I previously proposed it)
  • NhostClient's storage type changed to cookie so we can authenticate in RSC too
  • accessing /dashboard/... will redirect to /signin (when NOT authenticated)
  • accessing pages from (auth) will redirect to /dashboard (when authenticated)
  • Where dashboard pages should live? I put them in /dashboard

Updated

  • No need to refactor everything to server actions (or did I miss something?)

    refactored

  • Let’s combine Sign In and Sign Out into 1 button? it takes up a lot of space in the header

    combined, wdyt?

8000

Copy link
vercel bot commented Mar 7, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
example-apps ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2025 9:45am
svelteflow-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2025 9:45am
ui-components ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2025 9:45am
xyflow-website ❌ Failed (Inspect) Jun 26, 2025 9:45am

Copy link
vercel bot commented Mar 7, 2025

@dimaMachina is attempting to deploy a commit to the xyflow Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Member
@chrtze chrtze left a 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

@chrtze
Copy link
Member
chrtze commented Jun 18, 2025

@chrtze @moklick todos:

  • stripe customer portal redirects to /account instead of /pro/account, this is something we need to adjust in nhost so won't be possible to do now while we are still running the old pro platform
  • workflow editor doesn't have the correct iframe src, we need to fetch the config and show the previewUrl
  • move nhost to web repo
  • replace xy-ui with xy-shared

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Login for the docs
2 participants
0