Skip to content

Edit workspace page gets automatically closed on Submit #4491

Closed

Description

@aman-atg

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:

  1. Login to newDot
  2. Go to Workspace page
  3. Edit Workspace name
  4. Save and it'll close itself automatically

Expected Result:

Shouldn't close itself and additionally we can show a feedback message instead
(it should behave like Edit Profile Page for consistency)

Actual Result:

expensifyBug-2021-08-07_12.16.56.mp4
bug2.mp4

Workaround:

Open the edit page again.

Platform:

Where is this issue occurring?

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number:
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:

View all open jobs on Upwork

Activity

  1. added
    AutoAssignerTriage
    Daily
    on Aug 7, 2021
  2. MelvinBot commented on Aug 7, 2021

    @MelvinBot
    Contributor

    Triggered auto assignment to @zanyrenney (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

  3. removed
    AutoAssignerTriage
    on Aug 7, 2021
  4. aman-atg commented on Aug 7, 2021

    @aman-atg
    ContributorAuthor

    Proposal

    • We can fix this by removing Navigation.dismissModal() from line 245

      function update(policyID, values) {
      API.UpdatePolicy({policyID, value: JSON.stringify(values), lastModified: null})
      .then((policyResponse) => {
      if (policyResponse.jsonCode !== 200) {
      // Show the user feedback
      const errorMessage = translateLocal('workspace.editor.genericFailureMessage');
      Growl.error(errorMessage, 5000);
      return;
      }
      Onyx.merge(`${ONYXKEYS.COLLECTION.POLICY}${policyID}`, values);
      Navigation.dismissModal();
      });
      }

    • Additionally, we can show a Growl here

  5. mananjadhav commented on Aug 7, 2021

    @mananjadhav
    Collaborator

    Possible duplicate of #4487 ?

  6. aman-atg commented on Aug 7, 2021

    @aman-atg
    ContributorAuthor

    That one is related to "Save" Button and this one is about the overall workflow, Right?

  7. mananjadhav commented on Aug 7, 2021

    @mananjadhav
    Collaborator

    For me, the sidebar closing is the expected behavior. Because once you've edited you'd want to go back to the Workspace page, why another additional click?

    But I agree with the feedback point that you've mentioned, and that's what I was pointing out with #4487

  8. aman-atg commented on Aug 7, 2021

    @aman-atg
    ContributorAuthor

    For me, the sidebar closing is the expected behavior. Because once you've edited you'd want to go back to the Workspace page, why another additional click?

    After saving the name, You might want to edit profile picture too but that won't be possible.

    And We should show consistent behaviour. We're not closing Edit Profile after saving then why this one.

  9. parasharrajat commented on Aug 7, 2021

    @parasharrajat
    Member

    Hey guys, @aman-atg @mananjadhav I think the Edit Workspace feature is just landed in the APP and internal QA is going on #4447. Thus all the issues that are coming from this will be linked to the original PR.

  10. MelvinBot commented on Aug 9, 2021

    @MelvinBot
    Contributor

    Triggered auto assignment to @Beamanator (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

  11. 53 remaining items

  12. kadiealexander commented on Oct 8, 2021

    @kadiealexander
    Contributor

    Please refer to this post for updated information on the n6 hold, we've raised the bonus to $250 for all issues where a PR is created before the N6 hold is lifted.

  13. changed the title [-]Edit workspace page gets automatically closed on Submit[/-] [+][HOLD] Edit workspace page gets automatically closed on Submit[/+] on Oct 11, 2021
  14. mallenexpensify commented on Oct 14, 2021

    @mallenexpensify
    Contributor

    Not overdue

  15. mallenexpensify commented on Oct 20, 2021

    @mallenexpensify
    Contributor

    n6-hold is lifted, label removed!
    @Beamanator can you review @aman-atg 's PR plz #5269

  16. changed the title [-][HOLD] Edit workspace page gets automatically closed on Submit[/-] [+]Edit workspace page gets automatically closed on Submit[/+] on Oct 20, 2021
  17. Beamanator commented on Oct 20, 2021

    @Beamanator
    Contributor

    Yes will do now!

  18. Beamanator commented on Oct 20, 2021

    @Beamanator
    Contributor

    Actually we're asking everyone to merge main into their branches since we've had lots of updates since the beginning of the n6-hold. @aman-atg when you get the chance, will you please merge main into your branch (#5269) and test to make sure everything is still working well, then ping me in your PR?

  19. Beamanator commented on Oct 27, 2021

    @Beamanator
    Contributor

    @mallenexpensify as noted here, this change was made in this PR during the n6-hold so I closed the PR but let's still pay out @aman-atg 👍

  20. mallenexpensify commented on Oct 27, 2021

    @mallenexpensify
    Contributor

    @Beamanator should I pay @aman-atg for the solution/fix as well as reporting?

  21. Beamanator commented on Nov 2, 2021

    @Beamanator
    Contributor

    Yeah, it looks like that's the case, thanks @mallenexpensify 🙏

  22. mallenexpensify commented on Nov 2, 2021

    @mallenexpensify
    Contributor

    Paid @aman-atg with bonus in Upwork, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

ExternalWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions