You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2023-11-17] [$500] No text size change on bold on single backtick code block #30203
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
changed the title [-]No text size change on bold on single backtick code block[/-][+][$500] No text size change on bold on single backtick code block[/+]on Oct 23, 2023
Please re-state the problem that we are trying to solve in this issue.
The issue we're addressing is that when a user sends a message with a code block in bold text, the app still displays it with the normal font size.
What is the root cause of that problem?
This problem stems from how bold messages are saved as HTML code with an <h1> tag, which has a specific font size defined in the style file. However, when a code block is added with bold text, it uses a <code> tag as a child element of <h1>, and the code block's font size takes precedence over the <h1> tag's font size, causing the issue.
What changes do you think we should make in order to solve the problem?
To solve this problem, we need to modify the code rendering logic (CodeRenderer.js). We should check if the <code> element is a child of an <h1> tag. If it is, we should change <code> tag font-size with 14.5px . Here's an example of the code to achieve this:
//if code is child of h1, change font-size with 14.5, if not use default font size for codeconstfontSize=props.tnode.parent.tagName==='h1' ?
14.5 : textStyle.fontSize;consttextStyleOverride={fontFamily: font,fontWeight: undefined,fontStyle: undefined,fontSize: fontSize,};
What alternative solutions did you explore? (Optional)
@yakupafsin Thanks for the proposal. But you are fixing the wrong bug here. What we are looking is to have the heading message always rendered with fontSizeLarge. i.e.
# msg
should be rendered with fontSizeLarge (already working)
# `msg`
should be rendered with fontSizeLarge as well but it's not (bug is here)
@yakupafsin Thanks for the proposal. But you are fixing the wrong bug here. What we are looking is to have the heading message always rendered with fontSizeLarge. i.e.
# msg
should be rendered with fontSizeLarge (already working)
# `msg`
should be rendered with fontSizeLarge as well but it's not (bug is here)
Hi, sorry. I guess it was too late I made a mistake. But I've edited my proposal and it's aiming the right problem now.
@yakupafsin Thanks for the proposal. But you are fixing the wrong bug here. What we are looking is to have the heading message always rendered with fontSizeLarge. i.e.
# msg
should be rendered with fontSizeLarge (already working)
# `msg`
should be rendered with fontSizeLarge as well but it's not (bug is here)
Do I have to send it again, or just editing enough?
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.97-7 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-11-17. 🎊
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:
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:
[@s77rt] The PR that introduced the bug has been identified. Link to the PR:
[@s77rt] 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:
[@s77rt] 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:
[@s77rt] Determine if we should create a regression test for this bug.
[@s77rt] 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.
[@laurenreidexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
[-]No text size change on bold on single backtick code block[/-][+][$500] No text size change on bold on single backtick code block[/+]melvin-bot commentedon Oct 23, 2023
Job added to Upwork: https://www.upwork.com/jobs/~015b5dbaab7f1156a1
melvin-bot commentedon Oct 23, 2023
Triggered auto assignment to @laurenreidexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Oct 23, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)melvin-bot commentedon Oct 23, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt (
External)yakupafsin commentedon Oct 23, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
The issue we're addressing is that when a user sends a message with a code block in bold text, the app still displays it with the normal font size.
What is the root cause of that problem?
This problem stems from how bold messages are saved as HTML code with an
<h1>tag, which has a specific font size defined in the style file. However, when a code block is added with bold text, it uses a<code>tag as a child element of<h1>, and the code block's font size takes precedence over the<h1>tag's font size, causing the issue.What changes do you think we should make in order to solve the problem?
To solve this problem, we need to modify the code rendering logic (
CodeRenderer.js). We should check if the<code>element is a child of an<h1>tag. If it is, we should change<code>tag font-size with 14.5px . Here's an example of the code to achieve this:What alternative solutions did you explore? (Optional)
N/A
MacOS: Chrome / Safari
eee6b3b3-ca5b-48a2-a051-286214db386e.mp4
s77rt commentedon Oct 24, 2023
@yakupafsin Thanks for the proposal. But you are fixing the wrong bug here. What we are looking is to have the heading message always rendered with fontSizeLarge. i.e.
should be rendered with fontSizeLarge (already working)
should be rendered with fontSizeLarge as well but it's not (bug is here)
yakupafsin commentedon Oct 24, 2023
Hi, sorry. I guess it was too late I made a mistake. But I've edited my proposal and it's aiming the right problem now.
yakupafsin commentedon Oct 24, 2023
Do I have to send it again, or just editing enough?
47 remaining items
melvin-bot commentedon Nov 10, 2023
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Nov 10, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.97-7 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-11-17. 🎊
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.
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Nov 10, 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:
s77rt commentedon Nov 11, 2023
Regression Test Proposal
Hello ExpensifiersHello Expensifierslaurenreidexpensify commentedon Nov 20, 2023
Automation failed here - issuing payments now
laurenreidexpensify commentedon Nov 20, 2023
Payment Summary:
laurenreidexpensify commentedon Nov 20, 2023
Final Step: Issue payment to @yakupafsin in Upwork once they accept request
yakupafsin commentedon Nov 20, 2023
@laurenreidexpensify offer accepted, Thank you.
laurenreidexpensify commentedon Nov 21, 2023
Payment Summary:
C+ - @s77rt $500 - payment issued in Upwork
Contributor - $500 - @yakupafsin requires payment issued in Upwork
Bug Report - $50 @dhanashree-sawant payment issued in Upwork