-
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
[HOLD for payment 2023-07-14] [$1000] Compose box loses focus on coming back from 'Hmm... its not here' page #21678
Comments
Triggered auto assignment to @jliexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Compose box loses focus on coming back from 'Hmm... its not here' page. What is the root cause of that problem?When going back, the previous report does not remount so the composer still loses focus after clicking to the link. What changes do you think we should make in order to solve the problem?We need to trigger focus manually like we did after closing modal to focus the composer . App/src/pages/home/report/ReportActionCompose.js Lines 258 to 260 in 82558a1
We can use App/src/pages/home/ReportScreen.js Lines 264 to 269 in 82558a1
Update onBackButtonPress to:
onBackButtonPress={() => {
ReportActionComposeFocusManager.composerRef.current = null;
Navigation.goBack();
}} Adding condition to focus in if (this.willBlurTextInputOnTapOutside && this.props.isFocused && ReportActionComposeFocusManager.composerRef.current === null) {
ReportActionComposeFocusManager.composerRef.current = this.textInput;
this.focus();
} What alternative solutions did you explore? (Optional)In componentDidMount() {
...
this.unsubscribeNavFocus = this.props.navigation.addListener('focus', () => {
if (this.willBlurTextInputOnTapOutside && !this.props.isFocused && !this.props.modal.isVisible) {
this.focus();
}
});
} ResultScreen.Recording.2023-06-28.at.5.06.57.AM.mov |
Looks like something related to As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our Feel free to drop a note in #expensify-open-source with any questions. |
Yep, I can replicate on v.32-5. It'd be good to focus back on the Compose box! |
Job added to Upwork: https://www.upwork.com/jobs/~014471479f4d4b1b97 |
Current assignee @jliexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @narefyev91 ( |
@ginsuma can we have the same logic which we have for modals checks like |
@narefyev91 we need something can be shared between two report pages, |
ProposalUpdate |
@ginsuma Nice! I like alternative solution! #21678 (comment) |
Triggered auto assignment to @Julesssss, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @ginsuma You have been assigned to this job! |
Invited @dhanashree-sawant for reporting bonus. @ginsuma and @narefyev91 - what are your Upworks profiles? It would also help if you both put your actual names (in Upworks) in GH, so we can easily find you in the future. Thanks! |
Hi @jliexpensify, Invite accepted. Thank you! |
Hey @jliexpensify ! I'm from Callstack - no needs to make any payments in Upwork 👍 |
#21962 PR is up @narefyev91 . |
@ginsuma what's your Upworks profile? |
@ginsuma I have hired you, but please:
Thanks! |
🎯 ⚡️ Woah @narefyev91 / @ginsuma, great job pushing this forwards! ⚡️ The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.37-7 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-07-14. 🎊 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.
As a reminder, here are the bonuses/penalties that should be applied for any External 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:
|
@narefyev91 - could you complete the checklist please? Thanks! |
|
Nice ty - going to pay out now + the bonus. |
Just waiting on @dhanashree-sawant and @ginsuma to accept, then will pay + close job. |
Accepted. Thanks @jliexpensify |
All paid! Job closed! Thanks everyone! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
App should focus back on compose box on revisit of report
Actual Result:
App does not focus on compose box on coming back from 'Hmm... it's not here' page
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.31-2
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
Notes/Photos/Videos: Any additional supporting documentation
app.does.not.refocus.after.error.page.1.mp4
Desktop.2023.06.26.-.17.38.43.06.mp4
Expensify/Expensify Issue URL:
Issue reported by: GH handle - @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1687509816386599
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: