Fix stale Add address CTA after saving home address - #99834
Conversation
|
@dmkt9 @robertjchen @Beamanator One of you needs to 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] |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb Safari |
|
🚧 Gonals has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/Gonals in version: 9.4.65-0 🚀
|
|
No help site changes are required, so I did not create a draft PR. This PR is a client-side state-sync bug fix. It makes the existing Nothing here adds, renames, or removes a feature, setting, tab, or button. The documented behavior is unchanged — the CTA still appears when a home address is missing and disappears once it is saved. Only the timing of the update changed. Docs I checkedI searched all of
No existing article describes the @fedirjh — there is no linked help site PR to review, since I found no article that needs updating. If you think a specific article should cover this flow, tell me which one and I'll draft the change. |
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.4.65-3 🚀
Bundle Size Analysis (Sentry): |

Explanation of Change
Make the
HOME_ADDRESS_REQUIREDworkspace-chat CTA react to the current home address in Onyx so it disappears immediately after the optimistic address save, even before the backend stamps the action as resolved. Add a regression test covering both the optimistic hide and the already-resolved case.Fixed Issues
$ #99722
PROPOSAL: #99722 (comment)
Tests
Calculate by home and office.Add addressCTA is shown.Add address.Add addressCTA is no longer shown.Offline tests
Same as tests
QA Steps
Same as tests
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