Skip to content

Commit f7d8e48

Browse files
authored
Merge pull request #47552 from callstack-internal/chore/rename-report-analytics-tags
[NoQA][Analytics] Chore: Replace `SWITCH` prefix with `OPEN` prefix for report-related tags
2 parents 715e167 + a62c08c commit f7d8e48

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/CONST.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -973,8 +973,8 @@ const CONST = {
973973
HOMEPAGE_INITIAL_RENDER: 'homepage_initial_render',
974974
REPORT_INITIAL_RENDER: 'report_initial_render',
975975
SWITCH_REPORT: 'switch_report',
976-
SWITCH_REPORT_FROM_PREVIEW: 'switch_report_from_preview',
977-
SWITCH_REPORT_THREAD: 'switch_report_thread',
976+
OPEN_REPORT_FROM_PREVIEW: 'open_report_from_preview',
977+
OPEN_REPORT_THREAD: 'open_report_thread',
978978
SIDEBAR_LOADED: 'sidebar_loaded',
979979
LOAD_SEARCH_OPTIONS: 'load_search_options',
980980
COLD: 'cold',

src/components/ReportActionItem/ReportPreview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ function ReportPreview({
389389
<View style={[styles.chatItemMessage, containerStyles]}>
390390
<PressableWithoutFeedback
391391
onPress={() => {
392-
Timing.start(CONST.TIMING.SWITCH_REPORT_FROM_PREVIEW);
392+
Timing.start(CONST.TIMING.OPEN_REPORT_FROM_PREVIEW);
393393
Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(iouReportID));
394394
}}
395395
onPressIn={() => DeviceCapabilities.canUseTouchScreen() && ControlSelection.block()}

src/pages/home/report/ReportActionItemThread.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function ReportActionItemThread({numberOfReplies, icons, mostRecentReply, childR
4646
<PressableWithSecondaryInteraction
4747
onPress={() => {
4848
Report.navigateToAndOpenChildReport(childReportID);
49-
Timing.start(CONST.TIMING.SWITCH_REPORT_THREAD);
49+
Timing.start(CONST.TIMING.OPEN_REPORT_THREAD);
5050
}}
5151
role={CONST.ROLE.BUTTON}
5252
accessibilityLabel={`${numberOfReplies} ${replyText}`}

src/pages/home/report/ReportActionsView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,8 @@ function ReportActionsView({
436436
Performance.markEnd(CONST.TIMING.SWITCH_REPORT);
437437
}
438438
Timing.end(CONST.TIMING.SWITCH_REPORT, hasCachedActionOnFirstRender ? CONST.TIMING.WARM : CONST.TIMING.COLD);
439-
Timing.end(CONST.TIMING.SWITCH_REPORT_THREAD);
440-
Timing.end(CONST.TIMING.SWITCH_REPORT_FROM_PREVIEW);
439+
Timing.end(CONST.TIMING.OPEN_REPORT_THREAD);
440+
Timing.end(CONST.TIMING.OPEN_REPORT_FROM_PREVIEW);
441441
}, [hasCachedActionOnFirstRender]);
442442

443443
// Check if the first report action in the list is the one we're currently linked to

0 commit comments

Comments
 (0)