Skip to content

[READY FOR PAYMENT][$250] [Manager McTest] Try it out button is unresponsive on Android #59742

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

Closed
1 of 8 tasks
jponikarchuk opened this issue Apr 7, 2025 · 18 comments
Closed
1 of 8 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Reviewing Has a PR in review

Comments

@jponikarchuk
Copy link

jponikarchuk commented Apr 7, 2025

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: v9.1.23-7
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: #58902
Email or phone of affected tester (no customers): -
Issue reported by: Applause Internal Team
Device used: Android 12
App Component: Money Requests

Action Performed:

Precondition: better to use new gmail account.

  1. Tap FAB > Create expense
  2. On Scan tab > tap 'Try it out'

Expected Result:

User is navigated to 'Confirm details' tab.

Actual Result:

Nothing happens.

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

1.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021920698329684762723
  • Upwork Job ID: 1920698329684762723
  • Last Price Increase: 2025-05-09
Issue OwnerCurrent Issue Owner: @
@jponikarchuk jponikarchuk added Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 labels Apr 7, 2025
Copy link

melvin-bot bot commented Apr 7, 2025

Triggered auto assignment to @jliexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@grgia
Copy link
Contributor

grgia commented Apr 7, 2025

Android only bug preventing users from clicking this button. May be unrelated to our changes @JKobrynski

@jliexpensify
Copy link
Contributor

@grgia do you want to make this one Internal for now?

@nkdengineer
Copy link
Contributor

Proposal

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

Nothing happens.

What is the root cause of that problem?

We navigate to the confirmation page immediately

const managerMcTestParticipant = getManagerMcTestParticipant() ?? {};
setMoneyRequestParticipants(transactionID, [{...managerMcTestParticipant, selected: true}]);
navigateToConfirmationPage(true);
return;

If the participant isn't updated completely in Onyx when we go to confirmation page, the flow is reset.

if (transaction?.transactionID && (!transaction?.isFromGlobalCreate || !isEmptyObject(transaction?.participants)) && (isCurrentReportID || isMovingTransactionFromTrackExpense)) {

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

Return a promise here

return Onyx.merge(`${ONYXKEYS.COLLECTION.TRANSACTION_DRAFT}${transactionID}`, {participants})

App/src/libs/actions/IOU.ts

Lines 929 to 931 in 689e60c

function setMoneyRequestParticipants(transactionID: string, participants: Participant[] = []) {
Onyx.merge(`${ONYXKEYS.COLLECTION.TRANSACTION_DRAFT}${transactionID}`, {participants});
}

And navigate to the confirmation page after the promise is resolved.

setMoneyRequestParticipants(transactionID, [{...managerMcTestParticipant, selected: true}]).then(() => {
    navigateToConfirmationPage(true);
});

const managerMcTestParticipant = getManagerMcTestParticipant() ?? {};
setMoneyRequestParticipants(transactionID, [{...managerMcTestParticipant, selected: true}]);
navigateToConfirmationPage(true);
return;

Optional: We can do the same on web here

if (isTestTransaction) {
const managerMcTestParticipant = getManagerMcTestParticipant() ?? {};
setMoneyRequestParticipants(transactionID, [{...managerMcTestParticipant, selected: true}]);
navigateToConfirmationPage(true);
return;

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

UI bug

What alternative solutions did you explore? (Optional)

Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

Copy link
Contributor

github-actions bot commented Apr 8, 2025

⚠️ @nkdengineer Thanks for your proposal. Please update it to follow the proposal template, as proposals are only reviewed if they follow that format (note the mandatory sections).

@melvin-bot melvin-bot bot added the Overdue label Apr 10, 2025
@grgia grgia changed the title Try it out button is unresponsible [Manager McTest] Try it out button is unresponsible on Android Apr 10, 2025
@grgia grgia changed the title [Manager McTest] Try it out button is unresponsible on Android [Manager McTest] Try it out button is unresponsive on Android Apr 10, 2025
@melvin-bot melvin-bot bot removed the Overdue label Apr 11, 2025
@grgia
Copy link
Contributor

grgia commented Apr 11, 2025

Assigning @DylanDylann as C+ for tracking the last few polish issues here

@DylanDylann
Copy link
Contributor

@nkdengineer's proposal looks good to me

🎀 👀 🎀 C+ Reviewed

@melvin-bot melvin-bot bot removed the Overdue label Apr 16, 2025
Copy link

melvin-bot bot commented Apr 16, 2025

Current assignee @grgia is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.

@grgia
Copy link
Contributor

grgia commented Apr 16, 2025

all yours @nkdengineer

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Apr 18, 2025
Copy link

melvin-bot bot commented Apr 23, 2025

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@DylanDylann
Copy link
Contributor

DylanDylann commented May 9, 2025

All done, waiting for payment

cc @jliexpensify

@jliexpensify
Copy link
Contributor

Ah, thanks for the bump - hmm automation failed here. @DylanDylann do we need a checklist?

@jliexpensify jliexpensify added the External Added to denote the issue can be worked on by a contributor label May 9, 2025
@jliexpensify
Copy link
Contributor

Payment Summary:

@melvin-bot melvin-bot bot changed the title [Manager McTest] Try it out button is unresponsive on Android [$250] [Manager McTest] Try it out button is unresponsive on Android May 9, 2025
Copy link

melvin-bot bot commented May 9, 2025

Job added to Upwork: https://www.upwork.com/jobs/~021920698329684762723

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label May 9, 2025
Copy link

melvin-bot bot commented May 9, 2025

Current assignee @DylanDylann is eligible for the External assigner, not assigning anyone new.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels May 9, 2025
@DylanDylann
Copy link
Contributor

It is not worth adding a regression test because this seems like an improvement in performance. Let's skip it in this issue

@jliexpensify jliexpensify changed the title [$250] [Manager McTest] Try it out button is unresponsive on Android [READY FOR PAYMENT][$250] [Manager McTest] Try it out button is unresponsive on Android May 9, 2025
@jliexpensify
Copy link
Contributor

@nkdengineer invited you via Upworks

@jliexpensify
Copy link
Contributor

Paid, job closed. Payment summary here.

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 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

6 participants