Skip to content

[FIX] Respect useAccessibilityLabel in Babel interaction tracking - #1483

Merged
cdn34dd merged 1 commit into
developfrom
carlosnogueira/issue-1465/fix-babel-use-accessibility-label-config
Oct 7, 2026
Merged

cdn34dd merged 1 commit into
developfrom
carlosnogueira/issue-1465/fix-babel-use-accessibility-label-config

Conversation

@cdn34dd

@cdn34dd cdn34dd commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

What does this PR do?

Fixes Babel interaction tracking ignoring useAccessibilityLabel: false by replacing || with ?? when applying the default configuration.

Fixes #1465.

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests
  • 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)
  • If this PR is auto-generated, please make sure also to manually update the code related to the change

Copilot AI balanced review requested due to automatic review settings October 6, 2026 17:09
@cdn34dd
cdn34dd requested a review from a team as a code owner October 6, 2026 17:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The focused fix correctly addresses the reported boolean-defaulting bug and is adequately covered by tests.

Review effort: Balanced
Findings: None

What changed in this PR

Fixes Babel-based interaction tracking so explicit useAccessibilityLabel: false configuration is respected.

Changes:

  • Uses nullish coalescing when applying the default.
  • Adds initialization and action-naming precedence tests.
File Description
packages/​core/​src/​DdSdkReactNative.tsx Preserves explicit false configuration.
packages/​core/​src/​__tests__/​DdSdkReactNative.test.tsx Tests configuration propagation and defaults.
packages/​core/​src/​rum/​instrumentation/​interactionTracking/​__tests__/​DdBabelInteractionTracking.test.ts Tests action naming with accessibility labels enabled and disabled.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@cdn34dd
cdn34dd merged commit 024ca86 into develop Oct 7, 2026
16 checks passed
@cdn34dd
cdn34dd deleted the carlosnogueira/issue-1465/fix-babel-use-accessibility-label-config branch October 7, 2026 15:54
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.

useAccessibilityLabel: false is ignored when the babel plugin is enabled

4 participants