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 2023-10-25] [$500] Private Notes - The strikethrough line of the link is displaying in white on the Private Notes page #28859

Closed
4 of 6 tasks
kbecciv opened this issue Oct 4, 2023 · 14 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. 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 Weekly KSv2

Comments

@kbecciv
Copy link

kbecciv commented Oct 4, 2023

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


Action Performed:

  1. Navigate to staging.
  2. Open any chat
  3. Click on the header and go to Private notes
  4. Go to My note > Notes
  5. Add "https://xyz.com/" and save
  6. Notice that the strikethrough line appears in white

Expected Result:

The strikethrough line should have the same colour as the link.

Actual Result:

The strikethrough line appears in white

Workaround:

Unknown

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.77.5
Reproducible in staging?: y
Reproducible in production?: y
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
Notes/Photos/Videos: Any additional supporting documentation

image (4)
Screenshot 2023-10-03 at 10 19 20 PM
safari
Screenshot 2023-10-03 at 10 16 53 PM
Screenshot 2023-10-03 at 10 11 34 PM

Expensify/Expensify Issue URL:
Issue reported by: @aman-atg
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1696349734344339

View all open jobs on GitHub

@kbecciv kbecciv added 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 Oct 4, 2023
@melvin-bot melvin-bot bot changed the title Private Notes - The strikethrough line of the link is displaying in white on the Private Notes page [$500] Private Notes - The strikethrough line of the link is displaying in white on the Private Notes page Oct 4, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 4, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 4, 2023

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 4, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 4, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@melvin-bot
Copy link

melvin-bot bot commented Oct 4, 2023

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

@b4s36t4
Copy link
Contributor

b4s36t4 commented Oct 4, 2023

Proposal

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

Private Note - The note is not immediately saved, and the previous value persists

What is the root cause of that problem?

We render the links/html with a parent tag comment at all other places which does the work of adding required CSS styles/rendering.

Whereas at the MenuItem we're not doing it.

return <RenderHTML html={props.source === 'email' ? `<email-comment>${htmlWithTag}</email-comment>` : `<comment>${htmlWithTag}</comment>`} />;

<MenuItemRenderHTMLTitle title={getProcessedTitle} />

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

We need to wrap the title here

<MenuItemRenderHTMLTitle title={getProcessedTitle} />

with <comment> tag which does add the required changes.

What alternative solutions did you explore? (Optional)

NA

Screenshot 2023-10-05 at 3 35 15 AM
Kapture.2023-10-05.at.03.34.45.mp4

@ZhenjaHorbach
Copy link
Contributor

ZhenjaHorbach commented Oct 4, 2023

same reason as here
#27812
#28862

And we can use the same solution
#27812 (comment)
#28862 (comment)

@maxconnectAbhi
Copy link

maxconnectAbhi commented Oct 5, 2023

Proposal

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

The strikethrough line of the link is displaying in white

What is the root cause of that problem?

We don't use wrapper for links for MenuItem component.

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

Need to make a <comment> wrapper around MenuItem title
(<comment> tag add special styles for links )

What alternative solutions did you explore? (Optional)

NA

@maxconnectAbhi
Copy link

Proposal

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

The strikethrough line of the link is displaying in white

What is the root cause of that problem?

Currently we are not using any wrapper for html links in MenuItem component.

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

Need to make a <comment> wrapper around MenuItem title like convertToLTR(props.title);
(<comment> tag add special styles for links )

What alternative solutions did you explore? (Optional)

NA

@jjcoffee
Copy link
Contributor

jjcoffee commented Oct 5, 2023

This will be handled in #27812 where we'll be wrapping with <comment> tags.

@greg-schroeder
Copy link
Contributor

@jjcoffee any objection to just closing this in that case?

@jjcoffee
Copy link
Contributor

jjcoffee commented Oct 5, 2023

@greg-schroeder Happy to close!

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Oct 5, 2023
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Oct 18, 2023
@melvin-bot melvin-bot bot changed the title [$500] Private Notes - The strikethrough line of the link is displaying in white on the Private Notes page [HOLD for payment 2023-10-25] [$500] Private Notes - The strikethrough line of the link is displaying in white on the Private Notes page Oct 18, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Oct 18, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 18, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 18, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.86-5 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 2023-10-25. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

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

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Oct 18, 2023

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:

  • [@ntdiary] The PR that introduced the bug has been identified. Link to the PR:
  • [@ntdiary] 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:
  • [@ntdiary] 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:
  • [@ntdiary] Determine if we should create a regression test for this bug.
  • [@ntdiary] 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.
  • [@greg-schroeder] 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. 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 Weekly KSv2
Projects
None yet
Development

No branches or pull requests

7 participants