[Phase 2 of #66427, sub-pr 3/5] Migrate deprecatedGetReportName → getReportName in libs files - #97068
Open
hoangzinh wants to merge 2 commits into
Open
[Phase 2 of #66427, sub-pr 3/5] Migrate deprecatedGetReportName → getReportName in libs files#97068hoangzinh wants to merge 2 commits into
hoangzinh wants to merge 2 commits into
Conversation
…ame across libs Migrate call sites off deprecatedGetReportName to the new getReportName signature, which takes the precomputed report name string directly instead of the full reportAttributes map.
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
hoangzinh
force-pushed
the
refactor/66427-phase2-sub3-libs
branch
from
July 27, 2026 15:56
7eeeb71 to
81edfb5
Compare
hoangzinh
marked this pull request as ready for review
July 27, 2026 16:59
melvin-bot
Bot
requested review from
DylanDylann and
JmillsExpensify
and removed request for
a team and
JmillsExpensify
July 27, 2026 16:59
|
@DylanDylann 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] |
DylanDylann
reviewed
Jul 29, 2026
| return { | ||
| icons: ReportUtils.getIcons(report, formatPhoneNumber, translate, personalDetails, FallbackAvatar), | ||
| displayName: deprecatedGetReportName(report, reportAttributes), | ||
| displayName: getReportName(report, report?.reportID ? reportAttributes?.[report.reportID]?.reportName : undefined), |
Contributor
There was a problem hiding this comment.
We shouldn't pass reportAttributes in getShareDestination anymore; passing a reportName should be enough. With this reafctor, we need to avoid subscribing to the entire reportAttributes at the component level
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
Part of #66427. Phase 2, Sub-PR 3 of 5 Sub-PR 3 — migrate deprecatedGetReportName → getReportName per directory src/libs/**
Next step:
Fixed Issues
$ #66427
PROPOSAL: #66427 (comment)
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
1. Create New Task - Share destination
2. Copy report preview message
3. Search
type:chat,type:task, andin:.4. LHN
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
Recording.2026-07-27.232226.mp4