You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add FAQ links to warning messages for merchant troubleshooting (#1268)
* feat: add FAQ links to warning messages for merchant troubleshooting
Add help_url field to all warning messages directing merchants to troubleshooting documentation. Enhances console output to display FAQ links for common issues like message hidden, invalid options, and integration errors.
* fix: address PR feedback for FAQ links implementation
- Remove description mutation in logger to avoid breaking telemetry parsers
- Normalize FAQ base URL before concatenation to prevent double slashes
- Add help_url to unsafe lander warning for consistency
- Add comprehensive test coverage for help_url in warnings:
* Created dedicated test suite for help_url in message interface
* Added help_url assertions to validation tests
* Created unit tests for getFaqUrl function with 9 test cases
* Tests verify URL normalization and fallback behavior
* refactor: consolidate duplicate FAQ paths and remove env check
- Remove duplicate FAQ_PATHS entries (INVALID_SELECTOR, NOT_IN_DOCUMENT, UNSAFE_LANDER)
- Consolidate to shared paths: INTEGRATION and INVALID_OPTIONS
- Remove unnecessary env.FAQ_BASE_URL check in globals.js
- Update all source files to use consolidated path names
- Update tests to reflect consolidated paths
* refactor: update FAQ base URL and consolidate paths to RENDERING and GENERAL
description: `PayPal Message has been hidden. Message must be visible and requires minimum dimensions of ${minWidth}px x ${minHeight}px. Current container is ${entry.intersectionRect.width}px x ${entry.intersectionRect.height}px.`,
0 commit comments