Pbyr 3771 replace transform components with our own implementation#979
Pbyr 3771 replace transform components with our own implementation#979gabrielseco wants to merge 20 commits intomainfrom
Conversation
|
bugbot run |
📦 Bundle Size Report
Size Limits
Largest Files (Top 5)
View All Files (313 total)
✅ Bundle size check passed |
📊 Coverage Report✅ Coverage increased! 🎉
Detailed BreakdownLines Coverage
Statements Coverage
Functions Coverage
Branches Coverage
✅ Coverage check passed |
|
Deploy preview for remote-flows ready!
Deployed with vercel-action |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 95136d1. Configure here.
|
|
||
| **Status**: Ready for example implementation and optional documentation. | ||
| **Last Updated**: April 29, 2026 | ||
| **Next Action**: Create Accordion example in example app |
There was a problem hiding this comment.
Development TODO file accidentally committed to repository
Medium Severity
HTML_TRANSFORMER_TODO.md is an internal development tracking document with task checklists, estimated effort, step-by-step implementation instructions, and a "Last Updated: April 29, 2026" timestamp. This file is not project documentation — it's a working scratchpad that was accidentally included in the PR and doesn't belong in the repository.
Triggered by project rule: Code Review Guidelines
Reviewed by Cursor Bugbot for commit 95136d1. Configure here.
…ur-own-implementation


https://www.loom.com/share/f1fd14d923f34932b2bdcc1da74cdeb5?focus_title=1&muted=1&from_recorder=1
Loom explanation of how everything works
I will slice this PR to have smaller batches but if you want to know how everything will look / fit, there's the loom to explain it and see the demo
Note
Medium Risk
Introduces an opt-in rendering path that intentionally receives unsanitized HTML; incorrect partner implementations could create XSS risk even though the default behavior remains sanitized. Changes touch shared form rendering and many field components, so regressions would affect broad UI surface area.
Overview
Adds an optional
transformHtmlToComponentsprop toRemoteFlowsand wires it throughFormFieldsContext(via newuseTransformer) so field descriptions can be rendered as custom React components instead of sanitized HTML.Updates
FormDescriptionandFieldSetFieldto use the transformer when present (via a new internaltransformDescriptionhelper), and injectstransformHtmlintofieldDatafor multiple field components so custom partner components can reuse the same transformation.Refactors
TelFieldtype exports (TelFieldPropsvsTelFieldDataProps) and updates/extends unit tests to mockuseTransformerand cover transformer vs sanitization behavior; also bumps the example onboarding schema version for Germany and adds a TODO/guide markdown for implementing an Accordion transformer example.Reviewed by Cursor Bugbot for commit 95136d1. Bugbot is set up for automated code reviews on this repo. Configure here.