Closed Bug 592117 Opened 15 years ago Closed 15 years ago

[EB] Success message styling, copy, and interactions

Categories

(addons.mozilla.org Graveyard :: Collections, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED
5.11.9

People

(Reporter: fligtar, Assigned: clouserw)

Details

(Whiteboard: [z])

Attachments

(1 file)

Creating a new collection (not quick-create) should go to the newly created collection with a success message that says: Collection created! Your new collection is shown below. You can <a href="#">edit additional settings</a> if you'd like. When editing a collection, the success should return to the same page but with a success message: Collection updated! <a href="#">View your collection</a> to see the changes. Assigning to chowse for mock, color values, and assets. Please assign to :potch after.
Attached image Message Mockup
Mock-up of the success message, with an alert/error message thrown in for good measure. The necessary images can be found here: http://people.mozilla.com/~chowse/drop/amo/icons/icon-valid-large.png http://people.mozilla.com/~chowse/drop/amo/icons/icon-error-large.png http://people.mozilla.com/~chowse/drop/amo/icons/icon-close.png http://people.mozilla.com/~chowse/drop/amo/icons/icon-close-hover.png Here's how to style it: * Place it in the main column, below the title but above any content. * Give it a 28px bottom margin. * Give it 13px of internal padding. * The border and shadow on the message should be the same weight as those on pop-up boxes. * The border of the success message is #1d4900, the error message #550b00. * The large icons are 32x32px, with a 13px gap between the icon and the text. * The text is #444 13px Helvetica Neue (the default page font). * The heading is the same font, but boldface. * The close button is 16x16px, with a 26px gap between it and the text. * If you want to add an animation to the close action, I'd recommend fading the opacity to 0, then shrinking the height to 0. No more than 1 sec total.
Assignee: chowse → thepotch
We can drop the close button and its JS.
I've taken a look at this: 1) will this be the new message style global to all of AMO? we have a mechanism in place for these messages with existing styles. (edit the contributors of a collection to see an example) 2) messages with multiple parts/links may not be possible with django's messaging support. Jeff, can you provide any clarity here? 3) Seeing as we have an existing way to provide some form of messaging to the user, it is far more likely that I'm going to use that system for this, and any further modifications/enhancements will be beyond 5.11.9- it's far too late in the game to be making those sorts of changes.
(In reply to comment #3) > 1) will this be the new message style global to all of AMO? we have a mechanism > in place for these messages with existing styles. (edit the contributors of a > collection to see an example) Yes, but that's not necessary for this bug. I'll file a separate bug for later about using this style everywhere. > 3) Seeing as we have an existing way to provide some form of messaging to the > user, it is far more likely that I'm going to use that system for this, and any > further modifications/enhancements will be beyond 5.11.9- it's far too late in > the game to be making those sorts of changes. I understand and should have realized we didn't have proper success/error message copy and styling until now. Here's a patch that should take care of the styling: http://github.com/fligtar/zamboni/commit/4a47394bb9af18182779826ba035e3980e43d737 I also looked into the multipart messaging problem as well and couldn't figure out a non-hacky way without patching django, so we'll have to wait for the experts on that.
Where is your "info" styling? We are currently using info, success, and error.
What are examples of info-type messages?
I think the user registration uses one to say an email has been sent. It's just a generic icon.
I'm only concerned about collections for this, so if there isn't a collection info box we can tackle that in the follow-up bug.
To summarize this bug: We currently send messages with messages.success('blah'). The mockup has 2 strings in each message and Django's framework doesn't support that. We should extend Django's messages class with our own, and add functions that accept 2 strings and modify the template to print one as a header, and one as the content of the message.
this requires a bit more django sauce than I'm up to.
Assignee: thepotch → nobody
I took a stab at this. Not the most elegant thing, but it does work. A concern is that we haven't allowed HTML in any of our messages before. In order to make this work, I've had to mark everything as safe. I don't think it's a problem now, but could make for XSS in the future if we aren't vigilant. Looking for feedback: http://github.com/clouserw/zamboni/compare/master...random
The notifications seem to work and the style is good, but the images are missing: http://grab.by/6ckJ
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
That was your code! http://github.com/jbalogh/zamboni/commit/2e5a3c9eb6acaf7de97d924aa98d24f4a5e6feee Also, those images should be sprited
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → FIXED
Since you're spriting, there's an 'info' icon too if you need it at some point: http://people.mozilla.com/~chowse/drop/amo/icons/icon-info-large.png
Thanks chowse. We'll sprite and add the info stuff with the follow-up bug for using this style everywhere. (In reply to comment #15) > That was your code! It worked fine on my dev copy!
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: