From 4fe1a0c5170562ff73aa06e05eae2babdc427717 Mon Sep 17 00:00:00 2001 From: "bert.hausmans" Date: Tue, 5 May 2026 19:06:08 +0200 Subject: [PATCH] refactor(portal): move stores and rename portal auth store MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - apps/portal/src/stores/useAuthStore.ts → apps/app/src/stores/portal/usePortalAuthStore.ts. The export and defineStore id are renamed (useAuthStore → usePortalAuthStore, 'auth' → 'portalAuth') so it can coexist with the organizer's apps/app/src/stores/useAuthStore. Lazy import inside resetPortalStoresSync() updated to the new path. - apps/portal/src/stores/usePortalStore.ts → apps/app/src/stores/portal/usePortalStore.ts (no name change — apps/app does not have a usePortalStore). All call sites in moved pages/components now import from @/stores/portal/{usePortalStore,usePortalAuthStore} and call usePortalAuthStore() instead of useAuthStore(). PR-B2 will merge this back into a single context-aware auth store. Also includes the C.1 page meta-block updates (layout: 'PortalLayout' | 'PublicLayout', context: 'portal') that were left unstaged after the page-rename commit picked up only the path change. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../src/components/portal/UserAvatarMenu.vue | 4 ++-- .../components/portal/event/InformatieTab.vue | 2 +- .../components/portal/event/OverzichtTab.vue | 2 +- apps/app/src/pages/portal/advance/[token].vue | 3 ++- .../pages/portal/evenementen/[eventId].vue | 13 ++++++------ .../src/pages/portal/evenementen/index.vue | 5 +++-- apps/app/src/pages/portal/profiel.vue | 9 ++++---- .../src/pages/portal/registreren/index.vue | 3 ++- apps/app/src/pages/portal/shifts/index.vue | 7 ++++--- .../src/pages/portal/wachtwoord-instellen.vue | 3 ++- .../app/src/pages/register/[public_token].vue | 21 +++++++++---------- apps/app/src/pages/register/success.vue | 8 +++---- apps/app/src/stores/portal/.gitkeep | 0 .../src/stores/portal/usePortalAuthStore.ts} | 4 ++-- .../src/stores/portal}/usePortalStore.ts | 0 15 files changed, 44 insertions(+), 40 deletions(-) delete mode 100644 apps/app/src/stores/portal/.gitkeep rename apps/{portal/src/stores/useAuthStore.ts => app/src/stores/portal/usePortalAuthStore.ts} (94%) rename apps/{portal/src/stores => app/src/stores/portal}/usePortalStore.ts (100%) diff --git a/apps/app/src/components/portal/UserAvatarMenu.vue b/apps/app/src/components/portal/UserAvatarMenu.vue index 65d58968..aec62c4c 100644 --- a/apps/app/src/components/portal/UserAvatarMenu.vue +++ b/apps/app/src/components/portal/UserAvatarMenu.vue @@ -1,7 +1,7 @@ diff --git a/apps/app/src/pages/portal/shifts/index.vue b/apps/app/src/pages/portal/shifts/index.vue index 02bedc8a..5a994900 100644 --- a/apps/app/src/pages/portal/shifts/index.vue +++ b/apps/app/src/pages/portal/shifts/index.vue @@ -1,17 +1,18 @@