-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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-07-10] [$1000] Double click enter to select value on pronouns and timezone edit pages navigates "back" twice #24074
Comments
Triggered auto assignment to @trjExpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Updated ProposalPlease re-state the problem that we are trying to solve in this issue.Double enter click to select value on pronouns and timezone navigates user to main page/main settings page What is the root cause of that problem?
For this reason, when we are on What changes do you think we should make in order to solve the problem?
if (!canNavigate('goBack') || isActiveRoute(fallbackRoute)) {
return;
}
function updatePronouns(pronouns) {
if (pronouns !== '') {
API.write(...)
}
Navigation.goBack(ROUTES.SETTINGS_PROFILE);
} What alternative solutions did you explore? (Optional)We can update function canNavigate(methodName, params = {}) {
if (navigationRef.isReady() && !isActiveRoute(params['route'])) {
return true;
}
Log.hmmm(`[Navigation] ${methodName} failed because navigation ref was not yet ready`, params);
return false;
} And, update if (!canNavigate('goBack', {route: fallbackRoute})) {
return;
} |
Ah, this got assigned to me while I was OoO. Sorry for the delay! I can reproduce this one on desktop as well, so ticked that platform off and removed the I'd quite like an opinion from @mountiny on the expected result here. I don't really see the real world use of "multi-tapping" enter to go back multiple pages in the nav stack, whether that be two, three or ten pages. So IMO, we should just go back the once (because that's the behaviour after the selection on the page you're pushed to). What do you think? |
@trjExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Bump @mountiny, maybe @shawnborton you have an opinion on this one as well. :) |
"App should go back once on twice enter click to select value on pronouns or timezone page" - I don't think I understand what this means? |
😅 TL;DR If you're a few pages deep in the nav, open up a push to page edit screen. "double tap" enter to select the value and it will navigate you back two pages in the app stack. If you triple tap, it goes back three pages etc. IMO, we should just go back the once (because that's the behaviour after the selection on the page you're pushed to) however gung-ho you are with the enter button to make the selection. |
Got it. Yup, I agree with that. |
Cool, nice! Updated the OP to reflect that and moved this on. |
Job added to Upwork: https://www.upwork.com/jobs/~01fd11cd8ee50c8dff |
Current assignee @trjExpensify is eligible for the External assigner, not assigning anyone new. |
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:
|
I believe it just got deployed to production |
Yeah, looks like it. |
Checklist time! |
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:
Regression Test Steps
Note: links for these pages can change. Please update these as needed and easy to track. Do you agree 👍 or 👎 ? |
Okay and confirming one regression? |
I think yes but the PR was pretty heavy for testing. There were many pages to test. It also needed two PRs. Is it possible to keep the same price tag on this issue? cc: @huzaifa-99 |
I am fine with keeping the full price on this one. This issue was created in August 2023, and it's been a long battle. There were regressions and I think we are still trying to find the ideal solution, but @huzaifa-99 's solution got us into a better place and it was lots of work and effort to do so $1000 seems fair. |
For the regression tests, I think we just need one page like I dont think its viable to test all these pages |
Alright, so payment summary as follows:
|
As for the regression test, I agree with suggesting 1. Can you make this more readable and standardised in a format of numbered steps that a tester can repeatably follow if we were to add this to TestRail, @parasharrajat? |
I updated the formatting. But I can't list down steps for each page as each has separate functionality. The main step or interaction is mentioned in point 1. If the page has a selection list of options, try clicking it multiple times. Hope this is sufficient. |
I thought we agreed on just the one, so we can focus on pronouns or something?
|
@trjExpensify Updated. |
Cool done, closing! |
Hi @trjExpensify, @mountiny, @parasharrajat is this issue eligible for reporting bonus? |
Oh yeah, this is old and I didn't spot the |
Thanks @trjExpensify, Yes I am still on upwork, here is my profile link |
Yep, that makes sense. We honour those. Payment summary as follows:
Offer sent! |
Many Thanks @trjExpensify, I have accepted the offer. |
Paid, closing. |
Payment requested as per #24074 (comment) |
$1,000 approved for @parasharrajat |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Note: Same results on the
timezone
edit selection page.Expected Result:
Use should only navigate back the one page in the nav stack when making a selection on the edit page.
Actual Result:
"Multi-tapping" is recognised and navigates back as many pages as you press enter. E.g twice = two pages, three times = three pages etc.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.47-3
Reproducible in staging?: Y
Reproducible in production?:
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
double.enter.causes.double.back.1.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1690794214667299
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @trjExpensifyThe text was updated successfully, but these errors were encountered: