-
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
[$250] Select date in Submission frequency modal gets dismissed modal after reload page #47178
Comments
Triggered auto assignment to @isabelastisser ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Submission frequency modal gets dismissed What is the root cause of that problem?When the user reloads the page, the navigation stack is cleared App/src/pages/workspace/workflows/WorkspaceAutoReportingMonthlyOffsetPage.tsx Lines 68 to 71 in 87c116b
So it will close that modal What changes do you think we should make in order to solve the problem?
App/src/pages/workspace/workflows/WorkspaceAutoReportingMonthlyOffsetPage.tsx Lines 68 to 71 in 87c116b
What alternative solutions did you explore? (Optional) |
@isabelastisser I'm reporter, so I can take this as C+ |
that was quick @daledah 🚀 |
Job added to Upwork: https://www.upwork.com/jobs/~01b7f48f34dee22a4a |
Current assignee @dukenv0307 is eligible for the External assigner, not assigning anyone new. |
Edited by proposal-police: This proposal was edited at 2024-08-10 10:17:38 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Select date in Submission frequency modal gets dismissed modal after reload page What is the root cause of that problem?We don't send backTo param when navigate to WORKFLOWS_AUTO_REPORTING_MONTHLY_OFFSET What changes do you think we should make in order to solve the problem?Key difference with prev proposal:
In src/ROUTES.ts add backTo param WORKSPACE_WORKFLOWS_AUTOREPORTING_MONTHLY_OFFSET: {
route: 'settings/workspaces/:policyID/workflows/auto-reporting-frequency/monthly-offset',
getRoute: (policyID: string, backTo?: string) => getUrlWithBackToParam(`settings/workspaces/${policyID}/workflows/auto-reporting-frequency/monthly-offset`, backTo),
}, In src/pages/workspace/workflows/WorkspaceAutoReportingFrequencyPage.tsx call navigate with backTo param value <MenuItem
title={translate('workflowsPage.submissionFrequencyDateOfMonth')}
titleStyle={styles.textLabelSupportingNormal}
description={getDescriptionText()}
descriptionTextStyle={styles.textNormalThemeText}
wrapperStyle={styles.pr3}
onPress={() => Navigation.navigate(ROUTES.WORKSPACE_WORKFLOWS_AUTOREPORTING_MONTHLY_OFFSET.getRoute(policy?.id ?? '', ROUTES.WORKSPACE_WORKFLOWS_AUTOREPORTING_FREQUENCY.getRoute(policy?.id ?? '')))} In src/pages/workspace/workflows/WorkspaceAutoReportingMonthlyOffsetPage.tsx read ...
const onSelectDayOfMonth = (item: WorkspaceAutoReportingMonthlyOffsetPageItem) => {
Policy.setWorkspaceAutoReportingMonthlyOffset(policy?.id ?? '-1', item.isNumber ? parseInt(item.keyForList, 10) : (item.keyForList as AutoReportingOffsetKeys));
Navigation.goBack(navigateBackTo);
};
...
<HeaderWithBackButton
title={translate('workflowsPage.submissionFrequency')}
onBackButtonPress={() => Navigation.goBack(navigateBackTo)}
/> What alternative solutions did you explore? (Optional) |
Triggered auto assignment to @MonilBhavsar, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @dukenv0307 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @daledah You have been assigned to this job! |
@dukenv0307 This PR is ready for review. |
any updates here? @dukenv0307 @daledah thanks! |
The PR was merged 1 week ago @isabelastisser |
Thanks for the heads up @dukenv0307! It looks like the payment automation failed. |
@daledah, can you please apply for this job in Uprwork or share your Upwork profile here? Thanks! |
@isabelastisser My profile is https://www.upwork.com/freelancers/~0138d999529f34d33f thx |
Thanks @daledah, I sent you the offer in Upwork now. |
@dukenv0307, I processed your payment in Upwork yesterday. All set! |
@isabelastisser I accepted it |
@daledah, payment approved in Upwork. Thanks! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.18-7
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
Expensify/Expensify Issue URL:
Issue reported by: @dukenv0307
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1723191970067539
Action Performed:
Expected Result:
Back to the Submission frequency modal
Actual Result:
Submission frequency modal gets dismissed
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
web.mov
Recording.432.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @Issue Owner
Current Issue Owner: @dukenv0307The text was updated successfully, but these errors were encountered: