Skip to content

The description when clicked again shows blank #21139

Closed

Description

@kavimuru

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. Go to staging. new.expensify on web chrome
  2. Select plus icon and select send money
  3. Now enter a description and click on save
  4. Again click on the description and without performing action just click on back button
  5. Notice that now the description is shown as empty

Expected Result:

The description when cliked again should not show blank

Actual Result:

The description when clicked again shows blank

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?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.29-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:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

error-2023-06-13_00.34.14.mp4
Recording.5058.mp4

Expensify/Expensify Issue URL:
Issue reported by: @priya-zha
Slack conversation:
https://expensify.slack.com/archives/C049HHMV9SM/p1686595999820919
View all open jobs on GitHub

Activity

  1. added
    Daily
    Bug
    on Jun 20, 2023
  2. melvin-bot commented on Jun 20, 2023

    @melvin-bot

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

  3. melvin-bot commented on Jun 20, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  4. kushu7 commented on Jun 20, 2023

    @kushu7
    Contributor

    Proposal

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

    The description when clicked again shows blank

    What is the root cause of that problem?

    On back press we are resetting comment here.

    onBackButtonPress() {
    IOU.setMoneyRequestDescription('');
    Navigation.goBack();
    }

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

    we should update this to return previous comment instead of blank.

        onBackButtonPress() {
            IOU.setMoneyRequestDescription(this.props.iou.comment);
            Navigation.goBack();
        }

    and we need to bind onBackButtonPress in constructor also so we can access this

    What alternative solutions did you explore? (Optional)

    We can also remove this IOU.setMoneyRequestDescription(this.props.iou.comment); from onBackButtonPress.

  5. melvin-bot commented on Jun 20, 2023

    @melvin-bot

    Looks like something related to react-navigation may have been mentioned in this issue discussion.

    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 DeprecatedCustomActions.js files should not be accepted.

    Feel free to drop a note in #expensify-open-source with any questions.

  6. Nodebrute commented on Jun 20, 2023

    @Nodebrute
    Contributor

    Proposal

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

    The description when clicked again shows blank

    What is the root cause of that problem?

    Here we are setting it to empty string https://github.com/Expensify/App/blob/8ba223457b9a2e8d02f1c57d7c21fd7f0c523573/src/pages/iou/MoneyRequestDescriptionPage.js#L42

    onBackButtonPress() {
    IOU.setMoneyRequestDescription('');
    Navigation.goBack();
    }

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

    Remove it from here and just navigate.
    onBackButtonPress() {
    Navigation.goBack();
    }

    What alternative solutions did you explore? (Optional)

  7. dukenv0307 commented on Jun 21, 2023

    @dukenv0307
    Contributor

    Proposal

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

    The description when clicked back button shows blank

    What is the root cause of that problem?

    IOU.setMoneyRequestDescription('');

    we reset the description when clicking back button

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

    We should remove the onBackButtonPress field here

    <HeaderWithBackButton
    title={this.props.translate('common.description')}
    onBackButtonPress={this.onBackButtonPress}
    />

    Because in HeaderWithBackButton Component we defined the default onBackButtonPress function

    onBackButtonPress: () => Navigation.goBack(),

    We also doing the same thing in the TaskDescriptionPage

    <HeaderWithBackButton title={props.translate('newTaskPage.task')} />

    What alternative solutions did you explore? (Optional)

  8. bernhardoj commented on Jun 21, 2023

    @bernhardoj
    Contributor

    The page is being refactored here #17964 and the issue won't exist anymore.

  9. changed the title [-]The description when clicked again shows blank[/-] [+][Hold on https://github.com/Expensify/App/pull/17964] The description when clicked again shows blank[/+] on Jun 21, 2023
  10. laurenreidexpensify commented on Jun 21, 2023

    @laurenreidexpensify
    Contributor

    Let's wait for #17964 to get to staging and confirm this is still reproducible, and then we can close

  11. laurenreidexpensify commented on Jun 22, 2023

    @laurenreidexpensify
    Contributor

    PR has been merged, but not on staging yet

  12. laurenreidexpensify commented on Jun 26, 2023

    @laurenreidexpensify
    Contributor

    PR has been deployed to prod, gonna test now and confirm if we can close

  13. laurenreidexpensify commented on Jun 26, 2023

    @laurenreidexpensify
    Contributor

    Confirmed - this is no longer reproducible. Closing

  14. changed the title [-][Hold on https://github.com/Expensify/App/pull/17964] The description when clicked again shows blank[/-] [+]The description when clicked again shows blank[/+] on Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugDaily

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions