Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MBS-13804: Show review links as such on sidebar #3404

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

reosarevok
Copy link
Member

Implement MBS-13804

Problem

Reviews are shown on the sidebar of entities as whatever matches their URL, which can be very confusing. For example, a YouTube video review on the sidebar of a release group will say "Play on YouTube", but clearly it's not a link to play the RG.

Solution

Similarly as with blog and homepage, this shows all review rels as such regardless of what the URL is, rather than showing the default for the URL. The second commit fixes the order we look for favicons also on the edit pages.

I updated the source for our Gentleface Mono Icon Set icons since gentleface.com itself seems gone.

Testing

Manually, using the RG from the ticket, release-group/a2105081-b86f-4b56-a9cc-ddda4835b975, with full server data.

@reosarevok reosarevok added QoL Non-urgent quality of life improvements URL handling labels Nov 4, 2024
@reosarevok
Copy link
Member Author

@Aerozol, please see if the chosen icon makes sense for you, and if it seems to close to the blog one (@yvanzo suggested maybe the blog icon is not a great fit and should be changed).

Review:
image

Blog:
image

@Aerozol
Copy link
Contributor

Aerozol commented Nov 5, 2024

Cool change! Hmm, tricky, that icon set is a bit inconsistent. The very heavy black speech bubble does look a bit out of place.

Ignoring what we currently have, just looking at that icon set, I think I would suggest:

image
Blog

image
Review

@reosarevok
Copy link
Member Author

reosarevok commented Nov 5, 2024

It of course doesn't have to be that icon set - if you want to design some MeB icons for that, or find some other free use ones, that's more than ok :) I kind of agree that the current blog one is a good fit for review, just not sure if it would confuse users too much to switch it.

@reosarevok
Copy link
Member Author

We discussed on IRC and agreed the change is probably minor enough, so I made it now.

root/static/scripts/edit/externalLinks.js Outdated Show resolved Hide resolved
root/layout/components/ExternalLinks.js Outdated Show resolved Hide resolved
The previous blog icon will be reused for review links in following commits.

I updated the source for our Gentleface Mono Icon Set icons since
gentleface.com itself seems gone.
Similarly as with blog and homepage, this shows all review rels
as such regardless of what the URL is, rather than showing, say, YouTube
links as "Play on YouTube".
On the sidebar, we only show the default per-site icon if none of the
special icons apply. On the editing page, we were doing the other way
around. Consolidating it seems sensible and if so we should do
the special icons first, since overriding per-page ones is part
of their whole point.
While I'm not sure if this is faster than three nested .some calls,
it shouldn't be a lot slower and I'd say it makes the code at least somewhat
more clear.

This does no longer prioritize blog over review, but that probably doesn't
matter since I'm not sure those can exist at the same time for the same
entity type and even if they could, something being a blog and review
for the same entity at the same time would just be bad data, so it's irrelevant
which icon it shows.
These names are just "blog" and "review".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
QoL Non-urgent quality of life improvements URL handling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants