Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into eh/feat/DHIS2-16262…
Browse files Browse the repository at this point in the history
…_CustomEnrollmentOverviewSchema

# Conflicts:
#	i18n/en.pot
  • Loading branch information
eirikhaugstulen committed Jan 22, 2024
2 parents baad124 + 3254686 commit b386fbd
Show file tree
Hide file tree
Showing 97 changed files with 1,552 additions and 983 deletions.
77 changes: 77 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,80 @@
## [100.50.6](https://github.com/dhis2/capture-app/compare/v100.50.5...v100.50.6) (2024-01-21)


### Bug Fixes

* [DHIS2-16352] Add spacing between event overview cards ([#3500](https://github.com/dhis2/capture-app/issues/3500)) ([2041d60](https://github.com/dhis2/capture-app/commit/2041d605454529b3bcd77fa3b53a4655ae1495cf))

## [100.50.5](https://github.com/dhis2/capture-app/compare/v100.50.4...v100.50.5) (2024-01-21)


### Bug Fixes

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

## [100.50.4](https://github.com/dhis2/capture-app/compare/v100.50.3...v100.50.4) (2024-01-14)


### Bug Fixes

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

## [100.50.3](https://github.com/dhis2/capture-app/compare/v100.50.2...v100.50.3) (2023-12-24)


### Bug Fixes

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

## [100.50.2](https://github.com/dhis2/capture-app/compare/v100.50.1...v100.50.2) (2023-12-20)


### Bug Fixes

* [TECH-1676] cypress test deleting wrong working list template ([#3489](https://github.com/dhis2/capture-app/issues/3489)) ([b5e038b](https://github.com/dhis2/capture-app/commit/b5e038b823128386f7106da46025a2a38a00db1b))

## [100.50.1](https://github.com/dhis2/capture-app/compare/v100.50.0...v100.50.1) (2023-12-20)


### Bug Fixes

* [DHIS2-16317] Incorrect error message on orgUnit type data element ([#3484](https://github.com/dhis2/capture-app/issues/3484)) ([ef30449](https://github.com/dhis2/capture-app/commit/ef304499fda3296320ca71fae72d33f2dfad88fa))

# [100.50.0](https://github.com/dhis2/capture-app/compare/v100.49.0...v100.50.0) (2023-12-18)


### Features

* [DHIS-11419] display assigned users on events in enrollment overview page ([#3453](https://github.com/dhis2/capture-app/issues/3453)) ([44fb2be](https://github.com/dhis2/capture-app/commit/44fb2bedf0e2f9d394c58d5a588087cff2c8fa3c))

# [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)


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
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,12 @@ When('you open the column selector', () => {
});

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

cy.get('div[role="dialog"]')
cy.get('aside[role="dialog"]')
.contains('Save')
.click();
});
Expand Down Expand Up @@ -544,27 +544,33 @@ Then('you see the new sharing settings', () => {
.click();
});

When('you create a copy of the working list', () => {
cy.get('[data-test="list-view-menu-button"]')
.click();
When('you create a copy of the working list',
() => {
cy.get('[data-test="list-view-menu-button"]')
.click();

cy.contains('Save current view as')
.click();
cy.contains('Save current view as')
.click();

const id = uuid();
cy.get('[data-test="view-name-content"]')
.type(id);
const id = uuid();
cy.get('[data-test="view-name-content"]')
.type(id);

cy.intercept('POST', '**/trackedEntityInstanceFilters**').as('newTrackerFilter');
cy.intercept('POST', '**/trackedEntityInstanceFilters**')
.as('newTrackerFilter');

cy.get('button')
.contains('Save')
.click();
cy.get('[data-test="new-template-dialog"]')
.within(() => {
cy.get('[data-test="dhis2-uicore-button"]')
.contains('Save')
.click();
});

cy.wait('@newTrackerFilter', { timeout: 30000 });
cy.wait('@newTrackerFilter', { timeout: 30000 });
cy.url({ timeout: 30000 }).should('not.include', 'selectedTemplateId=PpGINOT00UX');

cy.reload();
});
cy.reload();
});

When('you open the program stage filters from the more filters dropdown menu', () => {
cy.get('[data-test="tei-working-lists"]')
Expand Down Expand Up @@ -602,12 +608,12 @@ When('you select the Foci response program stage', () => {
});

When('you select a data element columns and save from the column selector', () => {
cy.get('div[role="dialog"]')
cy.get('aside[role="dialog"]')
.contains('People included')
.find('input')
.click();

cy.get('div[role="dialog"]')
cy.get('aside[role="dialog"]')
.contains('Save')
.click();
});
Expand Down Expand Up @@ -663,12 +669,12 @@ Then('you see scheduledAt filter', () => {
});

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

cy.get('div[role="dialog"]')
cy.get('aside[role="dialog"]')
.contains('Save')
.click();
});
Expand Down
117 changes: 64 additions & 53 deletions flow-typed/npm/@dhis2/ui_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,56 +1,67 @@
// flow-typed signature: c6feccb0af432a25a3ab1270f8309035
// flow-typed version: <<STUB>>/@dhis2/ui_v^6.1/flow_v0.132.0

/**
* This is an autogenerated libdef stub for:
*
* '@dhis2/ui'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/

declare module '@dhis2/ui' {
declare module.exports: any;
}

/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
* Flowtype definitions for index
* Generated by Flowgen from a Typescript Definition
* Flowgen v1.21.0
*/
declare module '@dhis2/ui/build/cjs/lib' {
declare module.exports: any;
}

declare module '@dhis2/ui/build/es/lib' {
declare module.exports: any;
}

declare module '@dhis2/ui/d2.config' {
declare module.exports: any;
}

declare module '@dhis2/ui/src' {
declare module.exports: any;
}

// Filename aliases
declare module '@dhis2/ui/build/cjs/lib.js' {
declare module.exports: $Exports<'@dhis2/ui/build/cjs/lib'>;
}
declare module '@dhis2/ui/build/es/lib.js' {
declare module.exports: $Exports<'@dhis2/ui/build/es/lib'>;
}
declare module '@dhis2/ui/d2.config.js' {
declare module.exports: $Exports<'@dhis2/ui/d2.config'>;
}
declare module '@dhis2/ui/src/index' {
declare module.exports: $Exports<'@dhis2/ui/src'>;
}
declare module '@dhis2/ui/src/index.js' {
declare module.exports: $Exports<'@dhis2/ui/src'>;
}
declare export * from "@dhis2/ui-constants";
declare export * from "@dhis2/ui-icons";
declare export * from "@dhis2/ui-forms";
declare export * from "@dhis2-ui/alert";
declare export * from "@dhis2-ui/button";
declare export * from "@dhis2-ui/box";
declare export * from "@dhis2-ui/calendar";
declare export * from "@dhis2-ui/card";
declare export * from "@dhis2-ui/center";
declare export * from "@dhis2-ui/checkbox";
declare export * from "@dhis2-ui/chip";
declare export * from "@dhis2-ui/cover";
declare export * from "@dhis2-ui/css";
declare export * from "@dhis2-ui/divider";
declare export * from "@dhis2-ui/field";
declare export * from "@dhis2-ui/file-input";
declare export * from "@dhis2-ui/header-bar";
declare export * from "@dhis2-ui/help";
declare export * from "@dhis2-ui/input";
declare export * from "@dhis2-ui/intersection-detector";
declare export * from "@dhis2-ui/label";
declare export * from "@dhis2-ui/layer";
declare export * from "@dhis2-ui/legend";
declare export * from "@dhis2-ui/loader";
declare export * from "@dhis2-ui/logo";
declare export * from "@dhis2-ui/menu";
declare export * from "@dhis2-ui/modal";
declare export * from "@dhis2-ui/node";
declare export * from "@dhis2-ui/notice-box";
declare export * from "@dhis2-ui/organisation-unit-tree";
declare export * from "@dhis2-ui/popover";
declare export { Popper, PopperProps } from "@dhis2-ui/popper";
declare export * from "@dhis2-ui/portal";
declare export * from "@dhis2-ui/radio";
declare export * from "@dhis2-ui/required";
declare export { Pagination, PaginationProps } from "@dhis2-ui/pagination";
declare export * from "@dhis2-ui/sharing-dialog";
declare export {
SingleSelect,
SingleSelectField,
SingleSelectOption,
MultiSelect,
MultiSelectField,
MultiSelectOption,
SingleSelectProps,
SingleSelectFieldProps,
SingleSelectOptionProps,
MultiSelectProps,
MultiSelectFieldProps,
MultiSelectOptionProps,
} from "@dhis2-ui/select";
declare export * from "@dhis2-ui/selector-bar";
declare export * from "@dhis2-ui/switch";
declare export * from "@dhis2-ui/table";
declare export * from "@dhis2-ui/tab";
declare export * from "@dhis2-ui/tag";
declare export * from "@dhis2-ui/text-area";
declare export * from "@dhis2-ui/tooltip";
declare export * from "@dhis2-ui/transfer";
declare export * from "@dhis2-ui/user-avatar";
declare export * from "@dhis2-ui/segmented-control";
Loading

0 comments on commit b386fbd

Please sign in to comment.