-
Notifications
You must be signed in to change notification settings - Fork 289
feat: add upvote support for hot takes #5356
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
Merged
Merged
Conversation
This file contains hidden or 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
- Add numUpvotes and userState fields to UserHotTake interface - Create useVoteHotTake hook with optimistic cache updates - Add upvote button with count display to HotTakeItem component - Integrate upvote functionality in ProfileUserHotTakes - Add HotTake entity type to UserVoteEntity enum - Add HotTakeList origin for analytics tracking Closes #5354 Co-Authored-By: Chris Bongers <rebelchris@users.noreply.github.com>
…5354-20260122-1859
- Update UserHotTake interface to use upvotes/upvoted fields - Fix UserVoteEntity enum to use 'hot_take' matching API - Add hot take specific mutation handlers for optimistic updates - Fix cache query key to match useUserHotTakes - Move upvote button after edit/delete buttons Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Rename UserHotTake to HotTake, update GraphQL queries and mutations to use new names (hotTakes, addHotTake, etc.). Update all component and hook imports accordingly. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
… into claude/issue-5354-20260122-1859
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.
Summary
UserHotTakeinterface to useupvotes/upvotedfields (matching API)UserVoteEntity.HotTakeenum value to'hot_take'(was'userHotTake')['userHotTakes']to['user_hot_takes']Test plan
Depends on: dailydotdev/daily-api#3487
🤖 Generated with Claude Code
Preview domain
https://claude-issue-5354-20260122-1859.preview.app.daily.dev