niccokunzmann / mundraub-android

📱Android App for Mundraub, Na-Ovoce and other fruit maps
https://f-droid.org/en/packages/eu.quelltext.mundraub/
GNU General Public License v3.0
33 stars 22 forks source link

Force/advice user to enter mandatory fields when adding entry #300

Open Heineken opened 5 years ago

Heineken commented 5 years ago

Problem: The user can add an entry without description, but he cannot upload it and he doesn't know why.

Proposed fix (one or all of these):


We're using Polar.sh so you can upvote and help fund this issue. We receive the funding once the issue is completed & confirmed by you. Thank you in advance for helping prioritize & fund our work.

Fund with Polar

niccokunzmann commented 5 years ago

I would like a text to guide the user, because I would like to decouple the plant information from the API of the platform. So, when I create a plant, I would like to be in control over the information I provide at the moment or later. The platforms may differ in what they expect. So, I would like to be guided on what is required for upload.

Related Code:

https://github.com/niccokunzmann/mundraub-android/blob/92599213455f8661de96f02168cd9d41f93638dc/app/src/main/java/eu/quelltext/mundraub/plant/Plant.java#L330

There could be a second method named: int getMessageToHelpFillTheRequiredFields() which then returns the R.string.id for what to do.

This, then can be put into the GUI. Where would you like to see it?

Heineken commented 5 years ago

Decouple means that validity for a platform shouldn't be checked on data entry but only before upload, right? If so, either