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

Filter raids by Pokemon (raid boss) #2230

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

faith9
Copy link

@faith9 faith9 commented Aug 3, 2017

Added a new option to filter the raids by pokemon (raid boss)

Description

My first PR so please be gentle :)

Motivation and Context

A lot of people this days only search for Moltres, Lugia or Tyranitar
It's easier to only show them on the map.

How Has This Been Tested?

Tested on my local map

Screenshots (if appropriate):

Screenshot

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • [x ] New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • [x ] My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@neskk
Copy link
Contributor

neskk commented Aug 4, 2017

Nice effort 👍 but I think that removing Gyms from map when they don't have the desired raid boss is kinda bad and the other raid filters try to avoid doing this. If you enable raid filtering you won't see Gyms being hidden, just their raids.

@friscoMad
Copy link
Contributor

The remove is fine, it is under a if that check is gyms are disabled, the problem is that it will not work if gyms are enabled.

Also I think a multiselect like notifications or hide will be better instead of only choosing one.
And lastly if you don't want to do it multi select I think that you at least order them by id and use locale to get their names.

@tomballgithub
Copy link
Contributor

Is this dead, would be a nice feature to have?

@tomballgithub
Copy link
Contributor

I think the statement by @neskk that the other raids filters don't remove gyms is incorrect. They all do the same call to filter out a gym that this PR does -> removeGymFromMap

Example:

        if (Store.get('showActiveRaidsOnly')) {
            if (!isOngoingRaid(item.raid)) {
                removeGymFromMap(item['gym_id'])
                return true
            }
        }

@faith9
Copy link
Author

faith9 commented Sep 1, 2017

I'm using it on my map, it can be applied on develop (I'll sync the branch today).
Unfortunately I lack the abilities and the time to make the changes requested above (convert the dropdown to a multiselect and find how to use locales).

If someone else finds it useful and like to take over it's fine with me.

@faith9
Copy link
Author

faith9 commented Sep 1, 2017

Regarding the sorting: before today the sorting was by CP, the most powerful pokemons being the most interesting.
I have added today the beasts, that will not respect this order (but will be the most filtered pokemon, in the following months)

@tomballgithub
Copy link
Contributor

tomballgithub commented Sep 1, 2017

Why not try to copy the multi selection that was done for 'notify of pokemon' or 'notify of rarity' selections?

@tomballgithub
Copy link
Contributor

I can tackle if you don't want to

@faith9
Copy link
Author

faith9 commented Sep 1, 2017

Please tackle it, I have nothing against it :)

@tomballgithub
Copy link
Contributor

There's a bug somewhere, I just saw it get into a state where it would only show Raikou. If I switched to anything else include 'show all' it would just be blank. Switching back to Raikou worked again. When I cleared the local storage in my browser it went back to normal. Will try to figure out what caused it

@billyjbryant
Copy link
Contributor

Is this dead?

@tomballgithub
Copy link
Contributor

tomballgithub commented Mar 16, 2018 via email

@tomballgithub
Copy link
Contributor

The problem with this feature is it needs constant updating with the ever changing raid boss list. Unless you support all pokemon as being possible raid bosses is there a way to support dynamic changes to current raid bosses?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants