-
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
fix: Design updates to Search rows on mobile #44677
Conversation
@dukenv0307 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
This comment has been minimized.
This comment has been minimized.
@@ -299,7 +293,7 @@ function TransactionListItemRow({item, showTooltip, onButtonPress, showItemHeade | |||
<MerchantCell | |||
transactionItem={item} | |||
showTooltip={showTooltip} | |||
isLargeScreenWidth={false} | |||
isLargeScreenWidth={isLargeScreenWidth} |
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.
is it always true?
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.
yes, in this case it's always false
since we're still inside the if block
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.
@dominictb Pls resolve this comments and other places as well
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.
I updated
@@ -299,7 +293,7 @@ function TransactionListItemRow({item, showTooltip, onButtonPress, showItemHeade | |||
<MerchantCell | |||
transactionItem={item} | |||
showTooltip={showTooltip} | |||
isLargeScreenWidth={false} | |||
isLargeScreenWidth={isLargeScreenWidth} |
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.
yes, in this case it's always false
since we're still inside the if block
@dominictb Pls resolve the comments above. Thanks |
Will take a look in a bit. |
@shawnborton @dukenv0307 I updated PR. Below are the changes:
|
Seems good to me. @shawnborton can you take a look at the result above? Thanks |
Looking good! Going to run a test build for easier testing, but thanks for making the changes! |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
Oh and another thing we chatted about - the idea that the "View" buttons on mobile felt quite superfluous and we could just omit them entirely. It would look something more like this: Thoughts @Expensify/design @luacmartins? Feels like we could make that change in this same PR while we are here. |
I'm down to removing the button on mobile since they dont really do much and less components on screen means higher performance. |
Works for me - let's see if @dubielzyk-expensify has any strong feelings too, though I do tend to agree that it will make the page feel a bit lighter. |
I like it 👍 |
Okay, let's remove the View button from mobile expenses then. @dominictb can you handle that one too please? Thanks! |
Screen.Recording.2024-07-05.at.16.23.29.mov |
Lovely! Will also spin up a test build here, but we should be ready for final review. Thanks! |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
Looks great, let's get it into final review! |
Reviewer Checklist
Screenshots/Videos |
LGTM |
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
✋ 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 🚀
|
@shawnborton I am not sure about which PR caused that behavior, but I fixed this bug in PR.
Screen.Recording.2024-07-11.at.16.11.41.mov |
Perfect, thanks! |
🚀 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 🚀
|
isLargeScreenWidth={isLargeScreenWidth} | ||
/> | ||
</View> | ||
{item.category && ( |
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.
If category
would be an empty string, then this code will result in lots of errors, because we would try to render a raw string inside a View
.
I can fix it while doing my PR for Search advancedFilters, but wanted to mention it here since it's a bit surprising that this passed through both reviews.
CC @luacmartins
(Perhaps the return values of api changed after this was merged and in the past category would be undefined
? )
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.
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.7-8 🚀
|
Details
Fixed Issues
$ #44563
PROPOSAL: #44563 (comment)
Tests
Small screen device:
Large screen device:
Offline 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
Screen.Recording.2024-07-01.at.21.24.00.mov
Android: mWeb Chrome
output.mp4
iOS: Native
iOS: mWeb Safari
Screen.Recording.2024-07-01.at.19.02.58.mov
MacOS: Chrome / Safari
Screen.Recording.2024-07-01.at.21.18.59.mov
MacOS: Desktop
Screen.Recording.2024-07-01.at.21.17.16.mov