fix Web - Reports - Pagination at arrow when click on header of the filter expense display not correct#75254
Conversation
…ilter expense display not correct
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@aimane-chnaif 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] |
Code Review SummaryI've reviewed the changes in this PR. The code-inline-reviewer agent found no performance or code pattern violations. Change Analysis:The PR changes the logic from:
Considerations:While the code itself is clean, there's a logical concern worth discussing: Question: Are there other search data types besides CHAT and EXPENSE_REPORT? The old logic used negative checking (!isChatSearch), which would show arrows for ANY non-chat search type. The new logic uses positive checking (isExpenseReportSearch), which ONLY shows arrows for expense report searches. If there are other search types (e.g., INVOICE, TRANSACTION, etc.), this change would hide the pagination arrows for those types, potentially breaking functionality. Recommendation: Verify that EXPENSE_REPORT is the only search type (besides CHAT) where pagination arrows should appear. If other types exist and need arrows, consider using a whitelist approach or keeping the negative check but adding additional exclusions. Otherwise, the code quality is good - clear variable naming and straightforward logic. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid.movAndroid: mWeb Chromemchrome.moviOS: HybridAppios.moviOS: mWeb SafariMacOS: Chrome / Safariweb.movMacOS: Desktop |
|
✋ 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/roryabraham in version: 9.2.63-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.2.63-8 🚀
|
Explanation of Change
Fixed Issues
$ #74436
PROPOSAL: #74436 (comment)
Tests
Offline tests
Same as Tests
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)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.mov
Android: mWeb Chrome
android.chrome.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios.safari.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov