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

The popup about canary version is annyoing, can't disable that! #2983

Closed
szmarczak opened this issue May 6, 2018 · 17 comments
Closed

The popup about canary version is annyoing, can't disable that! #2983

szmarczak opened this issue May 6, 2018 · 17 comments
Labels
help wanted Contributions wanted towards the issue ❣️ Priority: High Issue is of High priority 🐛 Type: Bug Issue pertains to something wrong within Hyper

Comments

@szmarczak
Copy link

Ubuntu 18.04 LTS, Hyper 2.0.0 (Stable), default settings.

It is so annoying, every time Hyper launches I have to click [x] which is almost invisible because of the color it has. Please add a setting to disable notifications about canary versions.

screenshot from 2018-05-06 19-54-04

@asachs01
Copy link

asachs01 commented May 9, 2018

Agree. I would love to have this stop showing up.

@albinekb
Copy link
Contributor

albinekb commented May 9, 2018

Hmm, are you sure you don't have updateChannel: 'canary' in your .hyper.js?

@albinekb albinekb added the 👀 Awaiting Response Issue or PR is awaiting a response from the author label May 9, 2018
@szmarczak
Copy link
Author

szmarczak commented May 9, 2018

@albinekb Yes, I am sure :D Here's full .hyper.js

    // choose either `'stable'` for receiving highly polished,
    // or `'canary'` for less polished but more frequent updates
    updateChannel: 'stable',

@albinekb albinekb added 🐛 Type: Bug Issue pertains to something wrong within Hyper help wanted Contributions wanted towards the issue and removed 👀 Awaiting Response Issue or PR is awaiting a response from the author labels May 9, 2018
@albinekb
Copy link
Contributor

albinekb commented May 9, 2018

Here's the lines that fetches and displays the message, can't see anything directly that looks wrong 🤔 needs some investigation

https://github.com/zeit/hyper/blob/canary/app/notifications.js#L4-L35

@albinekb
Copy link
Contributor

albinekb commented May 9, 2018

@chabou do you know what code is running at https://hyper-news.now.sh ? 🤔

@szmarczak
Copy link
Author

szmarczak commented May 9, 2018

@chabou @albinekb fetchNotifications emits this:

{ "text": "Version 2.1.0-canary.1 is available. New `lineHeight` option, improvements and bug fixes based on feedback ⚡\r",
  "url": "https://github.com/zeit/hyper/releases/tag/2.1.0-canary.1",
  "dismissable": true,
  "versions": ["< 2.1.0-canary.1"],
  "platforms": ["linux"]
}

@albinekb
Copy link
Contributor

albinekb commented May 9, 2018

Thanks for checking that @szmarczak, looks like there's a bug in https://hyper-news.now.sh 🤔

image
image

@albinekb albinekb added the ❣️ Priority: High Issue is of High priority label May 9, 2018
@chabou
Copy link
Collaborator

chabou commented May 9, 2018

Newsfeed was used as a fallback because Linux version doesn't have an auto-updater.
But it doesn't work well since we have canary releases.

But now, Hyper uses hazel endpoint on Linux too (thanks to #2497).
We need to modify our Newsfeed to not announce new versions anymore.

Any ideas how we can do that @matheuss @rauchg?

@albinekb
Copy link
Contributor

albinekb commented May 9, 2018

Maybe re-deploy a new micro that just responds with an empty string as message? 🤔

@MKRhere
Copy link

MKRhere commented May 12, 2018

I feel I'm missing something here. Why not add a config option to disable fetching notifications at all? Why request an empty message?

@chabou
Copy link
Collaborator

chabou commented May 12, 2018

@MKRhere because you want to disable notification because of this bug. We should fix this bug (notification about a canary update even if you are on the stable channel).
If we permit to disable notifications, it will lead to not show useful and healthy notifications and we'll have a lot of outdated app.

@MKRhere
Copy link

MKRhere commented May 13, 2018

I see. But this has been a long time bug. I'd actually like to dismiss notifications permanently after once. Hmm.

I mean when I open a terminal session, the last thing I want to keep getting is an update notification.

@jaydh
Copy link

jaydh commented May 17, 2018

I think the middle ground here would be a 'Don't Show Again' option for notifications.

@albinekb
Copy link
Contributor

That's a great idea @jaydh, I think that would work. We could save the an hash of the text inside the settings maybe in an array? @chabou what do you think of implementing this?

@chabou
Copy link
Collaborator

chabou commented May 17, 2018

I think that we should reevaluate the need to dismiss (or disable) notification after fixing this shameful and awful bug.

@matheuss
Copy link
Member

matheuss commented May 17, 2018

@chabou The code is at https://github.com/zeit/hyper-news. I'll move the deployment and alias over to the hyper team on Now so you can control them 👌

@matheuss
Copy link
Member

@chabou done ✌️

chabou added a commit to chabou/hyper-news that referenced this issue May 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Contributions wanted towards the issue ❣️ Priority: High Issue is of High priority 🐛 Type: Bug Issue pertains to something wrong within Hyper
Projects
None yet
Development

No branches or pull requests

7 participants