Skip to content

Enhancement of Compose Actions tracking reflection#2692

Merged
ambushwork merged 1 commit into
developfrom
yl/actions-tracking/add-selectable-item
Jun 3, 2025
Merged

Enhancement of Compose Actions tracking reflection#2692
ambushwork merged 1 commit into
developfrom
yl/actions-tracking/add-selectable-item

Conversation

@ambushwork

Copy link
Copy Markdown
Member

What does this PR do?

This PR enhances compose actions tracking reflection on two points:

  • When seeing SelectableElement modifier, we treat it also as a clickable target, in this case when user taps on the selectable item, a RUM tap action will be sent as well.
  • Fix reflection issue when getting the role of the element, before if it fails, the whole action tracking will abort, with this PR, the role will return null, and action tracking continues.

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@codecov-commenter

codecov-commenter commented Jun 2, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 69.92%. Comparing base (faae92a) to head (cc6c9f1).
⚠️ Report is 2052 commits behind head on develop.

Files with missing lines Patch % Lines
.../android/compose/internal/utils/LayoutNodeUtils.kt 0.00% 4 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2692      +/-   ##
===========================================
+ Coverage    69.91%   69.92%   +0.02%     
===========================================
  Files          822      822              
  Lines        30693    30693              
  Branches      5169     5170       +1     
===========================================
+ Hits         21456    21462       +6     
+ Misses        7794     7783      -11     
- Partials      1443     1448       +5     
Files with missing lines Coverage Δ
.../android/compose/internal/utils/LayoutNodeUtils.kt 43.64% <0.00%> (-3.64%) ⬇️

... and 33 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ambushwork
ambushwork marked this pull request as ready for review June 2, 2025 13:36
@ambushwork
ambushwork requested review from a team as code owners June 2, 2025 13:36
@ambushwork
ambushwork merged commit aef35f9 into develop Jun 3, 2025
@ambushwork
ambushwork deleted the yl/actions-tracking/add-selectable-item branch June 3, 2025 06:52
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