Skip to content

Commit

Permalink
Merge branch 'master' into DHIS2-15480
Browse files Browse the repository at this point in the history
  • Loading branch information
simonadomnisoru committed Sep 13, 2023
2 parents 03170ab + ff89ce4 commit fa263d7
Show file tree
Hide file tree
Showing 76 changed files with 3,083 additions and 908 deletions.
2 changes: 1 addition & 1 deletion .tx/config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[main]
host = https://www.transifex.com
lang_map = fa_AF: prs, uz@Cyrl: uz, uz@Latn: uz_Latn
lang_map = fa_AF: prs, uz@Cyrl: uz_UZ_Cyrl, uz@Latn: uz_UZ_Latn

[o:hisp-uio:p:app-capture-app:r:en-pot]
file_filter = i18n/<lang>.po
Expand Down
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
## [100.39.1](https://github.com/dhis2/capture-app/compare/v100.39.0...v100.39.1) (2023-09-13)


### Bug Fixes

* **translations:** sync translations from transifex (master) ([0fab0eb](https://github.com/dhis2/capture-app/commit/0fab0eba7b63cbfd080990913313fc6b6ff2d38f))

# [100.39.0](https://github.com/dhis2/capture-app/compare/v100.38.0...v100.39.0) (2023-09-07)


### Features

* [DHIS2-13343] hidden program stage rule effect ([#3406](https://github.com/dhis2/capture-app/issues/3406)) ([4ef2973](https://github.com/dhis2/capture-app/commit/4ef2973b71d6376f99db07e70bc4d51facb8018e))

# [100.38.0](https://github.com/dhis2/capture-app/compare/v100.37.0...v100.38.0) (2023-09-06)


### Features

* [DHIS2-14334] edit enrollment date ([#3350](https://github.com/dhis2/capture-app/issues/3350)) ([9dd1b6a](https://github.com/dhis2/capture-app/commit/9dd1b6a046e94021ae4e63a67a3d6b16a099212d))

# [100.37.0](https://github.com/dhis2/capture-app/compare/v100.36.0...v100.37.0) (2023-08-22)


Expand Down
7 changes: 7 additions & 0 deletions cypress/integration/EnrollmentPage/HiddenProgramStage.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Feature: Hidden program stage

Scenario: The user cannot add an event in a hidden program stage
Given you add an enrollment event that will result in a rule effect to hide a program stage
Then the New Postpartum care visit event button is disabled in the stages and events widget
And and an error is show in the Postpartum care visit stage
And the Postpartum care visit button is disabled in the enrollmentEventNew page
66 changes: 66 additions & 0 deletions cypress/integration/EnrollmentPage/HiddenProgramStage/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
import moment from 'moment';

const cleanUpIfApplicable = () => {
cy.buildApiUrl(
'tracker',
'trackedEntities/uW8Y7AIcRKA?program=WSGAb5XwJ3Y&fields=enrollments',
)
.then(url => cy.request(url))
.then(({ body }) => {
const enrollment = body.enrollments?.find(e => e.enrollment === 'fmhIsWXVDmS');
const event = enrollment?.events?.find(e => e.programStage === 'PFDfvmGpsR3');
if (!event) {
return null;
}
return cy
.buildApiUrl('events', event.event)
.then(eventUrl =>
cy.request('DELETE', eventUrl));
});
};

Given('you add an enrollment event that will result in a rule effect to hide a program stage', () => {
cleanUpIfApplicable();
cy.visit(
'/#/enrollmentEventNew?enrollmentId=fmhIsWXVDmS&orgUnitId=s7SLtx8wmRA&programId=WSGAb5XwJ3Y&stageId=PFDfvmGpsR3&teiId=uW8Y7AIcRKA',
);

cy.get('[data-test="capture-ui-input"]')
.eq(0)
.type(moment().format('YYYY-MM-DD'))
.blur();

cy
.get('[data-test="virtualized-select"]')
.eq(6)
.click()
.contains('Termination of pregnancy')
.click();

cy.contains('[data-test="dhis2-uicore-button"]', 'Save without completing').click();
});

Then('the New Postpartum care visit event button is disabled in the stages and events widget', () => {
cy.contains('[data-test="create-new-button"]', 'New Postpartum care visit event')
.should('be.disabled');
});

Then('and an error is show in the Postpartum care visit stage', () => {
cy.visit(
'/#/enrollmentEventNew?enrollmentId=fmhIsWXVDmS&orgUnitId=s7SLtx8wmRA&programId=WSGAb5XwJ3Y&teiId=uW8Y7AIcRKA&stageId=bbKtnxRZKEP',
);
cy.contains('[data-test="dhis2-uicore-button"]', 'Complete')
.should('be.disabled');
cy.contains('[data-test="dhis2-uicore-button"]', 'Save without completing')
.should('be.disabled');
cy.contains('[data-test="dhis2-uicore-noticebox-content"]', 'You can\'t add any more Postpartum care visit events')
.should('exist');
});

Then('the Postpartum care visit button is disabled in the enrollmentEventNew page', () => {
cy.visit(
'/#/enrollmentEventNew?enrollmentId=fmhIsWXVDmS&orgUnitId=s7SLtx8wmRA&programId=WSGAb5XwJ3Y&teiId=uW8Y7AIcRKA',
);

cy.contains('[data-test="program-stage-selector-button"]', 'Postpartum care visit').should('be.disabled');
});
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ Then('the enrollment widget should be opened', () => {
});

Then('the user sees the enrollment date', () => {
cy.get('[data-test="widget-enrollment"]').within(() => {
cy.get('[data-test="widget-enrollment-enrollment-date"]').within(() => {
cy.get('[data-test="widget-enrollment-icon-calendar"]').should('exist');
cy.get('[data-test="widget-enrollment-enrollment-date"]')
.contains(`Date of enrollment ${getCurrentYear()}-08-01`)
cy.get('[data-test="widget-enrollment-date"]')
.contains(`Date of enrollment: ${getCurrentYear()}-08-01`)
.should('exist');
});
});

Then('the user sees the incident date', () => {
cy.get('[data-test="widget-enrollment"]').within(() => {
cy.get('[data-test="widget-enrollment-incident-date"]')
.contains(`Date of birth ${getCurrentYear()}-08-01`)
cy.get('[data-test="widget-enrollment-incident-date"]').within(() => {
cy.get('[data-test="widget-enrollment-date"]')
.contains(`Date of birth: ${getCurrentYear()}-08-01`)
.should('exist');
});
});
Expand Down
64 changes: 21 additions & 43 deletions i18n/ar.po
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#
# Translators:
# KRG HIS <[email protected]>, 2020
# phil_dhis2, 2022
# Philip Larsen Donnelly, 2022
# Viktor Varland <[email protected]>, 2023
# Hamza Assada <[email protected]>, 2023
#
msgid ""
msgstr ""
"Project-Id-Version: i18next-conv\n"
"POT-Creation-Date: 2023-06-27T06:20:33.460Z\n"
"POT-Creation-Date: 2023-09-04T07:07:59.195Z\n"
"PO-Revision-Date: 2019-06-27 07:31+0000\n"
"Last-Translator: Hamza Assada <[email protected]>, 2023\n"
"Language-Team: Arabic (https://app.transifex.com/hisp-uio/teams/100509/ar/)\n"
Expand Down Expand Up @@ -75,6 +75,16 @@ msgstr "تاريخ التسجيل"
msgid "Last updated"
msgstr "آخر تحديث"

msgid "error encountered during field validation"
msgstr "حدث خطأ أثناء التحقق من صحة الحقل"

msgid "error"
msgstr "خطأ"

msgid ""
"Plugins are not yet available - Please contact your system administrator"
msgstr ""

msgid "This value is validating"
msgstr "يتم التحقق من القيمة"

Expand Down Expand Up @@ -368,9 +378,6 @@ msgstr "لا تزال بعض العمليات قيد التشغيل. يرجى ا
msgid "Operations running"
msgstr "العمليات الجارية"

msgid "Sort"
msgstr "فرز"

msgid ""
"This event has unsaved changes. Leaving this page without saving will lose "
"these changes. Are you sure you want to discard unsaved changes?"
Expand Down Expand Up @@ -755,7 +762,7 @@ msgstr "المجدولة زمنياً"
msgid "Refer"
msgstr ""

msgid "You cant add any more {{ programStageName }} events"
msgid "You can't add any more {{ programStageName }} events"
msgstr ""

msgid "Cancel without saving"
Expand Down Expand Up @@ -819,6 +826,9 @@ msgstr ""
msgid "New Enrollment in program{{escape}} {{programName}}"
msgstr ""

msgid "Save {{trackedEntityTypeName}}"
msgstr ""

msgid "Save {{trackedEntityName}}"
msgstr ""

Expand Down Expand Up @@ -972,15 +982,6 @@ msgstr "يمكنك أيضًا اختيار برنامج من الشريط الع
msgid "Choose a type to start searching"
msgstr "اختر نوعًا لبدء البحث"

msgid "Fill in at least {{count}} attribute to search"
msgid_plural "Fill in at least {{count}} attribute to search"
msgstr[0] ""
msgstr[1] ""
msgstr[2] ""
msgstr[3] ""
msgstr[4] ""
msgstr[5] ""

msgid "Search {{name}}"
msgstr "البحث عن {{name}}"

Expand Down Expand Up @@ -1135,6 +1136,9 @@ msgstr ""
msgid "Mark for follow-up"
msgstr "اشر من أجل الملحق"

msgid "Existing dates for auto-generated events will not be updated."
msgstr ""

msgid "Enrollment date"
msgstr "تاريخ التسجيل"

Expand Down Expand Up @@ -1223,32 +1227,12 @@ msgid ""
"The scheduled date matches the suggested date, but can be changed if needed."
msgstr ""

msgid "The scheduled date is {{count}} days {{position}} the suggested date."
msgid_plural ""
"The scheduled date is {{count}} days {{position}} the suggested date."
msgstr[0] ""
msgstr[1] ""
msgstr[2] ""
msgstr[3] ""
msgstr[4] ""
msgstr[5] ""

msgid "after"
msgstr "بعد"

msgid "before"
msgstr "قبل"

msgid "There are {{count}} scheduled event in {{orgUnitName}} on this day."
msgid_plural ""
"There are {{count}} scheduled event in {{orgUnitName}} on this day."
msgstr[0] ""
msgstr[1] ""
msgstr[2] ""
msgstr[3] ""
msgstr[4] ""
msgstr[5] ""

msgid ""
"Scheduling an event in {{stageName}} for {{programName}} in {{orgUnitName}}"
msgstr ""
Expand Down Expand Up @@ -1496,9 +1480,6 @@ msgstr ""
msgid "Set coordinate"
msgstr "ضبط الإحداثية"

msgid "Page {{currentPage}}"
msgstr "صفحة {{currentPage}}"

msgid "Date"
msgstr "التاريخ"

Expand All @@ -1517,11 +1498,8 @@ msgstr "حتى تاريخ"
msgid "To time"
msgstr "إلى وقت"

msgid "error encountered during field validation"
msgstr "حدث خطأ أثناء التحقق من صحة الحقل"

msgid "error"
msgstr "خطأ"
msgid "Page {{currentPage}}"
msgstr "صفحة {{currentPage}}"

msgid "Delete polygon"
msgstr "حذف المضلع"
Expand Down
16 changes: 8 additions & 8 deletions i18n/cs.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: i18next-conv\n"
"POT-Creation-Date: 2023-06-01T08:11:59.116Z\n"
"POT-Creation-Date: 2023-09-04T07:07:59.195Z\n"
"PO-Revision-Date: 2019-06-27 07:31+0000\n"
"Last-Translator: Jiří Podhorecký, 2023\n"
"Language-Team: Czech (https://app.transifex.com/hisp-uio/teams/100509/cs/)\n"
Expand Down Expand Up @@ -379,9 +379,6 @@ msgstr "Některé operace stále běží. Prosím, čekejte.."
msgid "Operations running"
msgstr "Provoz běží"

msgid "Sort"
msgstr "Třídit"

msgid ""
"This event has unsaved changes. Leaving this page without saving will lose "
"these changes. Are you sure you want to discard unsaved changes?"
Expand Down Expand Up @@ -773,7 +770,7 @@ msgstr "Plán"
msgid "Refer"
msgstr "Odkazovat"

msgid "You cant add any more {{ programStageName }} events"
msgid "You can't add any more {{ programStageName }} events"
msgstr ""

msgid "Cancel without saving"
Expand Down Expand Up @@ -1159,6 +1156,9 @@ msgstr "Odstranit značku pro další sledování"
msgid "Mark for follow-up"
msgstr "Označit pro další sledování"

msgid "Existing dates for auto-generated events will not be updated."
msgstr ""

msgid "Enrollment date"
msgstr "Datum zápisu"

Expand Down Expand Up @@ -1506,9 +1506,6 @@ msgstr "Chyba při úpravě události, provedené změny nebyly uloženy"
msgid "Set coordinate"
msgstr "Nastavit souřadnice"

msgid "Page {{currentPage}}"
msgstr "Stránka {{currentPage}}"

msgid "Date"
msgstr "datum"

Expand All @@ -1527,6 +1524,9 @@ msgstr "K datu"
msgid "To time"
msgstr "Na čas"

msgid "Page {{currentPage}}"
msgstr "Stránka {{currentPage}}"

msgid "Delete polygon"
msgstr "Smazat polygon"

Expand Down
7 changes: 5 additions & 2 deletions i18n/en.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"POT-Creation-Date: 2023-09-08T10:24:43.998Z\n"
"PO-Revision-Date: 2023-09-08T10:24:43.998Z\n"
"POT-Creation-Date: 2023-09-04T07:07:59.195Z\n"
"PO-Revision-Date: 2023-09-04T07:07:59.195Z\n"

msgid "Choose one or more dates..."
msgstr "Choose one or more dates..."
Expand Down Expand Up @@ -1158,6 +1158,9 @@ msgstr "Remove mark for follow-up"
msgid "Mark for follow-up"
msgstr "Mark for follow-up"

msgid "Existing dates for auto-generated events will not be updated."
msgstr "Existing dates for auto-generated events will not be updated."

msgid "Enrollment date"
msgstr "Enrollment date"

Expand Down
Loading

0 comments on commit fa263d7

Please sign in to comment.