-
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-08-02] [$250] Individually selected expense rows in grouped reports don't have a background color applied to them #45190
Comments
Triggered auto assignment to @isabelastisser ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.In grouped expense reports, individually selected rows lack a consistent background color, impacting visual clarity and user experience. What is the root cause of that problem?The current implementation applies a background color only to the ReceiptCell when a row is selected, as seen in the
However, this styling is not applied to the entire row, leading to inconsistent visual feedback. What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? |
ProposalPlease re-state the problem that we are trying to solve in this issue.Individually selected expense rows in grouped reports don't have a background color applied to them What is the root cause of that problem?
App/src/components/SelectionList/Search/ReportListItem.tsx Lines 190 to 203 in 98932a2
What changes do you think we should make in order to solve the problem?We need to make several changes:
<View style={{gap: 12, marginTop: 12}}>
{reportItem.transactions.map((transaction) => (
<TransactionListItemRow
item={transaction}
showTooltip={showTooltip}
onButtonPress={() => {
openReportInRHP(transaction);
}}
onCheckboxPress={() => onCheckboxPress?.(transaction as unknown as TItem)}
showItemHeaderOnNarrowLayout={false}
containerStyle={transaction.isSelected && styles.activeComponentBG}
isChildListItem
isDisabled={!!isDisabled}
canSelectMultiple={!!canSelectMultiple}
isButtonSelected={transaction.isSelected}
/>
))}
</View> What alternative solutions did you explore? (Optional)
There also some minor changes required like removing padding from parent component and applying only padding top, adding {reportItem.transactions.map((transaction) => (
<TransactionListItemRow
item={transaction}
showTooltip={showTooltip}
onButtonPress={() => {
openReportInRHP(transaction);
}}
onCheckboxPress={() => onCheckboxPress?.(transaction as unknown as TItem)}
showItemHeaderOnNarrowLayout={false}
containerStyle={[transaction.isSelected && styles.activeComponentBG, styles.ph3, styles.pv2]}
isChildListItem
isDisabled={!!isDisabled}
canSelectMultiple={!!canSelectMultiple}
isButtonSelected={transaction.isSelected}
/>
))} Resultfixed_row_updated.mp4 |
@shawnborton, what do you think about inner padding when a list item is selected? fixed_row.mp4We can remove padding from parent container and apply it to child items. Is this the expected behaviour? remove_parent_padding_2.1.mp4 |
Proposal Updated
|
Job added to Upwork: https://www.upwork.com/jobs/~019496a7990ed69c3c |
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.
What is the root cause of that problem?
For row 1:
For row 2:
What changes do you think we should make in order to solve the problem?
and we can use it for all the row types to keep the consistency among them and make sure we DRY the logic.
What alternative solutions did you explore? (Optional) |
Hey @ishpaul777, can you please review the proposals above? Thanks! |
i was on it already : ) will give a proposal recommendation in few minutes |
@Krishna2323's Alternative Proposal Looks most complete (referencing mockup here) and good to me 👍 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @marcaaron, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @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 |
Triggered auto assignment to @sakluger ( |
I will be OOO tomorrow and next week, so I am reassigning this until I return on July 29. Thanks, @sakluger! Status: PR Review/merge. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.12-0 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-08-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:
|
I'm back, taking this. Thanks, @sakluger ! |
@isabelastisser, can you please process the payments 🙏🏻 |
The payments were processed in Upwork. |
@ishpaul777, can you please complete the BZ checklist before we can close this issue? Thanks! |
[@ishpaul777] The PR that introduced the bug has been identified. Link to the PR: |
All set! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.6-0
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
Expensify/Expensify Issue URL:
Issue reported by: @shawnborton
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1720629341208869
Action Performed:
Precondition: User have some shared group expenses in a report
Expected Result:
Selected expense in a group, should get a background color the same way that it does if it's a single expense row that isn't grouped is selected.
Actual Result:
When you select an expense in a group, it doesn't get a background color the same way that it does if it's a single expense row that isn't grouped.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Recording.309.mp4
Add any screenshot/video evidence
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @sakluger / @isabelastisserThe text was updated successfully, but these errors were encountered: