Skip to content

[HOLD for payment 2023-07-18][$1000] Dev - Console warning on pressing any mentioned user from conversation #21506

Closed

Description

@kbecciv

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 ND
  2. Go to any conversation
  3. Type a text, mention any user in that text and send it (open console)
  4. Click on that particular mentioned in the chat
  5. Notice on clicking mentioned it throws warning

Expected Result:

No console warning should appear

Actual Result:

Console warning appears

Workaround:

Unknown

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: v1.3.29-0
Reproducible in staging?: n/a
Reproducible in production?: n/a
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
Screenshot 2023-06-19 at 2 53 17 PM

Expensify/Expensify Issue URL:
Issue reported by: @dhairyasenjaliya
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1687166767791559

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~010aec32706776696c
  • Upwork Job ID: 1673995397535133696
  • Last Price Increase: 2023-06-28

Activity

  1. added
    Daily
    Needs Reproduction
    Bug
    on Jun 24, 2023
  2. melvin-bot commented on Jun 24, 2023

    @melvin-bot

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

  3. melvin-bot commented on Jun 24, 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. kbecciv commented on Jun 24, 2023

    @kbecciv
    Author

    Proposal

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

    • Dev - Console warning on pressing any mentioned user from conversation

    What is the root cause of that problem?

    • The root cause is we recently started using <TextLink> component for MentionUserRenderer.js instead of just <Text> so here the problem is we are not passing accessibilityLabel which required props that is the cause of the error as this should be mandatory as focusable is always true that required accessibilityLabel currently we are not passing or not even passing accessible to false that makes to throw warning on console

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

    • We need to add accessibilityLabel in order to remove the error log this is mandatory because by default focusable is true so we do need to provide accessibilityLabel
    • We need to define new accessibilityHints for the mentioned user which will be passed to accessibilityLabel message in both languages
    • If we don’t need accessibilityLabel inside MentionUserRenderer.js then we can just pass accessible to false this will also remove the error

    Optional changes

  5. StevenKKC commented on Jun 25, 2023

    @StevenKKC
    Contributor

    Proposal

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

    Console warning on pressing any mentioned user from conversation.

    What is the root cause of that problem?

    User details is displayed in DetailsPage component, and DetailsPage contains PressableWithoutFocus.

    <PressableWithoutFocus
    style={styles.noOutline}
    onPress={show}

    And PressableWithoutFocus has style props with array type.

    style: PropTypes.arrayOf(PropTypes.object),

    But style prop that is passed to PressableWithoutFocus is not array type, so the console warning is displayed.

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

    We can change style prop to array type.

       <PressableWithoutFocus
          style={[styles.noOutline]}
          onPress={show}
       >
    

    What alternative solutions did you explore? (Optional)

    None.

  6. melvin-bot commented on Jun 26, 2023

    @melvin-bot

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

  7. bfitzexpensify commented on Jun 26, 2023

    @bfitzexpensify
    Contributor

    Hey @cristipaval - I can't test on dev, can you confirm this is reproducible? Thanks!

  8. cristipaval commented on Jun 26, 2023

    @cristipaval
    Contributor

    I can't reproduce with the latest dev.

  9. bfitzexpensify commented on Jun 27, 2023

    @bfitzexpensify
    Contributor

    @dhairyasenjaliya can you still reproduce this?

  10. dhairyasenjaliya commented on Jun 27, 2023

    @dhairyasenjaliya
    Contributor

    I can repro reliably on the latest main @cristipaval @bfitzexpensify
    Screenshot 2023-06-27 at 3 03 43 PM

  11. 33 remaining items

  12. dhairyasenjaliya commented on Jul 5, 2023

    @dhairyasenjaliya
    Contributor

    @mollfpr @cristipaval PR ready for review

  13. melvin-bot commented on Jul 12, 2023

    @melvin-bot

    @cristipaval, @mollfpr, @bfitzexpensify, @dhairyasenjaliya Whoops! This issue is 2 days overdue. Let's get this updated quick!

  14. cristipaval commented on Jul 13, 2023

    @cristipaval
    Contributor

    @bfitzexpensify I don't know why this wasn't automatically updated. The PR was deployed into production 2 days ago. We'll have to do the payments in 5 days.

  15. added
    Weekly
    and removed
    Reviewing
    Daily
    on Jul 13, 2023
  16. changed the title [-][$1000] Dev - Console warning on pressing any mentioned user from conversation[/-] [+][HOLD for payment 2023-07-18][$1000] Dev - Console warning on pressing any mentioned user from conversation[/+] on Jul 13, 2023
  17. bfitzexpensify commented on Jul 13, 2023

    @bfitzexpensify
    Contributor

    Thanks for catching that @cristipaval

  18. added
    Awaiting Payment
    on Jul 13, 2023
  19. mollfpr commented on Jul 18, 2023

    @mollfpr
    Contributor

    [@mollfpr] The PR that introduced the bug has been identified. Link to the PR:
    [@mollfpr] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:

    I'm unable to track which PR that causing the console error; it's between the migration on PressableWithoutFocus #20202 or the changes on the TouchableWithoutFocus to PressableWithoutFocus in #8483

    [@mollfpr] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:

    The console.error can be caught on the PR review. This issue might arise when migrating the generic component and the test is not happening in all the pages, but we have a checklist to check that.

    If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)

    [@mollfpr] Determine if we should create a regression test for this bug.
    [@mollfpr] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.

    The error is only shown in DEV, so no regression test is needed. The reviewer checklist already covers this.

  20. mollfpr commented on Jul 18, 2023

    @mollfpr
    Contributor

    Melvin did not calculate the date...

    @dhairyasenjaliya Got assigned on Jul 5

    Screenshot 2023-07-18 at 14 07 36

    And the PR merged on Jul 6
    Screenshot 2023-07-18 at 14 07 47

    So merged PR within 1.042 days 🚀

  21. added
    Daily
    and removed
    Weekly
    on Jul 19, 2023
  22. bfitzexpensify commented on Jul 19, 2023

    @bfitzexpensify
    Contributor

    Cool, all payments issued here, BZ checklist complete, so we're all done - thanks for the solid work!

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

Metadata

Metadata

Labels

Awaiting PaymentBugDailyEngineeringExternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions