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(dedicated): missing guidance to reduce kyc upload issues #11155

Merged
merged 9 commits into from
May 23, 2024

Conversation

MaximeBajeux
Copy link
Contributor

@MaximeBajeux MaximeBajeux commented Mar 12, 2024

Add custom text to inform individual and corporation indian customers to avoid documents upload issues Ref: MANAGER-13105

Question Answer
Branch? master
Bug fix? no
New feature? yes
Breaking change? no
Tickets MANAGER-13105
License BSD 3-Clause
  • Try to keep pull requests small so they can be easily reviewed.
  • Commits are signed-off
  • Only FR translations have been updated
  • Branch is up-to-date with target branch
  • Lint has passed locally
  • Standalone app was ran and tested locally
  • Ticket reference is mentioned in linked commits (internal only)
  • Breaking change is mentioned in relevant commits (n/a)

Description

I created two components to display conditionally more informations about kyc documents to upload for individual and corporation Indian customers

Related

Translation:

  • CMT-11384

"user_account_identity_documents_corporation_requirements": "Vérification des documents nécessaire",
"user_account_identity_documents_corporation_requirements_intro": "Vous avez créé un compte. Pour réaliser une commande sur notre site internet, des vérifications sont nécessaires en conformité avec la législation indienne. Téléchargez vos documents",
"user_account_identity_documents_corporation_requirements_identity": "Preuve d'identité : ",
"user_account_identity_documents_corporation_requirements_identity_list": "Carte d'identité, passeport, permis de conduire, carte d’électeur, carte Adhaar ou la preuve de possession du numéro Aadhaar du représentant légal, directeur des opérations ou tout contact mentionné dans le GST.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"user_account_identity_documents_corporation_requirements_identity_list": "Carte d'identité, passeport, permis de conduire, carte délecteur, carte Adhaar ou la preuve de possession du numéro Aadhaar du représentant légal, directeur des opérations ou tout contact mentionné dans le GST.",
"user_account_identity_documents_corporation_requirements_identity_list": "Carte d'identité, passeport, permis de conduire, carte d'électeur, carte Adhaar ou la preuve de possession du numéro Aadhaar du représentant légal, directeur des opérations ou tout contact mentionné dans le GST.",

benjaminlepine
benjaminlepine previously approved these changes Mar 15, 2024
Comment on lines 21 to 32
<li>
<span data-translate="user_account_identity_documents_corporation_requirements_identity_acceptance_criteria_1"></span>
</li>
<li>
<span data-translate="user_account_identity_documents_corporation_requirements_identity_acceptance_criteria_2"></span>
</li>
<li>
<span data-translate="user_account_identity_documents_corporation_requirements_identity_acceptance_criteria_3"></span>
</li>
<li>
<span data-translate="user_account_identity_documents_corporation_requirements_identity_acceptance_criteria_4"></span>
</li>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: Content can be directly included in the li and span can be avoided.

Suggested change
<li>
<span data-translate="user_account_identity_documents_corporation_requirements_identity_acceptance_criteria_1"></span>
</li>
<li>
<span data-translate="user_account_identity_documents_corporation_requirements_identity_acceptance_criteria_2"></span>
</li>
<li>
<span data-translate="user_account_identity_documents_corporation_requirements_identity_acceptance_criteria_3"></span>
</li>
<li>
<span data-translate="user_account_identity_documents_corporation_requirements_identity_acceptance_criteria_4"></span>
</li>
<li data-translate="user_account_identity_documents_corporation_requirements_identity_acceptance_criteria_1">
</li>
<li data-translate="user_account_identity_documents_corporation_requirements_identity_acceptance_criteria_2">
</li>
<li data-translate="user_account_identity_documents_corporation_requirements_identity_acceptance_criteria_3">
</li>
<li data-translate="user_account_identity_documents_corporation_requirements_identity_acceptance_criteria_4">
</li>

Comment on lines 47 to 49
<li>
<span data-translate="user_account_identity_documents_corporation_requirements_sworn_statement_acceptance_criteria_1"></span>
</li>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines 64 to 72
<li>
<span data-translate="user_account_identity_documents_corporation_requirements_address_acceptance_criteria_1"></span>
</li>
<li>
<span data-translate="user_account_identity_documents_corporation_requirements_address_acceptance_criteria_2"></span>
</li>
<li>
<span data-translate="user_account_identity_documents_corporation_requirements_address_acceptance_criteria_3"></span>
</li>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines 87 to 95
<li>
<span data-translate="user_account_identity_documents_corporation_requirements_tva_acceptance_criteria_1"></span>
</li>
<li>
<span data-translate="user_account_identity_documents_corporation_requirements_tva_acceptance_criteria_2"></span>
</li>
<li>
<span data-translate="user_account_identity_documents_corporation_requirements_tva_acceptance_criteria_3"></span>
</li>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import component from './component';

const moduleName =
'ovhManagerDedicatedAccountUserUploadIdentityDocumentsIndRequirements';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'ovhManagerDedicatedAccountUserUploadIdentityDocumentsIndRequirements';
'ovhManagerDedicatedAccountUserUploadIdentityDocumentsIndividualRequirements';

import component from './component';

