Skip to content

Conversation

@michaelcanova
Copy link
Contributor

Overview

This PR fixes the Reply and Comment buttons on feed items, comments, and peer reviews by adding an additional check to see if it has an actionable, rather than only checking if it already has comments.

Screenshots

Feed Item:
image

Comments:
image

Peer Review:
image

@michaelcanova michaelcanova requested a review from a team as a code owner January 19, 2026 19:03
@vercel
Copy link
Contributor

vercel bot commented Jan 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
web Ready Ready Preview, Comment Jan 20, 2026 5:25pm

@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

<div className="flex items-center justify-between w-full">
<div className="flex items-center space-x-3 md:space-x-4 flex-nowrap overflow-x-auto">
<div className="flex items-center space-x-3 md:space-x-4 flex-nowrap overflow-visible">
<div
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was updated because on feed/earn items, if you hovered over the comment button, a horizontal scroll bar would appear, even though everything fit on the screen.

types/feed.ts Outdated
* @param metrics - The content metrics containing comment count
* @param hasCommentAction - Whether the user has a way to comment (via callback or navigation)
*/
export function shouldHideCommentButton(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we update this to work in the positive tense vs negative? That is, call it shouldShowCommentButton instead. We strive to name everything in positive vs negative form when reasonable.

Then we can have hideCommentButton={!shouldShowCommentButton(...)}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also let's move this to components/Feed/lib/feedUtils.tsx (I realize we don't have one yet but let's create one)

@sonarqubecloud
Copy link

@michaelcanova michaelcanova merged commit f25ef08 into main Jan 20, 2026
5 checks passed
@michaelcanova michaelcanova deleted the reply_button_fixes branch January 20, 2026 17:45
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.

3 participants