fix: keep below-threshold label only on cards#5830
Conversation
Remove below-threshold label rendering from post page, repost modal, and extension companion while preserving card surfaces and adding focused non-card regression tests. Made-with: Cursor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@claude please review this pr |
|
Claude finished @nimrodkra's task in 1m 43s —— View job PR Review
Overall, this is a clean, well-scoped PR. The intent is clear and the implementation is consistent across all three surfaces. A few things worth flagging:
|
Remove the orphan upvote icon in repost modal items by rendering the upvote row only when the numeric count is visible, and extend regression coverage. Made-with: Cursor
|
Addressed, thanks.
Pushed in commit 3a6f799. |
Prevent below-threshold upvote labels from appearing in post-page metadata while keeping card metadata behavior unchanged for surfaces that pass explicit upvote counts. Made-with: Cursor
Apply prettier-consistent indentation in PostMetadata to satisfy shared lint checks. Made-with: Cursor
Summary
belowThresholdLabelrendering only on card surfaces.Test plan
node ./scripts/typecheck-strict-changed.jsNODE_ENV=test pnpm --filter shared exec jest src/components/post/PostUpvotesCommentsCount.spec.tsx src/components/modals/RepostListItem.spec.tsxNODE_ENV=test pnpm --filter extension exec jest src/companion/CompanionEngagements.spec.tsxMade with Cursor
Preview domain
https://feat-card-only-upvote-label-visi.preview.app.daily.dev