Refactor createTaskAndNavigate() to use useAncestors hook #73867
Refactor createTaskAndNavigate() to use useAncestors hook #73867luacmartins merged 23 commits intoExpensify:mainfrom
createTaskAndNavigate() to use useAncestors hook #73867Conversation
…r improved task deletion handling
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
createTaskAndNavigate() to use useAncestors hook
…ReportFooter hooks
JmillsExpensify
left a comment
There was a problem hiding this comment.
Everything looks good from a product perspective. No concerns.
|
Bump, @FitseTLT |
|
@luacmartins there is a BE bug currently where the replies doesn't get updated correctly when deleting a child task. Do you think it is worth it to report ? I assume the optimisticaData is correct as there is no reply when opening the thread 2025-11-08.01-52-13.mp4 |
@FitseTLT, I mentioned this, and it is being worked on here. We should proceed with PR before the backend is fixed. |
Now I am confused, BTW, why did you refactor deleteTask here? I see that the other PR is also dealing with it 😕 |
|
Sorry about that @FitseTLT, this PR is only supposed to refactor the |
|
Bump @FitseTLT |
|
✋ 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/luacmartins in version: 9.2.49-0 🚀
|
1 similar comment
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.2.49-0 🚀
|
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.2.52-0 🚀
|
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.2.54-1 🚀
|
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.2.52-0 🚀
|
| [allPersonalDetails, availableLoginsList, currentUserEmail, personalDetail.accountID, quickAction, report.policyID, report.reportID], | ||
| [allPersonalDetails, ancestors, availableLoginsList, currentUserEmail, personalDetail.accountID, quickAction, report.policyID, report.reportID], |
There was a problem hiding this comment.
This made ReportFooter and ComposerWithSuggestions re-render frequently, which disrupted focus management and caused #79769. See #79769 (comment) for details.
Explanation of Change
Refactoring the
createTaskAndNavigate()function to accept ancestors so it can be pure.Fixed Issues
$ #73569
PROPOSAL:
Tests
Force Offline1 reply.Force Offline.1 reply.Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
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: mWeb Chrome
iOS: Native
iOS.-.Native.mp4
iOS: mWeb Safari
iOS.-.mWeb.mp4
MacOS: Chrome / Safari
macOS.-.Chrome.mov
MacOS: Desktop
macOS.-.Desktop.mov