DashAI
DashAI copied to clipboard
Feat/show plugins list from db
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
: AddedupdatePluginsDBFromPypi
function to update DB with plugins data from PYPI -
DashAI/front/src/api/plugins.ts
: AddedgetPlugins
function to get the plugins from the DB.
Integration into plugins tab:
-
DashAI/front/src/pages/plugins/components/PluginsTab.jsx
: ImportedupdatePluginsDBFromPypi
function and renamed it toupdatePluginsFromPypi
for clarity. -
DashAI/front/src/pages/plugins/components/PluginsTab.jsx
: Modified theRefresh
button'sonClick
handler to callupdatePluginsFromPypi
, and set therefreshPluginsFlag
to true after the update.