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(frontend): Allow copy and pasting of blocks between flows #8346

Conversation

Bentlybro
Copy link
Member

Background

This allows copy and pasting of blocks between flows + it cleans up and moves all of the copy and paste related code to its own file to prevent adding a bunch more code to the main Flow.tsx

Changes 🏗️

Made a new useCopyPaste.ts file inside of the hooks folder, this now holds everything related to copy and pasting of blocks + the new code to allow copy and pasting between flows.

Testing 🔍

Here i show me copy and pasting a section of connected blocks from one flow to another and running it, everything works as intended + i show that we can still normally copy and paste a single block.

2024-10-15.17-34-52.mp4

@Bentlybro Bentlybro requested a review from a team as a code owner October 15, 2024 16:37
@Bentlybro Bentlybro requested review from Torantulino and kcze and removed request for a team October 15, 2024 16:37
@github-actions github-actions bot added platform/frontend AutoGPT Platform - Front end platform/backend AutoGPT Platform - Back end size/l labels Oct 15, 2024
Copy link

netlify bot commented Oct 15, 2024

Deploy Preview for auto-gpt-docs canceled.

Name Link
🔨 Latest commit f819ca4
🔍 Latest deploy log https://app.netlify.com/sites/auto-gpt-docs/deploys/670e9a5b8027d20008627ceb

@Bentlybro Bentlybro merged commit 3982e20 into master Oct 16, 2024
14 checks passed
@Bentlybro Bentlybro deleted the bently/open-1958-allow-copy-and-pasting-of-blocks-between-flows branch October 16, 2024 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform/backend AutoGPT Platform - Back end platform/frontend AutoGPT Platform - Front end size/l
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants