From c0322ec32b71fa35a5c5375c962f4ebd75d8ddd4 Mon Sep 17 00:00:00 2001 From: Bill Sager Date: Thu, 18 Jan 2024 09:00:58 -0800 Subject: [PATCH 1/5] Use a deployment pinia store --- web/src/App.vue | 4 + web/src/api/resources/Deployments.ts | 6 +- web/src/api/types/deployments.ts | 13 +- web/src/api/types/error.ts | 1 + web/src/stores/deployments.ts | 115 ++++++++++++++++++ web/src/stores/events.ts | 9 ++ web/src/utils/urls.ts | 8 ++ .../add-new-deployment/AddNewDeployment.vue | 46 ++++--- web/src/views/deployment/DeploymentHeader.vue | 3 +- web/src/views/deployment/DeploymentPage.vue | 76 ++++++------ web/src/views/project-page/DeploymentCard.vue | 9 +- .../project-page/DeploymentErrorCard.vue | 59 +++++++++ .../views/project-page/DeploymentsSection.vue | 90 ++++---------- .../views/project-page/PreDeploymentCard.vue | 31 +++++ web/src/views/project-page/ProjectPage.vue | 1 + 15 files changed, 334 insertions(+), 137 deletions(-) create mode 100644 web/src/stores/deployments.ts create mode 100644 web/src/utils/urls.ts create mode 100644 web/src/views/project-page/DeploymentErrorCard.vue create mode 100644 web/src/views/project-page/PreDeploymentCard.vue diff --git a/web/src/App.vue b/web/src/App.vue index a6f42821f..1272a6995 100644 --- a/web/src/App.vue +++ b/web/src/App.vue @@ -23,6 +23,7 @@ import { useQuasar } from 'quasar'; import AppHeader from 'src/components/AppHeader.vue'; import { onBeforeUnmount } from 'vue'; import { useEventStore } from 'src/stores/events'; +import { useDeploymentStore } from 'src/stores/deployments'; const $q = useQuasar(); $q.dark.set('auto'); @@ -34,6 +35,9 @@ onBeforeUnmount(() => { eventStore.closeEventStream(); }); +// Let's start population of the deployments as quickly as possible +useDeploymentStore(); + diff --git a/web/src/views/project-page/DeploymentsSection.vue b/web/src/views/project-page/DeploymentsSection.vue index 920dc6c6c..861b1656b 100644 --- a/web/src/views/project-page/DeploymentsSection.vue +++ b/web/src/views/project-page/DeploymentsSection.vue @@ -13,7 +13,6 @@ Your project has been deployed to:

- - - -
- +
+ + + +