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

[$250] Android - Chat - Emoji keyboard can not be activated when no other character is added in chat box #41011

Closed
1 of 6 tasks
lanitochka17 opened this issue Apr 25, 2024 · 27 comments
Assignees
Labels
Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@lanitochka17
Copy link

lanitochka17 commented Apr 25, 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: 1.4.66-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): gatantm@gmail.com
Issue reported by: Applause - Internal Team

Action Performed:

The issue was detected on the following devices: Google Pixel 8 - Android 14, Google Pixel 6 - Android 14.

  1. Launch the app and go to any chat/report
  2. Using Gboard keyboard try to use the emoji keyboard without adding anything else in the text box

Expected Result:

The native emoji keyboard is shown at any flow without issues

Actual Result:

The native emoji keyboard is not shown if there's no other character already entered on the text field

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

Bug6461786_1714061290310.az_recorder_20240425_190214.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01f981538723950232
  • Upwork Job ID: 1783601692500316160
  • Last Price Increase: 2024-05-09
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Apr 25, 2024
Copy link

melvin-bot bot commented Apr 25, 2024

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

Copy link
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.

@lanitochka17
Copy link
Author

@tylerkaraszewski FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@lanitochka17
Copy link
Author

We think that this bug might be related to #vip-vsp

@lanitochka17
Copy link
Author

Production:

az_recorder_20240425_210141.mp4

@tylerkaraszewski
Copy link
Contributor

I think we can add external to this.

@tylerkaraszewski tylerkaraszewski added the External Added to denote the issue can be worked on by a contributor label Apr 25, 2024
@melvin-bot melvin-bot bot changed the title Android - Chat - Emoji keyboard can not be activated when no other character is added in chat box [$250] Android - Chat - Emoji keyboard can not be activated when no other character is added in chat box Apr 25, 2024
Copy link

melvin-bot bot commented Apr 25, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01f981538723950232

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 25, 2024
Copy link

melvin-bot bot commented Apr 25, 2024

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

@seanbashaw
Copy link

Proposal

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

The emoji keyboard on android doesn't work unless there's already text in the box.

What is the root cause of that problem?

Inside of the ComposerWithSuggestions.tsx file there is a boolean to detect if the current platform is an IOS native.

const isIOSNative = getPlatform() === CONST.PLATFORM.IOS;

However, there is no boolean currently set to detect if the platform is an Android native. This IOS Native boolean alone is used in further logic that should incorporate Android natives as well.

if (isIOSNative && syncSelectionWithOnChangeTextRef.current) {

After a more complete examination I believe the result is from b107b9c, which includes changes to IOS that should also extend to Android.

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

Adding an additional variable for android OS and incorporating it into the logic will solve the issue and check

What alternative solutions did you explore? (Optional)

I used my skills to trace the problem directly from the problem description and video. The "Write Something..." prompt led me to the reportActionCompose.writeSomething variable which, after filtering out other avenues, led me to this viable solution.

Copy link

melvin-bot bot commented Apr 26, 2024

📣 @seanbashaw! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@seanbashaw
Copy link

Contributor details
Your Expensify account email: seanbshw@gmail.com
Upwork Profile Link: https://www.upwork.com/freelancers/~01f678064fae0b9928

Copy link

melvin-bot bot commented Apr 26, 2024

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@mountiny mountiny added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Apr 26, 2024
@mountiny
Copy link
Contributor

I am demoting this from being blocker as there is a workaround of posting some character or using the in-product emoji keyboard, also this seems to be repro only on some specific Android devices.

@seanbashaw thanks for the proposal. The changes you have linked are very old, but this seems to not be repro in production. Would you be able to highlight what change in recent release could have caused this regression?

@mountiny
Copy link
Contributor

Posted here for help

@seanbashaw
Copy link

seanbashaw commented Apr 27, 2024

@mountiny This logic still exist in the most recent version. The following function onChangeText shows this logic being implemented still.

const onChangeText = useCallback(
(commentValue: string) => {
updateComment(commentValue, true);
if (isIOSNative && syncSelectionWithOnChangeTextRef.current) {
const positionSnapshot = syncSelectionWithOnChangeTextRef.current.position;
syncSelectionWithOnChangeTextRef.current = null;
// ensure that selection is set imperatively after all state changes are effective
InteractionManager.runAfterInteractions(() => {
// note: this implementation is only available on non-web RN, thus the wrapping
// 'if' block contains a redundant (since the ref is only used on iOS) platform check
textInputRef.current?.setSelection(positionSnapshot, positionSnapshot);
});
}
},
[updateComment],
);

The following commit shows functionality being removed that could have been covered for android in a file that has since been renamed.
b2ff88c

@melvin-bot melvin-bot bot added the Overdue label Apr 29, 2024
Copy link

melvin-bot bot commented Apr 29, 2024

@tylerkaraszewski, @shubham1206agra Whoops! This issue is 2 days overdue. Let's get this updated quick!

Copy link

melvin-bot bot commented May 1, 2024

@tylerkaraszewski, @shubham1206agra Eep! 4 days overdue now. Issues have feelings too...

Copy link

melvin-bot bot commented May 2, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@tylerkaraszewski
Copy link
Contributor

Doesn't seem like we do.

@melvin-bot melvin-bot bot removed the Overdue label May 2, 2024
@shubham1206agra
Copy link
Contributor

@tylerkaraszewski Can we either raise the bounty of this issue or call someone from expert group?

@melvin-bot melvin-bot bot added the Overdue label May 6, 2024
@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

Copy link

melvin-bot bot commented May 7, 2024

@tylerkaraszewski, @shubham1206agra Whoops! This issue is 2 days overdue. Let's get this updated quick!

Copy link

melvin-bot bot commented May 7, 2024

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

Copy link

melvin-bot bot commented May 9, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

Copy link

melvin-bot bot commented May 9, 2024

@tylerkaraszewski, @shubham1206agra Eep! 4 days overdue now. Issues have feelings too...

@mvtglobally
Copy link

Issue not reproducible during KI retests. (Second week)

@tylerkaraszewski
Copy link
Contributor

Closing because not reproducible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
No open projects
Archived in project
Development

No branches or pull requests

6 participants