Closed
Bug 456139
Opened 17 years ago
Closed 17 years ago
[W-1.5.1] Publishing (from AMO display pages)
Categories
(addons.mozilla.org Graveyard :: Collections, defect)
addons.mozilla.org Graveyard
Collections
Tracking
(Not tracked)
RESOLVED
FIXED
5.0.6
People
(Reporter: fligtar, Assigned: wenzel)
References
Details
(Whiteboard: [not blocked by clearleft])
Attachments
(2 files, 2 obsolete files)
|
325.67 KB,
image/png
|
Details | |
|
26.31 KB,
patch
|
clouserw
:
review+
|
Details | Diff | Splinter Review |
Users logged into AMO with collections linked to their account will see a dropdown listing on each add-on’s display page for publishing or “bookmarking” add-ons to collections from the web.
| Reporter | ||
Updated•17 years ago
|
Priority: -- → P5
| Reporter | ||
Comment 1•17 years ago
|
||
->M4
Will add details and assignee closer to then.
Priority: P5 → --
Summary: Publish to collection from add-on display page → [W-1.5.1] Publishing (from AMO display pages)
Target Milestone: --- → BW-M4
Version: 3.2 → unspecified
| Reporter | ||
Comment 2•17 years ago
|
||
First crack at mockup for this and bug 456140. Couple of issues:
1) The section is labeled "Collections". I feel like we should be more specific in saying that these are collections the add-on is in, but that's a bit wordy for the heading.
2) I said that if the user isn't logged in, we shouldn't show the publisher select box. I feel like not every user that visits every add-on should be presented with this extra component that may or may not be obvious that creating a collection requires an account and a bit of a process. We want to make collections discoverable and get people to create them, but I sorta feel like having this list of collections on every add-on page and linking to the directory where we heavily promote creating your own collection is sufficient.
Thoughts on these issues?
| Reporter | ||
Comment 3•17 years ago
|
||
Moving to revised M5 milestone (4/28).
Target Milestone: BW-M4 → BW-M5
| Reporter | ||
Comment 4•17 years ago
|
||
Nick, thoughts on comment #2?
Comment 5•17 years ago
|
||
It should say "Related Collections" or something, I think. I think hiding the publisher box is fine since the collections directory and listings seem like better places to introduce this feature to new users.
| Reporter | ||
Comment 6•17 years ago
|
||
Okay, this is ready for implementation then, with the change of "Collections" header to "Related Collections".
Shouldn't really need any design love for this, and I suspect we'll make it pretty fancy in the upcoming add-on display page redesign anyway.
Assignee: nobody → fwenzel
| Reporter | ||
Comment 7•17 years ago
|
||
Moving to next milestone since late feedback cut this one too close.
Target Milestone: BW-M5 → BW-M6
| Reporter | ||
Updated•17 years ago
|
Target Milestone: BW-M6 → 5.0.6
| Reporter | ||
Updated•17 years ago
|
Whiteboard: [not blocked by clearleft]
| Assignee | ||
Comment 8•17 years ago
|
||
The "and 335 more extensions" link points where? I don't think there's a page for this yet.
| Reporter | ||
Comment 9•17 years ago
|
||
Hmm, that's a good point. Filed bug 491407.
| Assignee | ||
Comment 10•17 years ago
|
||
This time you get two patches that are hopefully more easily digestible. Note that all of this code is based on the "collection management" patch from bug 456132, as the AJAX API from there can be used here.
This patch allows adding an add-on to existing collections via its display page.
Attachment #375908 -
Flags: review?(rdoherty)
| Assignee | ||
Comment 11•17 years ago
|
||
This second patch is based on the first one and adds the functionality for publishing an add-on to a *new* collection.
Attachment #375910 -
Flags: review?(rdoherty)
| Assignee | ||
Comment 12•17 years ago
|
||
Comment on attachment 375908 [details] [diff] [review]
Publishing to existing collections
Jeff, do you mind looking at this? Don't want to bury you in work though, so tell me if it's too much.
Also note that the patches in this bug also cover bug 456140, which I accidentally solved all in one piece, as I worked off the mockup which contains both features at once.
Attachment #375908 -
Flags: review?(rdoherty) → review?(jbalogh)
| Assignee | ||
Updated•17 years ago
|
Attachment #375910 -
Flags: review?(rdoherty) → review?(jbalogh)
| Assignee | ||
Updated•17 years ago
|
Attachment #375908 -
Attachment is obsolete: true
Attachment #375908 -
Flags: review?(jbalogh)
| Assignee | ||
Comment 13•17 years ago
|
||
Comment on attachment 375908 [details] [diff] [review]
Publishing to existing collections
Right when I ask you to review, I need to make amendments. Sorry. Obsoleting these attachments, and I'll get back to you when I have included fixes for bug 492654 and bug 492663.
| Assignee | ||
Updated•17 years ago
|
Attachment #375910 -
Attachment is obsolete: true
Attachment #375910 -
Flags: review?(jbalogh)
| Assignee | ||
Comment 14•17 years ago
|
||
This fixes:
- this bug (adding addons to collections from display pages, to new and existing collections), including non-JS fallback.
- bug 492663 (does not show "auto_publisher" collections)
- and it obsoletes and removes the addtocollection page (bug 492654).
Please note that it is based on the generic notification code from bug 492689.
Attachment #377074 -
Flags: review?(jbalogh)
| Assignee | ||
Comment 15•17 years ago
|
||
(In reply to comment #14)
> Created an attachment (id=377074) [details]
I forgot: It also (still) includes the "popular collections" code, fixing bug 492663.
| Assignee | ||
Comment 16•17 years ago
|
||
Fligtar: Will this also need to trigger the bandwagon refresh on successfully adding a addon to a collection?
jbalogh: Please feel free to proceed reviewing, this question does not significantly alter the code.
Comment 17•17 years ago
|
||
Comment on attachment 377074 [details] [diff] [review]
Patch, rev. 2
Thanks for picking this up Wil!
Attachment #377074 -
Flags: review?(jbalogh) → review?(clouserw)
Updated•17 years ago
|
Attachment #377074 -
Flags: review?(clouserw) → review+
Comment 18•17 years ago
|
||
Comment on attachment 377074 [details] [diff] [review]
Patch, rev. 2
This is awesome! Couple thoughts:
> + $this->redirect("/addon/{$this->data['addon_id']}");
When you use $this->data a few lines above this you urlencode(). I couldn't exploit this when I tried but maybe it's a potential problem?
I think there should be a "what's this?" link next to "add to a collection" - particularly if they have no collections. Fligtar, nick: any objections?
Is it possible to style the "Select a collection..." line in the dropdown to make it more apparent that it's not an option you can choose? Even if it only works in FF3. If nothing else, maybe just a separator between it an the options? I'm just throwing out ideas.
When I try to save without JS on I get "Element Not Found: /home/clouserw/public_html/remora/site/app/views/elements/notification.thtml"
| Assignee | ||
Comment 19•17 years ago
|
||
(In reply to comment #18)
> (From update of attachment 377074 [details] [diff] [review])
> This is awesome! Couple thoughts:
>
> > + $this->redirect("/addon/{$this->data['addon_id']}");
> When you use $this->data a few lines above this you urlencode(). I couldn't
> exploit this when I tried but maybe it's a potential problem?
I am now explicitly checking for the addon ID to be numeric. The argument was properly escaped before, but this is just cleaner. Thanks.
> I think there should be a "what's this?" link next to "add to a collection" -
> particularly if they have no collections. Fligtar, nick: any objections?
All right. Where would this link point?
> Is it possible to style the "Select a collection..." line in the dropdown to
> make it more apparent that it's not an option you can choose? Even if it only
> works in FF3. If nothing else, maybe just a separator between it an the
> options? I'm just throwing out ideas.
Hm. I noticed that if I style it with display:none, it does show up as on the page when you first open it, but it's not an option in the dropdown anymore. I was unsure if display:none was a good idea accessibility-wise, as screen readers may ignore it altogether. However, I wrapped the heading ("add to...") as a label for the dropdown now, which is probably sufficient for showing what the dropdown is about. Let me know though if you'd like to do something else, though.
> When I try to save without JS on I get "Element Not Found:
> /home/clouserw/public_html/remora/site/app/views/elements/notification.thtml"
That was not committed yet from bug 492689.
| Assignee | ||
Comment 20•17 years ago
|
||
(In reply to comment #19)
> > I think there should be a "what's this?" link next to "add to a collection" -
> > particularly if they have no collections. Fligtar, nick: any objections?
>
> All right. Where would this link point?
Just to the main collections page, maybe? I assume there will be plenty of collection talk on there.
| Assignee | ||
Comment 21•17 years ago
|
||
I committed this to r25749. Please feel free to file followup bugs or reopen this if you want the link changed or similar.
Note that this is not skinned yet: that's part of bug 490887.
removing "push-needed" from 105 AMO 5.0.6 bugs; filter on "I hate stephend!"
Keywords: push-needed
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
•