Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android/iOS - Shortcut - Tapping shortcut track manual does not trigger any action #39863

Closed
2 of 6 tasks
lanitochka17 opened this issue Apr 8, 2024 · 11 comments
Closed
2 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Apr 8, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 1.4.61
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by:
Slack conversation:

Action Performed:

  1. Launch app
  2. Tap fab--- track expense---manual
  3. Enter an amount and tap next
  4. Tap track expense
  5. Navigate back to LHN
  6. Tap fab
  7. Tap shortcut track manual

Expected Result:

Tapping shortcut track manual must direct to track manual page

Actual Result:

Tapping shortcut track manual does not trigger any action

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6442458_1712590087801.dp.mp4

View all open jobs on GitHub

@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 8, 2024
Copy link

melvin-bot bot commented Apr 8, 2024

Triggered auto assignment to @muttmuure (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@lanitochka17
Copy link
Author

@muttmuure FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@lanitochka17
Copy link
Author

We think that this bug might be related to #vip-vsp

@allgandalf
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

Nothing happens when we click on Track expense shortcut

What is the root cause of that problem?

This is reproducible in all platforms not just android.

We do not have case defined for track expense in navigateToQuickAction


Here we do not have the startMoneyRequest action defined for CONST.QUICK_ACTIONS.TRACK_MANUAL, and hence it will return a empty string which is its default value:

So it returns default value as empty string.

What changes do you think we should make in order to solve the problem?

We need to define the case for track expense shortcut:

            case CONST.QUICK_ACTIONS.TRACK_MANUAL:
                IOU.startMoneyRequest(CONST.IOU.TYPE.TRACK_EXPENSE, props.quickAction.chatReportID, CONST.IOU.REQUEST_TYPE.MANUAL);
                return;

This will route the user to track expense page through the shortcut.

What alternative solutions did you explore? (Optional)

N/A

@ZhenjaHorbach
Copy link
Contributor

ZhenjaHorbach commented Apr 8, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

Shortcut - Tapping shortcut track manual does not trigger any action

What is the root cause of that problem?

The main problem with the issue is that in this PR we added some new actions #39149
but didn't add navigation logic for them

What changes do you think we should make in order to solve the problem?

To fix this issue we can update our navigateToQuickAction and add some new actions related with TRACK_EXPENSE

            case CONST.QUICK_ACTIONS.TRACK_MANUAL:
                IOU.startMoneyRequest(CONST.IOU.TYPE.TRACK_EXPENSE, props.quickAction.chatReportID, CONST.IOU.REQUEST_TYPE.MANUAL);
                return;
            case CONST.QUICK_ACTIONS.TRACK_SCAN:
                IOU.startMoneyRequest(CONST.IOU.TYPE.TRACK_EXPENSE, props.quickAction.chatReportID, CONST.IOU.REQUEST_TYPE.SCAN);
                return;
            case CONST.QUICK_ACTIONS.TRACK_DISTANCE:
                IOU.startMoneyRequest(CONST.IOU.TYPE.TRACK_EXPENSE, props.quickAction.chatReportID, CONST.IOU.REQUEST_TYPE.DISTANCE);
                return;

const navigateToQuickAction = () => {
switch (props.quickAction.action) {
case CONST.QUICK_ACTIONS.REQUEST_MANUAL:
IOU.startMoneyRequest(CONST.IOU.TYPE.REQUEST, props.quickAction.chatReportID, CONST.IOU.REQUEST_TYPE.MANUAL);
return;
case CONST.QUICK_ACTIONS.REQUEST_SCAN:
IOU.startMoneyRequest(CONST.IOU.TYPE.REQUEST, props.quickAction.chatReportID, CONST.IOU.REQUEST_TYPE.SCAN);
return;
case CONST.QUICK_ACTIONS.REQUEST_DISTANCE:
IOU.startMoneyRequest(CONST.IOU.TYPE.REQUEST, props.quickAction.chatReportID, CONST.IOU.REQUEST_TYPE.DISTANCE);
return;
case CONST.QUICK_ACTIONS.SPLIT_MANUAL:
IOU.startMoneyRequest(CONST.IOU.TYPE.SPLIT, props.quickAction.chatReportID, CONST.IOU.REQUEST_TYPE.MANUAL);
return;
case CONST.QUICK_ACTIONS.SPLIT_SCAN:
IOU.startMoneyRequest(CONST.IOU.TYPE.SPLIT, props.quickAction.chatReportID, CONST.IOU.REQUEST_TYPE.SCAN);
return;
case CONST.QUICK_ACTIONS.SPLIT_DISTANCE:
IOU.startMoneyRequest(CONST.IOU.TYPE.SPLIT, props.quickAction.chatReportID, CONST.IOU.REQUEST_TYPE.DISTANCE);
return;
case CONST.QUICK_ACTIONS.SEND_MONEY:
IOU.startMoneyRequest(CONST.IOU.TYPE.SEND, props.quickAction.chatReportID);
return;
case CONST.QUICK_ACTIONS.ASSIGN_TASK:
Task.clearOutTaskInfoAndNavigate(props.quickAction.chatReportID, quickActionReport, _.get(props.quickAction, 'targetAccountID', 0));
return;
default:
return '';
}

What alternative solutions did you explore? (Optional)

NA

@melvin-bot melvin-bot bot added the Overdue label Apr 11, 2024
Copy link

melvin-bot bot commented Apr 12, 2024

@muttmuure Whoops! This issue is 2 days overdue. Let's get this updated quick!

@muttmuure muttmuure changed the title Android - Shortcut - Tapping shortcut track manual does not trigger any action Android/iOS - Shortcut - Tapping shortcut track manual does not trigger any action Apr 15, 2024
@muttmuure
Copy link
Contributor

cc @thienlnam

@muttmuure
Copy link
Contributor

@allgandalf
Copy link
Contributor

allgandalf commented Apr 15, 2024

isn't this going to be external ? @muttmuure , similar issue related to track manual is external already: #40097

@melvin-bot melvin-bot bot added the Overdue label Apr 17, 2024
@muttmuure
Copy link
Contributor

@Gonals what's the plan with these?

https://github.com/Expensify/Expensify/issues/378892

@melvin-bot melvin-bot bot removed the Overdue label Apr 17, 2024
@Gonals
Copy link
Contributor

Gonals commented Apr 18, 2024

This was expected, as track functionality wasn't implemented yet. This PRshould fix this, so I'm going to close 😁

@Gonals Gonals self-assigned this Apr 18, 2024
@Gonals Gonals closed this as completed Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2
Projects
No open projects
Archived in project
Development

No branches or pull requests

5 participants