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

Add setting to disable the update available notification (#1) #1757

Merged
merged 3 commits into from
Nov 26, 2021

Conversation

fabianfrangella
Copy link
Contributor

@fabianfrangella fabianfrangella commented Nov 23, 2021

Fixes

#1612

Checks

  • Ran yarn test-build
  • Updated relevant documentations
  • Updated matching config options in altair-static

Changes proposed in this pull request:

  • Replaces the "Update available" window with a notification pop up
    image
  • Adds a setting to disable the "Update available" notification
    image

* Add setting to disable the update available notification
Copy link
Collaborator

@imolorhe imolorhe left a comment

Choose a reason for hiding this comment

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

Awesome stuff! 🎉 Changes look good to me. Thanks for putting this together. I just added one small comment.

.subscribe((disableUpdateNotification: boolean) => {
if (!disableUpdateNotification) {
this.ipc.on('update-available', () => {
this.notifyService.info('Found new updates!, go to Update to get the latest version', 'Update Found!')
Copy link
Collaborator

Choose a reason for hiding this comment

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

How do I go to Update?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Perhaps clicking the notification should have the same effect. i.e. clicking the notification should trigger the update.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Also just looked at the screenshots. I'm concerned we now have both "Update" and "Check for updates.." menu items. That can get confusing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, it's confusing, clicking the notification to get the update seems to be a better idea, if u are ok with that i'll make the change in no time :D

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've made the change, now there's no "update" option next to "check for updates" and when you click on the notification it downloads the update

* Add setting to disable the update available notification

* Changes setting text

* lint fix

* Add download update on click and remove update option from menu

* Removes update option
Copy link
Collaborator

@imolorhe imolorhe left a comment

Choose a reason for hiding this comment

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

Amazing work! Just left one tiny comment. I could also simply change that myself if you want. Thanks!

@imolorhe imolorhe merged commit 565678d into altair-graphql:master Nov 26, 2021
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

2 participants