hotosm / osm-tasking-manager2

Designed and built for Humanitarian OpenStreetMap Team collaborative emergency/disaster mapping, the OSM Tasking Manager 2.0 divides an area into individual squares that can be rapidly mapped by thousands of volunteers.
http://tasks.hotosm.org
Other
425 stars 156 forks source link

Adding experienced mapper role #954

Closed pgiraud closed 7 years ago

pgiraud commented 7 years ago

This pull request introduces a new "experienced mapper" role. This new role gives some users the permissions to contribute to projects "requiring experienced mappers".

Project manager can configure the projects to require this role.

screenshot from 2017-01-20 16 46 58

Users who don't have the required role can still access the tasks but can't press the "start mapping" button. Instead they are proposed to contact the author if they think they deserve the "experienced mapper" role.

screenshot from 2017-01-20 16 44 38

Clicking on the link redirects them to the message form on the OSM website so that projects manager can receive an email until we can manage it internally in the tasking manager.

bgirardot commented 7 years ago

@pgiraud Where is the link to the demo or staging of this pr?

pgiraud commented 7 years ago

http://tasks-hotosm.dev.sig.cloud.camptocamp.net/experienced

pgiraud commented 7 years ago

I am still not happy with the error message when it links to OSM to send a message, but it might actually be a good thing in that it focuses the users attention.

Would a different wording make you happier?

bgirardot commented 7 years ago

No, it is just really jarring to be met with an error dialog.

Can we just give them a blank email message?

Like I said, not sure which is better. This way at least the link to their osm user gets in there. Which would probably be on the email anyway.....

Either way.

Just taking them to the project manager's osm page is probably not enough, should not make people figure out they have to click 'send message' if we can avoid it.

pgiraud commented 7 years ago

I agree with. I think I have an other idea to prevent this. What I can try is to have the message being sent silently in background and then show a message dialog that the message has been sent. I'll try this as soon as I can.

pgiraud commented 7 years ago

There were modifications on the OSM website yesterday regarding the message API. Previously when opening the "new/message" page, if one provided both "title" and "body" using params in the URL, the message was sent directly without any action from the user. It was actually a security issue. I reported this and it was fixed very quickly.

Now it's possible to open the page and pre-fill both "title" and "body". It allows the user to read the message to be sent before submission.

Merging.