-
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-07-17] [$1000] Add Workspace member "Invitation message" page appears when accessing via deeplink #21412
Comments
Triggered auto assignment to @mallenexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Invite message page appears when accessing with deeplink without any member selected What is the root cause of that problem?In our <FullPageNotFoundView
shouldShow={_.isEmpty(this.props.policy)}
onBackButtonPress={() => Navigation.goBack(ROUTES.SETTINGS_WORKSPACES)}
> In this case, it's not enough because even when there's no selected member, we still see the page without any NotFound view. What changes do you think we should make in order to solve the problem?We should update the shouldShow condition to this, so when there's no selected member, it will display NotFound view. <FullPageNotFoundView
shouldShow={_.isEmpty(this.props.policy) || _.isEmpty(this.props.invitedEmailsToAccountIDsDraft)}
onBackButtonPress={() => Navigation.goBack(ROUTES.SETTINGS_WORKSPACES)}
> What alternative solutions did you explore? (Optional)N/A |
Looks like something related to As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our Feel free to drop a note in #expensify-open-source with any questions. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Invite message page for adding new workspace members is accessible with deeplink without having any selected members. What is the root cause of that problem?We are not validating App/src/pages/workspace/WorkspaceInviteMessagePage.js Lines 83 to 85 in 6183609
What changes do you think we should make in order to solve the problem?We first need to validate
With this, we need to update the navigation function call for the back button from
ResultScreen.Recording.2023-06-23.at.10.03.16.PM.mp4What alternative solutions did you explore? (Optional)We can show the customized NotFound View by passing the relative key strings() to
ResultScreen.Recording.2023-06-23.at.10.28.54.PM.mov |
Job added to Upwork: https://www.upwork.com/jobs/~01ed01d5cf4602a878 |
Current assignee @mallenexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt ( |
Grumble, I started working on this on Friday and lost the data in the compose box.
I'm leaning towards # 2, what do you think @s77rt ? |
@hungvu193 Thanks for the proposal. This is more like a feature request. You RCA makes sense and so is the fix but I don't think we should show the not found view because the page exists. |
@Pujan92 Thanks for the proposal. Same note as above, since this is a feature request (kinda) your RCA is also correct. The solution looks good to me, just instead of replacing 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @marcaaron, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@mallenexpensify Thanks for the summary. I like option 2 as well since we follow the same approach in IOU flow, option 1 is okay but this is easy to fix so let's fix it. I have approved the proposal from @Pujan92. Waiting for @marcaaron review now. |
Actually we will show NotFound |
@hungvu193 I think the policy object being empty means that the policy does not exist (it was removed). So the not found view here makes sense. |
So how about disable the button when no member is selected, I don't think we should navigate them back. |
@hungvu193 Disabling the button will provide no context or feedback on why it's disabled. |
@marcaaron Updated. |
Bump @mallenexpensify for payment, created upwork job got expired and I forgot to apply earlier. |
I think we are just still waiting for payment here. |
Apologies for the (longest) delay (ever) |
No issues @mallenexpensify , Accepted! |
@mallenexpensify Accepted! Thanks! |
Hi @mallenexpensify, can you also comment once on #19073 so my payment can be handled there? |
@Pujan92, @s77rt, @mallenexpensify, @marcaaron Eep! 4 days overdue now. Issues have feelings too... |
Assuming there is nothing left to do for this one. Feel free to reopen if that is not the case. |
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. |
@mallenexpensify payment seems to be pending here, offers are accepted earlier. cc: @s77rt |
Issue reporter: @dhanashree-sawant paid $250 via Upwork @dhanashree-sawant , since the job was closed, the offer I sent to you doesn't show as a normal link on my end. You can find via searching for.
or maybe https://www.upwork.com/nx/wm/offer/27406336 ? I'm assuming he above payments that are due are correct, comment if anyone disagrees. Sorry for the delay here |
Thanks @mallenexpensify, I found it, I have accepted the offer. |
Thanks @dhanashree-sawant , I've paid you and updated the comment above to reflect you've been paid (and everyone else has been too!) |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
App should not allow to open invite message page for workspace without selecting any user to invite.
Suggestion is to display not allowed page if tried to access by deep link
Actual Result:
App allows to open invite message page for workspace without any selected user using deep link
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.31-2
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
allows.invite.message.without.user.selection.mp4
Recording.1082.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1686996147729769
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: