Skip to content

Commit

Permalink
feat: Enable epi-weekly periods in filter (#331)
Browse files Browse the repository at this point in the history
* Enable epi-weekly periods in filter

* Fix dev authorization credentials
  • Loading branch information
neeilya authored Sep 2, 2019
1 parent da064f0 commit c3d6afc
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 87 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
REACT_APP_DHIS2_BASE_URL="http://localhost:8080"
REACT_APP_DHIS2_AUTHORIZATION="Basic YWRtaW46ZGlzdHJpY3Q=" # admin/district
REACT_APP_DHIS2_AUTHORIZATION="Basic YWRtaW46ZGlzdHJpY3Q="
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"private": true,
"license": "BSD-3-Clause",
"dependencies": {
"@dhis2/analytics": "^2.3.4",
"@dhis2/d2-i18n": "^1.0.4",
"@dhis2/d2-ui-analytics": "^1.0.5",
"@dhis2/d2-ui-core": "^6.0.1",
"@dhis2/d2-ui-interpretations": "^6.0.1",
"@dhis2/d2-ui-mentions-wrapper": "^6.0.1",
Expand Down
2 changes: 1 addition & 1 deletion src/actions/dimensions.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import keyBy from 'lodash/keyBy';
import sortBy from 'lodash/sortBy';
import { SET_DIMENSIONS } from '../reducers/dimensions';
import { apiFetchDimensions } from '@dhis2/d2-ui-analytics';
import { apiFetchDimensions } from '@dhis2/analytics';
import { sGetSettingsDisplayNameProperty } from '../reducers/settings';

export const acSetDimensions = dimensions => ({
Expand Down
2 changes: 1 addition & 1 deletion src/components/ItemFilter/FilterDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
DynamicDimension,
OrgUnitDimension,
FIXED_DIMENSIONS,
} from '@dhis2/d2-ui-analytics';
} from '@dhis2/analytics';

const peId = FIXED_DIMENSIONS.pe.id;
const ouId = FIXED_DIMENSIONS.ou.id;
Expand Down
2 changes: 1 addition & 1 deletion src/components/ItemFilter/FilterSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import ArrowDropDownIcon from '@material-ui/icons/ArrowDropDown';
import { withTheme } from '@material-ui/core/styles';

import i18n from '@dhis2/d2-i18n';
import { DimensionsPanel } from '@dhis2/d2-ui-analytics';
import { DimensionsPanel } from '@dhis2/analytics';

import { Button } from '@dhis2/ui-core';
import FilterDialog from './FilterDialog';
Expand Down
2 changes: 1 addition & 1 deletion src/reducers/dimensions.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FIXED_DIMENSIONS } from '@dhis2/d2-ui-analytics';
import { FIXED_DIMENSIONS } from '@dhis2/analytics';

export const SET_DIMENSIONS = 'SET_DIMENSIONS';
export const DEFAULT_DIMENSIONS = {
Expand Down
129 changes: 48 additions & 81 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1015,6 +1015,25 @@
resolved "https://registry.yarnpkg.com/@csstools/convert-colors/-/convert-colors-1.4.0.tgz#ad495dc41b12e75d588c6db8b9834f08fa131eb7"
integrity sha512-5a6wqoJV/xEdbRNKVo6I4hO3VjyDq//8q2f9I6PBAvMesJHFauXDorcNCsr9RzvsZnaWi5NYCcfyqP1QeFHFbw==

"@dhis2/analytics@^2.1.0", "@dhis2/analytics@^2.3.4":
version "2.3.4"
resolved "https://registry.yarnpkg.com/@dhis2/analytics/-/analytics-2.3.4.tgz#7132738b957f7342423f039f31b871465c9f4966"
integrity sha512-eLbCGtRRMUWZpvjlAAAfj0zr32J9CpS3oE3yXJlRVcPJwIT7S3xFAkjcgRwazchr5pZnKR/TBwoXmm84mF18zQ==
dependencies:
"@dhis2/d2-i18n" "^1.0.4"
"@dhis2/d2-ui-org-unit-dialog" "^6.1.0"
"@dhis2/d2-ui-period-selector-dialog" "^6.2.0"
"@dhis2/ui-core" "^3.4.0"
"@material-ui/core" "^3.9.3"
"@material-ui/icons" "^3.0.2"
classnames "^2.2.6"
d2-utilizr "^0.2.16"
d3-color "^1.2.3"
highcharts "^7.1.2"
lodash "^4.17.11"
react-beautiful-dnd "^10.1.1"
styled-jsx "^3.2.1"

"@dhis2/d2-i18n-extract@^1.0.7":
version "1.0.7"
resolved "https://registry.yarnpkg.com/@dhis2/d2-i18n-extract/-/d2-i18n-extract-1.0.7.tgz#805c92c75f5d3678a047374a551bda5f7571d7f3"
Expand Down Expand Up @@ -1053,46 +1072,6 @@
dependencies:
i18next "^10.3"

"@dhis2/d2-ui-analytics@^1.0.0":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@dhis2/d2-ui-analytics/-/d2-ui-analytics-1.0.1.tgz#af33771c203c3c4125cdf7327031b5b5f6599a92"
integrity sha512-gEASO8FC5e/uFgIjANfaz8xeB/RyUvklt4Gc1klivy7qzzqevcieJwZtxPReKAnd1wVj849cF3ZAoBC5J0bdIA==
dependencies:
"@dhis2/d2-i18n" "^1.0.4"
"@dhis2/d2-ui-org-unit-dialog" "^5.3.10"
"@dhis2/d2-ui-period-selector-dialog" "^5.3.10"
"@material-ui/core" "^3.9.3"
"@material-ui/icons" "^3.0.2"
classnames "^2.2.6"
lodash "^4.17.11"
react-beautiful-dnd "^10.1.1"
styled-jsx "^3.2.1"

"@dhis2/d2-ui-analytics@^1.0.5":
version "1.0.5"
resolved "https://registry.yarnpkg.com/@dhis2/d2-ui-analytics/-/d2-ui-analytics-1.0.5.tgz#27dfdee86ea423e40381653e916f223928943a91"
integrity sha512-NdXCe+i3en7ZGe3lZ32w3QtOEXzn3leOYuExNwnqsmlIqzHC8M3nYX9N3OlrRtCCpL4AcjUrDJXY09pD2POIGw==
dependencies:
"@dhis2/d2-i18n" "^1.0.4"
"@dhis2/d2-ui-org-unit-dialog" "^6.1.0"
"@dhis2/d2-ui-period-selector-dialog" "^6.1.0"
"@material-ui/core" "^3.9.3"
"@material-ui/icons" "^3.0.2"
classnames "^2.2.6"
lodash "^4.17.11"
react-beautiful-dnd "^10.1.1"
styled-jsx "^3.2.1"

"@dhis2/[email protected]":
version "5.3.11"
resolved "https://registry.yarnpkg.com/@dhis2/d2-ui-core/-/d2-ui-core-5.3.11.tgz#68999560ceba95baad211cf0dd76bb195309fe8b"
integrity sha512-dMpg/3byCrV9FTmHhM7Xc9vuiEbtpm3Wpxn40PcjyIXXh5vu7yl15H9sISt1nRhOrdoF3W+LxiTrYAvjrcr8HA==
dependencies:
babel-runtime "^6.26.0"
d2 "~31.7"
lodash "^4.17.10"
material-ui "^0.20.0"

"@dhis2/[email protected]", "@dhis2/d2-ui-core@^6.0.1":
version "6.0.1"
resolved "https://registry.yarnpkg.com/@dhis2/d2-ui-core/-/d2-ui-core-6.0.1.tgz#a3ad1330c17a7c7390e868126cd3207f2eb54d52"
Expand Down Expand Up @@ -1143,17 +1122,6 @@
lodash "^4.17.10"
prop-types "^15.6.2"

"@dhis2/d2-ui-org-unit-dialog@^5.3.10":
version "5.3.11"
resolved "https://registry.yarnpkg.com/@dhis2/d2-ui-org-unit-dialog/-/d2-ui-org-unit-dialog-5.3.11.tgz#07de91704e631202baf303ecd15dbbaa0d7a9217"
integrity sha512-OvoiPbmikx4Vq+JOuCCPvBg2EVQsLhhWniM1B5Oz7/8oWoFSOrEV4lmiHqtwReBFqXfBeVz31ecNlbYn8Z077Q==
dependencies:
"@dhis2/d2-i18n" "^1.0.3"
"@dhis2/d2-ui-org-unit-tree" "5.3.11"
"@material-ui/core" "^3.3.1"
"@material-ui/icons" "^3.0.1"
prop-types "^15.5.10"

"@dhis2/d2-ui-org-unit-dialog@^6.1.0":
version "6.1.0"
resolved "https://registry.yarnpkg.com/@dhis2/d2-ui-org-unit-dialog/-/d2-ui-org-unit-dialog-6.1.0.tgz#8f941129450097ba42fec19e2d65108368ccca49"
Expand All @@ -1165,18 +1133,6 @@
"@material-ui/icons" "^3.0.1"
prop-types "^15.5.10"

"@dhis2/[email protected]":
version "5.3.11"
resolved "https://registry.yarnpkg.com/@dhis2/d2-ui-org-unit-tree/-/d2-ui-org-unit-tree-5.3.11.tgz#aff965d8916171c41a98e2dee963ae6f8e367325"
integrity sha512-VVcWxJkMWUB9ZDke7wAu2b514DJzYg8VRzQS4sPyG+U52Z2PQlC1ZB3OaaUiABzETWOZWQ0+HV524TU5uLASCQ==
dependencies:
"@dhis2/d2-ui-core" "5.3.11"
"@material-ui/core" "^3.3.1"
babel-runtime "^6.26.0"
prop-types "^15.5.10"
recompose "^0.26.0"
rxjs "^5.5.7"

"@dhis2/[email protected]":
version "6.1.0"
resolved "https://registry.yarnpkg.com/@dhis2/d2-ui-org-unit-tree/-/d2-ui-org-unit-tree-6.1.0.tgz#6604cf93c9d11395e157bdee8ca44133e36673df"
Expand All @@ -1187,26 +1143,13 @@
babel-runtime "^6.26.0"
prop-types "^15.5.10"

"@dhis2/d2-ui-period-selector-dialog@^5.3.10":
version "5.3.11"
resolved "https://registry.yarnpkg.com/@dhis2/d2-ui-period-selector-dialog/-/d2-ui-period-selector-dialog-5.3.11.tgz#32383d6703c45078ea1a6e242a6cf9db2e0b2e56"
integrity sha512-Jy1qhtrwRPqmUa5BrOAJlk/xgwZYlIv8HEroM1v/cOt5QuP4b3Y3PZbpx7w4stBERD0b0UN7rIwjBRbhutrVpw==
dependencies:
"@dhis2/d2-i18n" "^1.0.4"
"@dhis2/d2-ui-analytics" "^1.0.0"
"@material-ui/core" "^3.3.1"
"@material-ui/icons" "^3.0.1"
babel-runtime "^6.26.0"
lodash "^4.17.11"
prop-types "^15.6.0"

"@dhis2/d2-ui-period-selector-dialog@^6.1.0":
version "6.1.0"
resolved "https://registry.yarnpkg.com/@dhis2/d2-ui-period-selector-dialog/-/d2-ui-period-selector-dialog-6.1.0.tgz#c7b5b20b44923d9b6e180bb90e3ccd1889dc419d"
integrity sha512-JOKX/UgOgaINSL09tqVOy0l98W7koZh045c6H3iDxf6WE8u3i2/Gj1FEGIrV3/GfZ0hHov9+sdboTL4f85OnUA==
"@dhis2/d2-ui-period-selector-dialog@^6.2.0":
version "6.2.1"
resolved "https://registry.yarnpkg.com/@dhis2/d2-ui-period-selector-dialog/-/d2-ui-period-selector-dialog-6.2.1.tgz#e2345e1a7a3095c18fba9a893bbac6042cd037a7"
integrity sha512-1MCV+pEZxhNqofADV/Xg4KBs76H9yXDwTQhHj9iXU8worvxiXaQKY+dY1yh99G1FVrZykUMEUnSmhj8okfk8yg==
dependencies:
"@dhis2/analytics" "^2.1.0"
"@dhis2/d2-i18n" "^1.0.4"
"@dhis2/d2-ui-analytics" "^1.0.0"
"@material-ui/core" "^3.3.1"
"@material-ui/icons" "^3.0.1"
babel-runtime "^6.26.0"
Expand Down Expand Up @@ -1274,6 +1217,11 @@
react "^16.6.0"
react-dom "^16.6.0"

"@dhis2/prop-types@^1.0.3":
version "1.0.4"
resolved "https://registry.yarnpkg.com/@dhis2/prop-types/-/prop-types-1.0.4.tgz#37eb55a3baf7bc9cf76e19222ad4e2d0e465be8f"
integrity sha512-BiDR0KKn5fyUQ12u6XPq9pLs/tKR3hwiLzSWc+wVxN/enwgb8XUnLpt+Schc/ZBZq+sGozeUfPbFMRqIsifsIA==

"@dhis2/[email protected]":
version "2.5.1"
resolved "https://registry.yarnpkg.com/@dhis2/ui-core/-/ui-core-2.5.1.tgz#da24154f6ca02659ecc6725dfafc5a16c77dfb12"
Expand All @@ -1282,6 +1230,15 @@
classnames "^2.2.6"
styled-jsx "^3.2.1"

"@dhis2/ui-core@^3.4.0":
version "3.9.0"
resolved "https://registry.yarnpkg.com/@dhis2/ui-core/-/ui-core-3.9.0.tgz#67711e7446e7045a9b90b094a616b11bb7a91514"
integrity sha512-xZ58Z6RSuLCe2t06wWIB6uq9W65CkPJOtf0IQGeFTeelsGL9GTQVICUTZohE78g185qR94WxIEUIID/o1HK/sA==
dependencies:
"@dhis2/prop-types" "^1.0.3"
classnames "^2.2.6"
styled-jsx "^3.2.1"

"@dhis2/[email protected]":
version "1.0.0-beta.15"
resolved "https://registry.yarnpkg.com/@dhis2/ui/-/ui-1.0.0-beta.15.tgz#3dc7484174f1db686dd6f10cbad8271d84f3a0b9"
Expand Down Expand Up @@ -3805,6 +3762,11 @@ [email protected]:
resolved "https://registry.yarnpkg.com/d3-color/-/d3-color-1.0.1.tgz#73cc91f4ee3f12e00ca06b1596a7c83cf104723a"
integrity sha1-c8yR9O4/EuAMoGsVlqfIPPEEcjo=

d3-color@^1.2.3:
version "1.3.0"
resolved "https://registry.yarnpkg.com/d3-color/-/d3-color-1.3.0.tgz#675818359074215b020dc1d41d518136dcb18fa9"
integrity sha512-NHODMBlj59xPAwl2BDiO2Mog6V+PrGRtBfWKqKRrs9MCqlSkIEb0Z/SfY7jW29ReHTDC/j+vwXhnZcXI3+3fbg==

damerau-levenshtein@^1.0.4:
version "1.0.5"
resolved "https://registry.yarnpkg.com/damerau-levenshtein/-/damerau-levenshtein-1.0.5.tgz#780cf7144eb2e8dbd1c3bb83ae31100ccc31a414"
Expand Down Expand Up @@ -5630,6 +5592,11 @@ highcharts@^6.2.0:
resolved "https://registry.yarnpkg.com/highcharts/-/highcharts-6.2.0.tgz#2a6d04652eb43c66f462ca7e2d2808f1f2782b61"
integrity sha512-A4E89MA+kto8giic7zyLU6ZxfXnVeCUlKOyzFsah3+n4BROx4bgonl92KIBtwLud/mIWir8ahqhuhe2by9LakQ==

highcharts@^7.1.2:
version "7.1.3"
resolved "https://registry.yarnpkg.com/highcharts/-/highcharts-7.1.3.tgz#ea3bb16dcdd780e757ab10e90466c64a82b6d285"
integrity sha512-aHAzlSf/czqJlpVt96jYkirWrIV1ZNHgxsTAyk2R5CcG/0V1G8Ge65p76eFqZQp7C8+cA8e6g1xsAPj51MsJ3Q==

history@^4.7.2:
version "4.9.0"
resolved "https://registry.yarnpkg.com/history/-/history-4.9.0.tgz#84587c2068039ead8af769e9d6a6860a14fa1bca"
Expand Down

0 comments on commit c3d6afc

Please sign in to comment.