DashAI icon indicating copy to clipboard operation
DashAI copied to clipboard

Feat/show plugins list from db

Open Lucas-CE opened this issue 4 months ago • 0 comments

Summary

This pull request introduces a new feature to update the plugins database from PyPI and integrates this functionality into the plugins tab. Additionally, it includes error handling for the update process.

New feature for updating plugins database:

  • DashAI/front/src/api/plugins.ts: Added updatePluginsDBFromPypi function to update DB with plugins data from PYPI
  • DashAI/front/src/api/plugins.ts: Added getPlugins function to get the plugins from the DB.

Integration into plugins tab:

  • DashAI/front/src/pages/plugins/components/PluginsTab.jsx: Imported updatePluginsDBFromPypi function and renamed it to updatePluginsFromPypi for clarity.
  • DashAI/front/src/pages/plugins/components/PluginsTab.jsx: Modified the Refresh button's onClick handler to call updatePluginsFromPypi, and set the refreshPluginsFlag to true after the update.

Lucas-CE avatar Oct 10 '24 17:10 Lucas-CE