Skip to content
Open

4.0.0 #695

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
c9b042b
Add new packages for linting including accessibility linting
ionwyn May 22, 2025
4fa6d3c
Prepare migration from Create React App to Vite
ionwyn May 22, 2025
9f4fe1e
Add linting rules
ionwyn May 22, 2025
20ecb8d
Vite setup
ionwyn May 22, 2025
40bfdae
Vite setup 2
ionwyn May 22, 2025
a5d834a
Comply to Vite SCSS import
ionwyn May 23, 2025
0901394
Vite Setup part 3
ionwyn May 23, 2025
bc5f963
Bootstrap upgrade checkpoint
ionwyn May 23, 2025
aaedd5d
Bootstrap upgrade checkpoint 2
ionwyn May 23, 2025
382d322
Replaced react-dates with react-date-range
ionwyn May 26, 2025
ed6a29e
Fix typos
ionwyn May 26, 2025
9ff62de
Fix business logic issues after using new library react-date-range
ionwyn May 27, 2025
42afc60
Fix issues caused by Bootstrap 5 upgrade
ionwyn May 27, 2025
c745f28
Upgrade Axios from 0.29 to 1.9
ionwyn May 27, 2025
6aad7eb
Add prettier and eslint packages and config
ionwyn May 27, 2025
eb4fe8f
Automatic ESLint + Prettier lint and formatting
ionwyn May 27, 2025
efd3908
Remove unused libraries
ionwyn May 28, 2025
9b0f40b
Reinstall packages using node 24.1.0
ionwyn May 28, 2025
16753c3
Modify prettier rule (relax)
ionwyn May 28, 2025
0216044
prettier checkpoint 1
ionwyn May 28, 2025
22b350b
Prettier checkpoint 2
ionwyn May 28, 2025
8d21fea
Remove React.Fragment and remove unused React imports
ionwyn May 28, 2025
d3572ed
Prettier checkpoint 3
ionwyn May 28, 2025
e719d7f
Upgrade build to use node.js 24
ionwyn May 28, 2025
a1e41e0
Fix an issue where build dependency is missing
ionwyn May 28, 2025
2c7961b
Fix an issue where build directory isn't recognized by Dockerfile
ionwyn May 28, 2025
27dba8f
Debug errors
ionwyn May 28, 2025
5f0b9da
support Vite runtime env injection via env.config.js
ionwyn May 28, 2025
4523b18
Remove momentjs, normalize CRLF to LF, added rollup visualizer
ionwyn Jun 26, 2025
b6003fd
Fix a date formatting issue
ionwyn Jun 30, 2025
2f03a2f
Modify UTC format from momentjs to date-fns
ionwyn Jun 30, 2025
e7b1127
Migrate OpenShift templates to Helm Charts
ionwyn Jul 8, 2025
5c01571
Fix indentation issue in deployment
ionwyn Jul 8, 2025
c00e73c
Correct working directory for helm
ionwyn Jul 9, 2025
1f70220
Enrich configmaps
ionwyn Jul 9, 2025
1e846d2
Fix working directory for ConfigMaps:
ionwyn Jul 10, 2025
701b3bb
fix indent
ionwyn Jul 10, 2025
1aa0606
Modify prefix
ionwyn Jul 10, 2025
a1fccd6
Fix
ionwyn Jul 10, 2025
b1f6a26
Fix missing env values
ionwyn Jul 10, 2025
5a7a0a3
Use .NET prefix to inject env vars
ionwyn Jul 10, 2025
c1d4407
Remove JWT block as it's been injected
ionwyn Jul 10, 2025
9a4745b
Add missing aspnetcore environemtn
ionwyn Jul 11, 2025
f582be1
Fix mount path for hangfire
ionwyn Jul 11, 2025
371091c
Change ministry name to MOTT
ionwyn Jul 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"[yaml]": {
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.autoIndent": "none"
}
}
root = true

[*]
end_of_line = lf
charset = utf-8
insert_final_newline = true
indent_style = space
indent_size = 2
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
2 changes: 1 addition & 1 deletion .github/workflows/clean.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: "12"
node-version: "24"
- name: Clean the Build and Dev Namespace
run: |
oc version
Expand Down
58 changes: 41 additions & 17 deletions .github/workflows/hmr-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "18"
node-version: "24"
- name: Set Version
run: echo "VERSION=v1.0.${{ github.run_number }}" >> $GITHUB_ENV
- name: Build
Expand All @@ -49,15 +49,21 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "18"
node-version: "24"
- name: Set Version
run: echo "VERSION=v1.0.${{ github.run_number }}" >> $GITHUB_ENV
- name: Deploy the image
- name: Deploy using Helm
run: |
oc version
oc login --token=${{ secrets.OPENSHIFT_TOKEN}} --server=${{ secrets.OPENSHIFT_SERVER_URL }}
npm ci
DEBUG=* npm run deploy -- --pr=${{ github.event.pull_request.number }} --env=dev --git.branch.name=${{github.head_ref}} --git.ref=${{github.head_ref}} --version=${VERSION}
helm upgrade --install hmcr ../helm \
-n d3d940-dev \
-f ../helm/values.yaml \
-f ../helm/values-dev.yaml \
--set images.api.tag=${VERSION} \
--set images.client.tag=${VERSION} \
--set images.hangfire.tag=${VERSION}


