-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added new flow for missing personal details #48775
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. |
@@ -71,7 +71,7 @@ function WorkspaceMoreFeaturesPage({policy, route}: WorkspaceMoreFeaturesPagePro | |||
!!policy?.connections?.netsuite?.options?.config?.syncOptions?.syncTax; | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mountiny i am not sure about this change, i faintly remember we skipped the _
on purpose
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bump @mountiny on the ^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is correct, there should be _
Line 335 in 4e0a193
key: `${ONYXKEYS.COLLECTION.WORKSPACE_CARDS_LIST}${workspaceAccountID}_${CONST.EXPENSIFY_CARD.BANK}`, |
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
@@ -1241,6 +1241,10 @@ const ROUTES = { | |||
route: 'restricted-action/workspace/:policyID', | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 details
button in Workspace chat.Add personal details
, and fill the details.Add personal details
button.Offline tests
Same as Tests
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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