From e67ea430637f61fa672fde9f4bf9c61d809d85ce Mon Sep 17 00:00:00 2001 From: Noley Holland Date: Fri, 20 Mar 2026 13:56:10 -0700 Subject: [PATCH] Convert vuex store to pinia for product brokers --- frontend/src/App.vue | 3 +- frontend/src/layouts/Platform.vue | 6 +- .../src/pages/team/Brokers/ChooseBroker.vue | 5 +- .../Brokers/Clients/dialogs/ClientDialog.vue | 13 +- .../src/pages/team/Brokers/Clients/index.vue | 15 +- .../Hierarchy/TopicHierarchy/index.vue | 8 +- frontend/src/pages/team/Brokers/NewBroker.vue | 6 +- .../src/pages/team/Brokers/Settings/index.vue | 12 +- frontend/src/pages/team/Brokers/index.vue | 18 +- frontend/src/store/modules/account/index.js | 3 +- frontend/src/store/modules/product/index.js | 211 +----------------- frontend/src/stores/index.js | 1 + frontend/src/stores/product-brokers.js | 101 +++++++++ .../frontend/stores/product-brokers.spec.js | 179 +++++++++++++++ 14 files changed, 343 insertions(+), 238 deletions(-) create mode 100644 frontend/src/stores/product-brokers.js create mode 100644 test/unit/frontend/stores/product-brokers.spec.js diff --git a/frontend/src/App.vue b/frontend/src/App.vue index d1b0544010..dc66abd26b 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -79,6 +79,7 @@ import TermsAndConditions from './pages/TermsAndConditions.vue' import UnverifiedEmail from './pages/UnverifiedEmail.vue' import { useContextStore } from '@/stores/context.js' +import { useProductBrokersStore } from '@/stores/product-brokers.js' import { useUxDrawersStore } from '@/stores/ux-drawers.js' export default { @@ -142,7 +143,7 @@ export default { }, mounted () { this.$store.dispatch('account/checkState') - this.$store.dispatch('product/checkFlags') + useProductBrokersStore().checkFlags() }, methods: { ...mapActions(useContextStore, ['updateRoute']) diff --git a/frontend/src/layouts/Platform.vue b/frontend/src/layouts/Platform.vue index 66c81e287a..8938a4d778 100644 --- a/frontend/src/layouts/Platform.vue +++ b/frontend/src/layouts/Platform.vue @@ -63,7 +63,7 @@