Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HOLD for payment 2024-10-14] Composer - Suggestion list does not appear after typing @ #50283

Closed
6 tasks done
IuliiaHerets opened this issue Oct 5, 2024 · 15 comments
Closed
6 tasks done
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. DeployBlockerCash This issue or pull request should block deployment Engineering Weekly KSv2

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Oct 5, 2024

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.45-2
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): applausetester+pso@applause.expensifail.com
Issue reported by: Applause Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to DM.
  3. Type @.

Expected Result:

Suggestion list will appear (production behavior).

Actual Result:

Suggestion list does not appear.
It only appears after clearing the composer and typing @ again, or adding a space and removing the space.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6624947_1728080233929.20241005_061509.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @puneetlath
@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Oct 5, 2024
Copy link

melvin-bot bot commented Oct 5, 2024

Triggered auto assignment to @puneetlath (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.

Copy link

melvin-bot bot commented Oct 5, 2024

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

@github-actions github-actions bot added the Hourly KSv2 label Oct 5, 2024
@melvin-bot melvin-bot bot added the Daily KSv2 label Oct 5, 2024
Copy link
Contributor

github-actions bot commented Oct 5, 2024

👋 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.

@melvin-bot melvin-bot bot removed the Hourly KSv2 label Oct 5, 2024
@IuliiaHerets
Copy link
Author

We think that this bug might be related to Live Markdown

@MuaazArshad
Copy link
Contributor

MuaazArshad commented Oct 5, 2024

Edited by proposal-police: This proposal was edited at 2024-10-05 15:29:54 UTC.

Proposal

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

Composer - Suggestion list does not appear after typing @

What is the root cause of that problem?

We are adding this check that is preventing the initial focus

if (isInitialFocusRef.current) {
isInitialFocusRef.current = false;
return;
}

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

We should remove this condition to solve the issue

Screen.Recording.2024-10-05.at.8.30.56.PM.mov

What alternative solutions did you explore? (Optional)

Copy link
Contributor

github-actions bot commented Oct 5, 2024

@MuaazArshad Your proposal will be dismissed because you did not follow the proposal template.

@Shahidullah-Muffakir
Copy link
Contributor

Regression from #49589

@Kalydosos
Copy link

Kalydosos commented Oct 5, 2024

Proposal

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

Suggestion list does not appear after typing @

What is the root cause of that problem?

the fix deploeyed in #49589 was not restricted to Android native, thus generalize the problem to the other platforms. I'm speaking of those two sections

https://github.com/Expensify/App/blob/99f280b0edae75ff59614a1c5e98c47b39800aa5/src/pages/home/report/ReportActionCompose/SuggestionEmoji.tsx#L147C8-L150C14

and

if (isInitialFocusRef.current) {
isInitialFocusRef.current = false;
return;
}

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

we should restrict avoiding the focus to Android native platform alone as it is the only platform impacted by the original issue, by modifying the 2 previous sections into

const isAndroidNative = getPlatform() === CONST.PLATFORM.ANDROID;
if (isAndroidNative && isInitialFocusRef.current) {
isInitialFocusRef.current = false;
return;
}

in both files

RESULT

the suggestions are now displayed for @
Capture d’écran de 2024-10-05 18-05-34

What alternative solutions did you explore? (Optional)

None

@puneetlath
Copy link
Contributor

@perunt can you take a look at this?

@rlinoz
Copy link
Contributor

rlinoz commented Oct 7, 2024

Reverting the mentioned PR fixes it, shall we?

@puneetlath
Copy link
Contributor

I think we probably should. This bug seems worse than the bug the PR was meant to fix.

@rlinoz
Copy link
Contributor

rlinoz commented Oct 7, 2024

@rlinoz
Copy link
Contributor

rlinoz commented Oct 7, 2024

This is fixed by the revert so closing

@rlinoz rlinoz closed this as completed Oct 7, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Oct 7, 2024
@melvin-bot melvin-bot bot changed the title Composer - Suggestion list does not appear after typing @ [HOLD for payment 2024-10-14] Composer - Suggestion list does not appear after typing @ Oct 7, 2024
Copy link

melvin-bot bot commented Oct 7, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.45-4 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 2024-10-14. 🎊

Copy link

melvin-bot bot commented Oct 7, 2024

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@puneetlath / @rlinoz] The PR that introduced the bug has been identified. Link to the PR:
  • [@puneetlath / @rlinoz] 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:
  • [@puneetlath / @rlinoz] 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:
  • [@puneetlath / @rlinoz] Determine if we should create a regression test for this bug.
  • [@puneetlath / @rlinoz] 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.
  • [@puneetlath] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. DeployBlockerCash This issue or pull request should block deployment Engineering Weekly KSv2
Projects
None yet
Development

No branches or pull requests

6 participants