[Phase 4] - Remove module-level reportAttributesDerivedValue in isEmptyReport() - #100447
Draft
hoangzinh wants to merge 1 commit into
Draft
[Phase 4] - Remove module-level reportAttributesDerivedValue in isEmptyReport()#100447hoangzinh wants to merge 1 commit into
hoangzinh wants to merge 1 commit into
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
hoangzinh
force-pushed
the
66427/phase4-isEmptyReport-remove-derived-value
branch
2 times, most recently
from
September 6, 2026 13:17
824f452 to
e41aaa2
Compare
Remove module-level reportAttributesDerivedValue read inside isEmptyReport() by accepting an optional derivedIsEmptyReport parameter, mirroring Phase 2's derivedReportName pattern. - Add reportIsEmptySelector to ReportAttributes selectors - Add useDerivedIsEmptyReportByReportID/sByReportIDs hooks - Thread derivedIsEmptyReport through isUnread, reasonForReportToBeInOptionList, and ShouldReportBeInOptionListParams - Update call sites in SidebarUtils, OptionsListUtils, DebugUtils, MarkAllMessageAsRead, and 4 Group C components/hooks - Leave UnreadIndicatorUpdater unchanged (falls through to generateIsEmptyReport) - Add tests for isEmptyReport cache hit/miss and new hooks Part of Expensify#66427 (Phase 4)
hoangzinh
force-pushed
the
66427/phase4-isEmptyReport-remove-derived-value
branch
from
September 6, 2026 13:21
e41aaa2 to
7103dee
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Explanation of Change
Remove module-level reportAttributesDerivedValue read inside isEmptyReport() by accepting an optional derivedIsEmptyReport parameter, mirroring Phase 2's derivedReportName pattern.
Fixed Issues
$ #66427
PROPOSAL:
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
1. LHN displays reports correctly
2. Inbox Unread tab and Mark all as read
3. Report View — Expense report marks as read
4. Report View — Chat navigates to unread position
5. Search displays correct unread state
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, 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.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Screen.Recording.2026-09-06.195109.mp4