-
Notifications
You must be signed in to change notification settings - Fork 3k
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][$250] Android - Chat - Sending code block message with italic is not applied& preview inconsistent #39623
Comments
Triggered auto assignment to @isabelastisser ( |
@isabelastisser FYI 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 |
We think that this bug might be related to #vip-vsp |
Edited by proposal-police: This proposal was edited at 2024-10-02 16:04:19 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Italic/bold isn't applied to inline code block. What is the root cause of that problem?The font-weight and style here are always set to App/src/components/HTMLEngineProvider/HTMLRenderers/CodeRenderer.tsx Lines 28 to 37 in 837152e
But even after we remove it, the issue still persists. That's because the MONOSPACE style is set for Lines 201 to 206 in 837152e
and the style has font style and weight as normal. App/src/styles/utils/FontUtils/fontFamily/singleFontFamily/index.ts Lines 13 to 17 in 837152e
But it is still not enough because we don't have the italic and bold italic variants for ExpensiMono. We only have ExpensiMono-Regular and -Bold. What changes do you think we should make in order to solve the problem?Remove the font style and weight override here. App/src/components/HTMLEngineProvider/HTMLRenderers/CodeRenderer.tsx Lines 28 to 37 in 837152e
Then, only take the font family style from MONOSPACE.fontFamily Line 206 in 837152e
Then, add a new font asset for ExpensiMono-Bold and ExpensiMono-BoldItalic. There is a docs regarding adding a new font. Example where the font has regular, bold, italic, and bold italic variant. App/android/app/src/main/res/font/expensify_neue.xml Lines 2 to 6 in 1764d10
|
@isabelastisser Eep! 4 days overdue now. Issues have feelings too... |
Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh ( |
Thanks for your proposal @bernhardoj. There are 2 things that is not clear in your proposal:
|
Not overdue. |
Discussing with @isabelastisser internally here https://expensify.slack.com/archives/C02NK2DQWUX/p1713270353215539 |
Hi @bernhardoj if we allow external contributors to contribute to react-native-live-markdown. Are you able to fix this issue? |
@hoangzinh I will try to look if I can fix it in |
Thanks @bernhardoj . @tomekzaw just wanna confirm if we've opened |
For the reference, here's how it currently looks across platforms (checked on 83d1166): Q: What's the expected behavior? Should the outside formatting (bold/italic) be reflected in inline code? Also, the problem is not only related to Live Markdown Preview (in the composer box) but also in chat history (report item) so it will also require changes in E/App. FYI Slack does support nesting styles for inline code:
I think this issue can be made external, what do you think? @thienlnam |
I'm inclined to "Web". What do you think? @isabelastisser |
@hoangzinh @isabelastisser this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
Triggered auto assignment to @NikkiWines, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Yep, looks good 👍 |
So, what's the process for getting the new font file? We need specifically:
|
Hi @Expensify/design, currently our App only have font
They look like our custom fonts. Do our team have those missing fonts? Thanks in advance. |
Looking through our font files, I don't believe we have any Italic versions of Expensify Mono. |
Makes me wonder if we should check with the type foundry to see if this is something we'd wanna add. I'll add it to the list to discuss, but for now we don't have any. |
Thanks, @dubielzyk-expensify and @dannymcclain. I think, for now, we can mark this issue as Hold On while waiting Design team to discuss whether we want to add those fonts in our App. |
Sounds good. For something like this I'd prefer to wait until Shawn is back and can weigh in anyways. |
Moving to weekly until @shawnborton is back. |
Hey, I'm back! We don't have our mono fonts in italic styles... but we could definitely ask for them! Let me reach out to our font foundry and get their opinion. Will cc the @Expensify/design team. |
Okay, we're going to get some updated Expensify Mono Italic font files for this, but we likely won't have them for quite some time (December?). So we might want to put a HOLD on this issue for the time being and come back to it once we actually have the new font files raedy for use. |
Thanks for the update! Just to confirm, are we getting both Mono Italic and Mono Italic Bold font files? |
Yup, we'll get both of those files in all formats we could need (.otf, .woff, etc) |
Nice, thanks for the confirmation! |
Updating this issue to reflect that we'll be waiting a bit to get the updated fonts ⏰ |
Not overdue, still on hold. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.60
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4478250
Issue reported by: Applause - Internal Team
Action Performed:
|||
|||
Expected Result:
Code block with italic preview must not be inconsistent in mweb and Android. Sending code block message with italic must be applied in Android
Actual Result:
Code block with italic preview is inconsistent in mweb and Android. Sending code block message with italic is not applied in Android
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6438153_1712246464359.use.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: