-
Notifications
You must be signed in to change notification settings - Fork 136
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
Use new logic to check bold text #710
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please show testing steps and screenshots of this change working with the App PR you're going to submit.
Please also link the App PR in the description.
JS Linter is also failing, try running npm run prettier
Hey @ShridharGoel any updates on this? |
Will add screenshots in some time.
|
@ShridharGoel Please prioritize this when you can |
This was updated few days back.
|
Testing steps and videos were added. |
@ShridharGoel the tests are failing, please fix them. For the linter tests, just run Please find the failing JS tests here: https://github.com/Expensify/expensify-common/actions/runs/9379944077/job/25851454328?pr=710 |
Bump @ShridharGoel |
559a940
to
6f530d0
Compare
@ShridharGoel Did you run
|
@jasperhuangg Should be fixed now, thanks. |
@ShridharGoel Still have linter errors, why aren't you running
|
I had used it locally, not sure what went wrong (some changes were applied but double quotes didn't change to single quotes). But it should work now. |
@ShridharGoel it looks like your commits aren't signed, can you look into this?
|
lib/ExpensiMark.js
Outdated
const fontWeightMatch = innerContent.match(/style="(.*?)"/); | ||
const isFontWeightBold = fontWeightMatch | ||
? fontWeightMatch[1].replaceAll(/\s/g, '').includes('font-weight:bold;') || fontWeightMatch[1].replaceAll(/\s/g, '').includes('font-weight:700;') | ||
: false; | ||
const isBold = fontWeightMatch ? isFontWeightBold : true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add comments to explain what's happening it became pretty unclear what's going on.
I think we also need unit tests to cover this cases. @ShridharGoel Can you work on that |
@ShridharGoel bump! |
Gonna go ahead and stick this back on draft while the unit tests are worked out. |
Will update this soon. |
Thank you @jasperhuangg looks like we need to revisit our solution on this one. @ShridharGoel Can have a look at this Expensify/App#41109 (comment) |
Testing the mentioned scenarios now. |
98add94
to
eb40af6
Compare
@ShridharGoel Do you mind also updating your screenshots to handle the new cases outlined in Expensify/App#41109 (comment) |
@jasperhuangg Will update. Also, just to note: Expensify/App#41109 (comment) Edit: Updated the videos in OP. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM @alitoshmatov all yours
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me to, I think we can merge this.
🚀Published to npm in v2.0.40 |
Use new logic to check bold text: Expensify/App#41109 (comment)
Fixed Issues
$ Expensify/App#41109
Tests and QA steps:
Screen.Recording.2024-06-28.at.1.56.15.PM.mov
Screen.Recording.2024-06-28.at.8.06.32.PM.mov