apps-android-commons icon indicating copy to clipboard operation
apps-android-commons copied to clipboard

Hide green pins (optional) - show only red pins

Open OpenGreenStreet opened this issue 1 year ago • 17 comments

What is the user problem or growth opportunity you want to see solved?

In the vast majority of cases, only the red pins are of interest to me (to contribute missing photos).

In this respect, I would like to be able to hide the green pins as an option.

How do you know that this problem exists today? Why is this important?

This would also improve clarity in areas with a large number of pins.

Who will benefit from it?

all users

Anything else you would like to add?

No response

OpenGreenStreet avatar May 26 '25 06:05 OpenGreenStreet

Hi! I’m Aurora, new to open source and I’d love to work on this enhancement as my first issue. Is anyone already working on it, or may I take it?

jpcookie avatar May 30 '25 14:05 jpcookie

Thanks Aurora!

I recommend implementing this as a new item Show only places with no picture/Show all places in the ... menu, after Save as KML.

nicolas-raoul avatar May 31 '25 02:05 nicolas-raoul

@Kota-Jagadeesh , @nicolas-raoul ,

What happened to this issue? It would really improve clarity, and it’s my top priority right now.

OpenGreenStreet avatar May 04 '26 03:05 OpenGreenStreet

@jpcookie Any progress on this? 🙂

nicolas-raoul avatar May 04 '26 05:05 nicolas-raoul

Could someone else take care of this topic?

OpenGreenStreet avatar May 10 '26 18:05 OpenGreenStreet

https://commons.wikimedia.org/wiki/File:20260825_xl_1209-Commons_App_Screenshot,_hide_Red_pins.png

Here is an extreme example: if only the red pins were displayed, there would likely be very few of them.

OpenGreenStreet avatar Aug 25 '26 10:08 OpenGreenStreet

I'd like to work on this issue. Has the team reached a consensus on the scope and UI design (such as the toggle suggested by @nicolas-raoul to show only places with no picture vs. show all places)? If so, I'd be happy to take this on if you're open to assigning it to me.

devendrachoudharycodes avatar Sep 27 '26 19:09 devendrachoudharycodes

If it were up to me, I would (optionally) only want to see red pins. In my opinion, that would be the clearest layout, and hopefully it would load much faster (in places with a lot of objects).

OpenGreenStreet avatar Sep 27 '26 19:09 OpenGreenStreet

@devendrachoudharycodes Do you have 5 merged bugs pull requests? See https://github.com/commons-app/commons-app-documentation/blob/master/android/Volunteers-welcome!.md#developers for reference, and if not would you mind finding a bug? Thanks a lot for your interest! :-)

nicolas-raoul avatar Sep 27 '26 23:09 nicolas-raoul

Thanks for the reminder, @nicolas-raoul I'd forgotten about the requirement of merged bug PRs before taking on features. I'll work on some bug issues first and come back to this one once I've got them merged.

devendrachoudharycodes avatar Sep 28 '26 15:09 devendrachoudharycodes

Hi @jpcookie! Any progress to share? Even if you don't have a solution yet, would you mind sharing what you found, what you checked/tried, maybe what did not work? I assume you still intend to work on this, but if not please let us know. :-)

github-actions[bot] avatar Nov 15 '26 15:11 github-actions[bot]

Hi @jpcookie, any progress to share on this? If you're not working on it anymore, no worries.

@nicolas-raoul if it's free, I'd like to take it. Here's what I'd do:

Most of the filter is already there. filterMarkersByLabels in NearbyParentFragment.kt has a branch that keeps only places with no picture, but displayNeedsPhoto is hardcoded to false (~line 2370), so it never runs. Every redraw goes through setFilterState(), even when place details finish loading, so pins that turn green later get hidden too.

Plan:

  1. Add Show only places with no picture / Show all places to the ... menu after Save as KML file.
  2. Hook that toggle into the existing branch, including the early return when no labels are selected.
  3. Keep the choice in NearbyFilterState.needPhotoSelected (already there, unused), same as the other Nearby filters.
  4. Strings in values and values-qq, plus a unit test for the filter.

Like the label filter, this only changes the map pins, not the List view.

#6570 touches the same files, so I'll keep this small and easy to rebase.

Medhansh-741 avatar Nov 22 '26 12:11 Medhansh-741

Thanks a lot for your interest and for the detailed plan, @Medhansh-741! This issue is currently still assigned to @jpcookie, so I can not assign it to you just yet.

@jpcookie Are you still actively working on this? If not, would you mind letting us know so that the issue can be unassigned? Thanks! :-)

nicolas-raoul avatar Nov 22 '26 12:11 nicolas-raoul

I would suggest an icon at the left of the refresh icon, showing either a small green pin and a small red pin (default), or only a small red pin, allowing the user to toggle the setting.

nicolas-raoul avatar Nov 22 '26 13:11 nicolas-raoul

Opened #7398 for this, with the pin button left of Refresh like you suggested @nicolas-raoul.

Medhansh-741 avatar Nov 22 '26 14:11 Medhansh-741

I'm really glad this issue is finally being addressed. (As always, the long loading times in areas with lots of pins and the cluttered layout are the things that bother me most about the Commons app.) If there's an option to display only red pins, I hope this will make the app much clearer and significantly reduce loading times when I want to contribute missing images.

OpenGreenStreet avatar Nov 23 '26 06:11 OpenGreenStreet

@OpenGreenStreet thanks! #7398 adds a button that shows only the red pins, so the map gets much less crowded.

It won't make loading faster yet though. The app still downloads every place in the area first and only hides the green ones after. In central Paris that's about 70% of the places.

Making it load faster is a separate change, so I opened #7407 for it and will open a PR there shortly. It would be great if you and @nicolas-raoul could try it and tell me what you think.

Medhansh-741 avatar Nov 23 '26 09:11 Medhansh-741