Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Show update notification icon on Extension Manager "Installed" tab #5838

Merged
merged 2 commits into from
Nov 6, 2013

Conversation

peterflynn
Copy link
Member

Show an icon in the Extension Manager whenever updates to installed extensions are available: a red dot with counter overlaid on the Installed tab's icon. This should help improve the visibility of extension updates now that the Installed tab isn't selected by default.

In the long run of course we'd like a way to filter the view down to only extensions with updates available, and we'd also like update notifications to be pushed to the main UI just as they are for updates to Brackets itself... but this is an incremental, simpler step in that direction.

Screenshot:
extman notification

(@larz0 Please let me know if there are any visual tweaks you'd suggest)

extensions are available: a red dot with counter overlaid on the Installed
tab's icon.
@jbalsas
Copy link
Contributor

jbalsas commented Nov 4, 2013

Hey @peterflynn, do you think we could show the same notification icon on the right toolbar button? Or are we still trying to keep the tone down a bit?

@ghost ghost assigned dangoor Nov 4, 2013
@dangoor
Copy link
Contributor

dangoor commented Nov 4, 2013

I'll take this.

@jbalsas I'm a bit torn on that. The extension update process is a bit intrusive because you have to quit and restart Brackets. For me, at least, notification badges pull my attention away and I wouldn't want someone to fire up Brackets to edit something and then have that "oh, I need to interrupt what I was going to do to update this thing over there..." feeling.

@jbalsas
Copy link
Contributor

jbalsas commented Nov 4, 2013

@dangoor Yeah, I somehow agree with that.

However, as it is now, I'd say extension updates are not discoverable at all. There's no way you can know if an extension has been updated other than manually opening the Extension Manager.

Also, a regular case that I could think we're not covering would be:

  • I fire up Brackets and start working.
  • I think I can go and install some extension that right now could come in hand
  • I see I have updates available for other extensions and go ahead and install them
  • "Oh, I need to interrupt what I was going to do to update this thing" ;)

Maybe a warning message or a confirmation could prevent both cases and still make the updates discoverable?

@@ -191,13 +191,35 @@ define(function (require, exports, module) {
$(this).tab("show");
});

function updateNotificationIcon(index) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: should have a doc comment.

@dangoor
Copy link
Contributor

dangoor commented Nov 4, 2013

@jbalsas Totally agreed... and there's a card for that. We definitely do need better discoverability of updates, and to make it so that Brackets doesn't require a quit+manual restart (instead just reloading Brackets).

I was just commenting on my own personal desire to not just have a badge put onto the extension manager icon in the toolbar. I also admit that maybe it's just me that would prefer not having that 😄

@dangoor
Copy link
Contributor

dangoor commented Nov 4, 2013

@peterflynn The changes look good. It would be nice if there was a unit test or two for the badge or at least the notify updates flag. I'm guessing that we already have tests that simulate update conditions (and add the update button), so it should be straightforward to also verify that the notification is updated properly.

I know you've got other (higher priority) things on your plate. If you don't have time right now to add a test, I can do it and land the code (modulo any UI changes requested by @larz0).

@larz0
Copy link
Member

larz0 commented Nov 4, 2013

@dangoor @jbalsas @peterflynn what about using small gray circle on the extension manager icon as an indicator?

@larz0
Copy link
Member

larz0 commented Nov 4, 2013

@peterflynn I kind of like green. What do you think?

green

red

blue

@dangoor
Copy link
Contributor

dangoor commented Nov 4, 2013

@larz0 Sure, something subtle like that wouldn't bother me at all.

The green in your screenshot is non-traditional, but I like it. It's more like an invitation to "come and look over here" vs. "you! get over here now!"

@larz0
Copy link
Member

larz0 commented Nov 4, 2013

@dangoor glad you like it~ It's non-traditional but gives a better feeling, like power-ups. We should reserve red for errors.

Here's the subtle dot on the extension manager icon:

update-indicator

@marcelgerber
Copy link
Contributor

Maybe we should update the count on selecting for an update/remove?

@MentalGear
Copy link

Hey Everybody,
I agree with @dangoor : Putting a Update Badge in the panel would disrupt workflow.
Updating should be a user-initiated action, and not something that's worthy a notifcation which deflects the user's focus from actual work.

I think the best way to notify about Updates is only when the user opens the Extensions Manager -> which means: not working -> has some spare time -> not interrupting.

Icon Color:

  • Green ( doesn't match the color palette, looks none fitting in the otherwise blue & black color sheme )
  • Red ( to agressive )
  • Blue 👍 ( fits the color palette perfectly as it matches the "More Info" color, also subtile and neutral, while still obvious )

If it really has to be some subtile small icon, at least don't give it a color.
Keep in mind: There's propably going to be a lot of extensions, and subsequently updates, which means that small "subtile" icon would shine a lot ..
I would rather recommand, a gray Icon, or best none at all.

btw: Anyone else thinks the "Keywords" segement shouldn't be displayed?
It doesn't give any practical informations, instead a wider description would be much appreciated ( maybe even one that expands on "More Info.." instead of linking out )

@jbalsas
Copy link
Contributor

jbalsas commented Nov 5, 2013

@larz0 @dangoor I like green and blue both. As for the super subtle dot, I'd say is a bit too subtle for my tase :). Still, I find it a good compromise if we don't want to draw much attention to it.

@cocoa-coder @dangoor I don't fully agree that having a badge disrupts workflow. A popup telling you that you have updates and forcing you to dismiss it does. Personally, I don't usually go and install lots of extensions, only those that I really need. For that reason, I do want to know if they have been improved lately without having to manually search for it.

On a related topic, we may be polluting this pr, so maybe it'd be worth starting a thread on the devs-list ;)

@peterflynn
Copy link
Member Author

@dangoor I think I can fix the nits and add tests tonight.
@larz0 I like the green too, but I'm fine with whatever you decide... just let me know the hex color :-)

Re an update indicator on the main window's Extension Manager icon: see my original note at top. I think we eventually want to do that to make updates more discoverable. But it's a bigger piece of work, and this is an incremental step along that path. In addition to being more work technically, a main-window indicator needs more design thinking around how often to check, whether we need to worry about it being too 'noisy' (as noted by people here), etc. The average number of installed extensions may not be too high, but the update experience is still very interrupt-ey, so we may want to wait until it's a bit smoother before foregrounding updates that much.

@peterflynn
Copy link
Member Author

@SAplayer Currently, the count doesn't update until a change actually takes effect. We could update the number when someone merely flags something for later update/removal (and roll back the value if that's canceled / unflagged), but it would be trickier.

@marcelgerber
Copy link
Contributor

In my opinion this would be more logical as you see how much updates are left (ok, it isn't common that there are 50 updates available 😀 )

@dangoor
Copy link
Contributor

dangoor commented Nov 5, 2013

@jbalsas good call. As @peterflynn points out, he was going for the simplest thing that can make the situation better.

On that count, we just need:

  1. a final color pick from @larz0
  2. a couple of comments
  3. a test

and then we land it :)

@larz0
Copy link
Member

larz0 commented Nov 5, 2013

@peterflynn here you go, #91CC41.

ExtensionManagerViewModel.notifyCount in a few unit tests
@peterflynn
Copy link
Member Author

@dangoor Changes pushed. Thanks for the review!

@dangoor
Copy link
Contributor

dangoor commented Nov 6, 2013

Looks good! Merging

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.

6 participants