Conversation
|
@rayane-djouah 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] |
Reviewer Checklist
Screenshots/VideosBefore:Screen.Recording.2024-08-06.at.12.30.03.PM.movAfter:Screen.Recording.2024-08-06.at.12.30.46.PM.mov |
|
@luacmartins - I think we should update App/src/components/Search/index.tsx Line 219 in 412fc60 to be true when App/src/components/Search/index.tsx Line 266 in 412fc60 Otherwise, the search page can show an empty view instead of the empty state component if Screen.Recording.2024-08-06.at.1.09.20.PM.mov |
|
Do you know which flow is returning an empty array? The results should always be an object |
|
Line 229 in 412fc60 |
|
App/src/components/Search/index.tsx Line 219 in 412fc60 Lines 321 to 324 in 412fc60 |
|
Ah I see, that happens after we get the |
|
Updated! |
|
Fixed 🚀 Screen.Recording.2024-08-07.at.9.21.11.AM.mov |
|
@carlosmiceli 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] |
|
The reviewer checklist is complete |
|
Sorry, had to resolve conflicts. Please review again! |
|
✋ 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/carlosmiceli in version: 9.0.18-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.18-10 🚀
|
| const sortedData = SearchUtils.getSortedSections(type, data, sortBy, sortOrder); | ||
| const sortedSelectedData = sortedData.map((item) => mapToItemWithSelectionInfo(item, selectedTransactions)); | ||
|
|
||
| const shouldShowEmptyState = !isDataLoaded || data.length === 0; |
There was a problem hiding this comment.
Coming from: #56734. We should show the empty state if the search type is invalid
Details
Fixes a crash when report is missing. We're still investigating why the report is missing, but in the meantime we'll fix the crash
Fixed Issues
$ #46516
Tests
Sharedsearch pageOffline tests
N/A
QA Steps
N/A
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
MacOS: Desktop