-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix: Onboarding - Onboarding tasks in #admins room are grayed out in offline mode. #60973
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
fix: Onboarding - Onboarding tasks in #admins room are grayed out in offline mode. #60973
Conversation
…offline mode. Signed-off-by: krishna2323 <[email protected]>
Signed-off-by: krishna2323 <[email protected]>
Will upload the recordings in the morning. |
@jayeshmangwani 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] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid.mp4Android: mWeb Chromemweb-chrome.moviOS: HybridAppiOS.moviOS: mWeb Safarimweb-safari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
@Krishna2323 Can we add a test for the |
@Krishna2323 bump for the above comment |
Signed-off-by: krishna2323 <[email protected]>
@jayeshmangwani, test added. |
tests/unit/onboardingApiTest.ts
Outdated
import waitForBatchedUpdates from '../utils/waitForBatchedUpdates'; | ||
|
||
const ESH_EMAIL = '[email protected]'; | ||
const ESH_ACCOUNT_ID = 1; |
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.
@Krishna2323 Either you've used your own details here instead of another contributor's, or you can use a placeholder like TEST_USER_ACCOUNT_ID
.
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.
Instead of creating a new test file named onboardingApiTest
, what do you think about adding the test directly under tests/actions/ReportTest.ts
, since we're only testing completeOnboarding
as part of the Report actions?
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.
Yes, agreed. I have added the completeOnboarding
test inside tests/actions/ReportTest.ts
and removed the file onboardingApiTest
.
tests/unit/onboardingApiTest.ts
Outdated
|
||
const adminsChatReportID = '7957055873634067'; | ||
const onboardingPolicyID = 'A70D00C752416807'; | ||
|
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.
const engagementChoice = CONST.INTRO_CHOICES.MANAGE_TEAM; | |
Report.completeOnboarding({ | |
engagementChoice, | |
onboardingMessage: CONST.ONBOARDING_MESSAGES[engagementChoice], | |
adminsChatReportID, | |
onboardingPolicyID, | |
companySize: CONST.ONBOARDING_COMPANY_SIZE.MICRO, | |
userReportedIntegration: null, | |
}); |
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.
updated.
Signed-off-by: krishna2323 <[email protected]>
tests/actions/ReportTest.ts
Outdated
|
||
Report.completeOnboarding({ | ||
engagementChoice, | ||
onboardingMessage: CONST.ONBOARDING_MESSAGES.newDotManageTeam, |
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.
onboardingMessage: CONST.ONBOARDING_MESSAGES.newDotManageTeam, | |
onboardingMessage: CONST.ONBOARDING_MESSAGES[engagementChoice], |
tests/actions/ReportTest.ts
Outdated
onboardingMessage: CONST.ONBOARDING_MESSAGES.newDotManageTeam, | ||
adminsChatReportID, | ||
onboardingPolicyID, | ||
companySize: '1-10', |
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.
companySize: '1-10', | |
companySize: CONST.ONBOARDING_COMPANY_SIZE.MICRO, |
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.
sorry for overlooking. Updated.
Signed-off-by: krishna2323 <[email protected]>
@Krishna2323 Please merge main and push the changes to resolve the failing Tests. |
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.
LGTM 🚀
@Krishna2323 You might need to pull main to update the unit tests. |
✋ 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/yuwenmemon in version: 9.1.42-0 🚀
|
🚀 Deployed to staging by https://github.com/yuwenmemon in version: 9.1.43-5 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.1.44-8 🚀
|
Explanation of Change
Fixed Issues
$ #60833
PROPOSAL: #60833 (comment)
Tests
Here is a task list I’d recommend for a company of your size
is not greyed outWe can explore more features such
is not greyed outOffline tests
Internet connection is required
QA Steps
Here is a task list I’d recommend for a company of your size
is not greyed outWe can explore more features such
is not greyed outPR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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
android_native.mp4
Android: mWeb Chrome
android_chrome.mp4
iOS: Native
ios_native.mp4
iOS: mWeb Safari
ios_safari.mp4
MacOS: Chrome / Safari
web_chrome.mp4
MacOS: Desktop
desktop_app.mp4