Indicate when a package is updating in the status bar tile#884
Indicate when a package is updating in the status bar tile#884
Conversation
|
Thoughts: should the I think I like the last two the most. In addition, regarding failed updates, should we remove the failed text when the tile is clicked? And should we remove that package from the available updates count? /cc @atom/feedback |
|
I'd like "5 package updates available" and once the process starts "5 packages updating" then "4 packages updating"... until gone. i.e. instead of 3-5 just count down from 5. |
I like that too because it's simpler. But what if there a 5 packages in total and you only click the update button for 3 packages. In that case "5 packages updating" sounds wrong. Hmm.. maybe still write it out? It's longer but also clearer. The above example would be:
Maybe keep it as long as the settings-view shows an update as failed. I guess if you reload Atom it will show again as "normal" update.
Actually, is this only for the tooltip? Or will the status-bar tile also show if updates are in progress? |
|
This is just for the text displayed in the status bar. The tooltip is more verbose and is already basically what you're suggesting: |
|
Ok, for the status-bar I like your
And when failing:
|
…er-dynamic-updates-tooltip
|
Ok I think this is ready. The only thing that might still have room for improvement is the failed text. |
|
It looks good to me 👍 It appears that you've gone with @simurai's suggestions on the tooltips and status bar text, so that sounds like the best solution for now. We can always come back and tweak it if things go awry. |
Closes #883
Some things to note:
updateTilemethod which I think helps streamline and deduplicate things (see below).tooltip.dispose()on a non-existent tooltip if the Check for Updates button was pressed. Whoops!package-updatingevent was being generically emitted through Emitter rather than through the dedicatedemitPackageEventhelper method. This means thattheme-updatingwill now start to be emitted for themes.TODO: