Added new flow for missing personal details#48775
Conversation
|
@shubham1206agra when do you think you can open it up for review |
|
@shubham1206agra This is the API requirement:
The important part is that we will only ship one card provided the cardID. We need to make some larger changes to enable shipping more cards in one call. So to pass the cardID, find a first card in the NOT_ISSUED state on this card feed (get the workspace chat policyID -> find the workspace feed card list and get the first card you find there) This will be fine for now and we will update the backend to handle shipping all the not issued cards at once. |
| const policyID = policy?.id; | ||
| const workspaceAccountID = policy?.workspaceAccountID ?? -1; | ||
| const [cardsList] = useOnyx(`${ONYXKEYS.COLLECTION.WORKSPACE_CARDS_LIST}${workspaceAccountID.toString()}${CONST.EXPENSIFY_CARD.BANK}`); | ||
| const [cardsList] = useOnyx(`${ONYXKEYS.COLLECTION.WORKSPACE_CARDS_LIST}${workspaceAccountID.toString()}_${CONST.EXPENSIFY_CARD.BANK}`); |
There was a problem hiding this comment.
@mountiny This was causing a minor bug where the toggle of Expensify card is not disabled even after card was added in More features page.
There was a problem hiding this comment.
@mountiny i am not sure about this change, i faintly remember we skipped the _ on purpose
There was a problem hiding this comment.
This is correct, there should be _
Line 335 in 4e0a193
|
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
|
@dubielzyk-expensify @mountiny 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] |
Screen.Recording.2024-09-10.at.4.10.07.PM.mov@Expensify/design Video for your reference. |
|
I added address for one member, then i added another user who doesn't have personal details, but this time i directly get the message that the card has been shipped (note that the new user doesn't have personal details) @shubham1206agra
|
|
@shubham1206agra i guess we should check state of every individual member here |
|
Oh and also, should the workspace admin be able to see the |
|
can you also fix lint @shubham1206agra |
|
If i login in a member account which has pending action to add details to ship the card, and then i manually update the address, legal name, dob from profile and go back to chat, i still see the add address button Screen.Recording.2024-09-11.at.5.41.22.PM.mov |
This is expected as you have not added phone number 😆 |
There is still a phone number that they need to add |
|
@shubham1206agra On admin side I still see the |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-09-12.at.3.11.46.AM.movAndroid: mWeb ChromeScreen.Recording.2024-09-12.at.3.09.08.AM.moviOS: NativeScreen.Recording.2024-09-12.at.3.05.27.AM.moviOS: mWeb SafariScreen.Recording.2024-09-12.at.3.02.49.AM.movMacOS: Chrome / SafariScreen.Recording.2024-09-12.at.2.54.57.AM.movMacOS: DesktopScreen.Recording.2024-09-12.at.2.59.58.AM.mov |
|
Screen.Recording.2024-09-12.at.2.41.33.AM.mov |
There was a problem hiding this comment.
After a lot of back and forth, lets get this one shipped and come up with a follow up to clean few things from this PR slack here
mountiny
left a comment
There was a problem hiding this comment.
We will need to make some changes to this flow for sure but its great to have it in place. Thanks @shubham1206agra for stepping up and to @allgandalf for a great review too
We will follow up with improvements soon
| getRoute: (policyID: string) => `restricted-action/workspace/${policyID}` as const, | ||
| }, | ||
| MISSING_PERSONAL_DETAILS: { | ||
| route: 'missing-personal-details/workspace/:policyID', |
There was a problem hiding this comment.
I think we could remove the missing from this url and just leave it as personal details
|
✋ 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/mountiny in version: 9.0.34-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.0.34-3 🚀
|



Details
Fixed Issues
$ #48487
Tests
Add personal detailsbutton in Workspace chat.Add personal details, and fill the details.Add personal detailsbutton.Offline tests
Same as Tests
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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
Screen.Recording.2024-09-11.at.7.10.11.PM.mov
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop