feat: render CMS-managed testimonials on course and program pages - #3969
Merged
Merged
Conversation
OpenAPI ChangesNo changes detected Unexpected changes? Ensure your branch is up-to-date with |
zamanafzal
force-pushed
the
zafzal/13286-testimonials-product-pages
branch
from
September 23, 2026 12:06
977cb97 to
ac47a31
Compare
zamanafzal
marked this pull request as ready for review
September 23, 2026 12:22
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The implementation does not use the documented shared carousel and places testimonials after FAQs instead of before them.
Get a fresh assessment by requesting another Copilot review.
Review effort: Balanced
Findings: 4
Open (5)
What changed in this PR
Adds CMS-managed testimonials to MITx Online course and program product pages.
Changes:
- Adds a testimonial display with navigation, animation, avatars, and accessibility labels.
- Integrates testimonials into all three product-page variants with test factories and coverage.
- Updates the MITx Online API client dependency.
| File | Description |
|---|---|
yarn.lock |
Locks the testimonial-enabled API client. |
frontends/main/src/app-pages/ProductPages/util.ts |
Adds the testimonials heading anchor. |
frontends/main/src/app-pages/ProductPages/TestimonialsSection.tsx |
Implements testimonial rendering and navigation. |
frontends/main/src/app-pages/ProductPages/TestimonialsSection.test.tsx |
Tests testimonial presentation and controls. |
frontends/main/src/app-pages/ProductPages/ProgramPage.tsx |
Adds testimonials to program pages. |
frontends/main/src/app-pages/ProductPages/ProgramPage.test.tsx |
Updates program heading expectations. |
frontends/main/src/app-pages/ProductPages/ProgramAsCoursePage.tsx |
Adds testimonials to course-framed programs. |
frontends/main/src/app-pages/ProductPages/ProgramAsCoursePage.test.tsx |
Updates heading expectations. |
frontends/main/src/app-pages/ProductPages/FaqsSection.tsx |
Removes a styling comment. |
frontends/main/src/app-pages/ProductPages/CoursePage.tsx |
Adds testimonials to course pages. |
frontends/main/src/app-pages/ProductPages/CoursePage.test.tsx |
Updates course heading expectations. |
frontends/main/package.json |
Pins the updated API client archive. |
frontends/api/src/mitxonline/test-utils/factories/pages.ts |
Adds testimonial factories and page data. |
frontends/api/package.json |
Pins the updated API client archive. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
zamanafzal
force-pushed
the
zafzal/13286-testimonials-product-pages
branch
from
September 23, 2026 12:26
ac47a31 to
3bef596
Compare
zamanafzal
force-pushed
the
zafzal/13286-testimonials-product-pages
branch
2 times, most recently
from
September 23, 2026 17:33
84503ea to
ff95797
Compare
…se and program pages
zamanafzal
force-pushed
the
zafzal/13286-testimonials-product-pages
branch
from
September 24, 2026 06:58
ff95797 to
2acb897
Compare
zamanafzal
enabled auto-merge (squash)
September 24, 2026 18:12
zamanafzal
disabled auto-merge
September 24, 2026 18:12
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
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.



What are the relevant tickets?
https://github.com/mitodl/hq/issues/13286
Related PRs:
Description (What does it do?)
Renders author-managed testimonials on MIT Learn course & program product pages, from data added to the MITx Online Wagtail CMS in mitxonline#3987.
prefers-reduced-motion).CoursePage,ProgramPage, andProgramAsCoursePage, after the FAQ section (Figma order: instructors → FAQs → testimonials); hidden entirely when there are no testimonials.Screenshots (if appropriate):
Desktop:


Mobile:
How can this be tested?
The backend (mitxonline#3987) is merged — make sure your MIT Learn environment points at a MITx Online that includes it (current
main).Additional Context
Uses the published
@mitodl/mitxonline-api-axios@2026.9.23, which includes thetestimonialsfield.