Skip to content

Commit

Permalink
Merge branch 'master' into fix/list-resolve-reference-names
Browse files Browse the repository at this point in the history
  • Loading branch information
Birkbjo committed Nov 27, 2023
2 parents 68d8bba + 88e1a58 commit 929e1b3
Show file tree
Hide file tree
Showing 39 changed files with 1,621 additions and 959 deletions.
153 changes: 112 additions & 41 deletions i18n/en.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
<<<<<<< HEAD
"POT-Creation-Date: 2023-10-20T11:27:17.939Z\n"
"PO-Revision-Date: 2023-10-20T11:27:17.939Z\n"
=======
"POT-Creation-Date: 2023-11-22T13:05:25.319Z\n"
"PO-Revision-Date: 2023-11-22T13:05:25.319Z\n"
>>>>>>> master

msgid "schemas"
msgstr "schemas"
Expand Down Expand Up @@ -48,6 +53,15 @@ msgstr "Search for menu items"
msgid "Search icons"
msgstr "Search icons"

msgid "Select"
msgstr "Select"

msgid "Remove icon"
msgstr "Remove icon"

msgid "Cancel"
msgstr "Cancel"

msgid "Retry"
msgstr "Retry"

Expand Down Expand Up @@ -75,6 +89,9 @@ msgstr "None"
msgid "Filter legend sets"
msgstr "Filter legend sets"

msgid "<No value>"
msgstr "<No value>"

msgid "Option set"
msgstr "Option set"

Expand Down Expand Up @@ -108,9 +125,21 @@ msgstr "Short name"
msgid "Code"
msgstr "Code"

<<<<<<< HEAD
msgid "Created"
msgstr "Created"

=======
msgid "Created by"
msgstr "Created by"

msgid "Created"
msgstr "Created"

msgid "Last updated by"
msgstr "Last updated by"

>>>>>>> master
msgid "Last updated"
msgstr "Last updated"

Expand Down Expand Up @@ -141,9 +170,6 @@ msgstr "Type to filter options"
msgid "No matches"
msgstr "No matches"

msgid "Data set"
msgstr "Data set"

msgid "Clear all filters"
msgstr "Clear all filters"

Expand All @@ -168,9 +194,6 @@ msgstr "Failed to save"
msgid "Manage {{section}} table columns"
msgstr "Manage {{section}} table columns"

msgid "Cancel"
msgstr "Cancel"

msgid "Update table columns"
msgstr "Update table columns"

Expand Down Expand Up @@ -246,6 +269,9 @@ msgstr "Data element group set"
msgid "Data element group sets"
msgstr "Data element group sets"

msgid "Data set"
msgstr "Data set"

msgid "Data sets"
msgstr "Data sets"

Expand Down Expand Up @@ -585,6 +611,7 @@ msgstr "Image"
msgid "GeoJSON"
msgstr "GeoJSON"

<<<<<<< HEAD
msgid "Created by"
msgstr "Created by"

Expand All @@ -594,6 +621,11 @@ msgstr "Favorite"
msgid "Last updated by"
msgstr "Last updated by"

=======
msgid "Favorite"
msgstr "Favorite"

>>>>>>> master
msgid "Domain type"
msgstr "Domain type"

Expand All @@ -603,12 +635,21 @@ msgstr "Name"
msgid "Sharing"
msgstr "Sharing"

<<<<<<< HEAD
=======
msgid "Value type"
msgstr "Value type"

>>>>>>> master
msgid "Owner"
msgstr "Owner"

msgid "Zero is significant"
msgstr "Zero is significant"

msgid "Custom attributes"
msgstr "Custom attributes"

msgid "Something went wrong when submitting the form"
msgstr "Something went wrong when submitting the form"

Expand All @@ -621,12 +662,64 @@ msgstr "Exit without saving"
msgid "Create data element"
msgstr "Create data element"

msgid "Loading custom attributes"
msgstr "Loading custom attributes"

msgid "Something went wrong with retrieving the custom attributes"
msgstr "Something went wrong with retrieving the custom attributes"

msgid "Basic information"
msgstr "Basic information"

msgid "Set up the information for this data element"
msgstr "Set up the information for this data element"

msgid "Disaggregation and Option sets"
msgstr "Disaggregation and Option sets"

msgid "Set up disaggregation and predefined options."
msgstr "Set up disaggregation and predefined options."

msgid "LegendSet"
msgstr "LegendSet"

msgid ""
"Visualize values for this data element in Analytics app. Multiple legendSet "
"can be applied."
msgstr ""
"Visualize values for this data element in Analytics app. Multiple legendSet "
"can be applied."

msgid "Aggregation levels"
msgstr "Aggregation levels"

