-
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
feat: add employee and accounting page to onboarding flow #49161
Conversation
@dubielzyk-expensify what are your thoughts on the "Connect your accounting..." text below the headline? I am thinking it should be bigger (in our normal font size, 15px) and maybe a bit more margin below it and above the options? |
The font size is not consistent Screen.Recording.2024-09-16.at.1.14.10.PM.mov |
Agree. In the mocks I've specified it as |
Agreed. All headlines should be the same here. Also the padding here is off on @s77rt 's recording: The text should all line up vertically on the left like so: We use 32px padding on desktop modals and 20px on mobile :) |
This bug is fixed on the latest code. |
Oh, that is the font-size that we use in the onboarding work step and I used this when creating new pages. |
@dubielzyk-expensify How about the spacing between the title and the description in the accounting step? Is it also 20px? |
Update two screenshots for desktop and mobile. Screen.Recording.2024-09-17.at.11.20.45.movScreen.Recording.2024-09-17.at.11.21.47.mov |
Updated. Screen.Recording.2024-09-17.at.12.37.48.movScreen.Recording.2024-09-17.at.12.37.31.mov |
@s77rt I updated. |
if (!onboardingPolicyID) { | ||
const {adminsChatReportID, policyID} = Policy.createWorkspace(undefined, true); | ||
Welcome.setOnboardingAdminsChatReportID(adminsChatReportID); | ||
Welcome.setOnboardingPolicyID(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.
Since we are not going to use the policy in between steps is there any reason that we create the workspace at that early step? Why not create it just before calling completeOnboarding
in the accounting step?
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.
Interesting. Did you have any concern about that or opinion on why it would be better to do one over the other?
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.
No strong preference it's just a little questionable that we create the workspace when not really needed yet. Now I think about it more I think we may have a bug:
- Login as a new user
- On the onboarding flow, select purpose to manage team <-- This will create a workspace
- Logout
- Login in again
- If you try to complete the onboarding flow you will be creating another workspace since
onboardingPolicyID
is not on onyx
cc @nkdengineer Can you please confirm if you can reproduce this bug?
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.
Oh hmm that's an interesting edge case for sure - I'm not sure how we would completely solve that without designating a specific policy as the "onboarding policy". Though we could potentially check if a user has an existing policy.
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.
Fixing the problem highlighted in #50759 may fix this as I think we will have to send the policy id from the backend
Reviewer Checklist
Screenshots/Videos |
Sorry, @nkdengineer. Changes look great, but we have conflicts now. |
@marcaaron I updated. |
Conflicts again. |
@marcaaron I resolved. |
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.
Looking great! Thanks for your patience and hard work here. And great review as always @s77rt 🙇
✋ 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/marcaaron in version: 9.0.48-0 🚀
|
@nkdengineer are you working on adding the task next? Just making sure you are aware of that part of this ticket. Please let me know. |
Heads up that there is another bug that we found concerning the signup flow between OldDot and NewDot. Because we have a flow where we set the I'm going to be working on that one because it essentially blocks the deploy since we can't release a version of the app where this policy doesn't get created. |
🚀 Deployed to production by https://github.com/marcaaron in version: 9.0.48-2 🚀
|
Details
Fixed Issues
$ #48745
PROPOSAL: #48745 (comment)
Tests
Manage my team's expenses
Offline tests
None
QA Steps
Manage my team's expenses
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
Android: Native
Screen.Recording.2024-09-16.at.15.30.48.mov
Android: mWeb Chrome
Screen.Recording.2024-09-16.at.15.27.18.mov
iOS: Native
Screen.Recording.2024-09-16.at.15.31.36.mov
iOS: mWeb Safari
Screen.Recording.2024-09-16.at.15.26.16.mov
MacOS: Chrome / Safari
Screen.Recording.2024-09-16.at.15.20.11.mov
MacOS: Desktop
Screen.Recording.2024-09-16.at.15.34.54.mov