Skip to content

Commit

Permalink
Merge pull request #79 from opencrvs/upgrade-v1.3.3
Browse files Browse the repository at this point in the history
Upgrade v1.3.3
  • Loading branch information
euanmillar authored Feb 23, 2024
2 parents 9425795 + 2c42e17 commit ccb2720
Show file tree
Hide file tree
Showing 32 changed files with 1,245 additions and 694 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Wait for images to be available
run: |
while true; do
Expand All @@ -92,6 +92,7 @@ jobs:
env:
DOMAIN: ${{ vars.DOMAIN }}
REPLICAS: ${{ vars.REPLICAS }}
SSH_USER: ${{ secrets.SSH_USER }}
SMTP_PORT: ${{ secrets.SMTP_PORT }}
SMTP_HOST: ${{ secrets.SMTP_HOST }}
SMTP_USERNAME: ${{ secrets.SMTP_USERNAME }}
Expand Down
74 changes: 74 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
## [1.3.3](https://github.com/opencrvs/opencrvs-farajaland/compare/v1.3.2...v1.3.3) (TBD)

## Breaking changes

## New features

- #### Greater customizability of location data in certificates
The various admin level handlebars e.g. **statePlaceofbirth**,
**districtPrimaryMother** only contained the name of that location which was
not able to take advantage of all the information OpenCRVS had available
about the various admin levels e.g. the name of that location in the
secondary language. So we are introducing a new set of admin level
handlebars that would contain the **id** of that location which we can
resolve into a value of the shape
```
{
name: string
alias: string
}
```
using the new **"location"** handlebar helper. Here name is the primary
label of the location and alias being the secondary one. Currently only
these 2 fields are available but we will be adding more fields depending on
various countries requirements. If previously the certificate svg used to
contain `{{districtPlaceofbirth}}` then now we can replace it with
`{{location districtPlaceofbirthId 'name'}}`. To access alias, the `'name'`
needs to be replaced with `'alias'`.
Below is a list of all the new handlebars that are meant to be used with the
"location" handlebar helper.
- statePrimaryInformantId
- districtPrimaryInformantId
- statePlaceofbirthId
- districtPlaceofbirthId
- statePrimaryMotherId
- districtPrimaryMotherId
- statePrimaryFatherId
- districtPrimaryFatherId
- statePrimaryDeceasedId
- districtPrimaryDeceasedId
- statePlaceofdeathId
- districtPlaceofdeathId
- statePrimaryGroomId
- districtPrimaryGroomId
- statePrimaryBrideId
- districtPrimaryBrideId
- statePlaceofmarriageId
- districtPlaceofmarriageId
- registrar.stateId
- registrar.districtId
- registrar.officeId
- registrationAgent.stateId
- registrationAgent.districtId
- registrationAgent.officeId
##### We will be deprecating the counterpart of the above mentioned handlebars that contains only the label of the specified location in a future version so we highly recommend that implementers update their certificates to use these new ones.
- #### "Spouse" section in Farajaland death form
Spouse section is an optional section in death form. Going forward it will be included in Farajaland example configuration.
- #### Type of ID dropdown
Farajaland forms will now include a dropdown to select the type of ID an individual is providing e.g. National ID, Driving License etc. instead of being restricted to only national ID number.
- #### Number of dependents of deceased field
As an example of custom field, the deceased section in death form will now include the __numberOfDependants__ field.
- #### Reason for late registration field
The birth & death forms will include another custom field, __reasonForLateRegistration__, which makes use of "LATE_REGISTRATION_TARGET" configuration option in it's visibility conditional.
## Bug fixes
- Updated translations for form introduction page and sending for approval to reflect the default notification method being email.
- Remove hard-coded conditionals from "occupation" field to make it usable in the deceased form
See [Releases](https://github.com/opencrvs/opencrvs-farajaland/releases) for release notes of older releases.
2 changes: 2 additions & 0 deletions infrastructure/server-setup/playbook-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
- hosts: all
become: yes
become_method: sudo
environment:
PIP_BREAK_SYSTEM_PACKAGES: 1
tasks:
- name: 'Create app directory'
file:
Expand Down
2 changes: 2 additions & 0 deletions infrastructure/server-setup/playbook-3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
- hosts: all
become: yes
become_method: sudo
environment:
PIP_BREAK_SYSTEM_PACKAGES: 1
tasks:
- name: 'Create app directory'
file:
Expand Down
2 changes: 2 additions & 0 deletions infrastructure/server-setup/playbook-5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
- hosts: all
become: yes
become_method: sudo
environment:
PIP_BREAK_SYSTEM_PACKAGES: 1
tasks:
- name: 'Create app directory'
file:
Expand Down
2 changes: 1 addition & 1 deletion src/api/certificate-configuration/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function certificateConfigurationHandler(): Configuration {
fonts: {
['Noto Sans']: {
normal: `${COUNTRY_CONFIG_URL}/fonts/NotoSans-Regular.ttf`,
bold: `${COUNTRY_CONFIG_URL}/fonts/NotoSans-SemiBold.ttf`,
bold: `${COUNTRY_CONFIG_URL}/fonts/NotoSans-Bold.ttf`,
italics: `${COUNTRY_CONFIG_URL}/fonts/NotoSans-Regular.ttf`,
bolditalics: `${COUNTRY_CONFIG_URL}/fonts/NotoSans-Regular.ttf`
}
Expand Down
30 changes: 19 additions & 11 deletions src/api/content/client/client.json
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,7 @@
"fieldAgentHome.requireUpdatesCountLoading": "Checking your declarations",
"fieldAgentHome.sentForReviewCount": "Sent for review ({total})",
"fieldAgentHome.zeroUpdatesText": "No declarations require updates",
"form.customField.label.numberOfDependants": "No. of dependants",
"form.field.label.addFile": "Upload",
"form.field.showLabel": "Show",
"form.field.hideLabel": "Hide",
Expand Down Expand Up @@ -1252,11 +1253,11 @@
"form.section.information.name": "Information",
"form.section.information.birth.bullet1": "I am going to help you make a declaration of birth.",
"form.section.information.birth.bullet2": "As the legal Informant it is important that all the information provided by you is accurate.",
"form.section.information.birth.bullet3": "Once the declaration is processed you will receive you will receive an SMS to tell you when to visit the office to collect the certificate - Take your ID with you.",
"form.section.information.birth.bullet3": "Once the declaration is processed you will receive you will receive an email to tell you when to visit the office to collect the certificate - Take your ID with you.",
"form.section.information.birth.bullet4": "Make sure you collect the certificate. A birth certificate is critical for this child, especially to make their life easy later on. It will help to access health services, school examinations and government benefits.",
"form.section.information.death.bullet1": "I am going to help you make a declaration of death.",
"form.section.information.death.bullet2": "As the legal Informant it is important that all the information provided by you is accurate.",
"form.section.information.death.bullet3": "Once the declaration is processed you will receive you will receive an SMS to tell you when to visit the office to collect the certificate - Take your ID with you.",
"form.section.information.death.bullet3": "Once the declaration is processed you will receive you will receive an email to tell you when to visit the office to collect the certificate - Take your ID with you.",
"form.section.information.death.bullet4": "Make sure you collect the certificate. A death certificate is critical to support with inheritance claims and to resolve the affairs of the deceased e.g. closing bank accounts and setting loans.",
"form.section.declaration.title": "Declaration details",
"form.section.documents.birth.requirements": "The following documents are required",
Expand Down Expand Up @@ -1287,6 +1288,7 @@
"home.header.placeHolderBrnDrn": "Search for a BRN/DRN",
"home.header.placeholderName": "Search for a name",
"home.header.placeHolderPhone": "Search for a phone no.",
"home.header.placeHolderId": "Search for an ID",
"home.header.placeHolderNationalId": "Search for a national ID.",
"home.header.placeHolderTrackingId": "Search for a tracking ID",
"home.header.settingsTitle": "Settings",
Expand Down Expand Up @@ -1409,12 +1411,14 @@
"form.field.label.docTypeMarriageNotice": "Notice of marriage",
"form.field.label.proofOfGroomsID": "Proof of groom's identity",
"form.field.label.proofOfBridesID": "Proof of bride's identity",
"form.customField.label.reasonForLateRegistrationBirth": "Reason for delayed registration",
"form.customField.label.reasonForLateRegistrationDeath": "Reason for late registration",
"misc.createDescription": "Choose a PIN that doesn't have 4 repeating digits or sequential numbers",
"misc.createTitle": "Create a PIN",
"misc.description.Complete": "The informant will receive an SMS with a registration number that they can use to collect their certificate.",
"misc.description.Complete": "The informant will receive an email with a registration number that they can use to collect their certificate.",
"misc.description.inComplete": "Please add mandatory information before sending for approval.",
"misc.newPass.header": "Choose a new password",
"misc.newPass.instruction": "Create a unique password - one that you dont use for other websites or applications.",
"misc.newPass.instruction": "Create a unique password - one that you don't use for other websites or applications. A secure and easy to remember passphrase could include three random words, while avoiding the use of personal info.",
"misc.notif.declarationsSynced": "As you have connectivity, we can synchronize your declarations.",
"misc.notif.draftsSaved": "Your draft has been saved",
"misc.notif.outboxText": "Outbox ({num})",
Expand Down Expand Up @@ -1462,7 +1466,7 @@
"navigation.leaderboards": "Leaderboards",
"navigation.dashboard": "Dashboard",
"navigation.report": "Report",
"password.cases": "Contain upper and lower cases",
"password.cases": "At least one upper and lower case character",
"password.label.confirm": "Confirm password",
"password.label.current": "Current password",
"password.label.new": "New password",
Expand Down Expand Up @@ -2958,6 +2962,7 @@
"fieldAgentHome.requireUpdatesCountLoading": "Vérification de vos déclarations",
"fieldAgentHome.sentForReviewCount": "Envoyées pour révision ({total})",
"fieldAgentHome.zeroUpdatesText": "Aucune déclaration ne nécessite de mise à jour",
"form.customField.label.numberOfDependants": "Nombre de personnes à charge",
"form.field.showLabel": "Afficher",
"form.field.hideLabel": "Cacher",
"form.field.nidNotVerified": "Authentifier",
Expand Down Expand Up @@ -3325,6 +3330,8 @@
"form.field.select.placeholder": "Sélectionnez",
"form.field.tooltip.tooltipNationalID": "Il s'agit d'une info-bulle pour guider l'utilisateur dans la saisie de l'identifiant national.",
"form.field.dateRangepicker.checkbox.dateLabel": "{rangeStart} à {rangeEnd}",
"form.customField.label.reasonForLateRegistrationBirth": "Raison du retard d'inscription",
"form.customField.label.reasonForLateRegistrationDeath": "Raison de l'inscription tardive",
"form.group.reasonNotApplying.parents": "Pourquoi la mère et le père ne font-ils pas de demande ?",
"form.preview.group.label.english.name": "Nom anglais",
"form.preview.group.label.father.english.name": "Nom anglais du père",
Expand Down Expand Up @@ -3362,11 +3369,11 @@
"form.section.information.name": "Informations",
"form.section.information.birth.bullet1": "Je vais vous aider à faire une déclaration de naissance.",
"form.section.information.birth.bullet2": "En tant qu'informateur légal, il est important que toutes les informations que vous fournissez soient exactes.",
"form.section.information.birth.bullet3": "Une fois la déclaration traitée, vous recevrez un SMS vous indiquant quand vous rendre au bureau pour retirer le certificat - Munissez-vous d'une pièce d'identité.",
"form.section.information.birth.bullet3": "Une fois la déclaration traitée, vous recevrez un courriel vous indiquant quand vous rendre au bureau pour retirer le certificat - Munissez-vous d'une pièce d'identité.",
"form.section.information.birth.bullet4": "Veillez à récupérer le certificat. Un certificat de naissance est essentiel pour cet enfant, notamment pour lui faciliter la vie plus tard. Il l'aidera à accéder aux services de santé, aux examens scolaires et aux prestations de l'État.",
"form.section.information.death.bullet1": "Je vais vous aider à faire une déclaration de décès.",
"form.section.information.death.bullet2": "En tant qu'informateur légal, il est important que toutes les informations que vous fournissez soient exactes.",
"form.section.information.death.bullet3": "Une fois la déclaration traitée, vous recevrez un SMS vous indiquant quand vous rendre au bureau pour retirer le certificat - Munissez-vous d'une pièce d'identité.",
"form.section.information.death.bullet3": "Une fois la déclaration traitée, vous recevrez un courriel vous indiquant quand vous rendre au bureau pour retirer le certificat - Munissez-vous d'une pièce d'identité.",
"form.section.information.death.bullet4": "Veillez à récupérer le certificat. Le certificat de décès est essentiel pour les demandes d'héritage et pour régler les affaires de la personne décédée, par exemple la fermeture des comptes bancaires et la mise en place des prêts.",
"form.section.declaration.title": "Détails de la déclaration",
"form.section.documents.birth.requirements": "Les documents suivants sont requis",
Expand Down Expand Up @@ -3397,6 +3404,7 @@
"home.header.placeHolderBrnDrn": "Recherche d'un BRN/DRN",
"home.header.placeholderName": "Rechercher un nom",
"home.header.placeHolderPhone": "Recherche d'un numéro de téléphone",
"home.header.placeHolderId": "Recherche d'un ID",
"home.header.placeHolderNationalId": "Recherche d'une carte d'identité nationale",
"home.header.placeHolderTrackingId": "Recherche d'un ID de suivi",
"home.header.settingsTitle": "Paramètres",
Expand Down Expand Up @@ -3521,10 +3529,10 @@
"form.field.label.proofOfBridesID": "Preuve de l'identité de la mariée",
"misc.createDescription": "Choisissez un code PIN qui ne comporte pas 4 chiffres répétitifs ou des numéros séquentiels.",
"misc.createTitle": "Créer un code PIN",
"misc.description.Complete": "En envoyant pour approbation, vous confirmez que la déclaration est prête à être approuvée.",
"misc.description.Complete": "L'informateur recevra un courriel contenant un numéro d'enregistrement qu'il pourra utiliser pour retirer son certificat.",
"misc.description.inComplete": "Des informations obligatoires sont manquantes. Veuillez ajouter ces informations afin de pouvoir les envoyer pour approbation.",
"misc.newPass.header": "Choisissez un nouveau mot de passe",
"misc.newPass.instruction": "Nous vous recommandons de créer un mot de passe unique - un mot de passe que vous n'utilisez pas pour un autre site Web ou une autre application. Remarque. Vous ne pouvez pas réutiliser votre ancien mot de passe une fois que vous l'avez modifié.",
"misc.newPass.instruction": "Créez un mot de passe unique, que vous n'utilisez pas pour d'autres sites web ou applications. Une phrase de passe sûre et facile à retenir pourrait inclure trois mots aléatoires, tout en évitant d'utiliser des informations personnelles.",
"misc.notif.declarationsSynced": "Comme vous disposez d'une connectivité, nous pouvons synchroniser vos déclarations.",
"misc.notif.draftsSaved": "Votre brouillon a été enregistré",
"misc.notif.outboxText": "Boîte d'envoi({num})",
Expand Down Expand Up @@ -3572,7 +3580,7 @@
"navigation.leaderboards": "Classements",
"navigation.dashboard": "Tableau de bord",
"navigation.report": "Rapport",
"password.cases": "Contient des majuscules et des minuscules",
"password.cases": "Au moins un caractère majuscule et minuscule",
"password.label.confirm": "Confirmez le mot de passe",
"password.label.current": "Mot de passe actuel",
"password.label.new": "Nouveau mot de passe",
Expand Down Expand Up @@ -4229,4 +4237,4 @@
}
}
]
}
}
2 changes: 0 additions & 2 deletions src/api/content/client/descriptions.json
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,6 @@
"constants.issueToInformant": "Issuance of death to informant",
"constants.issueConfirmationMessage": "Confirmation of issuance",
"constants.idCheckWithoutVerify": "Issuance without the confirmation of proof",
"form.field.label.UNION": "Label for Union",
"form.field.label.DIVISION": "Label for Division",
"form.field.label.district": "Label for District",
"form.field.label.city": "Label for City",
"form.field.label.state": "Label for State",
Expand Down
4 changes: 2 additions & 2 deletions src/api/content/login/login.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@
"resetCredentials.success.page.subtitle.phone": "{forgottenItem, select, username {Check your phone for a reminder of your username} password {You can now login with your new password} other {}}",
"resetCredentials.success.page.subtitle.email": "{forgottenItem, select, username {Check your email for a reminder of your username} password {You can now login with your new password} other {}}",
"misc.newPass.header": "Choose a new password",
"misc.newPass.instruction": "Create a unique password one that you don't use for another website or application",
"misc.newPass.instruction": "Create a unique password - one that you don't use for other websites or applications. A secure and easy to remember passphrase could include three random words, while avoiding the use of personal info.",
"password.label.confirm": "Confirm password",
"password.label.new": "New password",
"password.cases": "Contain upper and lower cases",
"password.cases": "At least one upper and lower case character",
"password.match": "Passwords match",
"password.minLength": "{min} characters minimum",
"password.mismatch": "Passwords do not match",
Expand Down
Binary file added src/api/fonts/NotoSans-Bold.ttf
Binary file not shown.
Loading

0 comments on commit ccb2720

Please sign in to comment.