feat: render rich text from contentful#27658
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 3 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Why no E2E tags are selected:
The risk is low as these are isolated UI component changes with unit test coverage, and no existing E2E tests cover this feature area. Performance Test Selection: |
|




Description
Render contentful rich text
Changelog
CHANGELOG entry: null
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Adds a new rich-text renderer and switches rewards screens to render Contentful-provided documents and open links via in-app browser navigation, which may affect UI rendering and link handling for live campaign content.
Overview
Enables Rewards UI to render Contentful rich text documents (paragraphs, headings, lists, text marks, and hyperlinks) via a new
ContentfulRichTextcomponent, with hyperlinks opening in the in-app browser.Updates
CampaignMechanicsViewto renderhowItWorks.notesonly when it is a valid Contentfuldocument(removing the previous structured-notes parsing and related testIDs), and updatesCampaignOptInSheetto prefercampaign.termsAndConditionsrich text with a static fallback.Adds comprehensive unit tests for the new rich-text renderer and adjusts existing tests for the new rendering/navigation behavior.
Written by Cursor Bugbot for commit 70a7760. This will update automatically on new commits. Configure here.