Closed Bug 1841619 Opened 1 year ago Closed 1 year ago

Add-on listing link is not visible when an add-on does not have any ratings

Categories

(Toolkit :: Add-ons Manager, enhancement, P3)

Firefox 114
enhancement

Tracking

()

VERIFIED FIXED
117 Branch
Tracking Status
firefox117 --- verified

People

(Reporter: murznn, Assigned: gresunta, Mentored)

References

Details

(Keywords: good-first-bug)

Attachments

(4 files)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/114.0

Steps to reproduce:

I want to open the addon page on the https://addons.mozilla.org/ website from the addon page in Add-ons Manager, to get more information about this addon, vote for it, etc.

Actual results:

No way to open the specific addon page from the Addon page.

Expected results:

A link to the addon page on the https://addons.mozilla.org/ website should be present somewhere.

It's about the "Extensions" page.
But on the "Recommendations" page the problem is even worse! From the list of recommended extensions, we can open only the author page, and add the extension to Firefox, but no way to see the detailed project description, read comments, etc.

Hello,

Indeed there are no direct links to the add-on AMO detail page, however you can reach the mentioned page with a few clicks.

As such, I will mark this report as an Enhancement and not a defect.

Type: defect → enhancement

@Alex Cornestean, could you please describe how can I reach the mentioned page with a few clicks in more detail?
I see no links at all!

In the hope that I understood the issue correctly, see the attached video.

Yeah, via the Author link it's possible, but it's not obvious for regular users, and if the author has 10+ addons, it's not easy to find the needed one.

Also, not each addon has this field, eg this one:

About the author link - we have bug 1668988 to track that we don't just want the "author" link to point to AMO.

When an add-on has ratings, you can click on that link to got to the ratings page of the add-on. It doesn't appear when there are no ratings, however. We should show it unconditionally.

That would be quite a straightforward change, the code is here: https://searchfox.org/mozilla-central/rev/ada05ac4faf1f79944a35a9eb79083a684a98975/toolkit/mozapps/extensions/content/aboutaddons.js#2319-2331

and the unit test is here: https://searchfox.org/mozilla-central/rev/ada05ac4faf1f79944a35a9eb79083a684a98975/toolkit/mozapps/extensions/test/browser/browser_html_detail_view.js

Mentor: rob
Severity: -- → N/A
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: good-first-bug
Priority: -- → P3
See Also: → 1668988
Summary: No way to go to the addon's webpage from the Add-ons Manager → Add-on listing link is not visible when an add-on does not have any ratings

I renamed the bug in my previous comment because you specifically stated the use case of "vote for it".

The general request to add a link to AMO is at bug 590344.

See Also: → 590344

I would like to make my first contribution if that's okay. So if I understand correctly, the fix should be that the ratings (stars) and the link (number of reviews) is always visible?

Flags: needinfo?(rob)

(In reply to gresunta from comment #9)

I would like to make my first contribution if that's okay.

Welcome! If you haven't set up your development environment yet, get started by following the instructions at https://wiki.mozilla.org/WebExtensions/Contribution_Onramp#Setting_Up_Developer_Environment

Once you are ready to submit your patch for code review, do so by following the instructions at https://wiki.mozilla.org/WebExtensions/Contribution_Onramp#Submitting_a_Patch

So if I understand correctly, the fix should be that the ratings (stars) and the link (number of reviews) is always visible?

Yes. Without ratings I would expect the star ratings + link to be always visible (with visually empty stars), if there is a link available. That link is not always available, e.g. if the add-on is not publicly available on the AMO website.

In my previous comment at comment 7, I linked to the relevant source file where the change has to be made.
Here are more explicit instructions on creating the unit test in the browser_html_detail_view.js test file:

To run the unit test, run ./mach test toolkit/mozapps/extensions/test/browser/browser_html_detail_view.js

Flags: needinfo?(rob)
Assignee: nobody → gresunta
Status: NEW → ASSIGNED
Pushed by rob@robwu.nl: https://hg.mozilla.org/integration/autoland/rev/0c217b2cb8be Make ratings row visible if reviewURL exists r=robwu
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch

Verified as Fixed on the latest Nightly (117.0a1/20230723212527). Tested on Windows 10 x64 and Ubuntu 22.04 LTS.

I used https://addons.mozilla.org/en-US/firefox/addon/netvard-extension/, which has 0 users and 0 reviews.
The add-on detail page now shows the “Ratings” row with the star ratings (visually empty) and the link. Clicking the link properly redirects the user to add-on review page on AMO.

For more details, see the attached screenshot.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: