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

Improved Notification Setting Controls #2377

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

tomballgithub
Copy link
Contributor

Description

This adds 3 new interrelated settings requested by my users. I realize some believe that there are 'already too many settings' but I believe these are actually useful and all users are not the same and as such these don't need to be hard-coded. # 1 especially is a new feature versus the others being control of existing internal settings.

1. Hide pokemon which are not being notified (default: off)
Once implemented, I unexpectedly saw the high value of this. It hides all pokemon which are not being notified due to IV, Rarity, or Pokemon type. It gives you a nice clean map with only the items you are interested in seeing (the notified pokemon)

2. Disable browser popups. (default: off)
Currently if you have notifications enabled you will get the popup notifications unless you go in and block them in the browser. It can be very annoying if you set a notification incorrectly and get endless popups. I have received many complaints from mobile users who want to see the pokemon on the map (bouncing) but not get popups. This can be combined with # 1 above for example for a nice clean map with no popups

3. Disable bouncing. (default: off)
There is currently no way for the user to control the bouncing of notified pokemon. A bouncing pokemon jumps out at you but it can also be difficult to click on it when it is moving. This allows you to turn that off. When combined with # 1 it allows you to show only notified pokemon and there is no real need for the bouncing

Motivation and Context

Described above

How Has This Been Tested?

I tested it on a development map to work out the kinks.
I then moved it to my production map without issue and reports have been good.

Screenshots (if appropriate):

image

Types of changes

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

Checklist:

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

@@ -2820,6 +2823,21 @@ $(function () {
}
})

$('#bounce-switch').change(function () {
Store.set('isBounceDisabled', this.checked)
location.reload()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok I thought I was doing something wrong but it makes some sense, you need to reload in this cases as it is easier than reprocessing everything but the UX is really weird, no one expects to get a reload just clickin in a switch.
The only solution I can think of is telling the user about the reload (alert) or finding a way to reload the map without reloading the page.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably you can check how it is done with the pokemon hide and just apply it to everything that is not in the notify list.


$('#popups-switch').change(function () {
Store.set('showPopups', this.checked)
location.reload()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This reload is not needed, previous notifications will dissapear with time and no new ones will appear.


$('#hideunnotified-switch').change(function () {
Store.set('hideNotNotified', this.checked)
location.reload()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the more complex to solve but probably you can also iterate over all pokes and remove/add the bouncing.

@tomballgithub
Copy link
Contributor Author

Rebased...

Fix travis errors
@tomballgithub
Copy link
Contributor Author

Rebased...

Copy link

@Frankenhammer Frankenhammer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested online and offline. No errors found.

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

Successfully merging this pull request may close these issues.

None yet

4 participants