AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

feat(frontend): push to cloud if needed for marketplace, and add a download agent button

Open ntindle opened this issue 1 year ago โ€ข 10 comments

Background

""" We require a quick emergency fix for our self-host users so that they are able to use the marketplace.

This is that fix.

  1. In this PR we make the "Marketplace" link in the navbar open a popup window which opens: http://platform.agpt.co/marketplace

  2. On this website, self-host users are able to browse and download agents to a file without logging in, as this PR adds a "download to file" button.

After this, we will explore the next steps towards a more long-term solution. ~ Toran """

Changes ๐Ÿ—๏ธ

Testing ๐Ÿ”

[!NOTE] Only for the new autogpt platform, currently in autogpt_platform/

  • Create from scratch and execute an agent with at least 3 blocks
  • Import an agent from file upload, and confirm it executes correctly
  • Upload agent to marketplace
  • Import an agent from marketplace and confirm it executes correctly
  • Edit an agent from monitor, and confirm it executes correctly

ntindle avatar Sep 26 '24 22:09 ntindle

Deploy Preview for auto-gpt-docs canceled.

Name Link
Latest commit feb24d0e416e74cecb46439df328d7f1891c95d4
Latest deploy log https://app.netlify.com/sites/auto-gpt-docs/deploys/66fbcf3de9c75d0007d1ed15

netlify[bot] avatar Sep 26 '24 22:09 netlify[bot]

PR Reviewer Guide ๐Ÿ”

โฑ๏ธย Estimated effort to review: 3 ๐Ÿ”ต๐Ÿ”ต๐Ÿ”ตโšชโšช
๐Ÿงชย No relevant tests
๐Ÿ”’ย No security concerns identified
โšกย Key issues to review

Conditional Routing
The Marketplace link now conditionally routes to different URLs based on the getBehaveAs() function. This change might affect navigation and user experience.

New Functionality
A new downloadAgent function has been added to allow users to download agent files. This introduces new functionality that should be thoroughly tested.

UI Changes
The UI has been updated to include a new "Download Agent" button alongside the existing "Save to Templates" button. This change affects the user interface and should be reviewed for consistency and usability.

qodo-code-review[bot] avatar Sep 27 '24 00:09 qodo-code-review[bot]

Can you explain why is this needed please?

Swiftyos avatar Sep 27 '24 06:09 Swiftyos

This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.

github-actions[bot] avatar Sep 27 '24 08:09 github-actions[bot]

Conflicts have been resolved! ๐ŸŽ‰ A maintainer will review the pull request shortly.

github-actions[bot] avatar Sep 28 '24 04:09 github-actions[bot]

Can we have PR description?

majdyz avatar Sep 30 '24 08:09 majdyz

Added a description @majdyz.

If we could try to get this in today that would be excellent.

Torantulino avatar Sep 30 '24 13:09 Torantulino

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Sep 30 '24 18:09 CLAassistant

This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.

github-actions[bot] avatar Sep 30 '24 22:09 github-actions[bot]

Conflicts have been resolved! ๐ŸŽ‰ A maintainer will review the pull request shortly.

github-actions[bot] avatar Sep 30 '24 22:09 github-actions[bot]