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)
Tracking
(Not tracked)
RESOLVED
FIXED
5.11.9
People
(Reporter: fligtar, Assigned: clouserw)
Details
(Whiteboard: [z])
Attachments
(1 file)
|
273.65 KB,
image/png
|
Details |
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.
Comment 1•15 years ago
|
||
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.
Updated•15 years ago
|
Assignee: chowse → thepotch
| Reporter | ||
Comment 2•15 years ago
|
||
We can drop the close button and its JS.
Comment 3•15 years ago
|
||
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.
| Reporter | ||
Comment 5•15 years ago
|
||
(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.
Comment 6•15 years ago
|
||
Where is your "info" styling? We are currently using info, success, and error.
| Reporter | ||
Comment 7•15 years ago
|
||
What are examples of info-type messages?
| Assignee | ||
Comment 8•15 years ago
|
||
I think the user registration uses one to say an email has been sent. It's just a generic icon.
| Reporter | ||
Comment 9•15 years ago
|
||
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.
| Assignee | ||
Comment 10•15 years ago
|
||
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.
Comment 11•15 years ago
|
||
this requires a bit more django sauce than I'm up to.
Assignee: thepotch → nobody
| Assignee | ||
Comment 12•15 years ago
|
||
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
| Assignee | ||
Comment 13•15 years ago
|
||
Alright then.
http://github.com/jbalogh/zamboni/commit/a0db14c027a3778d963b7cb51eba1249c5f25ae3
http://github.com/jbalogh/zamboni/commit/104d92d5b238332b757a932eb934fae9986458fb
http://github.com/jbalogh/zamboni/commit/cc8e40d9bbcd99fa98962e2aefc5c7afe489d81c
Assignee: nobody → clouserw
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 14•15 years ago
|
||
The notifications seem to work and the style is good, but the images are missing: http://grab.by/6ckJ
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Assignee | ||
Comment 15•15 years ago
|
||
That was your code! http://github.com/jbalogh/zamboni/commit/2e5a3c9eb6acaf7de97d924aa98d24f4a5e6feee
Also, those images should be sprited
Status: REOPENED → RESOLVED
Closed: 15 years ago → 15 years ago
Resolution: --- → FIXED
Comment 16•15 years ago
|
||
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
| Reporter | ||
Comment 17•15 years ago
|
||
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!
Updated•10 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•