-
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 2024-07-31] [$250] Billable - Billable toggle should have a locked icon in split details view #43756
Comments
Triggered auto assignment to @puneetlath ( |
@puneetlath FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
ProposalPlease re-state the problem that we are trying to solve in this issue.What is the root cause of that problem?We haven't added the App/src/components/MoneyRequestConfirmationList.tsx Lines 1073 to 1080 in 2e85794
What changes do you think we should make in order to solve the problem?Add <View style={[styles.flexRow, styles.justifyContentBetween, styles.alignItemsCenter, styles.ml5, styles.mr8, styles.optionRow]}>
<Text color={!iouIsBillable ? theme.textSupporting : undefined}>{translate('common.billable')}</Text>
<Switch
accessibilityLabel={translate('common.billable')}
isOn={iouIsBillable}
onToggle={(isOn) => onToggleBillable?.(isOn)}
showLockIcon={isReadOnly}
disabled={isReadOnly}
/>
</View> We can also modify We should also check for other components using We might also want to update the text color based on the isReadOnly prop. What alternative solutions did you explore? (Optional)We can use Resultbillable_lock_icon.mp4 |
Proposal Updated
|
Job added to Upwork: https://www.upwork.com/jobs/~015cebf7a04f37f63d |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ishpaul777 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Billable toggle should have a locked icon in split details view What is the root cause of that problem?SplitBillDetailsPage is using the MoneyRequestConfirmationList Component. However, the disabled property hasn't been included in the MoneyRequestConfirmationList Component. And since SplitBillDetailsPage doesn't provide the onToggleBillable function to MoneyRequestConfirmationList, it doesn't trigger any action when clicking toggle button App/src/components/MoneyRequestConfirmationList.tsx Lines 1075 to 1079 in bdb9789
What changes do you think we should make in order to solve the problem?Simply adding disabled={isReadOnly} to the MoneyRequestConfirmationList Component App/src/components/MoneyRequestConfirmationList.tsx Lines 1075 to 1079 in bdb9789
To clarify, the lock icon is displayed when either the disabled prop is true or the showLockIcon prop is true. The showLockIcon prop should only be used when we want to display the lock icon without disabling the toggle, as in this particular use case Ghi.Man.hinh.2024-06-15.luc.01.54.49.movAnother consideration is that we've recently introduced the ToggleSettingOptionRow Component. We could also consider migrating these places to use the new component App/src/components/MoneyRequestConfirmationList.tsx Lines 1075 to 1079 in bdb9789
App/src/components/ReportActionItem/MoneyRequestView.tsx Lines 561 to 566 in bdb9789
The current way seems fine to me. However, if we aim for consistency, there shouldn't be any issues. I've just tested it locally, and it's functioning smoothly. |
Proposal Updated
|
@puneetlath, @ishpaul777 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@Krishna2323's Proposal LGTM! only thing is that we do not need to pass both 🎀 👀 🎀 |
Current assignee @puneetlath is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
📣 @ishpaul777 🎉 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 |
@ishpaul777, PR ready for review. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.1-19 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 2024-07-02. 🎊 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:
|
@Krishna2323 has been paid. @ishpaul777 bump on the checklist so we can pay you too. |
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.3-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 2024-07-10. 🎊 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:
|
not overdue, will complete Checklist soon |
@ishpaul777 please complete the checklist ASAP. I'd like to close this issue out. |
[@ishpaul777] The PR that introduced the bug has been identified. Link to the PR: #27172 |
@puneetlath Please hold my payment until 7/22 i'll bump once i am ready to accept payment, we can move this to weekly for now |
Sadly i'd still have to keep my payment on hold (Expected End of this month) i'll ping once i am ready to accept. Thanks for you patience. |
update above ^ melvin |
Thanks for holding the payment 🙇 , please release payment whenever you get the chance @puneetlath |
Paid! |
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.4.83-1
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4631196
Issue reported by: Applause - Internal Team
Action Performed:
Precondition:
Expected Result:
Billable toggle should appear with a locked icon if billable toggle cannot be edited after splitting the bill
Actual Result:
The billable toggle does not have a locked icon, is clickable but not responsive
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6512799_1718348053624.bandicam_2024-06-14_14-53-23-432.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @ishpaul777The text was updated successfully, but these errors were encountered: