Implement Search ListItems and table header#41347
Conversation
|
@rayane-djouah are you able to build IOS without error |
grgia
left a comment
There was a problem hiding this comment.
changes LGTM, have we created issues for all the follow ups?
|
Coming from here should we sort by date descending to begin with? The transactions feel randomly organized right now |
| let columnWidth; | ||
| switch (columnName) { | ||
| case CONST.SEARCH_TABLE_COLUMNS.DATE: | ||
| columnWidth = getWidthStyle(variables.w44); |
There was a problem hiding this comment.
NAB these variables are typically named by their use, so like variables.dateColumnWidth
Yes, I'm able to. I merged Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-05-03.at.11.18.10.mp4 |
|
Gonna merge this one to get the feature out and then create a follow up to address the remaining issues. Thanks for the reviews everyone! |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
@shawnborton I don't see that, which version are you using? Could you try this adhoc build? #40293 (comment) |
|
Yup I am using that adhoc build and noticed this. |
|
Hmm I didn't test it with a mouse but I also just see the scrollbar below the header Screen.Recording.2024-05-03.at.2.40.02.PM.mov |
|
@shawnborton do you see an additional right padding on the header? I see this padding, which makes the alignment correct |
|
Try testing it with a mouse though - I think the mouse creates that fixed scrollbar that is pushing the table to be over to the left a bit. |
|
Sounds good! |
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.4.71-6 🚀
|









Details
Introduces the TransactionListItem and SearchTableHeader to show list items in the search page
Fixed Issues
$ #39876
$ #39877
Tests
Profile > Troubleshoot > New Search PageOffline tests
QA Steps
Same as tests
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./** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop