Skip to content
This repository was archived by the owner on Aug 24, 2018. It is now read-only.

Show update information on the about page - #12

Merged
benogle merged 50 commits into
masterfrom
sm-updates
Mar 2, 2016
Merged

benogle merged 50 commits into
masterfrom
sm-updates

Conversation

@thedaniel

Copy link
Copy Markdown
Contributor

Closes #1

@simurai whipped up some static UI for this last week, and I started on wiring it up (with some foundational work in atom/atom#10675 ) while I was first responder last week. Unfortunately I didn't get beyond a spike at that time, but here's what was in my working copy this morning :) I'm going to work on something else this week, but these are here for future core team members on bug rotation, community folks, or most likely me to pick up and finish in the hopefully near future. There are extensive mockups in a private design repo, but it's pretty self-explanatory if you look at what's in the UI that Simon added here.

@simurai

simurai commented Feb 10, 2016

Copy link
Copy Markdown
Contributor

We can post a screenshot here too:

update-0

update-on

Auto update Info
update-a-2-small 1. When opening the About page, Atom checks automatically for new updates. Atom 1.4
update-a-3-small 2. When an update is found, Atom downloads the update. This also happens in the background from time to time. Atom 1.4
update-a-4-small 3. Once an update is downloaded, Atom needs to be restarted. Atom 1.4
update-a-5-small 4. After restarting, Atom checks for updates and then shows as updated! Atom 1.5
Manual update Info
update-b-3-small 2. When "Automatically download updates" is turned off, updates need to be downloaded manually. Atom 1.4

The "Automatically download updates" toggle could also be implemented in a second step/PR.

@mnquintana

Copy link
Copy Markdown
Contributor

@thedaniel Does this mean that this depends on atom/atom#10675 to work? Did you want to finish that up first? I was thinking of taking a look at this this week.

@thedaniel

Copy link
Copy Markdown
Contributor Author

@mnquintana yep, it needs atom/atom#10675 or something like it to work - I can finish that up but I'm working on another project for a few days first.

@joshaber

Copy link
Copy Markdown
Contributor

@mnquintana If you wanna take this and atom/atom#10675 on, they're all yours!

Let us know if you get stuck or don't have the time and we can pick them back up.

@kuychaco

Copy link
Copy Markdown

@simurai - Awesome job with this new UI, looks great!

One thing I noticed is that we may not be able to display the information as you have it for the case of Manual updates.

Manual update Info
update-b-3-small 2. When "Automatically download updates" is turned off, updates need to be downloaded manually. Atom 1.4

The current autoUpdater Electron API is set up so that when you check for an update and there is one available the update is downloaded automatically.

So it looks like for the Manual Update we won't be able to provide information about a newly available update prior to downloading the update. We could maybe specify when the last update was downloaded and have a button for checking/downloading any new ones, since the two go hand-in-hand (assuming that an update is available).

@thedaniel

Copy link
Copy Markdown
Contributor Author

So it looks like for the Manual Update we won't be able to provide information about a newly available update prior to downloading the update.

Not sure if it's outside of the scope of these changes, but you could get this information by hitting the mac & windows update endpoints directly and checking the version numbers.

@kuychaco

Copy link
Copy Markdown

Ah, good point. Thanks for pointing that out @thedaniel.

@simurai

simurai commented Feb 23, 2016

Copy link
Copy Markdown
Contributor

If "Manual Update" needs a lot of work, or some new APIs are needed, we could keep this PR to "Auto Update" only. Basically remove the checkbox from the UI. And then maybe add the "Manual Update" as a new feature later.

I think the main use case for "Manual Update" is when you're on the go and don't want Atom to eat into your (expensive) data plan or so. You probably could already block Atom with an app like https://www.tripmode.ch, so maybe not too urgent. I just remember that it came up in Discuss, I think.. /cc @lee-dohm

@lee-dohm

Copy link
Copy Markdown
Contributor

Regarding reasons for not wanting to automatically update: atom/atom#1882

@Stanzilla

Copy link
Copy Markdown

Note: Restart to install still does not work on Windows (see atom/atom#6612 (comment))

@benogle

benogle commented Feb 29, 2016

Copy link
Copy Markdown
Contributor

Would it be too much to automatically "Check for update" every time you open the About page?

Nope. Added that when auto updates are turned on. For manual updates, they will still need to manually click the button.

@mnquintana

Copy link
Copy Markdown
Contributor

One idea I had for this flow that would be awesome to see added would be to:

  • Check for newer commits on master if using a dev build of Atom, and notify the user that they're behind (and how far they are behind?)
  • Check for newer releases on Linux and link to the appropriate download (until we have proper auto-update support on Linux)

@benogle

benogle commented Mar 1, 2016

Copy link
Copy Markdown
Contributor

One idea I had for this flow

Definitely would be cool to add those things at some point. For now, I really want to get this out and working. The current squirrel icon pointing to the atom.io release notes page is pretty confusing, and this should be a big help.

I think this is ready. When atom/atom#10675 is merged, this can be as well.

benogle added a commit that referenced this pull request Mar 2, 2016
Show update information on the about page
@benogle
benogle merged commit 5ffa8ba into master Mar 2, 2016
@benogle
benogle deleted the sm-updates branch March 2, 2016 02:13
@thedaniel

Copy link
Copy Markdown
Contributor Author

@YurySolovyov

Copy link
Copy Markdown

@benogle

When you are on a dev build or in linux you will see no update UI

It would be awesome if on linux it still checked for updates, and provided the link to Github releases page if there is one.

@benogle

benogle commented Mar 2, 2016

Copy link
Copy Markdown
Contributor

It would be awesome if on linux it still checked for updates, and provided the link to Github releases page if there is one.

Definitely could be an addition to this, but is not on our radar at the moment.

@YurySolovyov

Copy link
Copy Markdown

Should I file a bug?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants