Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Fix auto update UX #9164

Closed
Closed

Description

@benogle

Our automatic update process is pretty bad. We release once a week, and every week over a half million people need to go through this process.

There are errors, bugs, folks want better feedback, and the squirrel icon + release notes are really really confusing:

What happens now

  • Download an old version
  • Start it
  • Notice there is a blue squirrel in the status bar, and it says 'view release notes'
  • Click the squirrel
  • See the release notes, note that they are showing notes for an old release
  • Click the restart and update button
  • Atom quits, notice that there is no feedback as to what is happening.
  • It's still not back. What's up?
  • Atom restarts again after 5 - 15 seconds
  • Notice that the release notes are up in the reloaded window. They are still out of date, and still have the 'Restart and Update' button showing and enabled
  • Notice that the squirrel icon is still showing, and still blue, with the same tooltip text
  • I click the squirrel because it's still there, and not going away. It focuses the release notes. Ok.
  • I'm thinking: is there another update??!? What is happening?
  • I check the atom menu
    • Click the 'About' item, theres no information saying it's the latest version
    • I notice there is a version number, and a 'Check for update'
    • Nothing indicates I'm at the latest version
  • On reload, squirrel goes away; still nothing tells me I'm at the latest version. But no squirrel, so I guess so?

A 70% fix

tl;dr: fix the squirrel icon, remove the release notes package, use the about package for update status (similar to chrome).

  • An update becomes available
  • The blue squirrel shows, its tooltip says "Downloading update for version 1.0.20..."
  • Clicking the squirrel shows the about page which shows
    • the current version
    • new version detected
    • some text indicating that the update is being downloaded
  • When it's finished downloading:
    • the blue squirrel turns green, with a tooltip of "Version 1.0.20 is available"
    • the about page now shows that an update is available, and has a button to restart the editor
    • The menu item now takes you to the about page
  • Clicking the green squirrel still shows / focuses the about page
  • Clicking reload reloads the editor like today
  • On reload the about page is shown.
  • The about page indicates that you are up to date, and has a link to the release notes
  • The squirrel is gone after reload as the about page has the relevant information

Additionally, take a stab at the bugs:

Bonus:

  • In the about page, indicate which release rail you are on. beta? stable? development?

An extra 10%

Add some kind of feedback when atom is reloading. A small window with an infinite spinner would be sufficient. The goal is to indicate that it is working.

That last 20%

Activity

  1. joshaber commented on Oct 15, 2015

    @joshaber
    Contributor

    Add progress to the download in squirrel (cc @joshaber, is this possible today?)

    Not currently 😞 Certainly something that could be added.

  2. benogle commented on Oct 15, 2015

    @benogle
    ContributorAuthor

    What's difficulty / time commitment on something like that?

  3. joshaber commented on Oct 15, 2015

    @joshaber
    Contributor

    Atom restarts again after 5 - 15 seconds

    This is a problem for GitHub Desktop on Mac too. Every time we do an update, we get crashes reported because users try to relaunch the app themselves since the updater takes so long to restart the app.

  4. joshaber commented on Oct 15, 2015

    @joshaber
    Contributor

    What's difficulty / time commitment on something like that?

    The work itself isn't too hard. The time consuming part is testing. Probably a few days worth of work.

  5. benogle commented on Oct 15, 2015

    @benogle
    ContributorAuthor

    ❤️ for the info about the mac update issues and the difficulty level.

    Would a UI for restart progress make sense in squirrel or should we subscribe to something and show our own window?

  6. joshaber commented on Oct 15, 2015

    @joshaber
    Contributor

    Would a UI for restart progress make sense in squirrel or should we subscribe to something and show our own window?

    Restart progress or download progress? Restart progress would be tricky since the app is quit at that point.

  7. benogle commented on Oct 15, 2015

    @benogle
    ContributorAuthor

    Restart progress

    Yeah some kind of restart feedback. e.g. sketch has a little window with a progress bar when it's restarting after an update.

  8. joshaber commented on Oct 15, 2015

    @joshaber
    Contributor

    Oh interesting. Squirrel could do that, though it's a non-trivial amount of effort.

    It'd also be interesting to see why restarting takes so long. I suspect there's work we could do up front, before we relaunch, that would shorten the restarting window.

  9. winstliu commented on Oct 16, 2015

    @winstliu
    Contributor

    I think download progress can be shown on Squirrel for Windows; I just haven't had enough time yet to dig into the code and try to implement that. Though now that I've actually built Atom I might be able to make some progress soon ™️.

    also, /cc @paulcbetts and refs #8038

    All auto-updater-labeled issues
    All installer-labeled issues

  10. Zireael07 commented on Oct 16, 2015

    @Zireael07

    The squirrel changing color would be a brilliant quick change.

  11. anaisbetts commented on Oct 17, 2015

    @anaisbetts
    Contributor

    Squirrel for Windows reports download progress already, in a very node.js friendly way, you just need to wire it up. That being said though, most of the work in Squirrel on Windows isn't downloading, it's reconstituting the full package from the delta. Ideally the download step of your download will be super-ass short

  12. maxbrunsfeld commented on Oct 30, 2015

    @maxbrunsfeld
    Contributor

    Refs #8911

  13. ethanluoyc commented on Nov 16, 2015

    @ethanluoyc

    @benogle Are we trying to make something like this? (I added in the icon just for illustration purpose..)

    about

    I noticed that if we want to check for updates we may need to use the auto-update manager from the core. The about page, however, it organized as a separate package

    UPDATE: I checked again, so are we merging the release-notes with the about package or we will just open up the about page from the squirrel, after that there will be buttons in the about page if there is an update which will direct us to the release package.

  14. 15 remaining items

  15. benogle commented on Jan 28, 2016

    @benogle
    ContributorAuthor

    Thanks for the feedback. This is definitely something we are working on at the moment.

  16. jokeyrhyme commented on Jan 28, 2016

    @jokeyrhyme

    @judahstevenson this is pretty much the Chrome update experience: no notifications, it just works behind the scenes, and you have the manually check

    @benogle has it been determined that Atom should strive to have a different / better update experience than Chrome?

  17. benogle commented on Jan 28, 2016

    @benogle
    ContributorAuthor

    Basically we're adding some things to the about page to be more like chrome. e.g.

    f5a343d6-c5cc-11e5-8ca7-46a320c16c86

    Plus some feedback when it's downloading, when it's already up to date, etc. You can deal with it just like chrome and restart at your leisure, or you can pay attention to the squirrel and do a similar update flow from the about page.

  18. benogle commented on Feb 12, 2016

    @benogle
    ContributorAuthor
  19. Stanzilla commented on Apr 10, 2016

    @Stanzilla

    This is now super weird: atom/about#24

  20. Stanzilla commented on Jun 13, 2016

    @Stanzilla

    Related: #4696

  21. winstliu commented on Jun 5, 2017

    @winstliu
    Contributor

    @JHabdas Based on the conversation in this issue, it would appear that Squirrel.Mac doesn't report download percentages. Squirrel.Windows does, but no one has had time to investigate how to hook that up with Atom.
    (Squirrel is the update framework Atom uses, though the Windows version and Mac version are maintained by different people and work differently)

  22. removed their assignment
    on Aug 23, 2017
  23. movingobjects commented on May 21, 2018

    @movingobjects

    It's been a while since there's been any update on this—still find this very confusing every single update. (I'm on macOS 10.13)

    It'd be great to have more feedback on what is going on. Clicking the Restart and Install button only occasionally seems to actually restart the app itself. More often, it closes all windows but Atom remains open in the dock. I then wait and wonder whether a new version is downloading/installing or Atom just didn't succeed in restarting itself. After 5-10 minutes, I'll give up and quit and re-open Atom manually—after which, sometimes I end up with the new version, and sometimes I don't and instead see the same Restart and Install button sitting there like I never clicked it. After a few rounds of this, I will eventually find myself with the new version, but after a year of updates, I honestly still don't know what I'm supposed to expect or do to update correctly.

  24. lee-dohm commented on Apr 23, 2019

    @lee-dohm
    Contributor

    Thanks very much for the feedback.

    Unfortunately, because of the disparity in the APIs between the implementations of Squirrel, we're not going to take on adding a progress indicator for the automatic updates at this time. Because of this, and because since this issue has been opened, we've made a bunch of progress on improving the auto-update UX, we're going to close this issue.

    If people have other feedback for fixing the auto-update experience beyond adding a progress indicator, please open a new issue for it.

    Thanks everyone for your help!

  25. lock commented on Oct 20, 2019

    @lock

    This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

  26. locked as resolved and limited conversation to collaborators on Oct 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions