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 https://github.com/Expensify/react-native-live-markdown/pull/175][$500] Highlight applied on editing and main composer #36200

Closed
2 of 6 tasks
kavimuru opened this issue Feb 9, 2024 · 14 comments
Assignees

Comments

@kavimuru
Copy link

kavimuru commented Feb 9, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: v1.4.39-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:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause internal team
Slack conversation:

Action Performed:

  1. Send a message
  2. Apply offline mode
  3. Hover over the sent message > click on 'Edit' icon

Expected Result:

Highlight should only be applied on editing composer

Actual Result:

Highlight is applied on editing and main composer

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: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6372779_1707437285389.Screen_Recording_2024-02-09_at_3.07.10_at_night.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~014ad3d9a06c61cce3
  • Upwork Job ID: 1755777260592553984
  • Last Price Increase: 2024-02-09
@kavimuru kavimuru added DeployBlockerCash This issue or pull request should block deployment External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Feb 9, 2024
Copy link

melvin-bot bot commented Feb 9, 2024

Job added to Upwork: https://www.upwork.com/jobs/~014ad3d9a06c61cce3

@melvin-bot melvin-bot bot changed the title Highlight applied on editing and main composer [$500] Highlight applied on editing and main composer Feb 9, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 9, 2024
Copy link

melvin-bot bot commented Feb 9, 2024

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

Copy link

melvin-bot bot commented Feb 9, 2024

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Feb 9, 2024
Copy link
Contributor

github-actions bot commented Feb 9, 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.

Copy link

melvin-bot bot commented Feb 9, 2024

Auto-assign attempt failed, all eligible assignees are OOO.

@rintoj
Copy link

rintoj commented Feb 9, 2024

Proposal

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

The composer fails to focus during the mounting process.

What is the root cause of that problem?

The root cause is to do with the recent changes in MarkdownTextInput (inside Composer).

Despite the state of isFocused in ComposerWithSuggestions is true on mount, the MarkdownText component does not get focused, resulting in an out-of-sync state for the isFocused property.

This gives the impression that both inputs are focused in edit mode, even though the main composer itself is not in focus.

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

Add below effect to ComposerWithSuggestions component will fix the issue.

https://github.com/Expensify/App/blob/main/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.js#L542

    // run once on load
    useEffect(() => {
      if (!isFocused) {return}
      focus(true)
      // eslint-disable-next-line react-hooks/exhaustive-deps
    }, [])

What alternative solutions did you explore? (Optional)

None

Copy link

melvin-bot bot commented Feb 9, 2024

📣 @rintoj! 📣
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>

@rintoj
Copy link

rintoj commented Feb 9, 2024

Contributor details
Your Expensify account email: [email protected]
Upwork Profile Link: https://www.upwork.com/freelancers/~01eaa7c76af4ae1bf1

Copy link

melvin-bot bot commented Feb 9, 2024

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

@thienlnam
Copy link
Contributor

Related to #35837, we're reverting the PR

@thienlnam
Copy link
Contributor

We've reverted the offending PR #35837, so this is no longer a blocker

@thienlnam thienlnam removed DeployBlockerCash This issue or pull request should block deployment External Added to denote the issue can be worked on by a contributor Hourly KSv2 Help Wanted Apply this label when an issue is open to proposals by contributors Bug Something is broken. Auto assigns a BugZero manager. labels Feb 9, 2024
@thienlnam thienlnam added the Weekly KSv2 label Feb 9, 2024
@robertKozik
Copy link
Contributor

Per @rintoj comment I think that this PR inside react-native-live-markdown library should fix this issue: Expensify/react-native-live-markdown#175 .

@cubuspl42
Copy link
Contributor

Let's hold on Expensify/react-native-live-markdown#175 in such case. We'll repeat the repro steps to double confirm our issue is fixed.

@thienlnam thienlnam changed the title [$500] Highlight applied on editing and main composer [HOLD https://github.com/Expensify/react-native-live-markdown/pull/175][$500] Highlight applied on editing and main composer Feb 12, 2024
@melvin-bot melvin-bot bot added the Overdue label Feb 19, 2024
@robertKozik
Copy link
Contributor

Tested locally on release 0.1.9. Issue is no longer reproductible - Expensify/react-native-live-markdown#175 seems to solve this

@melvin-bot melvin-bot bot removed the Overdue label Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants