fix: add TERMS_URL support to survey link footers#7670
fix: add TERMS_URL support to survey link footers#7670jobenjada merged 2 commits intoformbricks:mainfrom
Conversation
The TERMS_URL environment variable was documented in docker-compose.yml and defined in constants but never threaded through the survey link footer components. This adds TERMS_URL prop passing through survey-renderer, pin-screen, survey-client-wrapper, link-survey-wrapper, and legal-footer, matching the existing pattern used by PRIVACY_URL and IMPRINT_URL.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (5)
WalkthroughThis change adds support for a 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
The
TERMS_URLenvironment variable is documented indocker-compose.yml, defined inlib/constants.ts, and already used in email templates—but it was never threaded through the survey link footer components. This addsTERMS_URLsupport to the legal footer, matching the existing pattern used byPRIVACY_URLandIMPRINT_URL.Issue
Fixes #7652
Changes
survey-renderer.tsx— ImportTERMS_URLfrom constants, pass toPinScreenandSurveyClientWrapperpin-screen.tsx— Accept and forwardTERMS_URLpropsurvey-client-wrapper.tsx— Accept and forwardTERMS_URLprop toLinkSurveyWrapperlink-survey-wrapper.tsx— Accept and forwardTERMS_URLprop toLegalFooterlegal-footer.tsx— AddTERMS_URLto the interface, null-check, and render a "Terms of Service" link with proper separatorsen-US.json— Addcommon.terms_of_servicetranslation keyTesting
TERMS_URLis not set, behavior is unchanged (no terms link, no extra separators)TERMS_URLis set, a "Terms of Service" link appears in the footer between Privacy and Report Survey, with correct|separators