Skip to content

BRD UI: need to update app and/or core layer to use the API Gateway URLs (MUST FIX) #31203

Closed

Description

@severinbeauvais

The Business Registry Dashboard UI is using an older version of the Nuxt 3 Core Layer which calls the Settings endpoint using an URL it should not be using and does not include the Account-Id or X-Apikey request headers, eg:

image.png

And similar for the Notifications endpoint.

This layer should be using the Auth API Gateway URL and including the Account-id and X-Apikey request headers.

One way forward might be to use the latest version of the "@daxiom/nuxt-core-layer-test" package (v0.0.25) but this latest version still does not use the latest GW URLs or the API key integration, so that would have to be done first.

Another option is to use the new library, "@sbc-connect/nuxt-core-layer-beta" instead of the "old" one, but this will require some BRD UI updates (eg, i18n setup, new version of Nuxt).

FYI: @JohnamLane @deetz99 @thorwolpert @seeker25 @OlgaPotiagalova

IMPACT

Some users behind firewalls may not be able to load their BRD because a couple of Auth API calls will fail (due to ".run.app" URL).

One short-term work-around would be to use the Auth API reverse-proxy URL (but using reverse-proxy URLs has load/performance implications, especially at scale).

Activity

  1. added
    Entities Team
    on Nov 7, 2025
  2. severinbeauvais commented on Nov 7, 2025

    @severinbeauvais
    CollaboratorAuthor

    A decision is needed on how to move forward with this.

  3. severinbeauvais commented on Nov 10, 2025

    @severinbeauvais
    CollaboratorAuthor

    @thorwolpert What do you recommend?

  4. severinbeauvais commented on Nov 10, 2025

    @severinbeauvais
    CollaboratorAuthor

    Moved to icebox because we think this can wait until after the corps release.

    This change is a requirement if we want to get rid of the reverse proxies (which we may want to do sooner than later due to load balancing).

    cc: @pwei1018

  5. severinbeauvais commented on Nov 12, 2025

    @severinbeauvais
    CollaboratorAuthor

    I've assigned myself as I've had help from @deetz99 to get this updated and working, but this ticket is lower priority than my other tickets.

  6. severinbeauvais commented on Nov 21, 2025

    @severinbeauvais
    CollaboratorAuthor

    Test Notes

    In order to fix the URLs used by the core layer, I had to import the latest core layer. And in order to use the latest core layer, I had to import updated versions of many packages (esp. Nuxt, Vue). Hence, there are serious under-the-hood changes, even if our source code didn't change much.

    As part of this ticket, I was able to remove some packages that are now provided by the core layer, which needed some code changes (eg, i18n).

    Here are the things to verify (which I have also verified myself):

    • UI loads with no console errors
    • all network calls are to API GW URLs (eg, https://test.api.connect.gov.bc.ca/business-dev/ or /auth-dev/)
    • BRD shows items correctly
    • changing languages works
    • all icons are displayed
    • all BRD item actions work
    • all user profile actions work (account info, etc)
  7. severinbeauvais commented on Dec 2, 2025

    @severinbeauvais
    CollaboratorAuthor

    I've moved this ticket back to In Progress as the business/NR search bar is broken.

  8. severinbeauvais commented on Dec 2, 2025

    @severinbeauvais
    CollaboratorAuthor

    Test Notes 2

    In addition to the Test Notes above, please verify:

    • the business/NR search component
    • any other input component
      • table filters
      • passcode
      • partner name
      • NR phone
      • NR email
  9. severinbeauvais commented on Dec 4, 2025

    @severinbeauvais
    CollaboratorAuthor

    Test Notes 3

    In addition to the Test Notes above, please verify the business affiliation dialog:

    image.png

    And also the NR affiliation dialog:

    image.png

  10. severinbeauvais commented on Dec 5, 2025

    @severinbeauvais
    CollaboratorAuthor

    @riyazuddinsyed There is a known breakage with the affiliation modal (ss above) closing when you click on it or outside it. There is also a know breakage with radio buttons not able to be clicked (in modal above and maybe elsewhere).

    Please add any new findings in this ticket. Thanks.

  11. changed the title [-]BRD UI: need to update app and/or core layer to use the API Gateway URLs[/-] [+]BRD UI: need to update app and/or core layer to use the API Gateway URLs (MUST FIX)[/+] on Dec 5, 2025
  12. severinbeauvais commented on Dec 5, 2025

    @severinbeauvais
    CollaboratorAuthor

    Test Notes 4

    Please verify that the links on this modal work (and the modal doesn't just close):

    image.png

  13. severinbeauvais commented on Dec 5, 2025

    @severinbeauvais
    CollaboratorAuthor

    I moved this ticket back to In Progress in order to resolve the upgrade-related issues found.

    I also increased the Estimate to account for the extra work being done to investigate and fix the issues.

  14. severinbeauvais commented on Dec 6, 2025

    @severinbeauvais
    CollaboratorAuthor

    This is fixed and awaiting code review before merging and deployed to Dev.

    For now you can try this here: https://business-registry-dev--pr-326-43k8hxmx.web.app/

  15. severinbeauvais commented on Dec 10, 2025

    @severinbeauvais
    CollaboratorAuthor

    @riyazuddinsyed This work is completed and deployed to Dev. Please have a look.

    There is 1 more thing that I'd like to fix and link to this ticket: fixing the "items per page" select menu. However, this is low priority.

  16. severinbeauvais commented on Dec 10, 2025

    @severinbeauvais
    CollaboratorAuthor

    There is 1 more thing that I'd like to fix and link to this ticket: fixing the "items per page" select menu. However, this is low priority.

    I will fix this in #31534.

  17. severinbeauvais commented on Dec 12, 2025

    @severinbeauvais
    CollaboratorAuthor

    I took this ticket back In Progress to update the environment key being used by the core layer (and by extension, everything in the app).

    Test Notes 5

    To verify that the correct environment key is being used, open the Develop Tools Network tab and load the BRD. Click the Fetch/XHR button to filter the traffic. For each item, verify that the Request URL is a gateway URL (and is not a "run.app" URL).

    Incorrect:
    image.png

    Correct:
    image.png

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

Metadata

Metadata

Labels

Entities Teamtechdebt

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions