Skip to content

Commit

Permalink
Feat: Add env vars and i18n translations (#184)
Browse files Browse the repository at this point in the history
* update env.sample
* update vault env
* fix auth web var name
* update runtime config with env vars
* add urls from runtime config
* update cards to use links from config
* update french md files with new card config
* fix homebanner responsive sizing
* ppr sizing
* add i18n
* add french i18n
* add i18n for component test
  • Loading branch information
deetz99 authored Sep 22, 2024
1 parent f233cad commit a696879
Show file tree
Hide file tree
Showing 78 changed files with 939 additions and 1,375 deletions.
63 changes: 35 additions & 28 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,35 +1,42 @@
## vaults api
# registries search api
NUXT_REGISTRIES_SEARCH_API_URL="https://bcregistry-test.apigee.net/registry-search"
NUXT_REGISTRIES_SEARCH_API_VERSION="/api/v2"
NUXT_X_API_KEY=""
# pay API
NUXT_PAY_API_URL="https://pay-api-dev.apps.silver.devops.gov.bc.ca"
NUXT_PAY_API_VERSION="/api/v1"
# auth api
NUXT_AUTH_API_URL="https://auth-api-test.apps.silver.devops.gov.bc.ca"
#vaults API
NUXT_AUTH_API_URL="https://auth-api-dev.apps.silver.devops.gov.bc.ca"
NUXT_AUTH_API_VERSION="/api/v1"
# legal API
NUXT_LEGAL_API_URL="https://legal-api-test.apps.silver.devops.gov.bc.ca"
NUXT_LEGAL_API_VERSION="/api/v2"
# namex api
NUXT_NAMEX_API_URL="https://namex-dev.apps.silver.devops.gov.bc.ca"
NUXT_NAMEX_API_VERSION="/api/v1"

# vaults web-url
NUXT_REGISTRY_HOME_URL="https://dev.bcregistry.gov.bc.ca/"
NUXT_PAYMENT_PORTAL_URL="https://dev.account.bcregistry.gov.bc.ca/makepayment/"
NUXT_NAME_REQUEST_URL="https://dev.names.bcregistry.gov.bc.ca/"
NUXT_ONE_STOP_URL="https://dev.onestop.gov.bc.ca/"
NUXT_APP_SOCIETIES_URL="https://www.bcregistry.ca/societies/"
NUXT_APP_CORP_FORMS_URL="https://www2.gov.bc.ca/gov/content/employment-business/business/managing-a-business/permits-licences/businesses-incorporated-companies/forms-corporate-registry"
NUXT_APP_LLP_FORMS_URL="https://www2.gov.bc.ca/assets/gov/employment-business-and-economic-development/business-management/permits-licences-and-registration/registries-packages/pack_01_llp_-_registration_forms_package.pdf"
NUXT_APP_LP_FORMS_URL="https://www2.gov.bc.ca/assets/gov/employment-business-and-economic-development/business-management/permits-licences-and-registration/registries-forms/reg_791_-_declaration_for_bc_limited_partnership.pdf"
NUXT_APP_XLP_FORMS_URL="https://www2.gov.bc.ca/assets/gov/employment-business-and-economic-development/business-management/permits-licences-and-registration/registries-forms/reg_790_-_declaration_for_extraprovincial_limited_partnership.pdf"
NUXT_DASHBOARD_URL="https://dev.business.bcregistry.gov.bc.ca/"
NUXT_CORPORATE_ONLINE_URL="https://www.corporateonline.gov.bc.ca"
NUXT_STATUS_API_URL="https://status-api-dev.apps.silver.devops.gov.bc.ca"
NUXT_STATUS_API_VERSION="/api/v1"

#vaults web-url
NUXT_ADDRESSCHANGE_URL="https://www.addresschange.gov.bc.ca/"
NUXT_BCA_LEARN_MORE_URL="https://assessmentreportsonline-test.bcassessment.ca:54585/"
NUXT_BCA_URL="https://bcrosweb-dev.bcassessment.ca:54579/"
NUXT_BUS_SEARCH_LEARN_MORE="https://www2.gov.bc.ca/gov/content?id=B75BE1375F084B138B60D62C0094D9E8"
NUXT_COLIN_URL="https://www.corporateonline.gov.bc.ca"
NUXT_CSO_LEARN_MORE_URL="https://justice.gov.bc.ca/cso/index.do"
NUXT_CSO_URL="https://dev.justice.gov.bc.ca/cso/index.do"
NUXT_ESRA_LEARN_MORE_URL="https://www2.gov.bc.ca/gov/content/environment/air-land-water/site-remediation/site-information"
NUXT_ESRA_URL="https://esra-dlvr-frontend.apps.silver.devops.gov.bc.ca/"
NUXT_MHR_LEARN_MORE="https://www2.gov.bc.ca/gov/content/housing-tenancy/owning-a-home/manufactured-home-registry"
NUXT_REGISTRY_ACCOUNT_CREATE_URL="https://dev.bcregistry.ca/business/auth/choose-authentication-method"
NUXT_RPT_URL="https://staging.www.etax.gov.bc.ca/bts/Web.BCOnl/WebServices/BCO/login"
NUXT_RPT_LEARN_MORE_URL="https://www2.gov.bc.ca/assets/gov/employment-business-and-economic-development/business-management/permits-licences-and-registration/registries-guides/rural_property_tax_search_user_guide.pdf"
NUXT_SOCIETIES_URL="https://dev.bcregistry.ca/societies/"
NUXT_WILLS_URL="https://ewills-dev.vs.gov.bc.ca/"
NUXT_WILLS_LEARN_MORE_URL="https://www2.gov.bc.ca/gov/content/life-events/death/wills-registry"
NUXT_AUTH_WEB_URL="https://dev.account.bcregistry.gov.bc.ca/"
NUXT_BUSINESS_URL="https://dev.account.bcregistry.gov.bc.ca/"
NUXT_BCROS_BASE_URL="https://dev.bcregistry.gov.bc.ca/"
NUXT_BUSINESS_SEARCH_URL="https://dev.search.business.bcregistry.gov.bc.ca"
NUXT_BCOL_URL="https://d1.bconline.gov.bc.ca/"
NUXT_BCEID_URL="https://www.test.bceid.ca/os/?7686&SkipTo=Basic"
NUXT_NAME_REQUEST_URL="https://dev.names.bcregistry.gov.bc.ca/"
NUXT_NDS_URL="https://bcregistry-bor-dev.web.app"
NUXT_ORGBOOK_URL="https://orgbook.gov.bc.ca/"
NUXT_REGISTRIES_API_GATEWAY_URL="https://developer.api.bcregistry.gov.bc.ca/"
NUXT_PPR_URL="https://dev.assets.bcregistry.gov.bc.ca/"
NUXT_SITEMINDER_LOGOUT_URL="https://logontest7.gov.bc.ca/clp-cgi/logoff.cgi"
NUXT_SUPPORT_FILING_URL="https://www2.gov.bc.ca/gov/content?id=93EE4398733C4F68A39C18259D066C7C"
NUXT_BASE_URL="http://localhost:3000/" # app base url
NUXT_SETUP_BCSC_URL="https://www2.gov.bc.ca/gov/content/governments/government-id/bcservicescardapp"

#vaults keycloak
NUXT_KEYCLOAK_AUTH_URL=""
Expand Down
110 changes: 110 additions & 0 deletions .github/DISCUSSION_TEMPLATE/rfc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
# This is based on Vue's great RFC template https://github.com/vuejs/rfcs/blob/master/0000-template.md
body:
- type: markdown
attributes:
value: |
Please fill out this Request For Comment - feature request!
Fill out the following sections in as much detail as you can, then encourage others to join in.
- type: dropdown
id: Product
attributes:
label: Select Release Product
options:
- Business Registry
- Personal Property
- Manufactured Homes
- Business Search
- Director Search
- Names Request or Examination
- type: textarea
attributes:
label: Summary
description: Brief explanation of the issue or problem to solve.
validations:
required: true

- type: textarea
attributes:
label: Basic Example
description: If the proposal involves anything new or changed, include a basic example.

- type: textarea
attributes:
label: Motivation
description: |
Why are we doing this? What use cases does it support? What is the expected outcome?
Please focus on explaining the motivation so that if this RFC is not accepted, the motivation could be used to develop alternative solutions. In other words, enumerate the constraints you are trying to solve without coupling them too closely to the solution you have in mind.
validations:
required: true

- type: textarea
attributes:
label: Detailed Design
description: |
This is the bulk of the RFC. Explain the design in enough detail for somebody familiar with the BC Registry applications to understand, and for somebody familiar with the implementation to implement. This should get into specifics and corner-cases, and include examples of how the feature is used. Any new terminology should be defined here.
validations:
required: true

- type: textarea
attributes:
label: Requirements List
value: |
### Must Have:
- A
- B
### Should Have:
- C
### Could Have:
- D
### Won't Have:
- E
description: |
What is required to make this feature a success?
Please use [the MoSCoW method](https://en.wikipedia.org/wiki/MoSCoW_method) to describe the requirements.
You can use [gherkin](https://cucumber.io/docs/gherkin/reference/) to desribe the acceptance criteria.
validations:
required: true

- type: textarea
attributes:
label: Drawbacks
description: |
Why should we **not** do this? Please consider:
- implementation cost, both in term of code size and complexity
- whether the proposed feature can be implemented in user space
- the impact on teaching people
- integration of this feature with other existing and planned features
- cost of migrating existing applications (is it a breaking change?)
There are tradeoffs to choosing any path. Attempt to identify them here.
validations:
required: true

- type: textarea
attributes:
label: Alternatives
description: |
What other designs have been considered? What is the impact of not doing this?
validations:
required: true

- type: textarea
attributes:
label: Adoption Strategy
description: |
If we implement this proposal, how will existing developers adopt it? Is this a breaking change? Can we write a migration? How will this affect other projects in the BC Registry or SBC-Connect ecosystem?
validations:
required: true

- type: textarea
attributes:
label: Unresolved Questions
description: |
What parts of this request are still unknown?
29 changes: 29 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: BCREGISTRY UI CD

on:
push:
branches:
- main
workflow_dispatch:
inputs:
target:
description: "Deploy To"
required: true
type: choice
options:
- dev
- test
- sandbox
- prod

jobs:
bcregistry-ui-cd:
uses: bcgov/bcregistry-sre/.github/workflows/frontend-cd.yaml@main
with:
target: ${{ inputs.target }}
node_version: "20.15.0"
app_name: "bcregistry"
working_directory: "."
secrets:
WORKLOAD_IDENTIFY_POOLS_PROVIDER: ${{ secrets.WORKLOAD_IDENTIFY_POOLS_PROVIDER }}
GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }}
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: BCREGISTRY UI CI

on:
pull_request:
workflow_dispatch:

jobs:
bcregistry-ui-ci:
uses: bcgov/bcregistry-sre/.github/workflows/frontend-ci.yaml@main
with:
node_version: "20.15.0"
app_name: "bcregistry"
working_directory: "."
codecov_flag: ""
33 changes: 16 additions & 17 deletions app/components/BCReg/HeroBanner.vue
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
<template>
<header class="bg-white bg-no-repeat lg:h-[30rem] lg:bg-homebanner lg:bg-[length:845px] lg:bg-right-bottom xl:bg-[length:955px] 2xl:h-[35rem] 2xl:bg-[length:1145px]">
<div class="mx-auto flex w-full max-w-bcGovLg items-center px-2 py-4 lg:h-[30rem] lg:py-0 xl:h-[35rem]">
<div class="prose prose-bcGov max-w-full lg:max-w-md xl:max-w-xl 2xl:max-w-[50%]">
<h1>Access and manage your BC Registries and Online Services</h1>
<p>
All registrations of businesses, not-for-profit societies, cooperative
associations, personal property and manufactured homes are administered
and supported by BC Registries and Online Services.
</p>
<p>
As our online modernization initiative continues, refer to this page for
updates on ways to manage registration information.
</p>
<p>
For up-to-date data analytics on our products and services, <a class="font-semibold text-[#1a5a96] underline" href="https://www.analytics.bcregistry.gov.bc.ca/">visit our BC Registries
Statistics and Insights page</a>.
</p>
<header class="bg-white bg-no-repeat lg:bg-[length:845px] lg:bg-right-bottom min-[1120px]:h-[30rem] min-[1120px]:bg-homebanner xl:bg-[length:955px] 2xl:h-[35rem] 2xl:bg-[length:1145px]">
<div class="mx-auto flex w-full max-w-bcGovLg items-center px-4 py-8 min-[1120px]:h-[30rem] min-[1120px]:py-0 2xl:h-[35rem]">
<div class="prose prose-bcGov max-w-full min-[1120px]:max-w-md xl:max-w-xl 2xl:max-w-[40%]">
<h1> {{ $t('page.home.h1') }} </h1>
<p> {{ $t('page.home.intro.p1') }} </p>
<p> {{ $t('page.home.intro.p2') }} </p>
<i18n-t keypath="page.home.intro.p3" tag="p" scope="global">
<template #link>
<a class="font-semibold text-[#1a5a96] underline" target="_blank" href="https://www.analytics.bcregistry.gov.bc.ca/">
{{ $t('page.home.intro.p3Link') }}
</a>
<span class="ml-1 inline-flex pb-1 align-middle">
<UIcon name="i-mdi-open-in-new" class="size-4 shrink-0 text-[#1a5a96]" />
</span>
</template>
</i18n-t>
</div>
</div>
</header>
Expand Down
46 changes: 23 additions & 23 deletions app/components/Bcros/ContactInfo.vue
Original file line number Diff line number Diff line change
@@ -1,59 +1,59 @@
<script setup lang="ts">
const MAILTO_HREF = ''
const BCROS_HREF = ''
const MAILTO_HREF = 'mailto:[email protected]?subject=BC%20Registries%20Support%20Request'
const BCROS_HREF = 'https://www2.gov.bc.ca/gov/content/governments/organizational-structure/' +
'ministries-organizations/ministries/citizens-services/bc-registries-online-services'
</script>
<template>
<div class="w-full bg-bcGovColor-footer p-4 text-white sm:py-9">
<div class="mx-auto flex max-w-bcGovLg flex-col gap-4 md:flex-row">
<div class="flex-1">
<h3 class="border-b border-blue-300 py-2 text-center text-xl font-semibold sm:text-left">
Need more information?
{{ $t('labels.needMoreInfo') }}
</h3>
<p class="py-6">
To learn more about BC Registries and Online Services, please
<a
:href="BCROS_HREF"
target="_blank"
rel="noopener noreferrer"
>
<span class="underline">visit the BC Registries and Online Services information page</span>
</a>
<UIcon name="i-mdi-open-in-new" class="ml-1 size-5 align-middle" />
</p>
<i18n-t keypath="contactInfo.bcros.moreInfo.link.p" tag="p" scope="global" class="py-6 text-white">
<template #link>
<a class="text-white underline" target="_blank" :href="BCROS_HREF" rel="noopener noreferrer">
{{ $t('contactInfo.bcros.moreInfo.link.link') }}
</a>
<span class="ml-1 inline-flex pb-1 align-middle">
<UIcon name="i-mdi-open-in-new" class="size-4 shrink-0 text-white" />
</span>
</template>
</i18n-t>
</div>
<div class="flex-1 md:max-w-md lg:max-w-lg">
<h3 class="border-b border-blue-300 py-2 text-center text-xl font-semibold sm:text-left">
Contact Us
{{ $t('labels.contactUs') }}
</h3>
<div class="space-y-7 py-6 pb-0 sm:pb-6">
<p>
For support or questions, contact us at:
{{ $t('contactInfo.bcros.support.general') }}
</p>
<ul class="space-y-1">
<li>
<span>Toll Free: <a class="underline" href="tel:+1-877-526-1526">1-877-526-1526</a></span>
<span> {{ $t('contactInfo.bcRegGeneral.tollFree.title') }} <a class="underline" href="tel:+1-877-526-1526">1-877-526-1526</a></span>
</li>
<li>
<span>Victoria Office: <a class="underline" href="tel:+1-250-387-7848">250-387-7848</a></span>
<span> {{ $t('contactInfo.bcRegGeneral.victoriaOffice.title') }} <a class="underline" href="tel:+1-250-387-7848">250-387-7848</a></span>
</li>
<li>
<span>Email: <a class="underline" :href="MAILTO_HREF">[email protected]</a></span>
<span> {{ $t('contactInfo.bcRegGeneral.email.title') }} <a class="underline" :href="MAILTO_HREF">[email protected]</a></span>
</li>
</ul>

<p>
For account setup and login support, contact us at:
{{ $t('contactInfo.bcros.support.account') }}
</p>
<ul>
<li>
<span>Toll Free: <a class="underline" href="tel:+1-877-370-1033">1-877-370-1033</a></span>
<span> {{ $t('contactInfo.bcRegGeneral.tollFree.title') }} <a class="underline" href="tel:+1-877-370-1033">1-877-370-1033</a></span>
</li>
</ul>

<p>
<strong>Hours of Operation:</strong>
<strong>{{ $t('contactInfo.bcRegGeneral.hours.title') }}</strong>
<br>
Monday to Friday, 8:30am - 4:30pm Pacific time
{{ $t('contactInfo.bcRegGeneral.hours.value') }}
</p>
</div>
</div>
Expand Down
Loading

0 comments on commit a696879

Please sign in to comment.