MAUI: Label tap breadcrumbs the same way as React Native
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Read the MAUI breadcrumb creation path, especially OnBreadcrumbCreateCallback, and compare it with the React Native behavior described in the issue. The scope depends on resolving the listed questions about defaults, masking, breadcrumb shape, and coordination with Flutter; there is no agreed acceptance criteria yet. Done means those behavior choices are settled and MAUI tap breadcrumbs follow them without exposing input text.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem Statement
MAUI tap breadcrumbs often don't say which control was tapped. Button.Clicked carries the control's AutomationId and name if they're set, but not its text. The only way to get the text is IncludeTextInBreadcrumbs, which also captures the contents of Entry, Editor and Label controls.
Solution Brainstorm
After discussing this internally, we want to implement the same solution as React Native, instead of adding a MAUI-only option like the IncludeButtonTextInBreadcrumbs proposed in #5870. This comment compares what the other SDKs do.
What React Native does
From touchevents.tsx (getsentry/sentry-react-native#6106, getsentry/sentry-react-native#6142):
| Session Replay | Text from the tapped component's children, and sentry-label |
|---|---|
| Not installed | Used |
Installed, maskAllText on (the default) |
Skipped |
Installed, maskAllText: false |
Used, except inside Sentry.Mask |
- Developer-set identifiers (custom
labelName,accessibilityLabel,aria-label,testID) are used in every case. - Priority:
sentry-label, customlabelName,accessibilityLabel,aria-label,testID, then child text. - Child text is limited to 64 characters, 3 levels deep and 5 siblings per level.
- It isn't tied to
sendDefaultPii.extractTextFromChildren: falseopts out.
Mapping it to MAUI
Replay state:
Native.ExperimentalOptions.SessionReplay.IsSessionReplayEnabledandMaskAllText(defaulttrue) exist on Android and Cocoa. Windows has no Replay, so the "Not installed" row always applies there.- The per-element masks,
SessionReplay.MaskandMaskControlsOfType<T>, only work on Android.MaskPropertydefaults toMask, so an ancestor check has to useIsSet, notGetMask.
Two places where a direct port would leak text:
- Only label user-action breadcrumbs. React Native only labels touches.
AddElementInfoalso serves focus, child-added and page breadcrumbs, so changing it would put anEntry's typed text onFocused/Unfocused. The label belongs on theOnBreadcrumbCreateCallbackpath. - Exclude input controls. React Native collects child text nodes, which doesn't include a
TextInput'svalue. MAUI'sITextincludesEntryandEditor, so they need excluding explicitly.
Open questions
- Default. React Native is on by default, which it called out as a behaviour change. This repo's convention is that new features are opt-in, and on by default means existing apps without Replay start sending control text, including every Windows app. Should this be on by default on
version7, or opt-in onmain? IncludeTextInBreadcrumbs. It captures all text regardless of Replay. Does it stay as it is?- iOS masks. MAUI exposes no per-element mask on iOS, so nothing there matches
Sentry.Mask. IsMaskAllTextenough, or does MAUI need an iOS mask first? - Breadcrumb shape. React Native puts the label in the message (
Touch event within element: Save) and indata.path[].label. MAUI uses the messageButton.Clickedand the keyButton.Text. Which do we use, and do we need an equivalent ofsentry-label? - Flutter. getsentry/sentry-dart#3770 proposes the same approach, so it's worth agreeing the shape with that team.
Related
- #3130 asks for button text in breadcrumbs. This would resolve it.
- #5814 tracks password text in breadcrumbs.
- Ngôn ngữ chính
- C#
- Star
- 775
- Fork
- 262
- Merge trung bình
- 1 ngày 16 giờ
- Pull request đã merge (30 ngày)
- 118
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của getsentry/sentry-dotnet
-
chore: remove stale IL3050/IL3053 workaround from the iOS sampleCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởState: Needs Discussion
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
getsentry/sentry-dotnet#6071 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Heap dumps: every SDK shutdown logs "Error waiting for GarbageCollectionMonitor task to complete"Có thể đã có người làm @pcbeingused33 đã nhận hôm nay. Đang mởState: Needs Discussion
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
getsentry/sentry-dotnet#6039 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
.NET Platform: Android Task
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
getsentry/sentry-dotnet#6020 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Move the Blazor WebAssembly sample off the deprecated DevServerCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở.NET Framework: Blazor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
getsentry/sentry-dotnet#5906 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Docs MSBuild Needs Docs Update
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
getsentry/sentry-dotnet#5691 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của getsentry/sentry-dotnet
Issue tương tự
-
Audit by ear: boss warnings, other not-enough messages, ailments and barriers in a chapter 1 battleĐang mởenhancement needs-game ready-for-agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Sour-Dev-Home/metaphor-accessibility#1273 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
joinrpg/joinrpg-net#6336 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
muxinc/mux-csharp#88 ·
-
In-car displays show 0 km/h and P while the AV drivesCó thể đã có người làm @bazilinskyy đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
bazilinskyy/coupled-sim#366 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 3 ngày