[PR #8] Save and Load Graph #10

Open
opened 2026-02-16 06:17:58 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraph-builder/pull/8
Author: @bsorrentino
Created: 3/22/2025
Status: 🔄 Open

Base: mainHead: main


📝 Commits (10+)

  • 519d5a2 refactor(generate-code): ♻️ enable read LANGGRAPH_API_URL from environment
  • fc5c2fe fix: 🐛 sync last language choice wth multibutton
  • 7324f59 feat(Flow.tsx): add load graph button and modal
  • 3c5228c feat(api): add API endpoint to save graph
  • 25e3607 feat(Flow): add load and save graph functionality
  • 0b58147 feat: add LoadGraphModal component
  • 6c0c8ec feat(Flow.tsx): add loading state while saving graph
  • 13551d4 feat(Flow.tsx): add graph title input field
  • f63579c refactor: ♻️ move Save and Load buttons to separate components
  • 1ef0dd0 chore: 🔧 add workspace folder

📊 Changes

6 files changed (+381 additions, -28 deletions)

View changed files

📝 src/components/Flow.tsx (+211 -25)
src/components/LoadGraphModal.tsx (+121 -0)
📝 src/components/ui/multibutton.tsx (+9 -2)
📝 src/pages/api/generate-code.ts (+2 -1)
src/pages/api/save-graph.ts (+38 -0)
workspace/.gitkeep (+0 -0)

📄 Description

This PR mainly allows to Save and Load Graph. This partially resolve also the issue #6
It contains also 2 minor improvements :

  • enable read LANGGRAPH_API_URL from environment

    Such feature will enable possibility to generate different scaffold from original and also support new languages (take a look to Langgraph4j & Langgraph-swift )

  • sync last language choice wth multibutton

https://github.com/user-attachments/assets/e47811fc-ac74-42d9-be40-95186fd627e5


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/langgraph-builder/pull/8 **Author:** [@bsorrentino](https://github.com/bsorrentino) **Created:** 3/22/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (10+) - [`519d5a2`](https://github.com/langchain-ai/langgraph-builder/commit/519d5a24dbc4efe8ce1aea0807827ceaae3ffc97) refactor(generate-code): ♻️ enable read LANGGRAPH_API_URL from environment - [`fc5c2fe`](https://github.com/langchain-ai/langgraph-builder/commit/fc5c2fe50c74a6bfad3a9ed5fbe90d7516510818) fix: 🐛 sync last language choice wth multibutton - [`7324f59`](https://github.com/langchain-ai/langgraph-builder/commit/7324f5967d489c3621441f766a415a365b64e137) feat(Flow.tsx): add load graph button and modal - [`3c5228c`](https://github.com/langchain-ai/langgraph-builder/commit/3c5228c04cf699d35f3cfb2fb81ce7b4f8f7ea5b) feat(api): ✨ add API endpoint to save graph - [`25e3607`](https://github.com/langchain-ai/langgraph-builder/commit/25e3607f3e72e08dbb30f2c8fefbc46c61778dfd) feat(Flow): ✨ add load and save graph functionality - [`0b58147`](https://github.com/langchain-ai/langgraph-builder/commit/0b5814756f17a5a8dffec2ca3a1d5432380b60a5) feat: ✨ add LoadGraphModal component - [`6c0c8ec`](https://github.com/langchain-ai/langgraph-builder/commit/6c0c8eca8fdb2c7461fbd38637dbc7d6e0205d18) feat(Flow.tsx): add loading state while saving graph - [`13551d4`](https://github.com/langchain-ai/langgraph-builder/commit/13551d4be04cda33891f6476e354c69238a912a4) feat(Flow.tsx): add graph title input field - [`f63579c`](https://github.com/langchain-ai/langgraph-builder/commit/f63579c43b030f442b799f746ef4a283162d4886) refactor: ♻️ move Save and Load buttons to separate components - [`1ef0dd0`](https://github.com/langchain-ai/langgraph-builder/commit/1ef0dd0c4ee5958baf97ca1baa6eb491b74a26f5) chore: 🔧 add workspace folder ### 📊 Changes **6 files changed** (+381 additions, -28 deletions) <details> <summary>View changed files</summary> 📝 `src/components/Flow.tsx` (+211 -25) ➕ `src/components/LoadGraphModal.tsx` (+121 -0) 📝 `src/components/ui/multibutton.tsx` (+9 -2) 📝 `src/pages/api/generate-code.ts` (+2 -1) ➕ `src/pages/api/save-graph.ts` (+38 -0) ➕ `workspace/.gitkeep` (+0 -0) </details> ### 📄 Description This PR mainly allows to **Save and Load Graph**. This partially resolve also the issue #6 It contains also 2 minor improvements : * enable read LANGGRAPH_API_URL from environment > Such feature will enable possibility to generate different scaffold from original and also support new languages (take a look to [Langgraph4j](https://github.com/bsorrentino/langgraph4j) & [Langgraph-swift](https://github.com/bsorrentino/LangGraph-Swift) ) * sync last language choice wth multibutton ---- https://github.com/user-attachments/assets/e47811fc-ac74-42d9-be40-95186fd627e5 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 06:17:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph-builder#10