Skip to content
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

feat: implement #7 import/export of nodes #67

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

Christofon
Copy link
Contributor

@Christofon Christofon commented Apr 13, 2023

Checklist

  • Tested in Chrome
  • Tested in Safari

fix #7


PR-Codex overview

This PR adds an ExportModal component for importing and exporting data, including logic for adjusting node positions to avoid overlapping when importing. It also includes minor changes to App.tsx and NavigationBar.tsx.

Detailed summary

  • Adds ExportModal component
  • Adds getExportData and importData functions to App.tsx
  • Adds nodesOverlap and adjustPosition functions to App.tsx
  • Adds adjustPositionImportedNodes function to App.tsx
  • Adds exportModalOpen prop to NavigationBar.tsx
  • Minor changes to positioning logic in App.tsx

@vercel
Copy link

vercel bot commented Apr 13, 2023

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

Name Status Preview Updated (UTC)
flux ✅ Ready (Inspect) Visit Preview Apr 13, 2023 9:20pm

@Christofon
Copy link
Contributor Author

This basically works functionality wise but would appreciate some input when it comes to UI/UX with the modal etc.

@transmissions11
Copy link
Member

really nice work! i'll clean this up today — excited to get this out.

@transmissions11
Copy link
Member

i'll clean this up today

image

haha sorry about this, let me see what i can do to finally get this over the line

@transmissions11 transmissions11 changed the title implement #7 import/export of nodes feat: implement #7 import/export of nodes Jun 12, 2023
@mud2monarch
Copy link

Hi - sorry if this is a bother, but I'd love to see this get merged if someone has the capacity to do so! I use Flux regularly and would like to share trees with others. Sharing GPT prompts is so helpful for teammates or just the general public.

In particular, my use case is that I am learning Python w/ GPT's assistance, and I would like to export my Flux trees so that I can easily embed them into a personal blog about what I'm learning and building.

Understand you're very busy! Thanks for the great tool!

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.

feat: partial tree export/import
3 participants