[Policy Change Logs] Implement policy change log for: Overview - Setting Company address#77287
Conversation
…eportActionsUtil and added report action type handling
|
Hey, I noticed you changed If you want to automatically generate translations for other locales, an Expensify employee will have to:
Alternatively, if you are an external contributor, you can run the translation script locally with your own OpenAI API key. To learn more, try running: npx ts-node ./scripts/generateTranslations.ts --helpTypically, you'd want to translate only what you changed by running |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@abdulrahuman5196 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] |
|
Hmm… I'm not sure why Melvin assigned two C+ reviewers |
|
Resolved merge conflicts |
|
@brunovjk yes please review! sorry that wasn't clear |
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp77287_android_native.moviOS: HybridApp77287_ios_native.moviOS: mWeb Safari77287_ios_web.movMacOS: Chrome / Safari77287_web_chrome.mov |
|
@rayane-d we still have some conflicts here. We also have some warnings related to "ESLint check" and "typecheck" in the tests you created. Can you resolve them? So far everything seems ok to me. I need to leave now, I'll be back to review it first thing tomorrow. Thank you. |
|
Friendly bump @rayane-d, thank you. |
|
@brunovjk - I've resolved the conflicts and fixed the failing checks |
|
@rayane-d more conflicts 😢 |
|
resolved the conflicts |
jasperhuangg
left a comment
There was a problem hiding this comment.
lgtm, is the failing jest unit test related?
also @heyjennahay all yours for the product review!
It seems unrelated; the tests pass after merging the main branch |
|
Nice! Thanks for your patience with this one @rayane-d |
|
✋ 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/jasperhuangg in version: 9.3.1-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.3.1-1 🚀
|

Explanation of Change
This PR adds policy change log report actions (system messages in the workspace #admins room's system messages thread) for when the company address is set or updated in workspace settings.
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/568306
PROPOSAL:
Tests
Prerequisites
Test Cases
Test 1: Set Company Address for the First Time
Steps:
123 William StreetSuite 500New YorkNY10038United StatesExpected Results:
set the company address to "123 William Street, Suite 500, New York, NY 10038"street1, street2, city, state zipCode(note: state and zipCode are space-separated)Note on address style:
Screen.Recording.2025-12-11.at.12.33.36.AM.mov
Test 2: Update Company Address
Precondition: A company address has already been set (from Test 1).
Steps:
123 Great Gulf DriveSuite 500VaughanONL4K 5V1CanadaExpected Results:
changed the company address to "123 Great Gulf Drive, Suite 500, Vaughan, ON L4K 5V1" (previously "123 William Street, Suite 500, New York, NY 10038")Screen.Recording.2025-12-11.at.12.34.15.AM.mov
Test 3: Set Address Without Secondary Street Line
Steps:
456 Main AvenueSan FranciscoCA94102United StatesExpected Results:
set the company address to "456 Main Avenue, San Francisco, CA 94102"orchanged the company address to "456 Main Avenue, San Francisco, CA 94102" (previously "...")Screen.Recording.2025-12-11.at.12.35.05.AM.mov
Test 4: Update Address - Change Only One Field
Precondition: A company address has already been set.
Steps:
San FranciscotoOakland)Expected Results:
Screen.Recording.2025-12-11.at.12.36.16.AM.mov
Test 5: No Changelog When Address Unchanged
Precondition: A company address has already been set.
Steps:
Expected Results:
Screen.Recording.2025-12-11.at.12.36.49.AM.mov
Offline tests
N/A
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari