Closed pwalm closed 6 years ago
It should fade away after 5 seconds.
I'm not sure that we're doing this anywhere else. I guess we could enhance the Notice
component to make that an option. @muffinresearch or @willdurand do you know if this is something we've done previously in the app?
I don't think we have done that yet.
It should read: "Extension added" or "Theme added" depending on type.
@pwalm How important do you think it is to mention the specific type, as opposed to just saying "Add-on added"? I ask because we do not have access to the type in the current code, and we'd have to fetch the add-on via the API in order to know what type it is, just to display a more specific message.
@bobsilverberg Not a deal breaker if we don't say the specific add-on type. Just say "Added to collection" instead.
Not a deal breaker if we don't say the specific add-on type. Just say "Added to collection" instead.
Great, thanks @pwalm. I've changed it to use that text.
Verified fixed this on AMO dev with FF60(Win10 and Android 8.0) - the Added to Collection message is displayed when an extension or theme is added to the collection. The following works as expected:
The message bar should appear above the "Find add-ons" field. It should have the green checkmark glyph. It should read: "Extension added" or "Theme added" depending on type. - it's Added to collection instead
I noticed that the message won't fade away after 5 seconds - after adding the first extension/theme to the collection it remains permanent - I filed https://github.com/mozilla/addons/issues/11813
I see that @willdurand already pointed out that mozilla/addons#11813 is a duplicate of mozilla/addons-frontend#5101. Thanks @willdurand!
We need to add a confirmation when a user adds something to their collection, so they know it happened even if they don't see it. Similar to how I've mocked it up below (for ratings):
Rules: