Repository navigation
[Payment due @Krishna2323] [No QA][Fullstory] Mask profile details and chat surfaces, unmask custom agent chats - #107161
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
…ile-chat-masking # Conflicts: # src/pages/settings/Profile/PersonalDetails/PrivatePersonalDetailsPage.tsx # src/pages/settings/Wallet/ReportCardLostPage.tsx
|
@parasharrajat 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] |
Codex Review Summary: ✅ CompletedThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4588681eda
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
mountiny
left a comment
There was a problem hiding this comment.
One question on how far the custom agent unmask reaches before this merges.
|
@mountiny please reassign if it needs C+ review as I can't test it due to my device being with apple support |
…ile-chat-masking # Conflicts: # src/pages/settings/Profile/ProfilePage.tsx
| // Given a DM whose participants are known people, none flagged as a custom agent. | ||
| await Onyx.set(ONYXKEYS.PERSONAL_DETAILS_LIST, {[participantAccountID]: {accountID: participantAccountID, isCustomAgent: false}}); | ||
| await waitForBatchedUpdates(); | ||
| const report = createMock<Report>({participants: {[participantAccountID]: {}}}); |
There was a problem hiding this comment.
NAB: This passes even with isCustomAgent: true on line 170. The mock has no type, so isDM() returns false and the chat is masked before the agent flag is checked. Adding type: CONST.REPORT.TYPE.CHAT would make this test cover the no-agent case properly.
| ); | ||
|
|
||
| // Without the scroll view there's no FSClassView around the form, so one is added when a class is passed. Forms without a class keep their layout. | ||
| if (!forwardedFSClass) { |
There was a problem hiding this comment.
NAB: Which form needs this? None of the forms with shouldUseScrollView={false} pass forwardedFSClass to the form, and the three forms masked here all use the scroll view. If nothing needs it yet, could it move to the PR that adds the caller?
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid_hybrid.mp4Android: mWeb ChromeiOS: HybridAppios_hybrid_1.mp4ios_hybrid_2.mp4ios_hybrid_3.mp4iOS: mWeb SafariMacOS: Chrome / Safariweb_chrome_profile_page.mp4 |
Krishna2323
left a comment
There was a problem hiding this comment.
LGTM!
Left two non-blocking comments.
|
🎯 @Krishna2323, thanks for reviewing and testing this PR! 🎉 A payment issue will be created for your review once this PR is deployed to production. If payment is not needed (e.g., regression PR review fix etc), react with 👎 to this comment to prevent the payment issue from being created. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 mountiny has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.5.53-0 🚀
|
|
No help site update needed — this PR only changes internal Fullstory recording masks, without adding user-facing workflows, changing UI labels, or making any existing article sentence incorrect. |
|
🤖 Payment issue created: #107981 |
|
🚀 Deployed to production by https://github.com/arosiclair in version: 9.5.53-3 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
Masks the private profile details and two chat surfaces that weren't covered in Fullstory recordings, and unmasks chats with custom agents. Follow-up of #105601, which added the masking support used here.
forwardedFSClassprop onAddressPage. The workspace address page uses the same component and doesn't pass it, since workspace settings aren't masked.FSClassContext.getChatFSClasschecks the participants'isCustomAgentflag and has tests for it. The flag is read fromPersonalDetailsStore, the same way the function already reads the parent report, so a chat that's already on screen picks up a change in the flag on its next render.Fullstory test session: https://app.fullstory.com/ui/o-1WN56P-na1/session/5826248309387614834:3760344074396620252!3392275655612737274
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/693315
PROPOSAL:
Tests
How to check
Web: check the DOM
npm run weband open the screen.<input>itself, or thedivrendering the text.fs-maskclass, or have no class of its own under an ancestor withfs-mask. If the element itself hasfs-unmask, it gets recorded.Native: check the component tree
jin the bundler terminal, or use the dev menu › Open DevTools.View/Text/TextInputthat holds the value.fsClassprop must befs-mask. The same rule applies: the closest element with anfsClassdecides.Prerequisites: a validated account, a coworker account, and a workspace you admin. Steps 4 and 9 use fake data added in the web console (dev builds expose
window.Onyx). Fake data only lives in your local Onyx: remove it afterwards, and don't press buttons that call the API with it.https://dev.new.expensify.com:8082/settings/profile/private-personal-details.fs-mask: legal first and last name, date of birth, phone, address line 1 and 2, city, state, zip, and the country value.fs-mask. It renders in a popover outside the form, so before this PR it was recorded unmasked.https://dev.new.expensify.com:8082/settings/profile).fs-mask.https://dev.new.expensify.com:8082/settings/preferences/home-address.fs-mask, and so does the suggestions list under Address line 1.<accountID>with yours (Onyx.log('session')):https://dev.new.expensify.com:8082/settings/wallet/card/999001, press "Report card lost or damaged", pick a reason and press Next. Don't press the final button.fs-mask; the "Address" name stays readable.https://dev.new.expensify.com:8082/workspaces/<policyID>/travel/missing-personal-detailswith one of your workspaces' IDs.fs-mask.https://dev.new.expensify.com:8082/workspaces/<policyID>/overview/workspace-address.fs-unmask.fs-maskbecause of their autofill hints, the same as onmain.fs-mask.fs-unmask.@a, then:sm.fs-mask. On web it renders at the end of<body>; on native check itsfsClassin React Native DevTools.fs-unmask.<coworkerAccountID>with theirs (from their profile URL,/a/<accountID>):fs-unmask.Offline tests
N/A
QA Steps
N/A
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari