Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(FSADT1-861): adding bcsc form #577

Closed
wants to merge 340 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
340 commits
Select commit Hold shift + click to select a range
f8948c6
fix: fixing landing page style
paulushcgcj Sep 7, 2023
c1512bc
chore: updating stubs to have better info
paulushcgcj Sep 7, 2023
66d29fe
chore: renaming some files
paulushcgcj Sep 7, 2023
b8ddd9f
chore: changing project configuration
paulushcgcj Sep 7, 2023
b87d765
fix: fixing address autocomplete whitespaces
paulushcgcj Sep 7, 2023
c31540e
fix(FSADT1-869): fixing spacing on message
paulushcgcj Sep 7, 2023
966b687
chore(FSADT1-871): removing tooltip from next
paulushcgcj Sep 7, 2023
7cb3b58
fix: fixing address autocomplete info
paulushcgcj Sep 7, 2023
94bb37a
chore: adding config to workspace
paulushcgcj Sep 7, 2023
9963acd
fix(FSADT1-862): adding global notification for errors
paulushcgcj Sep 8, 2023
6744845
fix: fixing progress indicator navigation
paulushcgcj Sep 8, 2023
b026d22
fix(FSADT1-863): trimming whitespace on address
paulushcgcj Sep 8, 2023
907dc9d
fix(FSADT1-863): fixing address details whitespace
paulushcgcj Sep 8, 2023
ab7b5f3
fix(FSADT1-870): limiting the amount of contact/address
paulushcgcj Sep 8, 2023
abcb0d4
fix: fixing contact/address size
paulushcgcj Sep 8, 2023
b7fc3a2
fix: fixing progress state when error
paulushcgcj Sep 8, 2023
4064891
fix: fixing error notification
paulushcgcj Sep 11, 2023
1273772
fix: fixing dropdown
paulushcgcj Sep 11, 2023
0e70efd
fix: fixing multi select
paulushcgcj Sep 11, 2023
1e4bbb2
chore: updating stubs to add more addresses
paulushcgcj Sep 11, 2023
1c852e1
fix: fixing dropdown not changing when selection change
paulushcgcj Sep 11, 2023
9344a5d
feat: add formErrors variable
fterra-encora Sep 12, 2023
1ff802e
chore: redoing css changes - Part #1
mamartinezmejia Sep 13, 2023
48c1646
feat: display address extra errors
fterra-encora Sep 13, 2023
6754aad
feat: move extra errors to the error component
fterra-encora Sep 13, 2023
b073c97
chore: redoing css changes - Part #2
mamartinezmejia Sep 14, 2023
37c8480
feat: replace formErrors argument with notification approach
fterra-encora Sep 14, 2023
5a022fb
feat: scroll to new contact
fterra-encora Sep 11, 2023
a515481
feat: add callback argument to useFocus
fterra-encora Sep 11, 2023
ee84729
feat: make the bindings to create and scroll to new contact
fterra-encora Sep 14, 2023
20ae6b6
chore: minor adjusments on useFocus
fterra-encora Sep 14, 2023
6db610e
Merge branch 'feat/be/external-form-fixes' into feat/form-errors
fterra-encora Sep 14, 2023
fd2deca
chore: redoing css changes - Part #3
mamartinezmejia Sep 14, 2023
ffdaab4
chore: redoing css changes - Part #4
mamartinezmejia Sep 14, 2023
46cd716
test: test the validation function and the error component
fterra-encora Sep 14, 2023
0db5747
fix: update contactType value on select
fterra-encora Sep 15, 2023
172917a
test: ignore already valid location
fterra-encora Sep 15, 2023
6e9cafc
Merge branch 'feat/fe/associated-addresses-validation' into feat/be/e…
fterra-encora Sep 15, 2023
6e4dbc4
test: remove outdated test
fterra-encora Sep 15, 2023
2e8a899
feat: add parameter for the shadow directive
fterra-encora Sep 18, 2023
83dcfec
feat: display progress indicator vertically
fterra-encora Sep 18, 2023
92defac
FSADT1-868: Allowed special characters. Done olnly in the Frontend as…
mamartinezmejia Sep 18, 2023
0797043
test: add getMany command
fterra-encora Sep 18, 2023
3ccd028
test: add progress indicator tests
fterra-encora Sep 18, 2023
822ac35
fixed inline notification colors
mamartinezmejia Sep 18, 2023
a269646
Removed wrong style
mamartinezmejia Sep 19, 2023
b8d1986
Added property needed
mamartinezmejia Sep 19, 2023
db23ce1
feat: show logout modal
fterra-encora Sep 19, 2023
346ac94
refactor: unify code for the logout button in different sizes
fterra-encora Sep 19, 2023
6d3b6e6
feat: show help modal
fterra-encora Sep 19, 2023
7c80197
feat: use media query instead of outerWidth to determine screen size
fterra-encora Sep 19, 2023
827e496
Removed class that was causing issues with the logout button
mamartinezmejia Sep 19, 2023
eab2a43
Revert "Removed class that was causing issues with the logout button"
mamartinezmejia Sep 19, 2023
9ad4493
Fixed logout button
mamartinezmejia Sep 19, 2023
10fbe85
feat: adjust header buttons
fterra-encora Sep 19, 2023
587ab63
Fixed mask issue with the postal code
mamartinezmejia Sep 19, 2023
de745d9
Renamed some files before refactoring code
mamartinezmejia Sep 20, 2023
49c2c19
Merge branch 'main' into feat/be/external-form-fixes
mamartinezmejia Sep 20, 2023
1e8e034
no message
mamartinezmejia Sep 20, 2023
c996da0
Made code reviews
mamartinezmejia Sep 20, 2023
5b1a0af
chore: remove console.log
fterra-encora Sep 20, 2023
6381f4d
fix: prevent an older request from overwriting the results
fterra-encora Sep 20, 2023
b09a23b
Made requiered changes
mamartinezmejia Sep 20, 2023
00de695
Removed repeatead code
mamartinezmejia Sep 20, 2023
5ec337d
Removed unneeded setting
mamartinezmejia Sep 20, 2023
2b1df50
fix: do not always block response from older request
fterra-encora Sep 21, 2023
c34ec0b
chore: use simple counter to generate requestId
fterra-encora Sep 21, 2023
7609a6d
fix: init fetching
fterra-encora Sep 21, 2023
45be34a
test: fix test
fterra-encora Sep 21, 2023
d3542d4
Merge branch 'main' into feat/be/external-form-fixes
mamartinezmejia Sep 21, 2023
6992bf7
Fixed file
mamartinezmejia Sep 21, 2023
e230dc7
Added javadoc comment as per requested by SonarCloud
mamartinezmejia Sep 21, 2023
1a32b11
docs: improve comment
fterra-encora Sep 21, 2023
94651ce
feat: adjust header logo and buttons
fterra-encora Sep 22, 2023
88277ef
feat: adjust header spaces and breakpoints
fterra-encora Sep 22, 2023
ec042ce
chore: use date milliseconds as id
fterra-encora Sep 22, 2023
db6daad
fix: fix build issue
fterra-encora Sep 22, 2023
47cb3fa
fix: prevent error in the workflow
fterra-encora Sep 22, 2023
37688dc
fix: attempt to fix tests in the workflow
fterra-encora Sep 22, 2023
eafe95a
fix: remove package from optimizeDeps
fterra-encora Sep 22, 2023
772b8b2
refactor: requested changes from review
fterra-encora Sep 22, 2023
897e901
Refactored code - Part #1
mamartinezmejia Sep 22, 2023
8f43894
Made code reviews
mamartinezmejia Sep 22, 2023
6e32b64
Formatted and beautified code
mamartinezmejia Sep 22, 2023
a6ba5ec
style: small changes to code style
fterra-encora Sep 22, 2023
9b0579a
chore: fix code linter
fterra-encora Sep 22, 2023
9adba1c
Refactored code - Part #1.1
mamartinezmejia Sep 22, 2023
7c0e419
fix: Fixed sonarcloud security hotspot issue
mamartinezmejia Sep 22, 2023
7e4a196
fix: Fixed security hotspot
mamartinezmejia Sep 23, 2023
26098fb
Refactored code - Part #2
mamartinezmejia Sep 25, 2023
2e8fb24
Refactored code - Part #2.1
mamartinezmejia Sep 25, 2023
b781223
fix: fix header small screen
fterra-encora Sep 25, 2023
c0d9592
fix: attempt to fix side effect in the workflow
fterra-encora Sep 25, 2023
66554f2
chore: submitting small changes
paulushcgcj Sep 25, 2023
e46a35c
fix(FSADT1-884): fixing steps being enable
paulushcgcj Sep 25, 2023
5e802e0
chore: sorting import
paulushcgcj Sep 25, 2023
a61a2c6
fix(FSADT1-887): fixing typo on step 4
paulushcgcj Sep 25, 2023
179e273
fix(FSADT1-889): fixing font style
paulushcgcj Sep 25, 2023
f7455fa
fix: Fixed security hotspot and improved wording
mamartinezmejia Sep 25, 2023
308997c
fix: Fixed security hotspot
mamartinezmejia Sep 25, 2023
56b0de4
fix(FSADT1-888): fixing spacing between radio buttons
paulushcgcj Sep 25, 2023
7ccc5b8
Trying a different approach to solve the security hotspot issue
mamartinezmejia Sep 25, 2023
f34029d
fix(FSADT1-892): fixing submission page
paulushcgcj Sep 25, 2023
0f7d6f2
Trying a different approach to solve the security hotspot issue #2
mamartinezmejia Sep 25, 2023
0f5b211
fix(FSADT1-894): fixing field spacing and width
paulushcgcj Sep 25, 2023
f6ec430
fix(FSADT1-891): fixing modal spacing
paulushcgcj Sep 25, 2023
8ead99d
fix(FSADT1-889): fixing notification body content
paulushcgcj Sep 25, 2023
e9d7525
fix(FSADT1-890): fixing component alignment
paulushcgcj Sep 25, 2023
d8d6ea2
fix: Fixed security hotspot
mamartinezmejia Sep 26, 2023
b5d5d9e
fix: Fixed security hotspot
mamartinezmejia Sep 26, 2023
a717dce
Made code reviews
mamartinezmejia Sep 26, 2023
be85fe5
Removed unused variable
mamartinezmejia Sep 26, 2023
492550e
Refactored code and made code reviews
mamartinezmejia Sep 26, 2023
c6747a7
feat: adjust margins
fterra-encora Sep 26, 2023
859719f
fix(FSADT1-884): removing navigation link
paulushcgcj Sep 26, 2023
799ac4a
Made code reviews
mamartinezmejia Sep 26, 2023
4906cdb
fix: header height
fterra-encora Sep 26, 2023
dba7b80
chore: replace mock e-mail from .local to .com
fterra-encora Sep 26, 2023
aa07412
fix: do not pre-validate current step
fterra-encora Sep 26, 2023
42896f4
feat: replace margin with padding
fterra-encora Sep 26, 2023
d206f6d
FSADT1-899: Removed unneeded validation
mamartinezmejia Sep 26, 2023
a5bbd71
ci: updating trivy to fix issues
paulushcgcj Sep 27, 2023
bbac146
no message
mamartinezmejia Sep 27, 2023
78b1cd9
no message
mamartinezmejia Sep 27, 2023
47e4d51
Merge branch 'tbd' into feat/be/external-form-fixes
mamartinezmejia Sep 27, 2023
e6061ce
Tried to skip SonarCloud validation
mamartinezmejia Sep 27, 2023
ed64285
Skipped SonarCloud validation
mamartinezmejia Sep 27, 2023
75ddd36
chore: adding us address stub data
paulushcgcj Sep 27, 2023
628a9be
fix(FSADT1-884): fixing subtitle style
paulushcgcj Sep 27, 2023
6b4ff8f
fix: autocomplete after changing country
fterra-encora Sep 27, 2023
98bdf18
fix: fix subtitle style for vertical progress indicator
fterra-encora Sep 27, 2023
10e9c7b
fis(FSADT1-894): fixing style for inline and text
paulushcgcj Sep 27, 2023
4f3188b
Made code reviews
mamartinezmejia Sep 27, 2023
c4bba6f
FSADT1-879
mamartinezmejia Sep 27, 2023
8169cbf
- Made code reviews
mamartinezmejia Sep 27, 2023
29d4d87
Made code reviews
mamartinezmejia Sep 27, 2023
1bb375a
Made code reviews
mamartinezmejia Sep 27, 2023
aec83fb
Made improvement
mamartinezmejia Sep 27, 2023
9636608
feat: clear text displayed on combo-box
fterra-encora Sep 28, 2023
6efaa7c
fix: clear text displayed on combo-box
fterra-encora Sep 28, 2023
214e0f5
refactor: move iteration props
fterra-encora Sep 28, 2023
d81303f
fix: fix link to bceid
fterra-encora Sep 28, 2023
ac61eb5
Merge branch 'feat/be/external-form-fixes' into feat/be/bcsc
mamartinezmejia Sep 28, 2023
4e8dbd1
chore: remove unused import
fterra-encora Sep 28, 2023
5fafae1
fix: remove placeholders on country and province
fterra-encora Sep 28, 2023
2f440cf
fix: fix casing for Business information
fterra-encora Sep 28, 2023
3654f8e
fix: fix doc coment closing
fterra-encora Sep 28, 2023
8fbee82
fix: conditions used on postalCode validations
fterra-encora Oct 2, 2023
399ff7a
chore: fix VS Code resolution for source and test files
fterra-encora Oct 2, 2023
dc857bb
test: use a new query command after a click
fterra-encora Oct 3, 2023
418cb8a
test: force click button
fterra-encora Oct 3, 2023
75de0b7
fix: prevent completing business step with invalid data
fterra-encora Oct 3, 2023
6c3baab
fix: prevent fetching for name "undefined"
fterra-encora Oct 3, 2023
cf811b0
test: wait before clicking the option
fterra-encora Oct 3, 2023
7d5e2c8
Made a minor change for internal emails after a conversation with And…
mamartinezmejia Oct 3, 2023
bd5cb30
style: add semi-colon as requested after review
fterra-encora Oct 3, 2023
9564247
style: add the dollar signal to all conditions
fterra-encora Oct 3, 2023
24707fe
feat: turn the dollar signal required
fterra-encora Oct 3, 2023
d19af81
Made code reviews
mamartinezmejia Oct 3, 2023
3f5b497
Made more code reviews
mamartinezmejia Oct 3, 2023
93c3c8e
Made this to prevent perisisting information mutliple times
mamartinezmejia Oct 3, 2023
707ba34
Merge branch 'feat/be/external-form-fixes' into feat/be/bcsc
mamartinezmejia Oct 3, 2023
a61dbd5
test: wait for the option's inner element to become visible
fterra-encora Oct 3, 2023
b19d71f
fix: emit error always for text-input
fterra-encora Oct 3, 2023
42c8e9e
fix: update error status on Address step text fields
fterra-encora Oct 3, 2023
d04dbe8
fix: update Street address empty status properly
fterra-encora Oct 4, 2023
8f8931f
test: emit empty true when contents is empty
fterra-encora Oct 4, 2023
61412a2
docs: refer specific Jira issue
fterra-encora Oct 4, 2023
7834f1e
Merge branch 'feat/be/external-form-fixes' into feat/be/bcsc
mamartinezmejia Oct 4, 2023
c37e059
fix:
mamartinezmejia Oct 4, 2023
2e17fcb
Merge branch 'feat/be/external-form-fixes' into feat/be/bcsc
mamartinezmejia Oct 4, 2023
86b9a28
fix:
mamartinezmejia Oct 4, 2023
84ad6b0
fix: Made code reviews and removed unneeded prop I added
mamartinezmejia Oct 4, 2023
13b0459
Merge branch 'feat/be/external-form-fixes' into feat/be/bcsc
mamartinezmejia Oct 4, 2023
eedcce1
fix: update error status on Contacts step text fields
fterra-encora Oct 4, 2023
2e8fce9
test: emit valid events properly
fterra-encora Oct 4, 2023
e2babb1
no message
mamartinezmejia Oct 5, 2023
e3043d5
fix:
mamartinezmejia Oct 5, 2023
c717577
Merge branch 'feat/be/external-form-fixes' into feat/be/bcsc
mamartinezmejia Oct 5, 2023
bb4b796
docs: improve comment
fterra-encora Oct 5, 2023
cf60624
docs: improve comment
fterra-encora Oct 5, 2023
3f31ede
fix: synchronize dropdown value
fterra-encora Oct 5, 2023
b306d51
fix: get country validation
fterra-encora Oct 5, 2023
bf572b1
fix: validate after changed from outside
fterra-encora Oct 5, 2023
7a6e001
test: define some tests to be implemented
fterra-encora Oct 6, 2023
882650f
test: province gets cleared
fterra-encora Oct 6, 2023
3835366
docs: add issue references
fterra-encora Oct 6, 2023
6f74548
test: revalidates when changed from outside
fterra-encora Oct 6, 2023
9ec3636
Fast commit to switch branches
mamartinezmejia Oct 6, 2023
de0a792
Merge branch 'feat/be/external-form-fixes' into feat/be/bcsc
mamartinezmejia Oct 6, 2023
fa36f42
fix: validate the item code instead of its name
fterra-encora Oct 6, 2023
283b072
test: update tests
fterra-encora Oct 6, 2023
ccce1fa
fix: remove meaningless tag
fterra-encora Oct 6, 2023
8a47741
fix: do not display field as invalid
fterra-encora Oct 6, 2023
5fe3728
Fast commit to switch branches
mamartinezmejia Oct 6, 2023
21c2969
fix: Made code reviews and added birth date field
mamartinezmejia Oct 6, 2023
c7a038e
Merge branch 'feat/be/external-form-fixes' into feat/be/bcsc
mamartinezmejia Oct 6, 2023
c9595f1
fix: Fixed logo for small screens
mamartinezmejia Oct 6, 2023
66b3bc2
Merge branch 'feat/be/external-form-fixes' into feat/be/bcsc
mamartinezmejia Oct 6, 2023
7d68bb3
test: do not emit error in specific situation
fterra-encora Oct 6, 2023
ed22a30
feat: use variable to tell if selection was a user event
fterra-encora Oct 6, 2023
7560d76
test: update tests
fterra-encora Oct 6, 2023
a97e8ca
chore: use variable to tell if the change was a user event
fterra-encora Oct 6, 2023
3c69a38
test: update test
fterra-encora Oct 6, 2023
ae3a94d
feat: add tooltip to button Next
fterra-encora Oct 9, 2023
6af4f2c
fix: proceed applying part to next level
fterra-encora Oct 9, 2023
acdd081
chore: adjust combo-boxes focus outline
fterra-encora Oct 9, 2023
e656ffb
Fast commit to switch branches
mamartinezmejia Oct 11, 2023
65e0041
Merge branch 'feat/be/external-form-fixes' into feat/be/bcsc
mamartinezmejia Oct 11, 2023
b97c3cc
Modified gitignore
mamartinezmejia Oct 11, 2023
b5bbae0
feat:
mamartinezmejia Oct 11, 2023
1617543
feat:
mamartinezmejia Oct 11, 2023
0e3b1ba
Merge branch 'feat/be/external-form-fixes' into feat/be/bcsc
mamartinezmejia Oct 11, 2023
23cc349
Fast commit to switch branches
mamartinezmejia Oct 11, 2023
ad580cb
Renamed class with a more generic name
mamartinezmejia Oct 11, 2023
d34f3e1
Merge branch 'feat/be/external-form-fixes' into feat/be/bcsc
mamartinezmejia Oct 11, 2023
0a1c41a
Fast commit to switch branches
mamartinezmejia Oct 11, 2023
70dec09
Made more code reviews
mamartinezmejia Oct 11, 2023
e54a2f2
Merge branch 'feat/be/external-form-fixes' into feat/be/bcsc
mamartinezmejia Oct 11, 2023
f2aff9c
Fast commit to switch branches
mamartinezmejia Oct 12, 2023
3dd9ced
Pushed common functions
mamartinezmejia Oct 12, 2023
b1cd8d6
Merge branch 'feat/be/external-form-fixes' into feat/be/bcsc
mamartinezmejia Oct 12, 2023
3e34a0e
Fast commit to switch branches
mamartinezmejia Oct 12, 2023
20d7645
fix: fix AutoComplete events
fterra-encora Oct 13, 2023
d57e6a8
test: add empty and error tests
fterra-encora Oct 13, 2023
2d1d934
fix: fix initial empty value
fterra-encora Oct 13, 2023
f1e9e57
Merge branch 'feat/be/external-form-fixes' into feat/be/bcsc
mamartinezmejia Oct 13, 2023
4fc2b2e
removed unneeded key
mamartinezmejia Oct 13, 2023
875b2dd
fix: allow selecting item identical to the typed value
fterra-encora Oct 16, 2023
103f700
test: update test
fterra-encora Oct 16, 2023
a9a6f7f
Fast commit to switch branches
mamartinezmejia Oct 16, 2023
5a14da6
Merge branch 'feat/be/external-form-fixes' into feat/be/bcsc
mamartinezmejia Oct 16, 2023
2b8bb8e
test: add address group test
fterra-encora Oct 16, 2023
86e2d0d
Fast commit to switch branches
mamartinezmejia Oct 17, 2023
9d5584d
test: fix import
fterra-encora Oct 17, 2023
68020b3
feat: show loading icon on auto-complete fields
fterra-encora Oct 17, 2023
0266963
feat: allow some time before showing the loading icon
fterra-encora Oct 17, 2023
6f40376
chore: add helper text
fterra-encora Oct 17, 2023
244f76c
fix: validate multi-select field
fterra-encora Oct 17, 2023
e8d74c4
fix: remove deleted address from contacts
fterra-encora Oct 17, 2023
dd1573d
Fast commit to switch branches
mamartinezmejia Oct 18, 2023
10f0769
chore: small fix to remove extra spaces on the first step
fterra-encora Oct 18, 2023
a9d6c75
Merge branch 'feat/be/external-form-fixes' into feat/be/bcsc
mamartinezmejia Oct 19, 2023
bdb0dcc
- Made code reviews
mamartinezmejia Oct 19, 2023
b0ec221
Made code reviews
mamartinezmejia Oct 19, 2023
ea06c74
FSADT1-928
mamartinezmejia Oct 19, 2023
53a95f7
Merge branch 'feat/be/external-form-fixes' into feat/be/bcsc
mamartinezmejia Oct 19, 2023
0b7c18e
Fixed code smell issues
mamartinezmejia Oct 19, 2023
ef4351a
Fixed code smell issues
mamartinezmejia Oct 19, 2023
c9b4d4e
Create unit test
mamartinezmejia Oct 19, 2023
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: 11 additions & 4 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Fixes # (issue)

## Type of change

Please delete options that are not relevant.
<!-- Please delete options that are not relevant. -->

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
Expand All @@ -17,10 +17,17 @@ Please delete options that are not relevant.

# How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
<!-- Please describe the tests you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration -->

- [ ] Test A
- [ ] Test B
<!-- Please delete options that are not relevant. -->

- [ ] New unit tests
- [ ] New integrated tests
- [ ] New component tests
- [ ] New end-to-end tests
- [ ] New user flow tests
- [ ] No new tests are required
- [ ] Manual tests (description below)


## Checklist
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ jobs:
-p COGNITO_DOMAIN=${{ secrets.COGNITO_DOMAIN }}
-p COGNITO_ENVIRONMENT=DEV
-p COGNITO_REDIRECT_URI=https://${{ env.PREFIX }}-frontend.${{ env.DOMAIN }}/dashboard
-p COGNITO_LOGOUT_URI=https://${{ env.PREFIX }}-frontend.${{ env.DOMAIN }}/
-p COGNITO_LOGOUT_URI=https://${{ env.PREFIX }}-frontend.${{ env.DOMAIN }}

- name: Deploy Database
uses: bcgov-nr/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ jobs:
uses: actions/checkout@v3

- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@0.10.0
uses: aquasecurity/trivy-action@0.12.0
with:
scan-type: "fs"
format: "sarif"
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -570,4 +570,5 @@ frontend/cypress/videos/*
reports/
frontend/reports/

**/sonar-report.xml
**/sonar-report.xml
**/config/*.jks
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
import ca.bc.gov.app.dto.client.ClientContactDto;
import ca.bc.gov.app.dto.client.ClientLocationDto;
import ca.bc.gov.app.dto.client.ClientLookUpDto;
import ca.bc.gov.app.dto.client.ClientNameCodeDto;
import ca.bc.gov.app.dto.client.ClientSubmissionDto;
import ca.bc.gov.app.dto.client.ClientValueTextDto;
import ca.bc.gov.app.dto.client.CodeNameDto;
import ca.bc.gov.app.dto.cognito.AuthResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.aot.hint.annotation.RegisterReflectionForBinding;
Expand Down Expand Up @@ -64,9 +64,9 @@
ClientContactDto.class,
ClientLocationDto.class,
ClientLookUpDto.class,
ClientNameCodeDto.class,
ClientSubmissionDto.class,
ClientValueTextDto.class,
CodeNameDto.class,
BcRegistryAddressDto.class,
BcRegistryBusinessAdressesDto.class,
BcRegistryBusinessDto.class,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package ca.bc.gov.app.controller.client;

import ca.bc.gov.app.dto.client.ClientAddressDto;
import ca.bc.gov.app.dto.client.ClientNameCodeDto;
import ca.bc.gov.app.dto.client.CodeNameDto;
import ca.bc.gov.app.service.client.ClientAddressService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
Expand Down Expand Up @@ -45,14 +45,14 @@ public class ClientAddressController {
array = @ArraySchema(
schema = @Schema(
name = "NameCode",
implementation = ClientNameCodeDto.class
implementation = CodeNameDto.class
)
)
)
)
}
)
public Flux<ClientNameCodeDto> findPossibleAddresses(
public Flux<CodeNameDto> findPossibleAddresses(
@Parameter(description =
"The name or ISO 2 or 3 character code for the country to search in, defaults to CA",
example = "UK")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

import ca.bc.gov.app.dto.bcregistry.ClientDetailsDto;
import ca.bc.gov.app.dto.client.ClientLookUpDto;
import ca.bc.gov.app.dto.client.ClientNameCodeDto;
import ca.bc.gov.app.dto.client.CodeNameDto;
import ca.bc.gov.app.dto.client.EmailRequestDto;
import ca.bc.gov.app.exception.NoClientDataFound;
import ca.bc.gov.app.service.client.ClientService;
import io.swagger.v3.oas.annotations.tags.Tag;
import java.time.LocalDate;
import lombok.RequiredArgsConstructor;
import org.apache.commons.text.WordUtils;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
Expand Down Expand Up @@ -39,17 +40,23 @@ public Mono<ClientDetailsDto> getClientDetails(@PathVariable String clientNumber
}

@GetMapping("/activeCountryCodes")
public Flux<ClientNameCodeDto> listCountries(
public Flux<CodeNameDto> listCountries(
@RequestParam(value = "page", required = false, defaultValue = "0")
Integer page,
@RequestParam(value = "size", required = false, defaultValue = "10")
Integer size) {
return clientService
.listCountries(page, size);
}

@GetMapping("/getCountryByCode/{countryCode}")
public Mono<Object> getCountryByCode(
@PathVariable String countryCode) {
return clientService.getCountryByCode(countryCode);
}

@GetMapping("/activeCountryCodes/{countryCode}")
public Flux<ClientNameCodeDto> listProvinces(
public Flux<CodeNameDto> listProvinces(
@PathVariable String countryCode,
@RequestParam(value = "page", required = false, defaultValue = "0")
Integer page,
Expand All @@ -60,13 +67,13 @@ public Flux<ClientNameCodeDto> listProvinces(
}

@GetMapping("/activeClientTypeCodes")
public Flux<ClientNameCodeDto> findActiveClientTypeCodes() {
public Flux<CodeNameDto> findActiveClientTypeCodes() {
return clientService
.findActiveClientTypeCodes(LocalDate.now());
}

@GetMapping("/activeContactTypeCodes")
public Flux<ClientNameCodeDto> listClientContactTypeCodes(
public Flux<CodeNameDto> listClientContactTypeCodes(
@RequestParam(value = "page", required = false, defaultValue = "0")
Integer page,
@RequestParam(value = "size", required = false, defaultValue = "10")
Expand All @@ -76,12 +83,19 @@ public Flux<ClientNameCodeDto> listClientContactTypeCodes(
.listClientContactTypeCodes(page, size);
}

/**
* Retrieve a Flux of ClientLookUpDto objects by searching for clients with a specific name.
*
* @param name The name to search for.
* @return A Flux of ClientLookUpDto objects that match the given name.
*/
@GetMapping(value = "/name/{name}")
public Flux<ClientLookUpDto> findByClientName(
@PathVariable String name
) {
return clientService
.findByClientNameOrIncorporation(name);
.findByClientNameOrIncorporation(name)
.map(client -> client.withName(WordUtils.capitalize(client.name())));
}

