PANA-5681: Integrate HeatmapIdentifierRegistry into RUM for heatmaps [3 of 4]#3205
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 087cbc56d0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
7c039dc to
e76417d
Compare
This comment has been minimized.
This comment has been minimized.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## feature/heatmaps #3205 +/- ##
====================================================
+ Coverage 72.09% 72.11% +0.02%
====================================================
Files 964 967 +3
Lines 35429 35499 +70
Branches 5880 5887 +7
====================================================
+ Hits 25542 25600 +58
- Misses 8278 8283 +5
- Partials 1609 1616 +7
🚀 New features to boost your workflow:
|
ec4040e to
81e4f04
Compare
cbfbf76 to
9a2e330
Compare
9a2e330 to
e63b7f4
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
eef69a5 to
6210b4b
Compare
6210b4b to
fa8baf8
Compare
| * = true on Android but never receive touch events, so the RUM gesture layer never fires for | ||
| * them. Excluding `isEnabled` here keeps the predicate identical to RUM's existing behaviour. | ||
| */ | ||
| fun View.isValidTapTarget(): Boolean { |
There was a problem hiding this comment.
do we need to have it in -internal module? seems like it is used only in -rum.
normally -internal module shouldn't be visible on the user side, but if they add it, they will have this extension.
There was a problem hiding this comment.
It will be used also by session replay in the next pr
What does this PR do?
Integrates heatmap tap data into the RUM feature. When a tap gesture is detected and the view is attached to a window, GesturesListener captures the touch coordinates, the view's dimensions, and (when available) its heatmap identifier from the
HeatmapIdentifierRegistry, and packages them into a newHeatmapActionDataobject. This data flows throughAdvancedRumMonitor.addActionWithHeatmap— an internal API that keepsHeatmapActionDataoff the publicRumMonitorinterface — intoRumActionScope, where it is serialised into thedd.actionfield of the outgoingActionEvent.RumFeaturenow implementsHeatmapIdentifierRegistryProvider, exposing its lazily-initialised registry to Session Replay viaFeatureScope.unwrap()without going through the untyped feature-context map.Motivation
Support mobile heatmaps. This is PR 3 of 4, integrates the
HeatmapIdentifierRegistry(#3202) and updated schemas (#3203) into RUM.Additional Notes
Review checklist (to be filled by reviewers)