Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into DHIS2-13299-referrals
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/core_modules/capture-core/utils/reactQueryHelpers/query/useApiDataQuery.js
  • Loading branch information
eirikhaugstulen committed Dec 18, 2023
2 parents 6cef430 + 8abdca3 commit 9914da2
Show file tree
Hide file tree
Showing 261 changed files with 9,685 additions and 2,162 deletions.
152 changes: 152 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,155 @@
# [100.49.0](https://github.com/dhis2/capture-app/compare/v100.48.0...v100.49.0) (2023-12-18)


### Features

* [DHIS2-12544] Add verbose logging to rules engine ([#3480](https://github.com/dhis2/capture-app/issues/3480)) ([2a6d4a8](https://github.com/dhis2/capture-app/commit/2a6d4a839ae0daed7b2ddbf09a401c29dbb3cfd7))

# [100.48.0](https://github.com/dhis2/capture-app/compare/v100.47.3...v100.48.0) (2023-12-15)


### Features

* [DHIS2-15783] Tooltip on long working list names ([#3474](https://github.com/dhis2/capture-app/issues/3474)) ([6263aa8](https://github.com/dhis2/capture-app/commit/6263aa8a2114b028afff3b78c39f699c0946e682))

## [100.47.3](https://github.com/dhis2/capture-app/compare/v100.47.2...v100.47.3) (2023-12-14)


### Bug Fixes

* [DHIS2-16084] Filter unidirectional relationship types ([#3477](https://github.com/dhis2/capture-app/issues/3477)) ([3579fc0](https://github.com/dhis2/capture-app/commit/3579fc05d02f6210f381f93414d07b60a0cfea53))

## [100.47.2](https://github.com/dhis2/capture-app/compare/v100.47.1...v100.47.2) (2023-12-10)


### Bug Fixes

* **translations:** sync translations from transifex (master) ([1a4e748](https://github.com/dhis2/capture-app/commit/1a4e7482467656e19ce58f34862a306e6ae008cc))

## [100.47.1](https://github.com/dhis2/capture-app/compare/v100.47.0...v100.47.1) (2023-12-05)


### Bug Fixes

* [DHIS2-15694] Cancel button in Relationship ([#3471](https://github.com/dhis2/capture-app/issues/3471)) ([c1dfbdb](https://github.com/dhis2/capture-app/commit/c1dfbdb3352388bba7d51b8bc2b9d033d10967c3))
* [DHIS2-15983] Enrollment date not assigned on form init ([#3475](https://github.com/dhis2/capture-app/issues/3475)) ([a13a766](https://github.com/dhis2/capture-app/commit/a13a766ea463514dfdd090b8d40db6406dac80bb))

# [100.47.0](https://github.com/dhis2/capture-app/compare/v100.46.1...v100.47.0) (2023-12-03)


### Bug Fixes

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


### Features

* [DHIS2-16123] Add inheritable TEAs to Relationships ([#3464](https://github.com/dhis2/capture-app/issues/3464)) ([620b008](https://github.com/dhis2/capture-app/commit/620b00832da7c4951d6e905b40317dd0acca0aa6))

## [100.46.1](https://github.com/dhis2/capture-app/compare/v100.46.0...v100.46.1) (2023-11-30)


### Bug Fixes

* [DHIS2-15686] fix program rule variables for edit profile mode ([#3463](https://github.com/dhis2/capture-app/issues/3463)) ([a24bb27](https://github.com/dhis2/capture-app/commit/a24bb2723f06cd4a3ca87bbbb22977b097377b3c))

# [100.46.0](https://github.com/dhis2/capture-app/compare/v100.45.2...v100.46.0) (2023-11-30)


### Features

* [DHIS2-14275] Support custom icons ([#3473](https://github.com/dhis2/capture-app/issues/3473)) ([2404fca](https://github.com/dhis2/capture-app/commit/2404fca8085965e699ae518cfe816f2f3d38dea7))

## [100.45.2](https://github.com/dhis2/capture-app/compare/v100.45.1...v100.45.2) (2023-11-29)


### Bug Fixes

* [DHIS2-15693] Rules not triggered on program update ([#3472](https://github.com/dhis2/capture-app/issues/3472)) ([2dbca1e](https://github.com/dhis2/capture-app/commit/2dbca1efe36ed0e166d4aea803505c30c79cb35d))

## [100.45.1](https://github.com/dhis2/capture-app/compare/v100.45.0...v100.45.1) (2023-11-26)


### Bug Fixes

* **translations:** sync translations from transifex (master) ([8f28703](https://github.com/dhis2/capture-app/commit/8f28703ae8b56cfee283ec1ce0ec2b13dfd91e30))

# [100.45.0](https://github.com/dhis2/capture-app/compare/v100.44.7...v100.45.0) (2023-11-20)


### Features

* [DHIS2-13237] Enrollment coordinates in enrollment widget ([#3141](https://github.com/dhis2/capture-app/issues/3141)) ([2f2e52c](https://github.com/dhis2/capture-app/commit/2f2e52c3103e9cb48e77766701a9a5fc9af6ad48))

## [100.44.7](https://github.com/dhis2/capture-app/compare/v100.44.6...v100.44.7) (2023-11-19)


### Bug Fixes

* **translations:** sync translations from transifex (master) ([46fb227](https://github.com/dhis2/capture-app/commit/46fb2270b21c4dec57f4447232608d8dd3cfb9af))

## [100.44.6](https://github.com/dhis2/capture-app/compare/v100.44.5...v100.44.6) (2023-11-16)


### Bug Fixes

* [DHIS2-15967] allow enrolling TEIs with mandatory TET attributes ([#3455](https://github.com/dhis2/capture-app/issues/3455)) ([cc87a8a](https://github.com/dhis2/capture-app/commit/cc87a8a993001d5b4cea8493a84a6798f481cc5a))

## [100.44.5](https://github.com/dhis2/capture-app/compare/v100.44.4...v100.44.5) (2023-11-10)


### Bug Fixes

* [TECH-1627] use only valid combinations of orgUnit and ouMode ([#3405](https://github.com/dhis2/capture-app/issues/3405)) ([20d05f1](https://github.com/dhis2/capture-app/commit/20d05f1602840e8ac1241ee305b796d58f616802))

## [100.44.4](https://github.com/dhis2/capture-app/compare/v100.44.3...v100.44.4) (2023-11-10)


### Bug Fixes

* [DHIS2-15383] align mandatory behaviour for all value types ([#3413](https://github.com/dhis2/capture-app/issues/3413)) ([b0eddc7](https://github.com/dhis2/capture-app/commit/b0eddc76b674ceb20df0eb5bcd0672a3c42d3954))

## [100.44.3](https://github.com/dhis2/capture-app/compare/v100.44.2...v100.44.3) (2023-11-10)


### Bug Fixes

* [DHIS2-15814] missing orgunit names ([#3449](https://github.com/dhis2/capture-app/issues/3449)) ([488f8c0](https://github.com/dhis2/capture-app/commit/488f8c090680ad47ed693214478a7ef2919b82e7))

## [100.44.2](https://github.com/dhis2/capture-app/compare/v100.44.1...v100.44.2) (2023-11-05)


### Bug Fixes

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

## [100.44.1](https://github.com/dhis2/capture-app/compare/v100.44.0...v100.44.1) (2023-11-02)


### Bug Fixes

* [DHIS2-15945] translations in enrollment widget ([#3433](https://github.com/dhis2/capture-app/issues/3433)) ([c188767](https://github.com/dhis2/capture-app/commit/c1887673e56f2f73cfc594b682d471c10858c0fd))

# [100.44.0](https://github.com/dhis2/capture-app/compare/v100.43.0...v100.44.0) (2023-11-01)


### Features

* [DHIS2-15483] assign an user when scheduling an enrollment event ([#3419](https://github.com/dhis2/capture-app/issues/3419)) ([556884f](https://github.com/dhis2/capture-app/commit/556884f7302215c31b7be433bbeb24503ea9b12d))

# [100.43.0](https://github.com/dhis2/capture-app/compare/v100.42.0...v100.43.0) (2023-10-31)


### Bug Fixes

* **translations:** sync translations from transifex (master) ([9636ea1](https://github.com/dhis2/capture-app/commit/9636ea1e8f54685b2c5ca65fd7b49cd3f5d5f846))
* [DHIS2-15879] Unable to schedule event with note ([#3421](https://github.com/dhis2/capture-app/issues/3421)) ([e017ac8](https://github.com/dhis2/capture-app/commit/e017ac8e3df69c4803d2e6f73aa9a585984a008f))


### Features

* [DHIS-14012] removed download as XML button ([#3434](https://github.com/dhis2/capture-app/issues/3434)) ([7b0e387](https://github.com/dhis2/capture-app/commit/7b0e3871c76478aabfd6696a8e7ac27339254299))

# [100.42.0](https://github.com/dhis2/capture-app/compare/v100.41.4...v100.42.0) (2023-10-24)


Expand Down
11 changes: 5 additions & 6 deletions cypress/e2e/EnrollmentPage/StagesAndEventsWidget.feature
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@ Feature: User interacts with Stages and Events Widget

Scenario: User can close the Stages and Events Widget
Given you open the enrollment page
And the program stages should be displayed
When you click the stages and events widget toggle open close button
Then the stages and events widget should be closed

Scenario: User can close and reopen the Stages and Events Widget
Given you open the enrollment page
And the program stages should be displayed
When you click the stages and events widget toggle open close button
Then the stages and events widget should be closed
When you click the stages and events widget toggle open close button
And you click the stages and events widget toggle open close button
Then the program stages should be displayed

Scenario: User can view the list of events
Expand All @@ -21,15 +24,11 @@ Feature: User interacts with Stages and Events Widget
And you see the first 5 events in the table
And you see buttons in the footer list

Scenario: User can view more events
Scenario: User can view more events and then view less
Given you open the enrollment page which has multiples events and stages
When you click show more button in stages&event list
Then more events should be displayed
And reset button should be displayed

Scenario: User can reset events
Given you open the enrollment page which has multiples events and stages
When you click show more button in stages&event list
And you click reset button
Then there should be 5 rows in the table

Expand Down
12 changes: 12 additions & 0 deletions cypress/e2e/MainPage.feature
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,15 @@ Feature: User interacts with Main page
Then you see the opt out component for Child Programme
When you opt out to use the new enrollment Dashboard for Child Programme
Then you see the opt in component for Child Programme

@v<41
Scenario: The icon is rendered as an svg
Given you are in the main page with no selections made
When you select Child Programme
Then the icon is rendered as an svg

@v>=41
Scenario: The icon is rendered as a custom icon
Given you are in the main page with no selections made
When you select Child Programme
Then the icon is rendered as a custom icon
12 changes: 12 additions & 0 deletions cypress/e2e/MainPage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@ And('you can load the view with the name Events assigned to me', () => {
});
});

Then('the icon is rendered as a custom icon', () => {
cy.get('[alt="child_program_positive"]')
.invoke('attr', 'src')
.should('match', /\/icons\/child_program_positive\/icon$/);
});

Then('the icon is rendered as an svg', () => {
cy.get('[alt="child_program_positive"]')
.invoke('attr', 'src')
.should('match', /\/icons\/child_program_positive\/icon.svg$/);
});

Then('the TEI working list is displayed', () => {
cy.get('[data-test="tei-working-lists"]').within(() => {
cy.contains('Rows per page').should('exist');
Expand Down
5 changes: 5 additions & 0 deletions cypress/e2e/NewEventThroughAddRelationship.feature
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@ Feature: User adds events
And you submit the event form with the associated relationship to the already existing person
Then the event and relationship should be sent to the server successfully

Scenario: User gets navigated correctly when clicking on the back button
Given you open the the new event page in Ngelehun and malaria case context
When you navigate to register a person relationship
And you click the cancel button
Then you should be navigated back to the event form
9 changes: 9 additions & 0 deletions cypress/e2e/NewEventThroughAddRelationship/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,12 @@ Then('the event and relationship should be sent to the server successfully', ()
});
});
});

When('you click the cancel button', () => {
cy.get('[data-test="cancel-button"]')
.click();
});

Then('you should be navigated back to the event form', () => {
cy.contains('New Malaria case registration');
});
7 changes: 7 additions & 0 deletions cypress/e2e/NewPage.feature
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@ Feature: User creates a new entries from the registration page
Then you are navigated to the Antenatal care visit registration page
Then program and organisation unit is still selected in top bar

Scenario: Clicking the cancel button should navigate with correct context
Given you are on the default registration page
And you select org unit
And you select Child Programme
When you click the cancel button
Then you are navigated to the working list with programId IpHINAT79UW


### New event in Antenatal care visit
Scenario: New event in Antenatal care visit > Submitting the form with empty visit date throws validation error
Expand Down
1 change: 0 additions & 1 deletion cypress/e2e/SearchPage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ When('you can close the modal', () => {
.contains('Back to search')
.click();
cy.get('[data-test="dhis2-uicore-modal"]')
.contains('No results found')
.should('not.exist');
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Then('the enrollment widget should be closed', () => {

Then('the enrollment widget should be opened', () => {
cy.get('[data-test="widget-enrollment"]').within(() => {
cy.get('[data-test="widget-contents"]').children().should('exist');
cy.get('[data-test="widget-enrollment-contents"]').children().should('exist');
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,8 @@ Feature: The user interacts with the widgets on the enrollment add event page
When you click switch tab to Schedule
Then you should see Schedule tab
And you should see suggested date: 08-01

Scenario: You can assign a user when scheduling an event
Given you land on the enrollment edit event page by having typed /#/enrollmentEventNew?enrollmentId=zRfAPUpjoG3&orgUnitId=DiszpKrYNg8&programId=M3xtLkYBlKI&stageId=uvMKOn1oWvd&teiId=S3JjTA4QMNe
When you click switch tab to Schedule
Then you can assign a user when scheduling the event
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
import { Then } from '@badeball/cypress-cucumber-preprocessor';
import '../sharedSteps';
import '../WidgetEnrollment';
import '../WidgetProfile';
import '../WidgetTab';

Then('you can assign a user when scheduling the event', () => {
cy.get('[data-test="assignee-section"]').within(() => {
cy.get('[data-test="capture-ui-input"]').click();
cy.get('[data-test="capture-ui-input"]').type('Tracker demo');
cy.contains('Tracker demo User').click();
});
cy.get('[data-test="assignee-section"]').within(() => {
cy.get('[data-test="dhis2-uicore-chip"]').contains('Tracker demo User').should('exist');
});
});
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
Feature: The user interacts with the widgets Schedule tab

# Blocked by DHIS2-16229
@skip
Scenario: User cancel after choose a schedule date in schedule tab
Given you land on the enrollment add event page by having typed #/enrollmentEventNew?programId=IpHINAT79UW&orgUnitId=DiszpKrYNg8&teiId=EaOyKGOIGRp&enrollmentId=wBU0RAsYjKE&stageId=A03MvHHogjR&tab=SCHEDULE
Then you should see Schedule tab
Then you choose a schedule date
When you click cancel in Schedule tab
Then you should see confirm dialog
Then you should see confirm dialog
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ When('you click cancel in Schedule tab', () => {
});

Then('you should see confirm dialog', () => {
cy.get('[role="dialog"]')
cy.get('aside[role="dialog"]')
.find('[data-test="dhis2-uicore-modaltitle"]')
.contains('Discard unsaved changes?')
.should('exist');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,12 @@ When('you open the column selector', () => {
});

When('you select Household location and save from the column selector', () => {
cy.get('div[role="dialog"]')
cy.get('aside[role="dialog"]')
.contains('Household location')
.find('input')
.click();

cy.get('div[role="dialog"]')
cy.get('aside[role="dialog"]')
.contains('Save')
.click();
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
Feature: User interacts with tei working lists

Scenario: The TEI custom working can be shared
Given you open the main page with Ngelehun and Malaria focus investigation context
And you see the custom TEI working lists
And you can load the view with the name Events assigned to me
And you create a copy of the working list
When you change the sharing settings
Then you see the new sharing settings

Scenario: User opens the default working list for a tracker program
Given you open the main page with Ngelehun and child programme context
Then the default working list should be displayed
Expand Down Expand Up @@ -81,7 +89,7 @@ When you change rows per page to 10
Then the list should display 10 rows of data
And for a tracker program the page navigation should show that you are on the first page

Scenario: Show teis ordered ascendingly by first name
Scenario: Show teis ordered ascendingly by first name
Given you open the main page with Ngelehun and child programme context
When you click the first name column header
Then the sort arrow should indicate ascending order
Expand All @@ -93,13 +101,7 @@ Given you open the main page with Ngelehun and Malaria focus investigation conte
Then you see the custom TEI working lists
And you can load the view with the name Events assigned to me

Scenario: The TEI custom working can be shared
Given you open the main page with Ngelehun and Malaria focus investigation context
And you see the custom TEI working lists
And you can load the view with the name Events assigned to me
And you create a copy of the working list
When you change the sharing settings
Then you see the new sharing settings


Scenario: The user creates, updates and deletes a TEI custom working list
Given you open the main page with Ngelehun and Malaria case diagnosis context
Expand Down Expand Up @@ -139,7 +141,7 @@ And you select a data element columns and save from the column selector
Then you see data elements specific filters and columns

@v>=39
Scenario: While in a program stage working list, the user can filter by both TEA and data elements
Scenario: While in a program stage working list, the user can filter by both TEA and data elements
Given you open the main page with Ngelehun, WHO RMNCH Tracker and First antenatal care visit context
When you set the enrollment status filter to active
And you apply the current filter
Expand All @@ -152,7 +154,7 @@ And you apply the current filter
Then the list should display 1 row of data

@v>=39
Scenario: While in a program stage working list, the user can sort by both TEA and data elements
Scenario: While in a program stage working list, the user can sort by both TEA and data elements
Given you open the main page with Ngelehun, WHO RMNCH Tracker and First antenatal care visit context
And you set the first name filter to u
And you apply the current filter
Expand Down
Loading

0 comments on commit 9914da2

Please sign in to comment.