[Search v1] Add handling of actions and improve Search list items#41725
Conversation
eb85b2c to
8738a5b
Compare
8738a5b to
fcb8ade
Compare
fcb8ade to
12dded7
Compare
12dded7 to
012eaa9
Compare
e0f2ee5 to
ea52e69
Compare
ea52e69 to
b84088e
Compare
b84088e to
1584ced
Compare
|
@luacmartins ready for review, please take a look if this is what you expected. |
|
LGTM! I left some minor comments |
|
@luacmartins oh this is surprising, I was attached to this issue so I thought I will take care of all the actions. Then perhaps I will just wait for your PR to be merged and then re-create this PR? Feels like you implemented most of the changes, so I will just add mine on top |
|
@Kicu my PR was merged, so please update yours to handle the remaining actions |
Yeah, we definitely need to solve this though. @Expensify/design any strong feelings here? Basically we have a collision between the :selected/:active row BG color and our standard button BG color, which both use the same value. I like the idea of just making those buttons slightly darker, to match the same thing we're doing with the receipt thumbnails. Alternatively we could find a different color entirely for our :active/:selected rows too, which might actually give us the least amount of headaches because it means we wouldn't need to change the receipt BG color, the border on badges, or the button components. Thoughts? |
luacmartins
left a comment
There was a problem hiding this comment.
@Kicu seems like we need to make some some design changes as well.
|
@shawnborton Collisions are the worst!
I really feel like this is the way to go. Changing the receipt BG color and border color on the badges is rough, but I really don't love the idea of having to change our button colors. What if we used Made some mocks for us to check it out. The items are as follows:
Labeled colors (also, LOL at "buton" instead of "button" 😂): |
|
Hmm this sure is tricky. I do like the idea of having different I tried changing the thumbnail background to Alternatively, our border and button color is the same color now and I wonder if we could make the border color a bit subtler (which I would love regardless 😅 ) and therefor we could use it for active state!? Anyways. I've set up a Figma playground if you wanna duplicate and play around with the prototype. |
|
In your prototype, what color are you using for row-active? It kinda looks similar to what I have above. I think I prefer keeping the thumbnail BG using borders, as the appBG version feels quite dark when hovering or active. |
|
hey yall, Here is my suggestion:
Meanwhile we can use github and figma to iron out the colors :) |
|
That's fair. But I just checked again on staging and it looks like we're actually already handling the button color? Take a look at this: CleanShot.2024-07-09.at.10.20.01.mp4So maybe we aren't in a terrible spot to at least get this merged? Maybe you need to pull main or something. But it seems like the only small color adjustment would be the receipt thumbnail BG colors that we mentioned above. |
|
Guys I'm very sorry for the confusion - this was already fixed on main and I actually broke the button. Here is the final solution: rec-search-colors.mp4both the button, border of Paid badge and the receipt fallbacks are Padding right on the row is also update, now it will be 12px correctly on both ends. @luacmartins @eh2077 I think this is now quite final and close to merging 😅 |
f75938c to
fbf83af
Compare
|
Nice, I think it makes sense to just go with what you are showing above for now and we can continue our color discussions elsewhere :) |
|
Yep, that looks pretty good to me 😄 |
|
LOL - totally agree what you're showing there looks good. We should still probably think about these color collisions because I really doubt this is the last time they'll come up, but I think we can take it to Slack and noodle on it with a bit less urgency. |
Reviewer Checklist
Screenshots/VideosScreen.Recording.2024-07-09.at.4.12.28.PM.movAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
luacmartins
left a comment
There was a problem hiding this comment.
LGTM. Now that we fixed the row padding, I noticed that the header text is not aligned with the rows, but I'll fix that in a fast follower.
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.0.6-0 🚀
|
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.0.6-0 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/Julesssss in version: 9.0.6-1 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Cherry-picked to staging by https://github.com/Julesssss in version: 9.0.6-1 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.6-8 🚀
|
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.7-8 🚀
|





Details
Fixed Issues
$ #39890
PROPOSAL:
Tests
For testing different badges I suggest either editing
ActionCellcomponent to hardcodeactionor go toSearchUtils.getTransactionsSectionsand add hardcoded action value into the return around lines 130-132Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
rec-web-search-actions.mp4
MacOS: Desktop