cheshire-cat-ai / admin-vue

Admin panel of the Cheshire Cat AI
GNU General Public License v3.0
32 stars 28 forks source link

Show upgrade button for plugins #77

Closed pieroit closed 7 months ago

pieroit commented 7 months ago

core has been updated to show whether a plugin has a new version from registry

Example of not upgradable plugin:

{
      "id": "purrcast_podcast_finder",
      "name": "PurrCast - Podcast Finder",
      "description": "Search for public podcast shows and episodes on Spreaker.",
      "author_name": "Eugenio Petullà",
      "author_url": "https://github.com/EugenioPetulla",
      "plugin_url": "https://github.com/EugenioPetulla/PurrCast_Podcast_Finder",
      "tags": "podcast, multimedia, entertainment",
      "thumb": "https://raw.githubusercontent.com/EugenioPetulla/PurrCast_Podcast_Finder/main/logo.png",
      "version": "1.1.0",
      "active": true,
      "upgrade": null,
      "hooks": [],
      "tools": []
},

Example of upgradable plugin:

{
      "id": "purrcast_podcast_finder",
      "name": "PurrCast - Podcast Finder",
      "description": "Search for public podcast shows and episodes on Spreaker.",
      "author_name": "Eugenio Petullà",
      "author_url": "https://github.com/EugenioPetulla",
      "plugin_url": "https://github.com/EugenioPetulla/PurrCast_Podcast_Finder",
      "tags": "podcast, multimedia, entertainment",
      "thumb": "https://raw.githubusercontent.com/EugenioPetulla/PurrCast_Podcast_Finder/main/logo.png",
      "version": "1.1.0",
      "active": true,
      "upgrade": "1.2.0",
      "hooks": [],
      "tools": []
},

Endpoint to update and checks to delete the older version and upload the new are not yet there. We can just use the already present endpoint to install plugins from registry and core can do the checks, so admin side you can just get the plugin URL and use the endpoint POST /plugins/upload/registry

pieroit commented 7 months ago

Just realized it may work only if you search the plugin :( In that case core will need to explicitly ask registry to send info on plugins that are already installed

zAlweNy26 commented 7 months ago

Just realized it may work only if you search the plugin :( In that case core will need to explicitly ask registry to send info on plugins that are already installed

I didn't understand the problem, can we talk about this in a call? Also to wireframe the feature.

pieroit commented 7 months ago

Just realized it may work only if you search the plugin :( In that case core will need to explicitly ask registry to send info on plugins that are already installed

I didn't understand the problem, can we talk about this in a call? Also to wireframe the feature.

Yes ;)

zAlweNy26 commented 7 months ago

Added in develop

pieroit commented 7 months ago

Added in develop

you fast