-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Flip TU constants for QA #31094
Flip TU constants for QA #31094
Conversation
referTeachersUniteVolunteer and addSchoolPrincipal functions
IntroSchoolPrincipalPage
IntroSchoolPrincipalPage
instead of environment
onPress={() => Navigation.navigate(ROUTES.I_AM_A_TEACHER)} | ||
/> | ||
)} | ||
<MenuItem |
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 removed this condition to allow the teacher to enter again the principal email in case they entered the email incorrectly
On hold for backend changes, but the code changes are ready for review. |
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.
It mostly looks good, but I'll look more profound with my laptop.
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.
Looks good, left a few suggestions.
@@ -51,7 +53,9 @@ function KnowATeacherPage(props) { | |||
const firstName = values.firstName.trim(); | |||
const lastName = values.lastName.trim(); | |||
|
|||
TeachersUnite.referTeachersUniteVolunteer(contactMethod, firstName, lastName); | |||
const policyID = isProduction ? CONST.TEACHERS_UNITE.PROD_POLICY_ID : CONST.TEACHERS_UNITE.TEST_POLICY_ID; | |||
const publicRoomReportID = isProduction ? CONST.TEACHERS_UNITE.PROD_PUBLIC_ROOM_ID : CONST.TEACHERS_UNITE.TEST_PUBLIC_ROOM_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.
I think we can create a hook to return the teachers' unite policyID and publicRoomID based on the environment.
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 constants will be only used in these two places, so I think it's not necessary to move it to a hook atm
Hi @mollfpr! 👋🏽 The backend changes were deployed to production, and this PR is ready for review. You should be redirected to the testing public room and the testing policy when a teacher is referred or signed up. |
Reviewer Checklist
Screenshots/VideosAndroid: Native31094.Android.-.Member.mp431094.Android.-.Teacher.mp4Android: mWeb Chrome31094.mWeb-Chrome.-.Member.mp431094.mWeb-Chrome.-.Teacher.mp4iOS: Native31094.iOS.-.Member.mp431094.iOS.-.Teacher.mp4iOS: mWeb Safari31094.mWeb-Safari.-.Member.mp431094.mWeb-Safari.-.Teacher.mp4MacOS: Desktop31094.Desktop.-.Member.mp431094.Desktop.-.Teacher.mp4 |
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 and tests well 👍
@marcochavezf I think you need to update the checklist with the latest. There's a new checklists.
If the PR modifies the form input styles:
I verified that all the inputs inside a form are aligned with each other.
I added Design label so the design team can review the changes.
@francoisl 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] |
✋ 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/francoisl in version: 1.4.23-0 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.4.23-4 🚀
|
On hold for https://github.com/Expensify/Web-Expensify/pull/39601Details
This PR flips the TU constants (policyID and public room reportID) in the clientside when the environment is not production.
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/334697
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop