-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[SMARTSCAN] [HOLD for payment 2023-11-02] [$500] LOW: Keyboard shouldn't be active/enabled automatically for request details #26702
Comments
Current assignee @JmillsExpensify is eligible for the Bug assigner, not assigning anyone new. |
Job added to Upwork: https://www.upwork.com/jobs/~011deba88779e69bde |
Bug0 Triage Checklist (Main S/O)
|
Current assignee @JmillsExpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel ( |
I think it is intentional to focus the input when the report chat is empty. App/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js Lines 113 to 114 in d2bdaec
|
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
transaction: {
key: ({reportID}) => {
const report = ReportUtils.getReport(reportID);
const parentReportAction = ReportActionsUtils.getParentReportAction(report);
const transactionID = lodashGet(parentReportAction, ['originalMessage', 'IOUTransactionID'], 0);
return `${ONYXKEYS.COLLECTION.TRANSACTION}${transactionID}`;
},
},
const isDistanceRequest = TransactionUtils.isDistanceRequest(transaction);
- const shouldAutoFocus = !modal.isVisible && (shouldFocusInputOnScreenFocus || isEmptyChat) && shouldShowComposeInput;
+ const shouldAutoFocus = !isDistanceRequest && !modal.isVisible && (shouldFocusInputOnScreenFocus || isEmptyChat) && shouldShowComposeInput; What alternative solutions did you explore? (Optional)
|
Hi |
📣 @crisps0914! 📣
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Don't focus input for transaction threads What is the root cause of that problem?We are currently focusing the input whenever the report chat is empty irrespective of any report type. What changes do you think we should make in order to solve the problem?We can add a condition to prevent focusing the input when the report is a transaction thread even if it is empty. I think the transaction/money request details usually user only checks instead of replying over there so makes sense to avoid focusing the input specific to this scenario.
With
|
@Pujan92 we're focusing the input on |
I think what @Pujan92 is saying is that any report type that's empty, the composer is focused. Presumably, that's because you're navigating to it for the first time to start a conversation. So I agree, for the request transaction thread the composer shouldn't be focused just because there aren't any report comments or system messages in it. You could (and probably more likely) be there to edit a field, just view the request data etc. |
Cool, agreed. @Pujan92 let us know if you have any other questions! |
Hi, I want to contribute to Expensify |
📣 @sagarguhe! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
Hi, @sagarguhe, you can follow the steps in the contributing.md file to join our slack channels to submit bugs and check out the format for proposals. |
@Santhosh-Sellavel - are you available now to review this proposal and progress the PR review? |
Thanks for your proposal @jeet-dhandha. We don't want to tie this specifically to the distance requests. Rather we're interested in applying this to all the transaction threads. @Pujan92's proposal makes more sense looks good to me! 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @srikarparsi, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Yes i agree @allroundexperts and i have noticed @Pujan92 keeps it more generalised and detailed when it comes to solving any bug, which I should also incorporate in my solutions moving further 😎👍 Thanks for the new learning @Pujan92. |
Ohh, I wasn't aware of the revert. |
@allroundexperts can we get review asap? 🙇♂️ |
bump @allroundexperts |
Looks like this is now with @srikarparsi for review. |
Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:
On to the next one 🚀 |
Linked PR is merged, waiting for it to hit production. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.91-8 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 2023-11-02. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
@allroundexperts Do you mind kicking off the BZ checklist and we can get payments issued? |
Checklist
Regression test
Do we 👍 or 👎 ? |
Payment summary: Issue reporter: N/A If that looks good to everyone I'll issue payment. |
@JmillsExpensify This PR was merged within 3 days. However, there was a false alarm that this PR was associated with a deploy blocker and was reverted. We had re-create this PR and merge it again. That's why you see 34 days 😄 |
Ok, thanks! I checked the PR and that makes sense. I've updated the payment summary as a result. |
Alright, paid @Pujan92 the difference, created regression test, and @allroundexperts is paid via NewDot. Closing this issue out. |
$750 payment approved for @allroundexperts based on this comment. |
We automatically enable the mobile keyboard for requests, which is inconsistent with the behavior for reports. Given that a comment is completely optional, let's bring request details inline with reports and not enable the keyboard until the comment input is tapped.
Example of the inconsistency in behavior (note: I specifically tapped in the report comment input, but did not do the same for the request details, yet the keyboard was automatically enabled.
RPReplay_Final1693851386.MP4
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: