test: ATT manual test harness with dev URL overrides#131
Merged
Conversation
Adds a throwaway local testing harness for ketch-react-native that mirrors the ketch-ios ATT test approach: - SDK Health Dashboard UI with ATT status, ketch_att/ketch_att_prev rows, privacy/consent state, and event log - App Tracking Transparency section with Request ATT and Reload WebView buttons - NSUserTrackingUsageDescription added to Info.plist - ketch-react-native-run-sample Cursor skill for one-command iOS simulator launch Example app defaults to ethansch061226/website_smart_tag/UAT config. Headless API and dev-URL override features are excluded (not on main). Branch: local/att-test (throwaway — do not merge)
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 3 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit a67b7f2. Configure here.
jboileau99
approved these changes
Jun 30, 2026
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.

Description of this change
local/att-testbaseline)HTMLScriptElement.src,Element.setAttribute, andwindow.fetchinside the WebView to remap Ketch SDK tag script URLs to a local dev server; injected via<head>script andinjectedJavaScriptBeforeContentLoadedfor earliest-possible executionWhy is this change being made?
How was this tested? How can the reviewer verify your testing?
cd package && npm run typecheck && npm testbash .cursor/skills/ketch-react-native-run-sample/scripts/run-sample-app.sh ios local(optional manual QA)DEV_URL_OVERRIDES_ENABLED = trueinexample/devUrlOverrides.tsto test local tag redirectRelated issues
Checklist
Note
Medium Risk
SDK WebView bootstrap and global fetch/script patching affect all consumers when overrides are set; default-off example flag limits production impact, but the init param change applies whenever the new package ships.
Overview
Adds an SDK Health Dashboard and iOS ATT manual test flow to the React Native example: shared dashboard state, provider callbacks wired into on-screen rows and an event log, explicit Load with
autoLoad={false}, and optional dev URL remaps behindDEV_URL_OVERRIDES_ENABLED(default off). Example defaults shift to UAT org/property; iOS getsNSUserTrackingUsageDescriptionand updated CocoaPods lockfile.The package gains optional
webResourceUrlOverrides: WebView HTML andinjectedJavaScriptBeforeContentLoadedinstall hooks on scriptsrc,setAttribute, andfetchto remap tag URLs.initKetchTagnow builds query params from the init object (skipping non-scalars) and reads boot URL/org/property from parameters instead of the URL bar—fixing[object Object]in query strings when overrides are present.A Cursor skill plus
run-sample-app.sh/configure-sample-package.pyautomate switching the example between npm andfile:../package, Metro, pods, launch, and filtered logs.Reviewed by Cursor Bugbot for commit a67b7f2. Configure here.