const moduleName =
'ovhManagerDedicatedAccountUserUploadIdentityDocumentsCorpRequirements';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'ovhManagerDedicatedAccountUserUploadIdentityDocumentsCorpRequirements';
'ovhManagerDedicatedAccountUserUploadIdentityDocumentsCorporationRequirements';

Comment on lines 21 to 35
<li>
<span data-translate="user_account_identity_documents_individual_requirements_identity_acceptance_criteria_1"></span>
</li>
<li>
<span data-translate="user_account_identity_documents_individual_requirements_identity_acceptance_criteria_2"></span>
</li>
<li>
<span data-translate="user_account_identity_documents_individual_requirements_identity_acceptance_criteria_3"></span>
</li>
<li>
<span data-translate="user_account_identity_documents_individual_requirements_identity_acceptance_criteria_4"></span>
</li>
<li>
<span data-translate="user_account_identity_documents_individual_requirements_identity_acceptance_criteria_5"></span>
</li>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines 50 to 55
<li>
<span data-translate="user_account_identity_documents_individual_requirements_address_acceptance_criteria_1"></span>
</li>
<li>
<span data-translate="user_account_identity_documents_individual_requirements_address_acceptance_criteria_2"></span>
</li>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


angular
.module(moduleName, ['pascalprecht.translate'])
.component('uploadIdentityDocumentsIndRequirements', component)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.component('uploadIdentityDocumentsIndRequirements', component)
.component('AccountUploadIdentityDocumentsIndividualRequirements', component)


angular
.module(moduleName, ['pascalprecht.translate'])
.component('uploadIdentityDocumentsCorpRequirements', component)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.component('uploadIdentityDocumentsCorpRequirements', component)
.component('accountUploadIdentityDocumentsCorporationRequirements', component)

@github-actions github-actions bot added the has conflicts Has conflicts to resolve before merging label Mar 18, 2024
benjaminlepine
benjaminlepine previously approved these changes Mar 18, 2024
@github-actions github-actions bot removed the has conflicts Has conflicts to resolve before merging label Mar 19, 2024
dectotam
dectotam previously approved these changes Mar 19, 2024
Copy link

sonarcloud bot commented Mar 27, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

qpavy
qpavy previously approved these changes Mar 29, 2024
data-ng-if="$ctrl.user_type == $ctrl.USER_TYPE.individual"
></account-upload-identity-documents-individual-requirements>
<div
data-ng-if="$ctrl.user_type != $ctrl.USER_TYPE.corporation && $ctrl.user_type != $ctrl.USER_TYPE.individual"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
data-ng-if="$ctrl.user_type != $ctrl.USER_TYPE.corporation && $ctrl.user_type != $ctrl.USER_TYPE.individual"
data-ng-if="![$ctrl.USER_TYPE.corporation,$ctrl.USER_TYPE.individual].includes($ctrl.user_type)"

anooparveti
anooparveti previously approved these changes Apr 16, 2024
@MaximeBajeux MaximeBajeux dismissed stale reviews from anooparveti and qpavy via 91600bf May 2, 2024 08:36
@github-actions github-actions bot added the has conflicts Has conflicts to resolve before merging label May 2, 2024
Maxime Bajeux and others added 8 commits May 21, 2024 09:08
Add text to add more context for corporation and individual
ref: MANAGER-13105

Signed-off-by: Maxime Bajeux <maxime.bajeux.ext@corp.ovh.com>
Change quote in translation
ref: MANAGER-13105

Signed-off-by: Maxime Bajeux <maxime.bajeux.ext@corp.ovh.com>
Add change requests to follow the guidelines
ref: MANAGER-13105

Signed-off-by: Maxime Bajeux <maxime.bajeux.ext@corp.ovh.com>
Add change requests to follow the guidelines
ref: MANAGER-13105

Signed-off-by: Maxime Bajeux <maxime.bajeux.ext@corp.ovh.com>
Remove non necessary span
ref: feat/MANAGER-13105

Signed-off-by: Maxime Bajeux <maxime.bajeux.ext@corp.ovh.com>
Refacto translations to avoid duplicates
ref: MANAGER-13105s

Signed-off-by: Maxime Bajeux <maxime.bajeux.ext@corp.ovh.com>
… BATCH 2 (#11383)

refacto the component to include association and others

ref: MANAGER-14056

Signed-off-by: Maxime Bajeux <maxime.bajeux.ext@corp.ovh.com>
Co-authored-by: Maxime Bajeux <maxime.bajeux.ext@corp.ovh.com>
Signed-off-by: CDS Translator Agent <opensource@ovh.net>
@github-actions github-actions bot removed the has conflicts Has conflicts to resolve before merging label May 21, 2024
fix error on Aadhaar syntax

ref: MANAGER-13105

Signed-off-by: Maxime Bajeux <maxime.bajeux.ext@corp.ovh.com>
Copy link

sonarcloud bot commented May 21, 2024

Quality Gate Passed Quality Gate passed

Issues
4 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@ghyenne ghyenne changed the base branch from master to release/components-w22 May 23, 2024 15:51
@ghyenne ghyenne merged commit 759a310 into release/components-w22 May 23, 2024
12 of 15 checks passed
@ghyenne ghyenne deleted the feat/MANAGER-13105 branch May 23, 2024 15:53
@ghyenne ghyenne mentioned this pull request May 23, 2024
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

10 participants