-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$500] Distance - Amount is not clickable on Distance final confirmation screen #29477
Comments
Triggered auto assignment to @kevinksullivan ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Distance - Amount is not clickable on Distance final confirmation screen What is the root cause of that problem?Click event on button depends on isDistanceRequest state. Currently click event is disabled if it is distance request. What changes do you think we should make in order to solve the problem?In MoneyRequestConfirmationList.js component on amount field: <MenuItemWithTopDescription
shouldShowRightIcon={!props.isReadOnly && !props.isDistanceRequest}
title={formattedAmount}
description={translate('iou.amount')}
onPress={() => !props.isDistanceRequest && Navigation.navigate(ROUTES.MONEY_REQUEST_AMOUNT.getRoute(props.iouType, props.reportID))}
style={[styles.moneyRequestMenuItem, styles.mt2]}
titleStyle={styles.moneyRequestConfirmationAmount}
disabled={didConfirm || props.isReadOnly}
/> we can remove !props.isDistanceRequest statement from onPress event. What alternative solutions did you explore? (Optional)Screen.Recording.2023-10-12.at.23.18.35.mov |
📣 @RadoslavLazarov! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
ProposalPlease re-state the problem that we are trying to solve in this issue.Distance - Amount is not disabled when it is non-interactive on distance confirmation page. What is the root cause of that problem?We are not disabling MenuItemWithTopDescription for amount when it is a distance request but we are properly handling it to show/hide right arrow icon. App/src/components/MoneyRequestConfirmationList.js Lines 420 to 428 in 5c13816
What changes do you think we should make in order to solve the problem?Option 1We can just add props.isDistanceRequest in disabled prop and it will solve the issue and if we don't want to grey out the distance item then we can also pass false to prop shouldGreyOutWhenDisabled. Option 2If we don't want the disabled cursor then we can just add prop |
ProposalPlease re-state the problem that we are trying to solve in this issue.Amount option is not clickable even though the button doesn't seem to be disabled What is the root cause of that problem?We are returning when props.isDistanceRequest is true here App/src/components/MoneyRequestConfirmationList.js Lines 565 to 568 in a2f483d
And we are not disabling 'Amount' button here
Since the button is not disabled the user gets a sense that the field is clickable even if clicking the field doesn't do anything. What changes do you think we should make in order to solve the problem?We should disable the 'Amount' button when props.isDistanceRequest is true
What alternative solutions did you explore? (Optional)N/A |
ProposalPlease re-state the problem that we are trying to solve in this issue.Amount is not clickable on Distance final confirmation screen What is the root cause of that problem?App/src/components/MoneyRequestConfirmationList.js Lines 572 to 574 in 148f5b1
We are checking if isDistanceRequest we will return Note: Before we disable amount field on distance request. But this PR #26141 allow to edit amount field on distance request. But It seems the author forget to remove this condition What changes do you think we should make in order to solve the problem?Remove this condition to check isDistanceRequest in
and
What alternative solutions did you explore? (Optional) |
@kevinksullivan Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Job added to Upwork: https://www.upwork.com/jobs/~017eb3167dc35c1a36 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
Sorry, I didn't realize this was missing proper labels. Moving forward. |
@rushatgabhane lmk what you think about the proposal above |
C+ reviewed 🎀 👀 🎀 I like @DylanDylann's proposal because they have clearly explained the root cause and provided a fix |
Triggered auto assignment to @AndrewGable, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@rushatgabhane, I don't think that at the time we allow modifying the distance amount. That PR was focused on editing the distance waypoints not amount input. |
Thanks @Krishna2323! Asked about it on slack https://expensify.slack.com/archives/C01GTK53T8Q/p1697575566549679 |
Based on @neil-marcellini's comment on 🧵 , we should close this issue! |
@rushatgabhane @AndrewGable, I think we should change the hover style like we do for shared to details, and it also changes its styles when clicked. That is the bug here I think. Monosnap.screencast.2023-10-18.03-06-15.mp4 |
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: 1.3.83-3
Reproducible in staging?: Yes
Reproducible in production?: Yes
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: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
Since the cursor turn to Link pointer style the Amount option should be clickable and should lead to some link
Actual Result:
Amount option is not clickable/ button does not response
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
Windows: Chrome
Bug6234834_1697135624721.Recording__1237.mp4
MacOS: Desktop
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: