fix: Member's default name and custom name are styled differently#58430
fix: Member's default name and custom name are styled differently#58430MarioExpensify merged 9 commits intoExpensify:mainfrom
Conversation
Reviewer Checklist
Screenshots/Videos |
This comment was marked as resolved.
This comment was marked as resolved.
@jjcoffee we still get type I updated
|
|
@nkdengineer Can you merge main again? I think that'll resolve the TS error. |
jjcoffee
left a comment
There was a problem hiding this comment.
LGTM! Just needs main merging to fix the TS error.
|
The author of the PR (@Krishna2323) which had the regression that we're fixing here reached out to say they think this is a workaround (that might cause regressions) and that we should have modified They provided this snippet: function StrongRenderer({tnode, TDefaultRenderer, style, ...props}: CustomRendererProps<TText | TPhrasing>) {
const styles = useThemeStyles();
const isChildOfTaskTitle = HTMLEngineUtils.isChildOfTaskTitle(tnode);
return (
<TDefaultRenderer
// eslint-disable-next-line react/jsx-props-no-spreading
{...props}
tnode={tnode}
style={[style as StyleProp<TextStyle>, isChildOfTaskTitle && styles.taskTitleMenuItem, {fontStyle: (style.fontStyle as TextStyle['fontStyle']) ?? 'normal'}]}
/>
);
}Any thoughts @nkdengineer @MarioExpensify? |
|
@jjcoffee I like that they provided us with insights on a possible fix, I would like to know what kind of regressions we could be facing with the code @nkdengineer provided as it seems pretty straightforward but I may not be thinking of all possible flows. Either way, @Krishna2323's code change is smaller and more self contained, if it fixes our issue I would at least like to have it tried and tested. How do you feel about it @nkdengineer ? |
@jjcoffee @MarioExpensify looks like the code provided doesn't work, maybe I'm missing something But looking back, my solution is based on what's available in |
|
@nkdengineer, could you please try adding this in strong: {
// We set fontFamily and fontWeight directly in order to avoid overriding fontStyle.
fontFamily: FontUtils.fontFamily.platform.EXP_NEUE_BOLD.fontFamily,
fontWeight: FontUtils.fontFamily.platform.EXP_NEUE_BOLD.fontWeight,
}, |
|
Yeah I'm also not sure I see an obvious regression coming from the current changes. Can you enlighten us @Krishna2323? |
|
Bumped @Krishna2323 here. |
Really sorry for the delay—I missed that comment. It might work for the current case, but what if we have other similar tags like I have updated the renderer in this PR, so it will be updated to the solution I provided anyway. It's better to use that solution in this PR. |
|
thanks @Krishna2323, I'll update soon |
|
@jjcoffee i updated and tested well |
|
How is this one going? Let's try to get this one over the finish line soon if we can, this bug has existed in production for a while now. Thanks! |
|
@jjcoffee can you review the latest changes? |
MarioExpensify
left a comment
There was a problem hiding this comment.
Let's move forward!
|
✋ 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/MarioExpensify in version: 9.1.20-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.1.20-2 🚀
|









Explanation of Change
Fixed Issues
$ #58242
PROPOSAL: #58242 (comment)
Tests
Offline tests
Same as tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop