Skip to content

feat: Add Empower web store WebView tab with connected traces - #150

Merged
nw-sentry merged 1 commit into
masterfrom
feat/webview-connected-traces
Nov 19, 2026
Merged

nw-sentry merged 1 commit into
masterfrom
feat/webview-connected-traces

Conversation

@antonis

@antonis antonis commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds a fourth bottom tab (globe icon) that loads the Empower Plant React web store (https://empower-plant.com/products) in a react-native-webview. It demos the RN SDK's WebView trace propagation (getsentry/sentry-react-native#6794, shipped in 8.32.0): one trace runs from the mobile app through the web page to the backend.

navigation – WebStore                      (mobile-react-native)
└─ ui.webview.load – webview/empower-plant (own transaction)
   └─ pageload – /products                 (empower React project)
      └─ http.client – GET flask…/products
         └─ http.server …                  (Flask)

TDA

  • The new tab is added last, so the existing tabs keep their positions. Existing selectors (bottom-tab-cart, etc.) are unchanged.
  • The new tab's icon has the testID bottom-tab-webview, but like the Cart icon it isn't found by Maestro on iOS. Add tabBarButtonTestID if a TDA test should drive this tab.

Testing

Screenshot

Simulator Screenshot - iPhone 17 Pro - 2026-11-13 at 10 06 03

Trace

Sentry link

Screenshot 2026-11-13 at 10 07 49

Loads the Empower Plant React app in a react-native-webview and injects
the current trace via sentryWebViewProps, so the web pageload and its
backend calls continue the React Native trace.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@antonis
antonis requested a review from thinkocapo November 13, 2026 09:08
@antonis
antonis marked this pull request as ready for review November 13, 2026 09:16
@antonis
antonis requested a review from cstavitsky as a code owner November 13, 2026 09:16
@antonis
antonis requested a review from nw-sentry November 16, 2026 12:06
@nw-sentry

Copy link
Copy Markdown
Contributor

This looks great! Thanks so much. Approved.

One note:
The iOS TDAs look for tab, 2 of 3 so with this change we will need to update it to of 4 after this is merged!

@antonis

antonis commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator Author

This looks great! Thanks so much. Approved.

One note: The iOS TDAs look for tab, 2 of 3 so with this change we will need to update it to of 4 after this is merged!

Thank you for reviewing @nw-sentry 🙇
I've opened a PR for that sentry-demos/empower#1790 changing it to use labels which should be more stable/future proof 🤞 . I think we can proceed with that first and then merge this PR and cut a new release.

@antonis

antonis commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator Author

I've opened a PR for that sentry-demos/empower#1790 changing it to use labels which should be more stable/future proof 🤞 . I think we can proceed with that first and then merge this PR and cut a new release.

Thank you for approving both PRs @nw-sentry 🙇

As discussed with @thinkocapo I'll leave the final decision on shipping the changes to the demo maintainers.

If you decide to proceed with this I'll also be happy to update https://github.com/sentry-demos/android and https://github.com/sentry-demos/ios

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants