-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: port to app-platform #17
Conversation
07eee51
to
34d31e6
Compare
package.json
Outdated
}, | ||
"homepage": "https://github.com/dhis2/datastore-app", | ||
"devDependencies": { | ||
"babel-core": "^6.17.0", | ||
"babel-eslint": "^7.1.1", | ||
"babel-loader": "^6.2.5", | ||
"babel-preset-es2015": "^6.16.0", | ||
"babel-preset-react": "^6.16.0", | ||
"babel-preset-stage-0": "^6.16.0", | ||
"btoa": "^1.1.2", | ||
"chai": "^3.5.0", | ||
"css-loader": "^0.25.0", | ||
"enzyme": "^2.6.0", | ||
"eslint": "^3.10.2", | ||
"eslint-config-dhis2": "^2.0.2", | ||
"eslint-plugin-mocha": "^4.7.0", | ||
"eslint-plugin-prefer-object-spread": "^1.1.0", | ||
"eslint-plugin-react": "^4.1.0", | ||
"html-webpack-plugin": "^2.30.1", | ||
"ignore-styles": "^5.0.1", | ||
"isomorphic-fetch": "^2.2.1", | ||
"jsdom": "^9.8.3", | ||
"json-loader": "^0.5.4", | ||
"mocha": "^3.1.2", | ||
"node-sass": "^4.13.1", | ||
"react-addons-test-utils": "^15.4.1", | ||
"react-bootstrap": "^0.30.7", | ||
"react-hot-loader": "^3.0.0-beta.5", | ||
"react-tools": "^0.13.3", | ||
"redux-devtools": "^3.3.1", | ||
"redux-logger": "^2.7.0", | ||
"redux-mock-store": "^1.2.1", | ||
"resolve-url-loader": "^1.6.0", | ||
"sass-loader": "7", | ||
"style-loader": "^0.13.1", | ||
"url-loader": "^0.5.7", | ||
"webpack": "^1.13.2", | ||
"webpack-dev-server": "^1.16.2" | ||
}, | ||
"dependencies": { | ||
"babel-polyfill": "^6.23.0", | ||
"d2": "^27.0.0-5", | ||
"d2-manifest": "^1.0.0", | ||
"d2-ui": "^27.0.0-6", | ||
"d2-utilizr": "^0.2.9", | ||
"flow-bin": "^0.33.0", | ||
"jsoneditor": "^5.5.10", | ||
"material-ui": "^0.16.4", | ||
"react": "^15.4.0", | ||
"react-chartjs-2": "1.5.1", | ||
"react-dom": "^15.4.0", | ||
"react-hot-loader": "^3.0.0-beta.5", | ||
"react-json": "^0.2.1", | ||
"react-json-inspector": "^7.0.0", | ||
"react-json-pretty": "^1.2.1", | ||
"react-redux": "^4.4.5", | ||
"react-router": "3", | ||
"react-tap-event-plugin": "^2.0.1", | ||
"react-tools": "^0.13.3", | ||
"redux": "^3.6.0", | ||
"redux-devtools": "^3.3.1", | ||
"redux-promise-middleware": "^4.1.0", | ||
"redux-thunk": "^2.1.0", | ||
"sprintf-js": "^1.0.3" | ||
} | ||
"name": "datastore-app", | ||
"version": "1.0.0", | ||
"description": "", | ||
"license": "BSD-3-Clause", | ||
"private": true, | ||
"scripts": { | ||
"build": "d2-app-scripts build", | ||
"start": "d2-app-scripts start", | ||
"test": "d2-app-scripts test", | ||
"lint:js": "d2-style js check", | ||
"lint:text": "d2-style text check", | ||
"lint:staged": "yarn lint:js --staged && yarn lint:text --staged", | ||
"lint": "yarn lint:js && yarn lint:text", | ||
"format:js": "d2-style js apply", | ||
"format:text": "d2-style text apply", | ||
"format:staged": "yarn format:js --staged && yarn format:text --staged", | ||
"format": "yarn format:js && yarn format:text" | ||
}, | ||
"devDependencies": { | ||
"@dhis2/cli-app-scripts": "^5.7.0", | ||
"@dhis2/cli-style": "^7.3.0" | ||
}, | ||
"dependencies": { | ||
"@dhis2/app-runtime": "^2.7.0", | ||
"@dhis2/app-runtime-adapter-d2": "^1.0.2", | ||
"@dhis2/prop-types": "^2.0.3", | ||
"d2": "^31.9.0", | ||
"jsoneditor": "^9.2.0", | ||
"material-ui": "0.19.0", | ||
"react-redux": "^7.2.2", | ||
"react-router": "3.0.5", | ||
"react-router-dom": "^5.2.0", | ||
"redux": "^4.0.5", | ||
"redux-thunk": "^2.3.0" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These package.json diffs always make me happy! 🥇
Awesome work here @mediremi ! On first pass this looks really good. Huge PR though, from the commit messages it looks like there might be some functional changes or fixes mixed in here too... were those all issues caused by the port? Can you quickly describe any functional changes made here too? Thanks!! |
@amcgee I've updated the PR description with a detailed breakdown of changes. Unfortunately the diff looks much bigger than it should be due to formatting and import changes causing git to show file renames as two separate files instead 😞 I should probably use |
# [1.2.0](v1.1.0...v1.2.0) (2021-03-09) ### Features * port to app-platform ([#17](#17)) ([3012cb7](3012cb7))
🎉 This PR is included in version 1.2.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
* chore: add .github folder * fix: remove scss * fix: use @dhis2/prop-types * fix: use onClick instead of onTouchTap * fix: remove navigation bar * fix: update jsoneditor to fix rendering * refactor: remove unused routes * fix: use i18n * feat: add LICENSE.md * refactor: remove history-related actions * chore: remove react-router-dom dependency
* feat: port to app-platform (#17) * chore: add .github folder * fix: remove scss * fix: use @dhis2/prop-types * fix: use onClick instead of onTouchTap * fix: remove navigation bar * fix: update jsoneditor to fix rendering * refactor: remove unused routes * fix: use i18n * feat: add LICENSE.md * refactor: remove history-related actions * chore: remove react-router-dom dependency * feat: upgrade to @dhis2/ui v6 and bump other dependency versions (#23) * feat: upgrade to @dhis2/ui v6 and bump other dependency versions * chore: add file extension to entry point in config
Closes https://jira.dhis2.org/browse/DHIS2-10482
Changes
Required due to port
componentWillReceiveProps
toUNSAFE_componentWillReceiveProps
andcomponentWillUpdate
toUNSAFE_componentWillUpdate
@dhis2/prop-types
webpack resolve
plugin inapp-platform
jsoneditor
in order to fix rendering issues with new React and stylescomponentWillReceiveProps
ofJSONEditor
by shallow comparing previous props and current props instead of comparing by referenceCircularLoader
from@dhis2/ui
due to custom spinner using SCSS mixins for stylingFunctional changes
NavigationBar
as it was superseded by app platformHeaderBar
webapp/js/components/display/history/*.js
andwebapp/js/components/display/statistics/*.js
)Api
methodmaterial-ui
from0.16.4
to0.19.0
in order to removereact-tap-event-plugin
dependencyonTouchTap
handlers toonClick
for allmaterial-ui
componentsApi
class (old, new)Map
Map
has a.has(key)
method, which does not suffer from the same problems askey in object
(i.e. do not have to usehasOwnProperty
, which may or may not exist and triggers a eslint error)this.fn = this.fn.bind(this)
pattern in React class components to arrow functionsFurther work to do in the future
material-ui
with@dhis2/ui
d2
with@dhis2/app-runtime
and remove@dhis2/app-runtime-adapter-d2
react-router
withreact-router-dom