Skip to content

Conversation

@Trawlnetter
Copy link

@Trawlnetter Trawlnetter commented Dec 22, 2025

Fixes Some Review toolbar features should be visible for logged-out users

This problem has bothered me for a while. It's not obvious that logged-out users can still access a review's main page and see the comments.

I reorganized the review footer and added a "Direct link" section to the footer to fix this. I considered making the title of the review, instead of the date, link to the review, but I decided not to change that. The dark mode color scheme of a visited link looked ugly on the title of a review. At any rate, since the "Direct link" section would be added to the footer, people can use that instead.

I removed some words from certain messages in the footer to save space and compensate for the extra space taken up by the "Direct link" section. I also changed the logic of when Add a comment and View comments (x) show up, described in the last section here.

Summary of changes:

  • Add "Direct link" to the small footer
  • Change order of links in the small footer
  • Change wording of small footer messages slightly, to save space
  • Change when "View comments (x)" and "Add a comment" show up
  • Add "title" attribute to some links in the small footer, for ease of use

[Edit: I missed author-created reviews the first time around. This has now been fixed. I've force-pushed my changes, and added new screenshots below.]

Screenshots before

Not logged in, viewing any review:
You can log in to rate this review, mute this user, or add a comment.

Logged in as admin, viewing a review you've voted helpful with no comments:
Was this review helpful to you?   Yes   No   Edit  More Options
| Add a comment

Logged in as admin, viewing a review you've voted helpful with 4 comments:
Was this review helpful to you?   Yes   No   Remove vote   Edit  More Options
| View comments (4) - Add comment

Logged in and viewing your own review with no comments:
 You wrote this review - Revise it | Direct link | Add a comment

Logged in and viewing your own review with 1 comment:
 You wrote this review - Revise it | Direct link | View comments (1) - Add comment

Not logged in, or logged in as admin, or logged in as a regular user, viewing a review by the game's author with no comments:
Add comment

Not logged in, or logged in as admin, or logged in as a regular user, viewing a review by the game's author with 1 comment:
View comments (1) - Add comment

Screenshots after

Not logged in, viewing a review with no comments:
Direct link | Log in to comment, rate this review, or mute this user.

Not logged in, viewing a review with 4 comments:
Direct link | View comments (4) | Log in to comment, rate this review, or mute this user.

Logged in as admin, viewing a review you've voted helpful with no comments:
Direct link | Was this review helpful?   Yes   No   More Options

Logged in as admin, viewing a review you've voted helpful with 4 comments:
Direct link | View comments (4) | Was this review helpful?   Yes   No   More Options

Logged in and viewing your own review with no comments:
Direct link | Add a comment | You wrote this review - Revise it

Logged in and viewing your own review with 1 comment:
Direct link | View comments (1) | You wrote this review - Revise it

Not logged in, viewing a review by the game's author with no comments:
Direct link

Logged in, viewing a review by the game's author with no comments:
Direct link | Add a comment

Not logged in, or logged in as admin, or logged in as a regular user, viewing a review by the game's author with 1 comment:
Direct link | View comments (1)

Note about Add comment and View comments (x)

Niche, but potentially useful to know:

With the current code, when you're looking at a review from the direct link, the View comments (x) link disappears from the review footer.

I kept this feature in my modified code. I didn't screenshot every variation of the review footer below, however, because that would take a very long time. All the screenshots above were taken not from the review's direct link, but from the game's main page.

With the old code: Add comment always appears in the review footer. View comments (x) appears only if you're logged in, and the review has comments, and you're NOT looking at the review's direct link. If you're looking at the review's direct link, View comments (x) never appears.

With the new code: Add comment only exists in the review footer if you're logged in, AND (the review has no comments OR (the review has comments and you're looking at the review's direct link)). View comments (x) appears only if the review has comments, and you're NOT looking at the review's direct link. If you're looking at the review's direct link, View comments (x) never appears.

Also:

With the new code, View comments (x) appears regardless of whether you're logged in. This may seem redundant given that the new Direct link section of the footer already links to the direct link of the review, and View comments (x) also links to the direct link of the review. However, Direct link links to the top of the review, while View comments (x) links to the comments section. This is useful for long reviews where someone would have to scroll down very far to see the comments section.

With the new code, you have to be at the review's direct link before you can click Add a comment. With the old code, the Add a comment link always existed and you didn't have to be at the review's direct link to click it. I think this is an acceptable loss to save space in the review footer, and making people see the existing comments before they can add a comment of their own may be worth it. The Add a comment feature is rarely used, at any rate.

@Trawlnetter Trawlnetter changed the title Redesign the small footer of a review Redesign the small footer of a review and add a "Direct link" section Dec 22, 2025
- Add "Direct link" to the small footer
- Changed order of links in the small footer
- Changed wording of small footer messages slightly
- Replaced "View comments (x) - Add a comment" with just
"View comments" in the footer of a review with comments
- Add "title" attribute to some links in the small footer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Game page: Some Review toolbar features should be visible for logged-out users

1 participant