Skip to content

[$250] Status – App redirects to Profile page when cleared status without saving #39409

Description

@lanitochka17

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: 1.4.59-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team

Issue found when executing PR #38797

Action Performed:

  1. Go to https://staging.new.expensify.com/
  2. Log in
  3. Go to /settings/profile/status
  4. Add status
  5. Clear the status and press nothing

Expected Result:

App redirects to Profile page when cleared status and press save

Actual Result:

App redirects to Profile page when cleared status without saving. Status reappears for a moment when clear it only on Web

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6435603_1712065326293.Migrate__CustomStatus__page_to_TypeScript.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01802fb0f898a8a8e6
  • Upwork Job ID: 1777701841723547648
  • Last Price Increase: 2024-04-09

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on Apr 2, 2024
  2. melvin-bot commented on Apr 2, 2024

    @melvin-bot

    Triggered auto assignment to @miljakljajic (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  3. ShridharGoel commented on Apr 2, 2024

    @ShridharGoel
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    App redirects to Profile page when cleared status without saving

    What is the root cause of that problem?

    This seems to be expected.

    It is happening because we are navigating back after clearing status inside clearStatus.

     InteractionManager.runAfterInteractions(() => {
          navigateBackToPreviousScreen();
      });
    };
    

    What changes do you think we should make in order to solve the problem?

    If we want to change this, we want simply remove the above. After update:

    const clearStatus = () => {
        User.clearCustomStatus();
        User.updateDraftCustomStatus({
            text: '',
            emojiCode: '',
            clearAfter: DateUtils.getEndOfToday(),
        });
        formRef.current?.resetForm({[INPUT_IDS.EMOJI_CODE]: ''});
    };
    
  4. melvin-bot commented on Apr 5, 2024

    @melvin-bot

    @miljakljajic Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  5. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Apr 9, 2024
  6. changed the title [-]Status – App redirects to Profile page when cleared status without saving[/-] [+][$250] Status – App redirects to Profile page when cleared status without saving[/+] on Apr 9, 2024
  7. melvin-bot commented on Apr 9, 2024

    @melvin-bot
  8. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Apr 9, 2024
  9. miljakljajic commented on Apr 9, 2024

    @miljakljajic
    Contributor

    reviewing proposals

  10. melvin-bot commented on Apr 9, 2024

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @c3024 (External)

  11. FitseTLT commented on Apr 9, 2024

    @FitseTLT
    Contributor

    Intentional behaviour not a bug

  12. c3024 commented on Apr 9, 2024

    @c3024
    Contributor

    Actual Result:
    App redirects to Profile page when cleared status without saving. Status reappears for a moment when clear it only on Web

    I don't see status reappearing on main. This is intentional behaviour and not a bug.

  13. miljakljajic commented on Apr 11, 2024

    @miljakljajic
    Contributor

    I agree that this is expected - going to close out.

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

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions