-
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-10-11] Search - Expenses are not highlighted when selected #50046
Comments
Triggered auto assignment to @Christinadobrzyn ( |
We think that this bug might be related to #wave-control |
ProposalPlease re-state the problem that we are trying to solve in this issue.In Step 4, the selected expenses in All tab are not highlighted. What is the root cause of that problem?We override the focused background and selected background style here and here It's only applied when we hover over the report item. What changes do you think we should make in order to solve the problem?We should move the style here and here above the selected background and focused background style here and here What alternative solutions did you explore? (Optional) |
Regression from #49192 |
Triggered auto assignment to @Julesssss ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
Not worth blocking IMO, @ikevin127 or me can raise a follow up PR or handle in #50028 cc @luacmartins |
Removing blocker label. I commented here and I'll await a response before moving forward. |
Thanks! @ishpaul777 will work on a PR to address this. |
This comment was marked as outdated.
This comment was marked as outdated.
@luacmartins ✅ I confirm that this issue is indeed a regression of PR #49192 Actually, looks like the offending PR's reviewer will open a follow-up with the fix and I will review (see comments below). |
https://github.com/Expensify/App/pull/50089/files I have a draft PR here just confirming the fix on all platforms @ikevin127 Can you review ? |
🟢 Sure, I can review since this is in the regression period and I think we'd like to keep it contained. @ishpaul777 Sorry, didn't know you started working on the fix. This would've been my diff (added some comments for clarity), and I think your version with diff --git a/src/components/SelectionList/Search/ReportListItem.tsx b/src/components/SelectionList/Search/ReportListItem.tsx
index ea36ba44ccc..df196a8d4e3 100644
--- a/src/components/SelectionList/Search/ReportListItem.tsx
+++ b/src/components/SelectionList/Search/ReportListItem.tsx
@@ -75,11 +75,13 @@ function ReportListItem<TItem extends ListItem>({
styles.pv1half,
styles.ph0,
styles.overflowHidden,
- item.isSelected && styles.activeComponentBG,
- isFocused && styles.sidebarLinkActive,
- // Removing some of the styles because they are added to the parent OpacityView via animatedHighlightStyle
+ // We unset backgroundColor and reset marginHorizontal because the styles
+ // are handled by parent OpacityView via animatedHighlightStyle
{backgroundColor: 'unset'},
styles.mh0,
+ // These should be at the end because otherwise the item won't highlight when selected
+ item.isSelected && styles.activeComponentBG,
+ isFocused && styles.sidebarLinkActive,
];
const handleOnButtonPress = () => {
diff --git a/src/components/SelectionList/Search/TransactionListItem.tsx b/src/components/SelectionList/Search/TransactionListItem.tsx
index 39172711516..bd9fceb5a5c 100644
--- a/src/components/SelectionList/Search/TransactionListItem.tsx
+++ b/src/components/SelectionList/Search/TransactionListItem.tsx
@@ -27,11 +27,13 @@ function TransactionListItem<TItem extends ListItem>({
styles.selectionListPressableItemWrapper,
styles.pv3,
styles.ph3,
- item.isSelected && styles.activeComponentBG,
- isFocused && styles.sidebarLinkActive,
- // Removing some of the styles because they are added to the parent OpacityView via animatedHighlightStyle
+ // We unset backgroundColor and reset marginHorizontal because the styles
+ // are handled by parent OpacityView via animatedHighlightStyle
{backgroundColor: 'unset'},
styles.mh0,
+ // These should be at the end because otherwise the item won't highlight when selected
+ item.isSelected && styles.activeComponentBG,
+ isFocused && styles.sidebarLinkActive,
];
const listItemWrapperStyle = [ |
Thanks! I assigned you as reviewer @ikevin127 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.44-12 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-10-11. 🎊 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:
|
Regression Test Proposal
Do we agree 👍 or 👎. |
I don't think we need a specific regression test for this small fix. |
Payouts due in a few days
Let me know if anything needs to be changed about the payment summary. |
No payment here for C ad C+, this came from a PR under regression period |
Payment Summary
BugZero Checklist (@Christinadobrzyn)
|
Ah, okay. Thanks for letting me know, @ishpaul777. I closed the Upwork contracts for you and @ikevin127 without payment. No regression test based on this comment. Closing this out as complete. |
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: 9.0.43-0
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): applausetester+kh300901@applause.expensifail.com
Issue reported by: Applause Internal Team
Action Performed:
Precondition:
Expected Result:
The expenses will be highlighted when selected (production behavior).
Actual Result:
In Step 4, the selected expenses in All tab are not highlighted.
In Step 7, the report header for the group expenses is not highlighted.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6622006_1727865495202.high.mp4
View all open jobs on GitHub
Issue Owner
Current Issue Owner: @ChristinadobrzynThe text was updated successfully, but these errors were encountered: