Skip to content
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

Implemented Feature Editor Plugin #2064

Merged
merged 14 commits into from
Jul 31, 2017

Conversation

offtherailz
Copy link
Member

@offtherailz offtherailz commented Jul 27, 2017

We should evaluate to:

  • Replace the hold grid example with the new grid
  • Hide unwanted tools in edit mode as in the mockup

Other minor fixes:

* Replaces agGrid with react-data-grid (moved to FeatureGrid_ag)
* Implementation of FeatureEditor plugin
@coveralls
Copy link

coveralls commented Jul 27, 2017

Coverage Status

Coverage decreased (-0.1%) to 79.832% when pulling 8777146 on offtherailz:featureeditor into 008969b on geosolutions-it:master.

package.json Outdated
@@ -131,6 +132,7 @@
"react-container-dimensions": "1.3.2",
"react-copy-to-clipboard": "5.0.0",
"react-data-grid": "2.0.41",
"react-data-grid-addons": "^2.0.49",
"react-dnd": "2.4.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove ^

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove react-data-grid-addons at all. It is not used anymore.

@@ -22,8 +22,12 @@ const mapTypeSelector = (state) => state && state.maptype && state.maptype.mapTy
* @return {boolean}
*/
const isCesium = state => mapTypeSelector(state) === "cesium";
const isLeaflet = state => mapTypeSelector(state) === "leaflet";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where are you using this?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is not used anymore, but i think it can be useful in the future. But i can understand your point.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would replace all 3 with a generic is('<maptype')

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 80.141% when pulling 9372135 on offtherailz:featureeditor into 008969b on geosolutions-it:master.

@geosolutions-it geosolutions-it deleted a comment from offtherailz Jul 28, 2017
@geosolutions-it geosolutions-it deleted a comment from offtherailz Jul 28, 2017
Copy link
Contributor

@mbarto mbarto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The FeatureGrid example does not work anymore

Copy link
Contributor

@mbarto mbarto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After the query builder is open, the DrawerMenu cannot be closed anymore

@geosolutions-it geosolutions-it deleted a comment Jul 28, 2017
* added tests
* highlight generalized
* improved drawermenu actions flows
@geosolutions-it geosolutions-it deleted a comment Jul 28, 2017
static contextTypes = {
messages: PropTypes.object
static childContextTypes = {
isModified: React.PropTypes.func,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use PropTypes, not React.PropTypes

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch!

};
constructor(props) {
super(props);
this.validate = (value) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can also take this methods definitions out of the constructor and remove it

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was my first attempt, but it didn't worked. Probably because it is a derived class.

@@ -125,40 +189,43 @@ class DrawSupport extends React.Component {
}
});
this.props.map.addLayer(vector);
// Immidiatly draw passed features
// Immediatly draw passed features
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Immediately :-)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, it was a partial fix.. o(ò ò)o

@geosolutions-it geosolutions-it deleted a comment Jul 28, 2017
@coveralls
Copy link

Coverage Status

Coverage increased (+0.5%) to 80.39% when pulling d193db5 on offtherailz:featureeditor into 03a92db on geosolutions-it:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.5%) to 80.39% when pulling f6ac6f2 on offtherailz:featureeditor into 03a92db on geosolutions-it:master.

@geosolutions-it geosolutions-it deleted a comment Jul 28, 2017
@geosolutions-it geosolutions-it deleted a comment Jul 31, 2017
@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 80.381% when pulling 4c565b6 on offtherailz:featureeditor into 03a92db on geosolutions-it:master.

@geosolutions-it geosolutions-it deleted a comment Jul 31, 2017
@coveralls
Copy link

Coverage Status

Coverage increased (+0.5%) to 80.389% when pulling 3de53b6 on offtherailz:featureeditor into 03a92db on geosolutions-it:master.

* Added new styles on feature grid

* Fix webpack
@geosolutions-it geosolutions-it deleted a comment Jul 31, 2017
@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 80.381% when pulling 4e5711f on offtherailz:featureeditor into 03a92db on geosolutions-it:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.5%) to 80.389% when pulling 4e5711f on offtherailz:featureeditor into 03a92db on geosolutions-it:master.

@offtherailz offtherailz merged commit a981157 into geosolutions-it:master Jul 31, 2017
@offtherailz offtherailz deleted the featureeditor branch February 18, 2020 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants