-
-
Notifications
You must be signed in to change notification settings - Fork 285
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
reosarevok
wants to merge
5
commits into
metabrainz:master
Choose a base branch
from
reosarevok:MBS-13804
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
We discussed on IRC and agreed the change is probably minor enough, so I made it now. |
mwiencek
reviewed
Nov 13, 2024
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.
reosarevok
force-pushed
the
MBS-13804
branch
from
November 13, 2024 10:11
a82ec58
to
8c74e28
Compare
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".
reosarevok
force-pushed
the
MBS-13804
branch
from
November 14, 2024 17:24
8c74e28
to
9bdf62d
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.