Skip to content

[HOLD for payment 2025-01-02] [$250] App crashes when clicking add reaction #53637

Closed

Description

@m-natarajan

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: 9.0.72-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
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
Expensify/Expensify Issue URL:
Issue reported by: @neil-marcellini
Slack conversation (hyperlinked to channel name): expensify_retain

Action Performed:

  1. Go to any chat
  2. Send a message
  3. Click the "Add reaction" button to add a non-default emoji reaction

Expected Result:

Emoji reaction menu appears

Actual Result:

App crashes and shows "Uh-oh, something went wrong!" screen

Workaround:

Unknown

Platforms:

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

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence
2024-12-05_07-08-47.mp4
hook.js:608 Error: Couldn't find a navigation object. Is your component inside NavigationContainer?
    at c (index.ts:32:24)
    at X (index.tsx:107:5)
overrideMethod	@	hook.js:608
uA	@	react-dom.production.min.js:188
a.componentDidCatch.n.callback	@	react-dom.production.min.js:189
Ha	@	react-dom.production.min.js:156
Es	@	react-dom.production.min.js:260
Is	@	react-dom.production.min.js:259
ms	@	react-dom.production.min.js:258
(anonymous)	@	react-dom.production.min.js:282
yl	@	react-dom.production.min.js:280
il	@	react-dom.production.min.js:269
v	@	scheduler.production.min.js:13
k	@	scheduler.production.min.js:14
e.exports	@	_invoke.js:5
f.<computed>	@	_task.js:35
I	@	_task.js:21
E	@	_task.js:25

At c is the useNavigation line:

const useHtmlPaste: UseHtmlPaste = (textInputRef, preHtmlPasteCallback, removeListenerOnScreenBlur = false, isMarkdownEnabled = true) => {
    const navigation = useNavigation();

At X is:

useHtmlPaste(input as MutableRefObject<TextInput | null>, undefined, false, isMarkdownEnabled);
Recording.825.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021864710692177622796
  • Upwork Job ID: 1864710692177622796
  • Last Price Increase: 2024-12-05
Issue OwnerCurrent Issue Owner: @MitchExpensify

Activity

  1. added
    DeployBlockerCash
    Daily
    Bug
    on Dec 5, 2024
  2. melvin-bot commented on Dec 5, 2024

    @melvin-bot

    Triggered auto assignment to @stitesExpensify (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

  3. melvin-bot commented on Dec 5, 2024

    @melvin-bot

    Triggered auto assignment to @MitchExpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  4. melvin-bot commented on Dec 5, 2024

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  5. github-actions commented on Dec 5, 2024

    @github-actions
    Contributor

    👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  6. added
    External
    on Dec 5, 2024
  7. changed the title [-]App crashes when clicking add reaction[/-] [+][$250] App crashes when clicking add reaction[/+] on Dec 5, 2024
  8. 21 remaining items

  9. stitesExpensify commented on Dec 10, 2024

    @stitesExpensify
    Contributor

    Yep we're good!

  10. moved this from Product (CRITICAL) to Done in [#whatsnext] #retainon Dec 10, 2024
  11. added
    Weekly
    Awaiting Payment
    and removed
    Weekly
    on Dec 26, 2024
  12. changed the title [-][$250] App crashes when clicking add reaction[/-] [+][HOLD for payment 2025-01-02] [$250] App crashes when clicking add reaction[/+] on Dec 26, 2024
  13. removed
    Reviewing
    on Dec 26, 2024
  14. melvin-bot commented on Dec 26, 2024

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  15. melvin-bot commented on Dec 26, 2024

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.78-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2025-01-02. 🎊

    For reference, here are some details about the assignees on this issue:

    • @ntdiary requires payment through NewDot Manual Requests
  16. melvin-bot commented on Dec 26, 2024

    @melvin-bot

    @ntdiary @MitchExpensify @ntdiary The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

  17. MitchExpensify commented on Dec 30, 2024

    @MitchExpensify
    Contributor

    Reviewer Checklist

    • I have verified the author checklist is complete (all boxes are checked off).
    • I verified the correct issue is linked in the ### Fixed Issues section above
    • I verified testing steps are clear and they cover the changes made in this PR
      • I verified the steps for local testing are in the Tests section
      • I verified the steps for Staging and/or Production testing are in the QA steps section
      • I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
      • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I checked that screenshots or videos are included for tests on all platforms
    • I included screenshots or videos for tests on all platforms
    • I verified tests pass on all platforms & I tested again on:
      • Android: Native
      • Android: mWeb Chrome
      • iOS: Native
      • iOS: mWeb Safari
      • MacOS: Chrome / Safari
      • MacOS: Desktop
    • If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
    • I verified proper code patterns were followed (see Reviewing the code)
      • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick).
      • I verified that comments were added to code that is not self explanatory
      • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
      • I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
      • I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
      • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
      • I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
      • I verified the JSDocs style guidelines (in STYLE.md) were followed
    • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
    • I verified that this PR follows the guidelines as stated in the Review Guidelines
    • I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
    • I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
    • I verified any variables that can be defined as constants (ie. in CONST.ts or at the top of the file that uses the constant) are defined as such
    • If a new component is created I verified that:
      • A similar component doesn't exist in the codebase
      • All props are defined accurately and each prop has a /** comment above it */
      • The file is named correctly
      • The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
      • The only data being stored in the state is data necessary for rendering and nothing else
      • For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
      • Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
      • All JSX used for rendering exists in the render method
      • The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions
    • If any new file was added I verified that:
      • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
    • If a new CSS style is added I verified that:
      • A similar style doesn't already exist
      • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
    • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
    • 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)
    • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
    • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
    • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
      • I verified that all the inputs inside a form are aligned with each other.
      • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
    • If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
    • For any bug fix or new feature in this PR, I verified that sufficient unit tests are included to prevent regressions in this flow.
    • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
    • I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

    Screenshots/Videos

    Android: Native
    Android: mWeb Chrome
    iOS: Native
    iOS: mWeb Safari
    MacOS: Chrome / Safari
    MacOS: Desktop
  18. MitchExpensify commented on Dec 30, 2024

    @MitchExpensify
    Contributor

    Reminder set to pay, please complete the BZ steps in the meantime @ntdiary

  19. ntdiary commented on Jan 3, 2025

    @ntdiary
    Contributor

    Payment summary:

    • $250 @ntdiary requires payment through NewDot Manual Requests

    Reminder on the BZ steps @ntdiary

    Ah, @MitchExpensify, sorry for the late reply. I think it's fine to just close this issue, and there's no need to pay me here. I didn’t review proposal or PR. 😅
    We simply revert a previous PR that introduce this issue, and their payments could be settled in issue #52681.

  20. MitchExpensify commented on Jan 3, 2025

    @MitchExpensify
    Contributor

    Ah, thanks for the catch @ntdiary. Deleting the payment summary in that case!

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

Metadata

Metadata

Labels

Awaiting PaymentBugEngineeringExternalHelp WantedWeekly

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions