From 6fca2352bbfbe97993f87be303a56c3f9f183e38 Mon Sep 17 00:00:00 2001 From: Andy Hooker Date: Sat, 22 Feb 2025 17:17:46 -0600 Subject: [PATCH] feat(build): Add undo/redo functionality and integrate custom nodes Introduce a `useUndoRedo` hook to manage state history with undo/redo, persistence using localStorage, and state validation. Updated the build page to display a flow with initial custom nodes and edges, replacing the previous flow editor implementation. --- autogpt_platform/frontend/package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autogpt_platform/frontend/package.json b/autogpt_platform/frontend/package.json index 6a8db9b512..da969369a6 100644 --- a/autogpt_platform/frontend/package.json +++ b/autogpt_platform/frontend/package.json @@ -63,6 +63,7 @@ "framer-motion": "^12.0.11", "geist": "^1.3.1", "launchdarkly-react-client-sdk": "^3.6.1", + "lodash": "^4.17.21", "lucide-react": "^0.474.0", "moment": "^2.30.1", "next": "^14.2.21", @@ -94,6 +95,7 @@ "@storybook/react": "^8.3.5", "@storybook/test": "^8.3.5", "@storybook/test-runner": "^0.21.0", + "@types/lodash": "^4.17.15", "@types/negotiator": "^0.6.3", "@types/node": "^22.13.0", "@types/react": "^18",