deploy-to-test:
needs: [build, deploy-to-dev]
Expand All @@ -71,15 +77,21 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "18"
node-version: "24"
- name: Set Version
run: echo "VERSION=v1.0.${{ github.run_number }}" >> $GITHUB_ENV
- name: Deploy the image
- name: Deploy using Helm
run: |
oc version
oc login --token=${{ secrets.OPENSHIFT_TOKEN}} --server=${{ secrets.OPENSHIFT_SERVER_URL }}
npm ci
DEBUG=* npm run deploy -- --pr=${{ github.event.pull_request.number }} --env=test --git.branch.name=${{github.head_ref}} --git.ref=${{github.head_ref}} --version=${VERSION}
helm upgrade --install hmcr ../helm \
-n d3d940-test \
-f ../helm/values.yaml \
-f ../helm/values-test.yaml \
--set images.api.tag=${VERSION} \
--set images.client.tag=${VERSION} \
--set images.hangfire.tag=${VERSION}


deploy-to-uat:
needs: [build, deploy-to-test]
Expand All @@ -93,15 +105,21 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "18"
node-version: "24"
- name: Set Version
run: echo "VERSION=v1.0.${{ github.run_number }}" >> $GITHUB_ENV
- name: Deploy the image
- name: Deploy using Helm
run: |
oc version
oc login --token=${{ secrets.OPENSHIFT_TOKEN}} --server=${{ secrets.OPENSHIFT_SERVER_URL }}
npm ci
DEBUG=* npm run deploy -- --pr=${{ github.event.pull_request.number }} --env=uat --git.branch.name=${{github.head_ref}} --git.ref=${{github.head_ref}} --version=${VERSION}
helm upgrade --install hmcr ../helm \
-n d3d940-uat \
-f ../helm/values.yaml \
-f ../helm/values-uat.yaml \
--set images.api.tag=${VERSION} \
--set images.client.tag=${VERSION} \
--set images.hangfire.tag=${VERSION}


deploy-to-prod:
needs: [build, deploy-to-uat]
Expand All @@ -115,12 +133,18 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "18"
node-version: "24"
- name: Set Version
run: echo "VERSION=v1.0.${{ github.run_number }}" >> $GITHUB_ENV
- name: Deploy the image
- name: Deploy using Helm
run: |
oc version
oc login --token=${{ secrets.OPENSHIFT_TOKEN}} --server=${{ secrets.OPENSHIFT_SERVER_URL }}
npm ci
DEBUG=* npm run deploy -- --pr=${{ github.event.pull_request.number }} --env=prod --git.branch.name=${{github.head_ref}} --git.ref=${{github.head_ref}} --version=${VERSION}
helm upgrade --install hmcr ../helm \
-n d3d940-prod \
-f ../helm/values.yaml \
-f ../helm/values-prod.yaml \
--set images.api.tag=${VERSION} \
--set images.client.tag=${VERSION} \
--set images.hangfire.tag=${VERSION}

230 changes: 0 additions & 230 deletions .pipeline/lib/deploy.js

This file was deleted.

12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ Use the following steps to configure the local development environment

```
# use port value from step 3
REACT_APP_API_HOST=http://localhost:<api-port>
VITE_API_HOST=http://localhost:<api-port>

REACT_APP_SSO_HOST=https://dev.oidc.gov.bc.ca/auth
REACT_APP_SSO_CLIENT=<client-id>
REACT_APP_SSO_REALM=<realm-id>
VITE_SSO_HOST=https://dev.oidc.gov.bc.ca/auth
VITE_SSO_CLIENT=<client-id>
VITE_SSO_REALM=<realm-id>

REACT_APP_DEFAULT_PAGE_SIZE_OPTIONS=25,50,100,200
REACT_APP_DEFAULT_PAGE_SIZE=25
VITE_DEFAULT_PAGE_SIZE_OPTIONS=25,50,100,200
VITE_DEFAULT_PAGE_SIZE=25

# Optional, default port is 3000
# PORT=3001
Expand Down
Loading
Loading