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

[HOLD for payment 2024-11-07] [$250] Task description is covered by the keyboard pop up #50346

Closed
2 of 6 tasks
m-natarajan opened this issue Oct 7, 2024 · 31 comments
Closed
2 of 6 tasks
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@m-natarajan
Copy link

m-natarajan commented Oct 7, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.0.45-3
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: @danielrvidal
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1728321152515439

Action Performed:

  1. Signed up for a new account
  2. Selected Get paid by my employer
    3.Tap into the Concierge DM
    4.Tap into the first task

Expected Result:think

Keyboard should not pop up by default

Actual Result:

keyboard is pulled up by default, which makes the task description unreadable.

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

IMG_6596
IMG_6597

NYOA0685.1.MP4
Add any screenshot/video evidence

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021843564581975607149
  • Upwork Job ID: 1843564581975607149
  • Last Price Increase: 2024-10-08
  • Automatic offers:
    • rojiphil | Reviewer | 104340068
    • nkdengineer | Contributor | 104340070
Issue OwnerCurrent Issue Owner: @JmillsExpensify
@m-natarajan m-natarajan added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 7, 2024
Copy link

melvin-bot bot commented Oct 7, 2024

Triggered auto assignment to @JmillsExpensify (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.

@shahinyan11
Copy link

shahinyan11 commented Oct 7, 2024

Proposal

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

Task description is covered by the keyboard pop up

What is the root cause of that problem?

Here we do not prevent autofocus when the parent report actions is a task action.

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

We should prevent autofocus when parent report action is a task action. To do that we can update this line like bellow

(shouldFocusInputOnScreenFocus || (isEmptyChat && !ReportActionsUtils.isTransactionThread(parentReportAction) && !ReportActionsUtils.isTaskAction(parentReportAction))) &&

What alternative solutions did you explore? (Optional)

@nkdengineer
Copy link
Contributor

nkdengineer commented Oct 8, 2024

Edited by proposal-police: This proposal was edited at 2024-10-08 06:24:49 UTC.

Proposal

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

keyboard is pulled up by default, which makes the task description unreadable.

What is the root cause of that problem?

shouldAutoFocus is true for the onboarding task report because this is an empty chat that focuses on the composer and keyboard

const shouldAutoFocus =
!modal?.isVisible &&
Modal.areAllModalsHidden() &&
isFocused &&
(shouldFocusInputOnScreenFocus || (isEmptyChat && !ReportActionsUtils.isTransactionThread(parentReportAction))) &&
shouldShowComposeInput;

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

We can add the check if the report is a task report, and we can prevent autofocus on the composer

const [report] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${reportID}`);
const shouldAutoFocus =
    !modal?.isVisible &&
    Modal.areAllModalsHidden() &&
    isFocused &&
    (shouldFocusInputOnScreenFocus || (isEmptyChat && !ReportActionsUtils.isTransactionThread(parentReportAction) && !ReportUtils.isTaskReport(report))) &&
    shouldShowComposeInput;

const shouldAutoFocus =
!modal?.isVisible &&
Modal.areAllModalsHidden() &&
isFocused &&
(shouldFocusInputOnScreenFocus || (isEmptyChat && !ReportActionsUtils.isTransactionThread(parentReportAction))) &&
shouldShowComposeInput;

OPTIONAL: We can use !ReportActionsUtils.isCreatedTaskReportAction(parentReportAction) to replace for !ReportUtils.isTaskReport(report)

What alternative solutions did you explore? (Optional)

Or we can only prevent auto-focus if the task report is the onboarding task report. To do that we can get the onboarding data from nvp_introSelected and check if the current reportID is in the list value of nvp_introSelected data.

@JmillsExpensify JmillsExpensify added the External Added to denote the issue can be worked on by a contributor label Oct 8, 2024
@melvin-bot melvin-bot bot changed the title Task description is covered by the keyboard pop up [$250] Task description is covered by the keyboard pop up Oct 8, 2024
Copy link

melvin-bot bot commented Oct 8, 2024

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 8, 2024
Copy link

melvin-bot bot commented Oct 8, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @rojiphil (External)

@danielrvidal
Copy link
Contributor

@rojiphil, can you prioritize reviewing this one? It is impacting a CRITICAL flow.

@rojiphil
Copy link
Contributor

rojiphil commented Oct 9, 2024

Thanks for your proposals.
@shahinyan11 parentReportAction would have an action name ADDCOMMENT. So, using isTaskAction would not work here.
@nkdengineer proposal LGTM as we can use isTaskReport.
Additionally, we can migrate to useOnyx from withOnyx for the Onyx values used in ComposerWithSuggestions
🎀👀🎀 C+ reviewed

Copy link

melvin-bot bot commented Oct 9, 2024

Triggered auto assignment to @lakchote, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@lakchote
Copy link
Contributor

lakchote commented Oct 9, 2024

@nkdengineer's proposal LGTM.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 9, 2024
Copy link

melvin-bot bot commented Oct 9, 2024

📣 @rojiphil 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Oct 9, 2024

📣 @nkdengineer 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@nkdengineer
Copy link
Contributor

@lakchote I created the PR here but this issue was just fixed by this PR 2 hours ago.

Copy link

melvin-bot bot commented Oct 14, 2024

@JmillsExpensify, @rojiphil, @lakchote, @nkdengineer Huh... This is 4 days overdue. Who can take care of this?

@melvin-bot melvin-bot bot added the Overdue label Oct 14, 2024
@nkdengineer
Copy link
Contributor

Looks like this PR has been reverted, I will open my PR soon

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 Overdue labels Oct 16, 2024
@anmurali
Copy link

@nkdengineer - do you have an update here?

@danielrvidal
Copy link
Contributor

@nkdengineer can you please update this one asap? @lakchote if we don't hear back soon with an update can we look for another proposal please?

@lakchote
Copy link
Contributor

@danielrvidal sure!

@nkdengineer if you don't raise your PR today/give updates I'll put the label to look for proposals this afternoon.

@nkdengineer
Copy link
Contributor

@lakchote We're waiting for your response in the PR.

@lakchote
Copy link
Contributor

@lakchote We're waiting for your response in the PR.

Answered here

@lakchote
Copy link
Contributor

Reached out in DM to @nkdengineer to see if he can push the fix that should make his PR mergeable today.

@nkdengineer
Copy link
Contributor

@lakchote I will be available in a few hours.

@nkdengineer
Copy link
Contributor

@lakchote I updated. waiting for the running test.

@lakchote
Copy link
Contributor

PR has been merged.

@danielrvidal
Copy link
Contributor

Awesome, thank you!

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Oct 31, 2024
@melvin-bot melvin-bot bot changed the title [$250] Task description is covered by the keyboard pop up [HOLD for payment 2024-11-07] [$250] Task description is covered by the keyboard pop up Oct 31, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Oct 31, 2024
Copy link

melvin-bot bot commented Oct 31, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Oct 31, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.55-10 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2024-11-07. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Oct 31, 2024

@rojiphil @JmillsExpensify The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@rojiphil
Copy link
Contributor

BugZero Checklist:

  • [Contributor] Classify the bug:
Bug classification

Source of bug:

  • 1a. Result of the original design (eg. a case wasn't considered)
  • 1b. Mistake during implementation
  • 1c. Backend bug
  • 1z. Other:

Where bug was reported:

  • 2a. Reported on production
  • 2b. Reported on staging (deploy blocker)
  • 2c. Reported on a PR
  • 2z. Other:

Who reported the bug:

  • 3a. Expensify user
  • 3b. Expensify employee
  • 3c. Contributor
  • 3d. QA
  • 3z. Other:
  • [Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.

    Link to comment:

  • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.

    Link to discussion: Not Required. The existing checklist is good enough to capture such issues.

  • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

Regression Test Proposal

Precondition:

Test:

Note: The tests are applicable only for mWeb and native platforms.

  1. Sign up with a new account
  2. Complete onboarding step using Track and budget expenses
  3. Navigate to Concierge DM if needed
  4. Tap on Track an expense task to navigate to the task report
  5. Verify that the keyboard is not displayed

Do we agree 👍 or 👎

@lakchote
Copy link
Contributor

Has the payment been processed here @JmillsExpensify?

@JmillsExpensify
Copy link

Payment summary:

@melvin-bot melvin-bot bot removed the Overdue label Nov 13, 2024
@JmillsExpensify
Copy link

Contributors paid out and regression test linked to this issue. Closing this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
None yet
Development

No branches or pull requests

8 participants