Skip to content

Namerequest UI: Migrate the project from Vue CLI to Vite (part 1) #29274

Closed

Description

@eve-git

Comment from Sep 25, 2025:
image.png

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.

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?

Activity

  1. added
    Names Team
    on Jul 2, 2025
  2. self-assigned this
    on Jul 2, 2025
  3. removed their assignment
    on Jul 3, 2025
  4. deleted a comment from ozamani9gh on Jul 4, 2025
  5. self-assigned this
    on Jul 8, 2025
  6. ozamani9gh commented on Jul 23, 2025

    @ozamani9gh
    Collaborator

    @eve-git if you need to bump this up to an 8 go for it, or create a few more tickets to break this work down.

  7. ozamani9gh commented on Jul 24, 2025

    @ozamani9gh
    Collaborator

    @eve-git reach out to Severin he believes this shouldn't take too long

  8. severinbeauvais commented on Jul 24, 2025

    @severinbeauvais
    Collaborator

    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

  9. added
    Entities Team
    on Aug 28, 2025
  10. changed the title [-]NameRequest UI: Migrate the project from Vue CLI to Vite and replace Vuex with Pinia[/-] [+]Namerequest UI: Migrate the project from Vue CLI to Vite and replace Vuex with Pinia[/+] on Sep 24, 2025
  11. 5 remaining items

  12. changed the title [-]Namerequest UI: Migrate the project from Vue CLI to Vite and replace Vuex with Pinia[/-] [+]Namerequest UI: Migrate the project from Vue CLI to Vite + replace Vuex with Pinia[/+] on Sep 26, 2025
  13. severinbeauvais commented on Sep 26, 2025

    @severinbeauvais
    Collaborator

    Test Notes for Vite upgrade

    The following have been touched:

    • fonts - please verify throughout the app
    • styles - please verify throughout the app (including inline icons, etc)
    • images - please verify:
      • the (1) and (2) images on the Manage My Name Request tab
      • the Sarah's and Construction images in the How to Build Your Name section (lower part of page)
      • the laptop image in the "A new and better way" section (lower part of page)
      • the Trademark/Domain Names/Social Media icons in the Helpful Tips section (lower part of page)
    • confirm-name-request.vue -- the post-payment return URL
    • renew.vue -- the post-payment return URL
    • resubmit.vue -- the post-payment return URL
    • retry.vue -- the post-payment return URL
    • upgrade.vue -- the post-payment return URL
    • payment-mixin-ts -- the Namex API URL for all network calls (post, get for payments, fees and receipts)
    • namex-services.ts -- the Namex API URL for all network calls (cancel payment, search entities, search colin, checkin NR, checkout NR, complete payment, download outputs, fetch stats, get NR by KC token, search NRs, name analysis, patch NR, patch NR by action, post NR, put NR, rollback NR)
    • actions.ts -- the Namex API URL for all network calls (fetch mras, get exact-match, get synonms, get restricted words)
    • login/logout

    Basically, I'm expecting everything to work properly, same as before.

  14. severinbeauvais commented on Sep 29, 2025

    @severinbeauvais
    Collaborator

    Eve wrote:

    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 Vite.

    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).

  15. changed the title [-]Namerequest UI: Migrate the project from Vue CLI to Vite + replace Vuex with Pinia[/-] [+]Namerequest UI: Migrate the project from Vue CLI to Vite[/+] on Oct 7, 2025
  16. severinbeauvais commented on Oct 7, 2025

    @severinbeauvais
    Collaborator

    Since both the Vite upgrade and Pinia upgrade are large tasks, and they are independent, and I have completed the Vite upgrade, I created new ticket #30987 for the Pinia upgrade and THIS ticket is for the Vite upgrade only.

  17. changed the title [-]Namerequest UI: Migrate the project from Vue CLI to Vite[/-] [+]Namerequest UI: Migrate the project from Vue CLI to Vite (part 1)[/+] on Oct 7, 2025
  18. severinbeauvais commented on Oct 7, 2025

    @severinbeauvais
    Collaborator

    The Vite PR has been merged to Dev.

    When the Names Team is available, please deploy Namerequest UI to Test for QA to proceed. Thanks!

  19. riyazuddinsyed commented on Nov 6, 2025

    @riyazuddinsyed
    Contributor

    Verified in dev.Working as expected.

  20. HimaniTanwarGov commented on Dec 22, 2025

    @HimaniTanwarGov
    Collaborator

    Closed as done & verified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Entities TeamHigh PriorityNames Teamtechdebt

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions