Skip to content

ENT-11421: Add testimonial sidebar component with rotation logic to P…#152

Open
gshivajibiradar wants to merge 2 commits intomainfrom
feat/ENT-11421-testimonials-sidebar
Open

ENT-11421: Add testimonial sidebar component with rotation logic to P…#152
gshivajibiradar wants to merge 2 commits intomainfrom
feat/ENT-11421-testimonials-sidebar

Conversation

@gshivajibiradar
Copy link
Contributor

Title:
ENT-11421: Add testimonial sidebar component with rotation and session logic
ticket
https://2u-internal.atlassian.net/browse/ENT-11421

Description / Summary:
This PR implements the customer testimonial component in the checkout sidebar to provide social proof during the subscription flow. Key highlights:

Features Implemented:
Added TestimonialCard component to display quote, name, and role/title.
Integrated backend API to fetch active testimonials.
Implemented rotation logic to randomly show testimonials on each step.
Added de-duplication: prevents the same testimonial from appearing twice in a session.
Handles session reset: testimonial history clears on new sessions.
UI follows sidebar styling and mobile responsiveness standards.
Minor TypeScript issues fixed.

Testing Notes:
Verified rotation logic and dynamic updates.
Confirmed display of quote, attribution, and role.
Checked mobile responsiveness and layout.

Ready for QA review.

Files Added / Modified:
PurchaseSummary.tsx – integrated testimonial logic into PurchaseSummary component.
TestimonialCard.tsx – created component to render individual testimonials.

@codecov
Copy link

codecov bot commented Mar 11, 2026

Codecov Report

❌ Patch coverage is 68.88889% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.53%. Comparing base (35be22a) to head (0327391).
⚠️ Report is 34 commits behind head on main.

Files with missing lines Patch % Lines
src/components/PurchaseSummary/PurchaseSummary.tsx 68.42% 11 Missing and 1 partial ⚠️
src/components/PurchaseSummary/TestimonialCard.tsx 66.66% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #152      +/-   ##
==========================================
- Coverage   84.12%   83.53%   -0.60%     
==========================================
  Files         147      149       +2     
  Lines        2444     2581     +137     
  Branches      410      502      +92     
==========================================
+ Hits         2056     2156     +100     
- Misses        388      395       +7     
- Partials        0       30      +30     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant