-
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
[HOLD for payment 2023-09-20] [$1000] Web - Profile - No back button on personal details offline mode #24642
Comments
Triggered auto assignment to @sonialiap ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.We want to show the back button when the data for the personal details page is loading. What is the root cause of that problem?When the data for personal details page is loading we only show the loading indicator here, instead of also showing the header and back button. What changes do you think we should make in order to solve the problem?We can update the {lodashGet(props.privatePersonalDetails, 'isLoading', true) ?
<FullscreenLoadingIndicator /> :
<ScrollView>
{/*. other code .... */}
</ScrollView>
} To fix this we have to update some styles, we can follow either of these options after applying the above change
Optional: What alternative solutions did you explore? (Optional)N/A |
Triaging to external |
Job added to Upwork: https://www.upwork.com/jobs/~012444d83c2a13626a |
Triggered auto assignment to @Christinadobrzyn ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ArekChr ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Web - Profile - No back button on personal details offline mode What is the root cause of that problem?App/src/pages/settings/Profile/PersonalDetails/PersonalDetailsInitialPage.js Lines 86 to 88 in c435734
If the data is loading, we are only show FullscreenLoadingIndicator What changes do you think we should make in order to solve the problem?The same problem happen on: LegalNamePage, DateOfBirthPage, AddressPage App/src/pages/settings/Profile/PersonalDetails/LegalNamePage.js Lines 69 to 71 in 6319e59
App/src/pages/settings/Profile/PersonalDetails/DateOfBirthPage.js Lines 63 to 65 in 6319e59
App/src/pages/settings/Profile/PersonalDetails/AddressPage.js Lines 134 to 136 in 6319e59
I suggest that we should create new HOC called WithPrivatePersonalDetailsyAndFullscreenLoading like we did in WithPolicyAndFullscreenLoading And using this HOC for all above places What alternative solutions did you explore? (Optional)We can update like this in all above places
Result |
@DylanDylann What is the difference between implementation |
ProposalPlease re-state the problem that we are trying to solve in this issue.No back button appears in personal details page in offline mode What is the root cause of that problem?As you can see below, we show App/src/pages/settings/Profile/PersonalDetails/PersonalDetailsInitialPage.js Lines 86 to 88 in 6319e59
This is the root cause What changes do you think we should make in order to solve the problem?We need to move the
Wrapping by This issue exists on other pages as well. Those should be fixed. What alternative solutions did you explore? (Optional)We can add the
|
ProposalPlease re-state the problem that we are trying to solve in this issue.We aim to display the back button while the personal details page is loading data What is the root cause of that problem?The problem arises when the data for the personal details page is being loaded; during this time, we only display the loading indicator here. As a result, the back button is not being shown. What changes do you think we should make in order to solve the problem?Extract Before: if (lodashGet(props.privatePersonalDetails, 'isLoading', true)) {
return <FullscreenLoadingIndicator />;
} After: const headerWithBackButton = (
<HeaderWithBackButton
title={props.translate('privatePersonalDetails.personalDetails')}
onBackButtonPress={() => Navigation.goBack(ROUTES.SETTINGS_PROFILE)}
/>
);
if (lodashGet(props.privatePersonalDetails, 'isLoading', true)) {
return (
<ScreenWrapper>
{headerWithBackButton}
<FullscreenLoadingIndicator style={[styles.flex1, styles.pRelative]} />
</ScreenWrapper>
);
} ☝️ This makes the component much more readable as the 'loading state' of component has its own return statement. Also change the usage of Before: <HeaderWithBackButton
title={props.translate('privatePersonalDetails.personalDetails')}
onBackButtonPress={() => Navigation.goBack(ROUTES.SETTINGS_PROFILE)}
/> After: {headerWithBackButton} Optional: Do the same in other similar places as well. What alternative solutions did you explore? (Optional)N/A Result |
Hello There, Please find my solution here Technical explanation
Looking forward to hearing from you. |
📣 @lucentdevteam! 📣
|
Contributor details |
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
Hello There, Please find my solution here Technical explanation
Looking forward to hearing from you. Thanks |
ProposalPlease re-state the problem that we are trying to solve in this issue.[$1000] Web - Profile - No back button on personal details offline mode #24642 - Expensify What is the root cause of that problem?The error is because of this code What changes do you think we should make in order to solve the problem?Move the FullscreenLoadingIndicator to above ScrollView tag and below HeaderWithBackButton . What alternative solutions did you explore? (Optional)
|
@ArekChr The difference between implementation WithPolicyAndFullscreenLoading and WithPrivatePersonalDetailsyAndFullscreenLoading is the prop we use to check if we should show loading screen or not.
In WithPrivatePersonalDetailsyAndFullscreenLoading we use another prop to check
|
📣 @huzaifa-99 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
📣 @dhanashree-sawant 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
Thanks for the review guys, PR will be ready shortly |
PR #26346 is ready for review @ArekChr @aldo-expensify |
Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:
On to the next one 🚀 |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
This is not a regression/deploy-blocker, more context here |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.68-17 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-09-20. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
|
@huzaifa-99 can you accept the Upwork offer here - #24642 (comment) |
Accepted, Thanks @Christinadobrzyn |
@ArekChr does not require payment (Contractor) Aug 31 5:41 |
Hi @sonialiap, the offer on upwork is still pending for approval, can you check once you are available? |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
App should display back button on personal details page while loading on offline mode
Actual Result:
App does not display back button on personal details page while loading on offline mode
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: v1.3.54-11
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
no.back.personal.details.offline.mode.mp4
Recording.1228.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1691391806874729
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: