Skip to content

Commit e34eb2c

Browse files
committed
Merge remote-tracking branch 'origin/develop' into feature/VDX-298
# Conflicts: # packages/oid4vci-demo-frontend/src/configs/account.banqup.json
2 parents e662a4a + 5c4d277 commit e34eb2c

14 files changed

Lines changed: 251 additions & 23 deletions

File tree

packages/oid4vci-demo-frontend/public/banqup_verify_identity_id_card.svg

Lines changed: 9 additions & 0 deletions
Loading

packages/oid4vci-demo-frontend/public/banqup_verify_identity_progress_bar.svg

Lines changed: 9 additions & 0 deletions
Loading

packages/oid4vci-demo-frontend/public/locales/development/en/translation.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
"credentials_success_right_pane_button_caption": "Go to {{verifierUrlCaption}}",
99
"credentials_success_right_pane_paragraph": "Your {{credentialName}} credential has been\r\nsuccessfully issued to you.\r\n\nYou can use it to verify your identity whenever you\r\ninteract with other parties.",
1010
"credentials_success_right_pane_title": "Congratulations!",
11+
"credentials_success_right_pane_verified_account_paragraph": "\r\n\n\nThe Verified {{credentialName}} credential proofs that UnifiedPost\nhas been able to verify that you have access to the e-mail address you provided.\r\n\nYou can use this credential to login to your UnifiedPost account.",
12+
"credentials_success_right_pane_verified_account_title": "You have received your Verified {{name}} credential",
1113
"credentials_success_right_pane_valid_id_title": "You have received your Verified {{name}} credential",
1214
"credentials_success_right_pane_valid_id_paragraph": "\r\n\n\nThe Verified {{credentialName}} credential proofs that\nUnifiedPost has been able to verify that you have a valid ID document\nand that you are linked to this valid ID document.\r\n\nYou can use this credential to manage your UnifiedPost account.",
1315
"credentials_success_right_pane_registered_company_paragraph": "\r\n\n\nThe Verified {{credentialName}} credential proofs that\nUnifiedPost has been able to verify that your company is a registered company.\r\n\nYou can use this credential to transact your UnifiedPost account.",
@@ -44,6 +46,7 @@
4446
"sharing_data_company_fill_out_right_pane_paragraph": "Please fill in and review your company details.",
4547
"sharing_data_right_pane_title": "Provide your data",
4648
"manual_fill_data_right_pane_title": "Manually fill out details",
49+
"manual_fill_data_company_right_pane_title_tell_us_more_company": "Tell us more about your company",
4750
"manual_fill_data_right_pane_title_banqup": "Personal details",
4851
"manual_fill_data_company_right_pane_title": "Company details",
4952
"action_open_wallet_caption": "Open in wallet",
@@ -64,9 +67,10 @@
6467
"ssi_information_request_page_form_place_of_birth_label": "Place of birth",
6568
"ssi_information_request_page_form_date_of_birth_label": "Date of birth",
6669
"ssi_information_request_page_form_terms_and_conditions_label": "I agree to the <a href=\"{{url}}\" target=\"_blank\">terms & conditions</a>",
67-
"ssi_information_request_page_form_tax_registration_number_label": "TRN",
70+
"ssi_information_request_page_form_tax_registration_number_label": "Tax Registration number TRN",
6871
"ssi_information_request_page_form_contact_first_name_label": "Contact first name",
6972
"ssi_information_request_page_form_contact_last_name_label": "Contact last name",
73+
"ssi_information_request_page_form_contact_bsn_label": "Contact BSN",
7074
"coc_sharing_data_right_pane_title": "Share your details",
7175
"coc_sharing_data_right_pane_top_paragraph": "Almost there! Please provide any missing details if necessary.",
7276
"coc_credential_verify_request_right_pane_bottom_paragraph": "Scan this QR code using your wallet's QR scanner. When you already on your phone open your wallet by clicking on the Open in wallet button.",
@@ -90,7 +94,7 @@
9094
"paragraph_scan_this_qr": "Scan this QR code using your wallet's QR scanner. When you already on your phone open your wallet by clicking on the Open in wallet button.",
9195
"paragraph_confirm_email": "Confirm your account by entering the 5 digit confirmation code from the email.",
9296
"loading_verify_company_information_caption": "Verifying the company information",
93-
"loading_verify_identity_information_caption": "Verifying your identity.",
97+
"loading_verify_identity_information_caption": "Verifying your identity",
9498
"loading_verify_information_description": "Please wait, you will automatically go to the next step.",
9599
"welcome_title": "Welcome!",
96100
"welcome_page_confirm_account_subtitle": "We’ll first need to confirm your account",

