You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Namerequest UI: Replace Vuex with Pinia (part 2) #30987
Entities TeamA label to filter on the tickets for the Entities based team that takes care of front end featuresNames TeamName Request Name Examination Teamtechdebt
This sub-task addresses compatibility issues caused by outdated tooling in the NameRequest project:
The current project uses vue-cli-service, which is deprecated. Migrating to Vite will modernize the build setup and eliminate many TypeScript errors originating from node_modules.already done in #29274
The latest version of sbc-common-components has transitioned to Pinia for state management, while this project still uses Vuex, leading to potential integration issues.
As part of this task, evaluate and begin replacing Vuex with Pinia to align with shared component expectations.
To ensure sbc-common-components works smoothly across both Vue CLI and Vite projects, would it be possible to ask the team in charge of the common component:
Publish a compiled build (e.g., dist/ or lib/)
Export components and utilities from a top-level index.ts
And mark shared libraries like vue and axios as peerDependencies?
changed the title [-]Copy of Namerequest UI: Migrate the project from Vue CLI to Vite + replace Vuex with Pinia[/-][+]Copy of Namerequest UI: Replace Vuex with Pinia (part 2)[/+]on Oct 7, 2025
To ensure sbc-common-components works smoothly across both Vue CLI and Vite projects
In my experience (across the other Entity UIs), sbc-common-components works exactly the same between Vue CLI and Vite projects -- the subject framework tools only have a build impact, not a runtime impact.
Part of Eve's question referred to deploying sbc-common-components and importing it differently. I believe this is out of scope of THIS ticket. THIS ticket is only to upgrade Namerequest UI to PINIA.
Update: Namerequest UI "patches" an older version of the imported sbc-common-components library because it can't use the latest library version... yet. The Pinia upgrade will unlock this, allowing the use of the latest library and enabling the use of the Account Id to retain the account when navigating between UIs (which is a separate ticket probably).
Entities TeamA label to filter on the tickets for the Entities based team that takes care of front end featuresNames TeamName Request Name Examination Teamtechdebt
Activity
severinbeauvais commentedon Oct 7, 2025
This ticket is a pre-requisite for fixing the account id not being retained when the user navigates to/from Namerequest UI.
Update: This ticket first required the Vite upgrade, and is itself a pre-requisite for synchronizing the account id between UIs.
[-]Copy of Namerequest UI: Migrate the project from Vue CLI to Vite + replace Vuex with Pinia[/-][+]Copy of Namerequest UI: Replace Vuex with Pinia (part 2)[/+]severinbeauvais commentedon Oct 7, 2025
Sample changes for Vite migration:
bcgov/business-filings-ui#540
bcgov/business-edit-ui#524
Sample changes for Pinia migration:
bcgov/business-filings-ui#500
bcgov/business-edit-ui#472
severinbeauvais commentedon Oct 7, 2025
Eve wrote:
In my experience (across the other Entity UIs), sbc-common-components works exactly the same between Vue CLI and Vite projects -- the subject framework tools only have a build impact, not a runtime impact.
Part of Eve's question referred to deploying sbc-common-components and importing it differently. I believe this is out of scope of THIS ticket. THIS ticket is only to upgrade Namerequest UI to PINIA.
Update: Namerequest UI "patches" an older version of the imported sbc-common-components library because it can't use the latest library version... yet. The Pinia upgrade will unlock this, allowing the use of the latest library and enabling the use of the Account Id to retain the account when navigating between UIs (which is a separate ticket probably).
severinbeauvais commentedon Oct 7, 2025
Test Notes for Pinia upgrade
I have tested the following. Please verify as needed.
upgrading priority worksdisabled during job actionPlease verify the above while logged in (reg user + staff) and while not not logged in (ie, anonymous).
[-]Copy of Namerequest UI: Replace Vuex with Pinia (part 2)[/-][+]Namerequest UI: Replace Vuex with Pinia (part 2)[/+]janisrogers commentedon Oct 29, 2025
I don't see any UXA work here. Moving to Ready for QA.
riyazuddinsyed commentedon Nov 7, 2025
Verified in the dev environment.Working as expected..
gunanagar commentedon Nov 18, 2025
Tested, all good. Closing this ticket