Helium314 / SCEE

OpenStreetMap surveyor app for experienced OSM contributors
GNU General Public License v3.0
139 stars 11 forks source link

Don't ask for building color if building is underground #635

Open RubenKelevra opened 2 weeks ago

RubenKelevra commented 2 weeks ago

After SCEE asked me if a building is completely underground it continued to ask me what the building color is.

How to Reproduce

Screenshot_2024-09-02-18-47-30-586-edit_de westnordost streetcomplete expert

Expected Behavior No building color quest

Does it happen in normal StreetComplete? Nope, this quest does not exist in SC

Versions affected Android 12 SCEE Version 58.22

mnalis commented 2 weeks ago

@RubenKelevra would you perhaps like to make a PR for it? It is very easy:

RubenKelevra commented 1 week ago

Well, I would, but I have neither a build setup for the app setup, nor does the master of the app currently work on my device - as SC 59.x is still crashing for me at startup:

https://github.com/streetcomplete/StreetComplete/issues/5850

Apart from that, I have zero knowledge of Java / Kotlin. ;)

mnalis commented 1 week ago

Well, I would, but I have neither a build setup for the app setup

Luckily @RubenKelevra, none is needed to make a pull request for this! If you click on those 2 links above I've sent, you'll see that is a simple matter of editing one text string and adding and location != underground line into it (at the end)

Apart from that, I have zero knowledge of Java / Kotlin. ;)

That is not needed either. Knowing how to copy/paste one line of text between two other lines should be sufficient :smiley_cat:

So it would change like this:

          and !building:colour
          and (!indoor or indoor = no)
          and wall !~ no
+         and location != underground

nor does the master of the app currently work on my device - as SC 59.x is still crashing for me at startup

I've seen that issue... Hopefully it will get resolved, but in order to make a "Pull request" it is not needed for you to have a Kotlin development environment or even have any ability to create .apk files. It is just a matter of editing a text file (can be done in GitHub web browser window too!) and clicking a few links in a webpage.

If you'd like to try, I can help you around if you get stuck, but I think you can do it easily by yourself. You already know how to do 1. fork the repo, which is about as hard as the rest of the steps :smiley:

mnalis commented 1 week ago

But, if you would like to test your changes too (which is not required, we can do that for you), it is also easily achievable without any android development knowledge or having Android development tools installed....

So, if you want, after doing the edits, in GitHub you could click on Actions tab in your fork and choosing Build debug APK, and GitHub would prepare it for you automatically.

Best thing? Such a development build has different appid (and yellow icon color instead of blue), so it can be installed alongside your existing (broken) SC or SCEE installation, without affecting it at all. That would enable you not only to check if you've fixed this issue with underground building, but also to play around trying to reproduce your crashing issue.

But as noted above, building APK is not required to make a pull request, it is just additional thing if you want to do it.

HolgerJeromin commented 1 week ago

I did a SC PR just with the mobile browser, fetched the build, tested it while being on holiday :)

Hardest part was to extract the apk out of the zip file :-P