packages/oid4vci-demo-frontend/public/locales/development/nl/translation.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
"credentials_success_right_pane_button_caption": "Ga naar {{verifierUrlCaption}}",
88
"credentials_success_right_pane_paragraph": "Je {{credentialName}} credential is met succes aan je uitgereikt.\n\nU kunt het gebruiken om je identiteit te verifiëren wanneer je interactie heeft met andere partijen.",
99
"credentials_success_right_pane_title": "Gefeliciteerd!",
10+
"credentials_success_right_pane_verified_account_paragraph": "\r\n\n\nThe Verified {{credentialName}} credential proofs that UnifiedPost\nhas been able to verify that you have access to the e-mail address you provided.\r\n\nYou can use this credential to login to your UnifiedPost account.",
11+
"credentials_success_right_pane_verified_account_title": "You have received your Verified {{name}} credential",
1012
"credentials_success_right_pane_valid_id_title": "U heeft je geverifieerde {{name}} credential ontvangen",
1113
"credentials_success_right_pane_valid_id_paragraph": "\r\n\n\nDe geverifieerde {{credentialName}} credential bewijst dat\nUnifiedPost heeft kunnen verifiëren dat je een geldig identiteitsbewijs hebt\nn dat je aan dit geldige identiteitsbewijs bent gekoppeld.",
1214
"credentials_success_right_pane_registered_company_paragraph": "\n\n\nDe geverifieerde {{credentialName}} credential bewijst dat\nUnifiedPost heeft kunnen verifiëren dat je bedrijf een geregistreerd bedrijf is.\r\n\nU kunt deze credential gebruiken om je UnifiedPost-account af te handelen.",
@@ -45,6 +47,7 @@
4547
"sharing_data_company_fill_out_right_pane_paragraph": "Vul je bedrijfsgegevens in en controleer deze.",
4648
"sharing_data_right_pane_title": "Deel je gegevens",
4749
"manual_fill_data_right_pane_title": "Handmatig gegevens invullen",
50+
"manual_fill_data_company_right_pane_title_tell_us_more_company": "Vertel ons meer over uw bedrijf",
4851
"manual_fill_data_right_pane_title_banqup": "Persoonlijke gegevens",
4952
"manual_fill_data_company_right_pane_title": "Bedrijf details",
5053
"sharing_data_success_right_pane_button_caption": "Volgende",
@@ -66,9 +69,10 @@
6669
"ssi_information_request_page_form_place_of_birth_label": "Geboorteplaats",
6770
"ssi_information_request_page_form_date_of_birth_label": "Geboortedatum",
6871
"ssi_information_request_page_form_terms_and_conditions_label": "Ik ga akkoord met de <a href=\"{{url}}\" target=\"_blank\">algemene voorwaarden</a>",
69-
"ssi_information_request_page_form_tax_registration_number_label": "RSIN",
72+
"ssi_information_request_page_form_tax_registration_number_label": "Belastingnummer RSIN",
7073
"ssi_information_request_page_form_contact_first_name_label": "Contact voornaam",
7174
"ssi_information_request_page_form_contact_last_name_label": "Contact achternaam",
75+
"ssi_information_request_page_form_contact_bsn_label": "Contact BSN",
7276
"ssi_information_request_page_form_vat_number_label": "BTW identificatienummer",
7377
"coc_sharing_data_right_pane_title": "Deel je gegevens",
7478
"coc_sharing_data_right_pane_top_paragraph": "Bijna klaar! Verstrek alstublieft ontbrekende gegevens indien nodig.",

packages/oid4vci-demo-frontend/src/components/Form/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const Form: FC<Props> = (props: Props): ReactElement => {
7272
return <InputField
7373
label={field.label ? t(field.label) ?? undefined : undefined}
7474
type={field.type}
75-
readonly={field.readonly || formInitData?.[field.id] !== undefined}
75+
readonly={field.readonly || formInitData?.[field.id] !== undefined || Boolean(field.readonlyWhenAbsentInPayload)}
7676
defaultValue={defaultValue}
7777
customValidation={field.customValidation ? new RegExp(field.customValidation) : undefined}
7878
onChange={async (value: FormFieldValue): Promise<void> => onChangeValue(value, field.key)}

packages/oid4vci-demo-frontend/src/configs/account.banqup.json

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"general": {
3-
"credentialName": "Account credential",
3+
"credentialName": "Account",
44
"oid4vpAgentBaseUrl": "https://agent.banqup.demo.sphereon.com",
55
"oid4vciAgentBaseUrl": "https://agent.banqup.demo.sphereon.com",
6-
"downloadUrl": "https://agent.demo.sphereon.com/#/download"
6+
"downloadUrl": "https://agent.demo.sphereon.com/#/download",
7+
"verifierUrl": "https:/account.banqup.demo.sphereon.com"
78
},
89
"pages": {
910
"downloadSphereonWallet": {
@@ -130,11 +131,20 @@
130131
}
131132
},
132133
"issueSuccess": {
133-
"photoRight": "bank/undraw_messenger_re_8bky_grey.svg",
134-
"backgroundColor": "#01224B",
134+
"leftPaneWidth": "40%",
135+
"backgroundColor": "#0E0B31",
135136
"logo": {
136-
"src": "bank/guest_credential.svg"
137+
"src": "banqup/logo.svg"
137138
},
139+
"rightPaneTitle": "credentials_success_right_pane_verified_account_title",
140+
"rightPaneParagraph": "credentials_success_right_pane_verified_account_paragraph",
141+
"rightPaneButtonCaption": "label_continue",
142+
"rightPaneTextHeight": "40%",
143+
"rightPaneTextMarginTop": "0",
144+
"rightPaneTextMarginBottom": "10%",
145+
"rightPaneButtonWidth": "135px",
146+
"rightPaneButtonHeight": "48px",
147+
"rightPaneButtonStepId": "toCompanyFlow",
138148
"mobile": {
139149
}
140150
},
@@ -270,7 +280,13 @@
270280
{
271281
"id": "issueSuccess",
272282
"operation": "navigate",
273-
"path": "https://banqup.demo.sphereon.com"
283+
"path": "/credentials/issue/success",
284+
"nextId": "toIdentityFlow"
285+
},
286+
{
287+
"id": "toIdentityFlow",
288+
"operation": "navigate",
289+
"path": "https://identity.banqup.demo.sphereon.com"
274290
},
275291
{
276292
"id": "downloadSphereonWallet",

packages/oid4vci-demo-frontend/src/configs/identity.banqup.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"general": {
3-
"credentialName": "Identity credential",
3+
"credentialName": "Identity",
44
"oid4vpAgentBaseUrl": "https://agent.banqup.demo.sphereon.com",
55
"oid4vciAgentBaseUrl": "https://agent.banqup.demo.sphereon.com",
66
"downloadUrl": "https://agent.banqup.demo.sphereon.com/#/download",
@@ -239,6 +239,14 @@
239239
"rightPaneButtonStepId": "toCompanyFlow",
240240
"mobile": {
241241
}
242+
},
243+
"verifyIdentity": {
244+
"leftPaneWidth": "40%",
245+
"sharing_data_right_pane_title": "loading_verify_identity_information_caption",
246+
"backgroundColor": "#0E0B31",
247+
"logo": {
248+
"src": "banqup/logo.svg"
249+
}
242250
}
243251
},
244252
"routes": [
@@ -257,6 +265,12 @@
257265
"id": "welcome",
258266
"operation": "navigate",
259267
"path": "/welcome",
268+
"nextId": "verifyIdentity"
269+
},
270+
{
271+
"id": "verifyIdentity",
272+
"operation": "navigate",
273+
"path": "/verify/identity",
260274
"nextId": "infoRequest"
261275
},
262276
{

packages/oid4vci-demo-frontend/src/configs/legal-entity.banqup.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@
123123
},
124124
"infoRequest": {
125125
"leftPaneWidth": "40%",
126-
"sharing_data_right_pane_title": "manual_fill_data_right_pane_title_banqup",
127-
"sharing_data_right_pane_paragraph": "sharing_data_fill_out_right_pane_paragraph",
126+
"sharing_data_right_pane_title": "manual_fill_data_company_right_pane_title_tell_us_more_company",
127+
"sharing_data_right_pane_paragraph": "sharing_data_company_fill_out_right_pane_paragraph",
128128
"primaryButtonResourceId": "label_continue",
129129
"primaryButtonManualResourceId": "label_continue",
130130
"backgroundColor": "#0E0B31",
@@ -162,6 +162,16 @@
162162
"required": true
163163
}
164164
],
165+
[
166+
{
167+
"id": "bsnNumber",
168+
"key": "bsn",
169+
"label": "ssi_information_request_page_form_contact_bsn_label",
170+
"type": "text",
171+
"required": true,
172+
"readonlyWhenAbsentInPayload": true
173+
}
174+
],
165175
[
166176
{
167177
"id": "companyEmailAddress",

packages/oid4vci-demo-frontend/src/ecosystem/ecosystem-config.ts

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,18 @@ export interface SSILoadingPageConfig extends PageConfig {
9191
},
9292
}
9393

94+
export interface SSIIdentityVerificationPageConfig extends PageConfig {
95+
leftPaneWidth?: string
96+
backgroundColor?: string
97+
logo?: ImageProperties
98+
sharing_data_right_pane_title: string
99+
mobile?: {
100+
logo?: ImageProperties
101+
backgroundColor?: string
102+
image?: string
103+
},
104+
}
105+
94106
export interface SSIWelcomePageConfig extends PageConfig {
95107
leftPaneWidth?: string
96108
backgroundColor?: string
@@ -130,12 +142,12 @@ export interface SSICredentialIssuedSuccessPageConfig extends PageConfig {
130142
photoLeft?: string
131143
photoRight: string
132144
rightPaneButtonStepId?: string
133-
rightPaneTitle: string
134-
rightPaneParagraph: string
135-
rightPaneButtonCaption: string
136-
rightPaneTextHeight: string
137-
rightPaneTextMarginTop: string
138-
rightPaneTextMarginBottom: string
145+
rightPaneTitle?: string
146+
rightPaneParagraph?: string
147+
rightPaneButtonCaption?: string
148+
rightPaneTextHeight?: string
149+
rightPaneTextMarginTop?: string
150+
rightPaneTextMarginBottom?: string
139151
rightPaneButtonWidth?: string
140152
rightPaneButtonHeight?: string
141153
}
@@ -208,6 +220,7 @@ export interface DataFormElement {
208220
key: string
209221
type: HTMLInputTypeAttribute
210222
required?: boolean
223+
readonlyWhenAbsentInPayload?: boolean
211224
defaultValue?: FormFieldValue
212225
label?: string
213226
labelUrl?: string
@@ -390,6 +403,7 @@ export interface VCIConfigPages {
390403
SSICredentialsLandingPage: SSICredentialsLandingPageConfig
391404
SSILoadingPage: SSILoadingPageConfig
392405
SSIWelcomePage: SSIWelcomePageConfig
406+
SSIIdentityVerificationPage: SSIIdentityVerificationPageConfig
393407
}
394408

395409
export interface VCIConfigRoute {

packages/oid4vci-demo-frontend/src/pages/SSICredentialIssuedSuccessPage/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ const SSICredentialIssuedSuccessPage: React.FC = () => {
6969
flexGrow: 1,
7070
textAlign: 'center'
7171
}}
72-
title={t(pageConfig.rightPaneTitle, {name: generalConfig.credentialName}).split('\n')}
73-
lines={t(pageConfig.rightPaneParagraph, {credentialName: generalConfig.credentialName}).split('\r\n')}/>
72+
title={t(pageConfig.rightPaneTitle ?? 'credentials_success_right_pane_title', {name: generalConfig.credentialName}).split('\n')}
73+
lines={t(pageConfig.rightPaneParagraph ?? 'credentials_success_right_pane_paragraph', {credentialName: generalConfig.credentialName}).split('\r\n')}/>
7474
<div style={{
7575
width: '342px',
7676
height: '397px',
@@ -80,7 +80,7 @@ const SSICredentialIssuedSuccessPage: React.FC = () => {
8080
</div>
8181
<div style={{display: 'flex',flexDirection: 'row'}}>
8282
<SSIPrimaryButton
83-
caption={t(pageConfig.rightPaneButtonCaption, {verifierUrlCaption: generalConfig.verifierUrlCaption ?? 'start'})}
83+
caption={t(pageConfig.rightPaneButtonCaption ?? 'credentials_success_right_pane_button_caption', {verifierUrlCaption: generalConfig.verifierUrlCaption ?? 'start'})}
8484
style={{
8585
width: pageConfig.rightPaneButtonWidth ?? '300px',
8686
height: pageConfig.rightPaneButtonHeight ?? '42px'

0 commit comments

Comments
 (0)