@GetMapping(value = "/incorporation/{incorporationId}")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package ca.bc.gov.app.dto.client;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.With;


@Schema(
Expand All @@ -14,6 +15,7 @@
"legalType": "SP"
}"""
)
@With
public record ClientLookUpDto(
@Schema(description = "The code for that specific object", example = "00000002")
String code,
Expand Down

This file was deleted.

40 changes: 40 additions & 0 deletions backend/src/main/java/ca/bc/gov/app/dto/client/CodeNameDto.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package ca.bc.gov.app.dto.client;

import io.swagger.v3.oas.annotations.media.Schema;

/**
* The {@code CodeNameDto} class represents a simple data transfer object (DTO) that encapsulates
* a name and code for a specific object. It is used to transfer this information between different
* parts of an application.
* This class is annotated with Swagger annotations for generating API documentation. It provides
* a description and example JSON representation for the object it represents.
*
* <p>
* Example JSON representation:
* <pre>{@code
* {
* "code": "00000002",
* "name": "BAXTER"
* }
* }</pre>
* </p>
*
* @see Schema
*/
@Schema(
description = "A simple name and code object",
title = "NameCode",
example = """
{
"code": "00000002",
"name": "BAXTER"
}"""
)
public record CodeNameDto(
@Schema(description = "The code for that specific object", example = "00000002")
String code,

@Schema(description = "The name information for that specific object", example = "BAXTER")
String name
) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,9 @@ public class CountryCodeEntity extends ExpirableBaseEntity {
@NotNull
private Integer order;

public CountryCodeEntity(@NotNull @Size(min = 2, max = 2) String countryCode, @NotNull String description) {
this.countryCode = countryCode;
this.description = description;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import ca.bc.gov.app.dto.client.AddressCompleteRetrieveListDto;
import ca.bc.gov.app.dto.client.AddressError;
import ca.bc.gov.app.dto.client.ClientAddressDto;
import ca.bc.gov.app.dto.client.ClientNameCodeDto;
import ca.bc.gov.app.dto.client.ClientValueTextDto;
import ca.bc.gov.app.dto.client.CodeNameDto;
import ca.bc.gov.app.exception.AddressLookupException;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -34,7 +34,7 @@ public ClientAddressService(
this.addressCompleteApi = addressCompleteApi;
}

public Flux<ClientNameCodeDto> findPossibleAddresses(
public Flux<CodeNameDto> findPossibleAddresses(
String country, Integer maxSuggestions, String searchTerm) {
log.info("Searching for address {} for country {}", searchTerm, country);
return
Expand Down Expand Up @@ -95,9 +95,9 @@ public Flux<ClientNameCodeDto> findPossibleAddresses(
})
.flatMapMany(Flux::fromIterable)
.filter(address -> "Retrieve" .equalsIgnoreCase(address.next()))
.map(address -> new ClientNameCodeDto(
.map(address -> new CodeNameDto(
address.id(),
String.format("%s %s", address.text(), address.description())
String.format("%s %s", address.text().trim(), address.description().trim())
)
);
}
Expand Down Expand Up @@ -137,7 +137,7 @@ public Mono<ClientAddressDto> getAddress(String addressId) {
new ClientAddressDto(
String.format("%s %s %s %s %s", address.line1(), address.line2(),
address.line3(), address.line4(), address.line5()
),
).trim(),
new ClientValueTextDto(address.countryIso2(), address.countryName()),
new ClientValueTextDto(address.province(), address.provinceName()),
address.city(),
Expand Down
Loading