Skip to content

Commit cd74c30

Browse files
committed
fix: terminology
1 parent 03e7180 commit cd74c30

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

contributingGuides/PERFORMANCE_METRICS.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ Project is using Firebase for tracking these metrics. However, not all of them a
2525
| `open_report_thread` || Time taken to open a thread in a report.<br><br>**Platforms:** All | Starts when user presses Report Action Item. | Stops when the `ReportActionsList` finishes laying out. |
2626
| `send_message` || Time taken to send a message.<br><br>**Platforms:** All | Starts when the new message is sent. | Stops when the message is being rendered in the chat. |
2727
| `pusher_ping_pong` || The time it takes to receive a PONG event through Pusher.<br><br>**Platforms:** All | Starts every minute and repeats on the minute. | Stops when the event is received from the server. |
28-
| `open_submit_expense` || Time taken to open "Submit expense" screen.<br><br>**Platforms:** All | Starts when the `Create expense` is pressed. | Stops when the `IOURequestStartPage` finishes laying out. |
29-
| `open_submit_expense_contact` || Time taken to Submit expense screen.<br><br>**Platforms:** All | Starts when the `Next` button on `Create expense` screen is pressed. | Stops when the `IOURequestStepParticipants` finishes laying out. |
30-
| `open_submit_expense_approve` || Time taken to Submit expense screen.<br><br>**Platforms:** All | Starts when the `Contact` on `Choose recipient` screen is selected. | Stops when the `IOURequestStepConfirmation` finishes laying out. |
28+
| `open_create_expense` || Time taken to open "Create expense" screen.<br><br>**Platforms:** All | Starts when the `Create expense` is pressed. | Stops when the `IOURequestStartPage` finishes laying out. |
29+
| `open_create_expense_contact` || Time taken to "Create expense" screen.<br><br>**Platforms:** All | Starts when the `Next` button on `Create expense` screen is pressed. | Stops when the `IOURequestStepParticipants` finishes laying out. |
30+
| `open_create_expense_approve` || Time taken to "Create expense" screen.<br><br>**Platforms:** All | Starts when the `Contact` on `Choose recipient` screen is selected. | Stops when the `IOURequestStepConfirmation` finishes laying out. |
3131

3232
## Documentation Maintenance
3333

src/CONST.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1519,9 +1519,9 @@ const CONST = {
15191519
SIDEBAR_LOADED: 'sidebar_loaded',
15201520
LOAD_SEARCH_OPTIONS: 'load_search_options',
15211521
SEND_MESSAGE: 'send_message',
1522-
OPEN_SUBMIT_EXPENSE: 'open_submit_expense',
1523-
OPEN_SUBMIT_EXPENSE_CONTACT: 'open_submit_expense_contact',
1524-
OPEN_SUBMIT_EXPENSE_APPROVE: 'open_submit_expense_approve',
1522+
OPEN_CREATE_EXPENSE: 'open_create_expense',
1523+
OPEN_CREATE_EXPENSE_CONTACT: 'open_create_expense_contact',
1524+
OPEN_CREATE_EXPENSE_APPROVE: 'open_create_expense_approve',
15251525
APPLY_AIRSHIP_UPDATES: 'apply_airship_updates',
15261526
APPLY_PUSHER_UPDATES: 'apply_pusher_updates',
15271527
APPLY_HTTPS_UPDATES: 'apply_https_updates',

src/libs/E2E/tests/moneyRequestTest.e2e.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const test = (config: NativeConfig) => {
2828
.then(() => tap('floating-action-button'))
2929
.then(() => waitForElement('create-expense'))
3030
.then(() => tap('create-expense'))
31-
.then(() => waitForEvent(CONST.TIMING.OPEN_SUBMIT_EXPENSE))
31+
.then(() => waitForEvent(CONST.TIMING.OPEN_CREATE_EXPENSE))
3232
.then((entry) => {
3333
E2EClient.submitTestResults({
3434
branch: Config.E2E_BRANCH,
@@ -43,7 +43,7 @@ const test = (config: NativeConfig) => {
4343
.then(() => tap('button_2'))
4444
.then(() => waitForTextInputValue('2', 'moneyRequestAmountInput'))
4545
.then(() => tap('next-button'))
46-
.then(() => waitForEvent(CONST.TIMING.OPEN_SUBMIT_EXPENSE_CONTACT))
46+
.then(() => waitForEvent(CONST.TIMING.OPEN_CREATE_EXPENSE_CONTACT))
4747
.then((entry) => {
4848
E2EClient.submitTestResults({
4949
branch: Config.E2E_BRANCH,
@@ -54,7 +54,7 @@ const test = (config: NativeConfig) => {
5454
})
5555
.then(() => waitForElement('+66 65 490 0617'))
5656
.then(() => tap('+66 65 490 0617'))
57-
.then(() => waitForEvent(CONST.TIMING.OPEN_SUBMIT_EXPENSE_APPROVE))
57+
.then(() => waitForEvent(CONST.TIMING.OPEN_CREATE_EXPENSE_APPROVE))
5858
.then((entry) => {
5959
E2EClient.submitTestResults({
6060
branch: Config.E2E_BRANCH,

src/pages/iou/request/step/IOURequestStepConfirmation.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ function IOURequestStepConfirmation({
186186
useFetchRoute(transaction, transaction?.comment?.waypoints, action, shouldUseTransactionDraft(action) ? CONST.TRANSACTION.STATE.DRAFT : CONST.TRANSACTION.STATE.CURRENT);
187187

188188
useEffect(() => {
189-
Performance.markEnd(CONST.TIMING.OPEN_SUBMIT_EXPENSE_APPROVE);
189+
Performance.markEnd(CONST.TIMING.OPEN_CREATE_EXPENSE_APPROVE);
190190
}, []);
191191
useEffect(() => {
192192
const policyExpenseChat = participants?.find((participant) => participant.isPolicyExpenseChat);

src/pages/iou/request/step/IOURequestStepParticipants.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function IOURequestStepParticipants({
8787
const isMobileSafari = isMobileSafariBrowser();
8888

8989
useEffect(() => {
90-
Performance.markEnd(CONST.TIMING.OPEN_SUBMIT_EXPENSE_CONTACT);
90+
Performance.markEnd(CONST.TIMING.OPEN_CREATE_EXPENSE_CONTACT);
9191
}, []);
9292

9393
// When the component mounts, if there is a receipt, see if the image can be read from the disk. If not, redirect the user to the starting step of the flow.
@@ -214,7 +214,7 @@ function IOURequestStepParticipants({
214214
? ROUTES.MONEY_REQUEST_STEP_CATEGORY.getRoute(action, iouType, transactionID, selectedReportID.current || reportID, iouConfirmationPageRoute)
215215
: iouConfirmationPageRoute;
216216

217-
Performance.markStart(CONST.TIMING.OPEN_SUBMIT_EXPENSE_APPROVE);
217+
Performance.markStart(CONST.TIMING.OPEN_CREATE_EXPENSE_APPROVE);
218218
waitForKeyboardDismiss(() => {
219219
// If the backTo parameter is set, we should navigate back to the confirmation screen that is already on the stack.
220220
if (backTo) {

0 commit comments

Comments
 (0)