Skip to content

feat(feed): add sentiment popup for feed feedback#5504

Open
Daily-Dave wants to merge 2 commits intomainfrom
eng-720-add-sentiment-popup-to-feed
Open

feat(feed): add sentiment popup for feed feedback#5504
Daily-Dave wants to merge 2 commits intomainfrom
eng-720-add-sentiment-popup-to-feed

Conversation

@Daily-Dave
Copy link

@Daily-Dave Daily-Dave commented Feb 17, 2026

Adds a sentiment popup modal to collect user feedback on feed relevance.

Changes

  • New SentimentPopupModal component with thumbs up/down sentiment selection
  • Modal appears after configurable number of feed impressions
  • Tracks sentiment state per session to avoid repeated prompts
  • Logs user feedback via /feedSentiment mutation
  • Integrates with feed settings and logging context

Implementation decisions

  • Sentiment modal triggers based on impression count threshold
  • Uses TanStack Query mutation for feedback submission
  • State persisted in feed settings context to prevent duplicate prompts
  • Cleaned up unused modal logging code

Closes ENG-720


Created by Huginn 🐦‍⬛

Preview domain

https://eng-720-add-sentiment-popup-to-f.preview.app.daily.dev

Daily-Dave and others added 2 commits February 17, 2026 11:04
Implement sentiment popup modal allowing users to submit feedback about their feed experience through emoji selection (good, neutral, bad).

**Features:**
- SentimentPopupModal component with animated emoji selection
- Randomized emoji order to prevent positional bias
- Spring physics animations and glow effects
- GraphQL mutation for submitting sentiment
- Rate limiting (5 submissions per hour)
- Logging integration for analytics

**Technical Details:**
- Added LazyModal.FeedSentiment enum entry
- Created feedSentiment GraphQL types and mutation
- Added LogEvent.OpenFeedSentiment and SubmitFeedSentiment events
- Added TargetType.FeedSentiment for analytics
- CSS animations for modal entrance, emoji selection, and success states
- Fisher-Yates shuffle algorithm for emoji randomization

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
**Fixes:**
- Add OpenFeedSentiment logging on modal mount for analytics tracking
- Remove unused CSS variable --animation-delay (dead code)
- Remove unnecessary comments per CLAUDE.md guidelines
- Use hardcoded animation delay classes (animation-delay-300/380/460)

**Changes:**
- Added useEffect to log OpenFeedSentiment event when modal opens
- Removed inline style with unused CSS variable
- Cleaned up redundant comments
- Simplified component structure

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Feb 17, 2026

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

Project Deployment Actions Updated (UTC)
daily-webapp Error Error Feb 17, 2026 11:11am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
storybook Ignored Ignored Feb 17, 2026 11:11am

Request Review

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ rebelchris
❌ Daily-Dave
You have signed the CLA already but the status is still pending? Let us recheck it.

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

Comments