msgid ""
"By default, the aggregation will start at the lowest assigned organisation "
"unit. If you for example select \"Chiefdom\", it means that \"Chiefdom\", "
"\"District\" and \"National\" aggregates use \"Chiefdom\" (the highest "
"aggregation level available) as the data source, and PHU data will not be "
"included. PHU will still be available for the PHU level, but not included "
"in the aggregations to the levels above."
msgstr ""
"By default, the aggregation will start at the lowest assigned organisation "
"unit. If you for example select \"Chiefdom\", it means that \"Chiefdom\", "
"\"District\" and \"National\" aggregates use \"Chiefdom\" (the highest "
"aggregation level available) as the data source, and PHU data will not be "
"included. PHU will still be available for the PHU level, but not included "
"in the aggregations to the levels above."

msgid "Custom fields for your DHIS2 instance"
msgstr "Custom fields for your DHIS2 instance"

msgid "Required"
msgstr "Required"

msgid "Cannot be longer than {{number}} character"
msgstr "Cannot be longer than {{number}} character"

msgid "The value is to long. You can use up to 255 characters"
msgstr "The value is to long. You can use up to 255 characters"

msgid "{{fieldLabel}} (required)"
msgstr "{{fieldLabel}} (required)"

Expand All @@ -648,6 +741,16 @@ msgstr "Url"
msgid "A web link that provides extra information"
msgstr "A web link that provides extra information"

msgid "Color and icon"
msgstr "Color and icon"

msgid ""
"A color and icon are helpful for identifying data elements in "
"information-dense screens."
msgstr ""
"A color and icon are helpful for identifying data elements in "
"information-dense screens."

msgid "Field mask"
msgstr "Field mask"

Expand All @@ -666,41 +769,6 @@ msgstr "An alternative name used in section or automatic data entry forms."
msgid "Store zero data values"
msgstr "Store zero data values"

msgid "Disaggregation and Option sets"
msgstr "Disaggregation and Option sets"

msgid "Set up disaggregation and predefined options."
msgstr "Set up disaggregation and predefined options."

msgid "LegendSet"
msgstr "LegendSet"

msgid ""
"Visualize values for this data element in Analytics app. Multiple legendSet "
"can be applied."
msgstr ""
"Visualize values for this data element in Analytics app. Multiple legendSet "
"can be applied."

msgid "Aggregation levels"
msgstr "Aggregation levels"

msgid "Custom attributes"
msgstr "Custom attributes"

msgid "Custom fields for your DHIS2 instance"
msgstr "Custom fields for your DHIS2 instance"

msgid "Color and icon"
msgstr "Color and icon"

msgid ""
"A color and icon are helpful for identifying data elements in "
"information-dense screens."
msgstr ""
"A color and icon are helpful for identifying data elements in "
"information-dense screens."

msgid "A data element can either be aggregated or tracked data."
msgstr "A data element can either be aggregated or tracked data."

Expand Down Expand Up @@ -734,6 +802,9 @@ msgstr "Option set comment"
msgid "Choose a set of predefined comment for data entry"
msgstr "Choose a set of predefined comment for data entry"

msgid "This field requires a unique value, please choose another one"
msgstr "This field requires a unique value, please choose another one"

msgid "Metadata management"
msgstr "Metadata management"

Expand Down
7 changes: 7 additions & 0 deletions jest-setup.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import { configure } from '@testing-library/react'
import '@testing-library/jest-dom'

// Not defined on nodejs
window.IntersectionObserver = jest.fn(() => ({
observe: jest.fn(),
unobserve: jest.fn(),
disconnect: jest.fn(),
}))

beforeEach(() => {
configure({ testIdAttribute: 'data-test' })
})
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
"dependencies": {
"@dhis2/app-runtime": "^3.9.3",
"@dhis2/ui": "8.14.2-alpha.1",
"@dhis2/ui": "^8.15.0-alpha.3",
"@types/lodash": "^4.14.198",
"lodash": "^4.17.21",
"react-color": "^2.19.3",
Expand All @@ -50,6 +50,6 @@
"zustand": "^4.4.0"
},
"resolutions": {
"@dhis2/ui": "8.14.2-alpha.1"
"@dhis2/ui": "8.15.0-alpha.3"
}
}
1 change: 0 additions & 1 deletion src/components/ColorAndIconPicker/ColorAndIconPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export function ColorAndIconPicker({
return (
<div className={classes.container}>
<ColorPicker color={color} onColorPick={onColorPick} />

<IconPicker icon={icon} onIconPick={onIconPick} />
</div>
)
Expand Down
5 changes: 3 additions & 2 deletions src/components/ColorAndIconPicker/ColorPicker.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
gap: var(--spacers-dp8);
padding: var(--spacers-dp8);
border-radius: 3px;
border: 1px solid var(--colors-grey600);
border: 1px solid var(--colors-grey500);
background: var(--colors-white);
width: 68px;
cursor: pointer;
Expand All @@ -15,7 +15,8 @@
justify-content: center;
height: 26px;
width: 26px;
border: 1px solid var(--colors-black);
border: 1px dashed var(--colors-grey400);
border-radius: 2px;
}

.hasColor .chosenColor {
Expand Down
Loading

0 comments on commit 929e1b3

Please sign in to comment.