Open izarutskaya opened 1 month ago
Triggered auto assignment to @puneetlath (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.
We think this issue might be related to the #collect project.
After opening the Change Payment Currency modal and selecting a currency, clicking outside the modal does not close it. This creates an inconsistency compared to other instances (e.g., when changing payment card>Currency), where clicking outside the modal closes it.
Two places use different ways.
PaymentCardForm
, we are using CurrencySelector
as a separate page then when we click outside, it's closed
https://github.com/Expensify/App/blob/9940e99abca5b0e7f17c8d29a66df50b2345b8a2/src/components/AddPaymentCard/PaymentCardForm.tsx#L296-L301
PaymentCardChangeCurrencyForm
, we're using a currency modal. Then when we click outside, only the PaymentCardCurrencyModal
is closed
https://github.com/Expensify/App/blob/9940e99abca5b0e7f17c8d29a66df50b2345b8a2/src/components/AddPaymentCard/PaymentCardChangeCurrencyForm.tsx#L110
We should handle the currency as a separate page by using CurrencySelector
as we do in PaymentCardForm
. Since PaymentCardChangeCurrencyForm
is used in two places, we can add currencySelectorRoute
prop and use a unique route for each place.
Or we can use the same way as we do in PaymentCardChangeCurrencyForm
for PaymentCardForm
Subscription - Clicking Outside the Modal Doesn't Close It, Causing Inconsistency
We aren't using onBackdropPress={Navigation.dismissModal}
prop to dismiss the modal when backdrop is pressed. The same is done here & here.
https://github.com/Expensify/App/blob/9940e99abca5b0e7f17c8d29a66df50b2345b8a2/src/components/AddPaymentCard/PaymentCardCurrencyModal.tsx#L51-L59
Pass onBackdropPress={Navigation.dismissModal}
prop to Modal
.
Optional: We can introduce new props to pass onBackdropPress
prop from ChangeBillingCurrency
& ChangeCurrency
.
Job added to Upwork: https://www.upwork.com/jobs/~01a4445f00bf760f92
Triggered auto assignment to Contributor-plus team member for initial proposal review - @shubham1206agra (External
)
@Krishna2323's proposal looks good to me.
πππ C+ reviewed
Current assignee @puneetlath is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.
π£ @shubham1206agra π An offer has been automatically sent to your Upwork account for the Reviewer role π Thanks for contributing to the Expensify app!
π£ @Krishna2323 π 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 π
Is this not the default behavior for modals? Should we make it the default if it isn't?
@puneetlath, @shubham1206agra, @Krishna2323 Whoops! This issue is 2 days overdue. Let's get this updated quick!
I will raise the PR today.
Waiting for PR.
@trjExpensify Can you add payment label for 9th September?
I added it. @shubham1206agra can you please complete the checklist?
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: v9.0.21-1 Reproducible in staging?: Y Reproducible in production?: Y Email or phone of affected tester (no customers): applausetester+tw23478102034@applause.expensifail.com Logs: https://stackoverflow.com/c/expensify/questions/4856 Issue reported by: Applause-Internal team
Action Performed:
Expected Result:
After opening the Change Payment Currency modal and selecting a currency, clicking outside the modal should close it.
Actual Result:
After opening the Change Payment Currency modal and selecting a currency, clicking outside the modal does not close it. This creates an inconsistency compared to other instances (e.g., when changing payment card>Currency), where clicking outside the modal closes it.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
https://github.com/user-attachments/assets/6e213e8e-b57d-4759-a802-d69974e84962
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @shubham1206agra