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 Note - The link following the hashtag is not displayed in bold on the Private Notes page #28862

Closed
6 tasks done
kbecciv opened this issue Oct 4, 2023 · 20 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 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 contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Go to staging
  2. Go to any chat
  3. Click on the header and navigate to Private notes
  4. Go to My note > Notes
  5. Add "# https://xvz.com/" and save it
  6. Notice that the link following the hashtag is not displayed in bold

Expected Result:

The link following the hashtag should appear in bold

Actual Result:

The link following the hashtag is not displayed in bold

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 (6)
image (5)

safari-.mp4
ios-.mp4
Screen.Recording.2023-10-03.at.10.25.28.PM.mov
-issue.mov

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

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~011597f299ef538062
  • Upwork Job ID: 1709670524467359744
  • Last Price Increase: 2023-10-04
  • Automatic offers:
    • ZhenjaHorbach | Contributor | 27032777
    • aman-atg | Reporter | 27032783
@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 Note - The link following the hashtag is not displayed in bold on the Private Notes page [$500] Private Note - The link following the hashtag is not displayed in bold 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/~011597f299ef538062

@melvin-bot
Copy link

melvin-bot bot commented Oct 4, 2023

Triggered auto assignment to @maddylewis (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 - @narefyev91 (External)

@sicarius97
Copy link

@kbecciv Is this the behavior somewhere else in the app where it does work? I can't recall

@aman-atg
Copy link
Contributor

aman-atg commented Oct 4, 2023

@sicarius97 It works for the messages

@ZhenjaHorbach
Copy link
Contributor

ZhenjaHorbach commented Oct 4, 2023

Proposal

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

The link following the hashtag is not displayed in bold

What is the root cause of that problem?

The main problem that we don’t use <comment> tag for HTML in MenuItem now(This tag allows us to use special styles and features like bold font for links )

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

We have a special function that used to prepare html to showing

const getProcessedTitle = useMemo(() => {
if (props.shouldRenderAsHTML) {
return convertToLTR(props.title);
}
if (props.shouldParseTitle) {
return html;
}

And in this function we can wrap result in a <comment> tag

Or to make the title more functional, we can add a prop that will allow us to disable and enable the use of this tag

#27812

Partially linked ticket
Since the problem is also related to <comment> tag for MenuItem

Screenshot 2023-10-04 at 23 29 55

What alternative solutions did you explore? (Optional)

NA

@chahedmoetaz
Copy link

Hello,

I see this error on upwork https://www.upwork.com/jobs/~011597f299ef538062

I think that I have the solution::

First Locate the Code for Rendering Private Notes: 'on javascript code'

function renderPrivateNote(noteContent) {
// Code for rendering private notes
}
Please pay attention to how text formatting and styling are applied.
Check for Styling Rules: 'CSS code'
/* Styling for links /
a {
color: blue; /
Default link color /
font-weight: bold; /
Make links bold */
}

/* Styling for hashtags /
.hashtag {
font-weight: bold; /
Make hashtags bold */
}

and Verify that the HTML tags and attributes for styling are present. Links should be enclosed in tags, and hashtags can have a specific class, e.g., #hashtag

Review JavaScript Interactions
Check for Overrides or Conflicting Styles
Test Different Browsers and Platforms
Use Developer Tools for Debugging: ' javascript code'

function renderPrivateNote(noteContent) {
console.log('Rendering private note:', noteContent);

// Code for rendering private notes

}

Use the browser console to view the debug output and identify any issues with rendering or styling

Hope this can help you
Please keep me updated 'chahedmoetaz@gmail.com'

@melvin-bot
Copy link

melvin-bot bot commented Oct 5, 2023

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

@chahedmoetaz
Copy link

Contributor details
Your Expensify account email: chahedmoetaz@gmail.com
Upwork Profile Link: https://www.upwork.com/freelancers/~0128c8fdf4ee06daca

@melvin-bot
Copy link

melvin-bot bot commented Oct 5, 2023

⚠️ Invalid email. Please make sure to create an Expensify account with this email first here.

@maxconnectAbhi
Copy link

maxconnectAbhi commented Oct 5, 2023

Proposal

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

The link following the hashtag is not displayed in bold

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 like convertToLTR(props.title);
(<comment> tag add special styles for links )

What alternative solutions did you explore? (Optional)

NA

@narefyev91
Copy link
Contributor

Proposal from @ZhenjaHorbach looks good to me #28862 (comment)
🎀 👀 🎀 C+ reviewed

@melvin-bot
Copy link

melvin-bot bot commented Oct 5, 2023

Triggered auto assignment to @thienlnam, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@melvin-bot
Copy link

melvin-bot bot commented Oct 5, 2023

📣 @ZhenjaHorbach 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot
Copy link

melvin-bot bot commented Oct 5, 2023

📣 @aman-atg 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

@jjcoffee
Copy link
Contributor

jjcoffee commented Oct 5, 2023

We're already going to be handling this in an older issue #27812 where we'll also be wrapping with <comment> tags. Let's close this one out @maddylewis (it's also the same contributor that's selected there, so not a big deal that they got assigned here).

@melvin-bot melvin-bot bot added 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 Note - The link following the hashtag is not displayed in bold on the Private Notes page [HOLD for payment 2023-10-25] [$500] Private Note - The link following the hashtag is not displayed in bold 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:

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

No branches or pull requests

10 participants