-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Search v1] Add handling of actions and improve Search list items #41725
[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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and tests well. Left a small comment below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
ActionCell
component to hardcodeaction
or go toSearchUtils.getTransactionsSections
and add hardcoded action value into the return around lines 130-132Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
rec-web-search-actions.mp4
MacOS: Desktop