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] Chat - Text in compose box blends with background when theme was changed in device settings #39348

Closed
5 of 6 tasks
izarutskaya opened this issue Apr 1, 2024 · 44 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Monthly KSv2 retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause

Comments

@izarutskaya
Copy link

izarutskaya commented Apr 1, 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.58-4
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): applausetester+omq23@applause.expensifail.com
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

Precondition: user should be Signed In and "Use Device Settings" option should be selected for theme option in Preferences

Web, Desktop and mWeb steps:

  1. Open https://staging.new.expensify.com/

  2. Open any chat

  3. Navigate to device settings and change the theme to the opposite color

  4. Navigate back to browser or app

  5. Write any text in compose box

iOS steps:

  1. Open https://staging.new.expensify.com/

  2. Open any chat

  3. Write any text in the compose box

  4. Navigate to device settings and change the theme to the opposite color

  5. Navigate back to app

Expected Result:

Text should be properly displayed in compose box.

Actual Result:

The text in the compose box retains its original color despite changes to the background color. Consequently, it blends with the background when the device theme is switched to the opposite color.

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

Bug6432761_1711819047019.Screen_Recording_2024-03-30_at_19.06.10.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01b5c49154255020bb
  • Upwork Job ID: 1776299979557351424
  • Last Price Increase: 2024-04-05
@izarutskaya izarutskaya added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 1, 2024
Copy link

melvin-bot bot commented Apr 1, 2024

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

Copy link

melvin-bot bot commented Apr 1, 2024

Triggered auto assignment to @anmurali (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 Apr 1, 2024
Copy link
Contributor

github-actions bot commented Apr 1, 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.

@izarutskaya
Copy link
Author

izarutskaya commented Apr 1, 2024

@anmurali 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.

@izarutskaya
Copy link
Author

We think this issue might be related to the #vip-vsb.

@izarutskaya
Copy link
Author

Production

Bandicam.2024-04-01.13-52-24-147.mp4

@MariaHCD
Copy link
Contributor

MariaHCD commented Apr 1, 2024

Able to reproduce the issue when switching to dark mode on staging web Chrome:

Screen.Recording.2024-04-01.at.4.30.53.PM.mov

Wasn't able to repro on desktop, however.

@MariaHCD MariaHCD added the External Added to denote the issue can be worked on by a contributor label Apr 1, 2024
Copy link

melvin-bot bot commented Apr 1, 2024

Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue.

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

melvin-bot bot commented Apr 1, 2024

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

@nkdengineer
Copy link
Contributor

nkdengineer commented Apr 1, 2024

I can raise the PR ASAP once assigned

Proposal

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

The text in the compose box retains its original color despite changes to the background color. Consequently, it blends with the background when the device theme is switched to the opposite color.

What is the root cause of that problem?

In here, we forgot to put flattenedStyle.color to the dependency list. So when the flattenedStyle.color changes due to theme changes, it's not reflected in updateTextColor, so the next time updateTextColor is run, it will update the text to the old color of the previous theme.

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

In here, put flattenedStyle.color to the dependency list.

What alternative solutions did you explore? (Optional)

NA

@MariaHCD

This comment was marked as outdated.

@MariaHCD MariaHCD assigned DylanDylann and unassigned c3024 Apr 1, 2024
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 1, 2024
@MariaHCD MariaHCD added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 1, 2024
@MariaHCD MariaHCD changed the title Chat - Text in compose box blends with background when theme was changed in device settings [$250] Chat - Text in compose box blends with background when theme was changed in device settings Apr 1, 2024
Copy link

melvin-bot bot commented Apr 1, 2024

⚠️ Could not update price automatically because there is no linked Upwork Job ID. The BZ team member will need to update the price manually in Upwork.

@shubham1206agra
Copy link
Contributor

This is fixed on staging for the web.
cc @thienlnam

@nkdengineer
Copy link
Contributor

Based on this comment #39348 (comment), The react-native-live-markdown repo hasn't opened for external contributors yet. @thienlnam Is this issue still open for external contributors?

@hoangzinh Based on this thread, we've started to open up the react-native-live-markdown issues to external contributors, including this one.

@melvin-bot melvin-bot bot added the Overdue label Apr 8, 2024
@shubham1206agra
Copy link
Contributor

Based on this comment #39348 (comment), The react-native-live-markdown repo hasn't opened for external contributors yet. @thienlnam Is this issue still open for external contributors?

@hoangzinh Based on this thread, we've started to open up the react-native-live-markdown issues to external contributors, including this one.

@nkdengineer You have misinterpreted the comment here.

@nkdengineer
Copy link
Contributor

Based on this comment #39348 (comment), The react-native-live-markdown repo hasn't opened for external contributors yet. @thienlnam Is this issue still open for external contributors?

I think @thienlnam can help confirm here.

@tomekzaw
Copy link
Contributor

tomekzaw commented Apr 8, 2024

I was able to reproduce the issue in Live Markdown example app, working on a fix for iOS native right now.

@tomekzaw
Copy link
Contributor

tomekzaw commented Apr 8, 2024

Found the root cause in react-native-live-markdown, fix incoming

@thienlnam thienlnam removed 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 labels Apr 8, 2024
@thienlnam
Copy link
Contributor

Sorry for the confusion - I have opened up some issues related this externally, but seems like @tomekzaw is already working on this and the fix requires changes in the original repo so I will be assigning to him

@tomekzaw
Copy link
Contributor

tomekzaw commented Apr 8, 2024

Should be fixed with Expensify/react-native-live-markdown#269.

I will submit a PR with version bump soon.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Apr 8, 2024
@tomekzaw
Copy link
Contributor

tomekzaw commented Apr 8, 2024

Should be fixed with #39872.

@melvin-bot melvin-bot bot added Monthly KSv2 and removed Weekly KSv2 labels May 2, 2024
Copy link

melvin-bot bot commented May 2, 2024

This issue has not been updated in over 15 days. @hoangzinh, @tomekzaw, @thienlnam, @BartoszGrajdek eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

@BartoszGrajdek
Copy link
Contributor

@thienlnam can we get this tested & closed?

@thienlnam thienlnam added retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause and removed Reviewing Has a PR in review labels May 13, 2024
@mallenexpensify
Copy link
Contributor

Added @anmurali back as BZ (not sure if they're needed though, we just need BZs added to all bugs, in case they are).

@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

@mallenexpensify
Copy link
Contributor

Closing, also unable to repro (and.. now I'm in dark mode!)
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Monthly KSv2 retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause
Projects
No open projects
Archived in project
Development

No branches or pull requests