-
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
Fix inline code doesn't accept bold and/or italic #55398
Fix inline code doesn't accept bold and/or italic #55398
Conversation
@hoangzinh Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@bernhardoj would you mind adding some screenshots with actual text (instead of just pipes) so we can get a sense of what the new fonts will really look like? |
Nice, thanks! That's looking pretty darn good to me. |
Same here! |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-02-02.at.22.03.41.movAndroid: mWeb ChromeScreen.Recording.2025-02-02.at.21.55.40.android.chrome.moviOS: NativeScreen.Recording.2025-02-02.at.22.12.27.moviOS: mWeb SafariScreen.Recording.2025-02-02.at.21.58.24.ios.safari.mov |
ios/NewExpensify/Info.plist
Outdated
<string>ExpensifyMono-BoldItalic.otf</string> | ||
<string>ExpensifyMono-Italic.otf</string> |
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.
Is it possible to move those lines under this line
App/ios/NewExpensify/Info.plist
Line 95 in d2806ff
<string>ExpensifyMono-Regular.otf</string> |
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.
Done
@@ -142,6 +144,7 @@ | |||
8B28D84EF339436DBD42A203 /* ExpensifyNeue-BoldItalic.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "ExpensifyNeue-BoldItalic.otf"; path = "../assets/fonts/native/ExpensifyNeue-BoldItalic.otf"; sourceTree = "<group>"; }; | |||
8EFE0319D586C1078DB926FD /* Pods-NewExpensify.releaseadhoc.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NewExpensify.releaseadhoc.xcconfig"; path = "Target Support Files/Pods-NewExpensify/Pods-NewExpensify.releaseadhoc.xcconfig"; sourceTree = "<group>"; }; | |||
9196A72C11B91A52A43D6E8A /* libPods-NotificationServiceExtension.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-NotificationServiceExtension.a"; sourceTree = BUILT_PRODUCTS_DIR; }; | |||
A96F65C6624044318D21DAB1 /* ExpensifyMono-BoldItalic.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = "ExpensifyMono-BoldItalic.otf"; path = "../assets/fonts/native/ExpensifyMono-BoldItalic.otf"; sourceTree = "<group>"; }; |
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.
Could you explain why fileEncoding = undefined
, isn't it fileEncoding = 9
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.
Idk, it's auto generated 😅
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.
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.
It looks like the script is outdated. #16540 was 2 years ago, then we might need to do same for this PR. What do you think?
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.
I've updated it to make it consistent with other fonts. ChatGPT said that 9 means the encoding is UTF-16. (4 is UTF-8)
@@ -159,6 +162,7 @@ | |||
E9DF872C2525201700607FDC /* AirshipConfig.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = AirshipConfig.plist; sourceTree = "<group>"; }; | |||
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; | |||
ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; }; | |||
ED64768FC6254E4D8FCD12BC /* ExpensifyMono-Italic.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = "ExpensifyMono-Italic.otf"; path = "../assets/fonts/native/ExpensifyMono-Italic.otf"; sourceTree = "<group>"; }; |
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.
Same here fileEncoding = undefined
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.
Same as above
Bug 1: Inline code doesn't accept bold in IOS Screen.Recording.2025-01-22.at.15.22.10.mov |
Hmm, I did retest when updating the Info.plist, but not when updating the fileEncoding. Maybe it causes a problem. I will retest first. |
I found out, it doesn't work for IOS hybrid app Screen.Recording.2025-01-23.at.16.13.33.mov |
I see. This is hard since I don't have access to the hybrid app. Maybe the font asset needs to be added to the hybrid codebase too? Btw, does it works fine on android hybrid? |
Same issue on android hybrid. No worries, I can help you to configure those new fonts on the hybrid repo. @bernhardoj |
cc @NikkiWines Sorry for mentioning you earlier, it seems I have to help @bernhardoj on the hybrid repo. |
@hoangzinh thanks a lot! |
Quick updates: I tried to follow this guidelines, and got error
when ran command |
Ah, I did encounter that too. I use https://github.com/callstack/react-native-asset instead. |
Quick updates: I created a PR here for Hybrid app. I'm getting an error when building for Android hybrid app. I will try to fix it and complete the PR checklist soon |
Hi @bernhardoj, @NikkiWines and I had a discussion in the PR of hybrid app and we think we should merge your PR first, otherwise, it will cause build failure for Hybrid apps. Can you help to add a note in the "QA steps" to let them know that it won't work for Hybrid app until this PR https://github.com/Expensify/Mobile-Expensify/pull/13392 is merged? |
@hoangzinh I see. Merged with main and added the note. |
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
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.
@bernhardoj maybe merge main again to see if that fixes the jest failure 🙏
@NikkiWines done |
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.
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/NikkiWines in version: 9.0.95-0 🚀
|
iOS failing with original bug id #39623 |
Explanation of Change
Fixed Issues
$ #39623
PROPOSAL: #39623 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
NOTE: This won't work on Hybrid App until https://github.com/Expensify/Mobile-Expensify/pull/13392 is merged
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop