Skip to content

[$250] Follow up improvements for inline code blocks on native devices #57556

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

Open
shawnborton opened this issue Feb 27, 2025 · 44 comments
Open
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement. Weekly KSv2

Comments

@shawnborton
Copy link
Contributor

shawnborton commented Feb 27, 2025

Now that we merged #56924, we want to make sure we follow up and address a few things:

  • let's investigate how we can get the border style and border radius back into the inline code blocks on native devices
  • let's figure out why emojis are adding unnecessary height to the inline code blocks, which causes them to look like they have too much padding on the top

cc @fabioh8010

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021895170990516924112
  • Upwork Job ID: 1895170990516924112
  • Last Price Increase: 2025-02-27
  • Automatic offers:
    • allgandalf | Contributor | 106308048
Issue OwnerCurrent Issue Owner: @thesahindia
@shawnborton shawnborton added the External Added to denote the issue can be worked on by a contributor label Feb 27, 2025
@melvin-bot melvin-bot bot changed the title Follow up improvements for inline code blocks on native devices [$250] Follow up improvements for inline code blocks on native devices Feb 27, 2025
Copy link

melvin-bot bot commented Feb 27, 2025

Job added to Upwork: https://www.upwork.com/jobs/~021895170990516924112

@shawnborton shawnborton added the Improvement Item broken or needs improvement. label Feb 27, 2025
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 27, 2025
Copy link

melvin-bot bot commented Feb 27, 2025

Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia (External)

@shawnborton
Copy link
Contributor Author

Note that this issue is a continuation of #53458 and I'd like to assign it to @fabioh8010

@shawnborton shawnborton added the Bug Something is broken. Auto assigns a BugZero manager. label Feb 27, 2025
Copy link

melvin-bot bot commented Feb 27, 2025

Triggered auto assignment to @Christinadobrzyn (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 27, 2025
Copy link

melvin-bot bot commented Feb 27, 2025

📣 @allgandalf 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@shawnborton
Copy link
Contributor Author

Going to assign this one to @allgandalf as a continuation of the other issue as well.

@fabioh8010
Copy link
Contributor

Hi, I'm Fábio from Callstack - expert agency - and I would like to work on this issue!

@fabioh8010
Copy link
Contributor

I'm going to start working on this next week, @shawnborton I think we can make this Weekly.

@fabioh8010
Copy link
Contributor

let's figure out why emojis are adding unnecessary height to the inline code blocks, which causes them to look like they have too much padding on the top

I assume this will be fixed together with the native fix, but let's see

@shawnborton shawnborton added Weekly KSv2 and removed Daily KSv2 labels Feb 27, 2025
@fabioh8010
Copy link
Contributor

Updates:

  • Started working on this today.
  • I'm going to clone latest react-native version and re-create this example app here as my starting point like I did it in the past.
  • After it will going to explore solutions again using the app as test environment.

@fabioh8010
Copy link
Contributor

Updates:

  • Re-created the example app with latest RN version and problem still exists, and it looks like it's worse now in iOS.
  • The misalignment seems to happen even just with a empty View inside a Text. The last 3 examples with the green background are a replication of our previous WrappedText component which allows us to have the inline code blocks with multiple lines.
  • I will use this app as reference to find for the solution.

Image

@shawnborton
Copy link
Contributor Author

Awesome, thanks for digging into this 👍

@Christinadobrzyn
Copy link
Contributor

Amazing! Thank you for the great updates @fabioh8010!

@fabioh8010
Copy link
Contributor

Updates:

  • Not much updates from iOS side, but from Android side @kubabutkiewicz was able to find a fix for that platform, but we are still testing it because some scenarios are having issues.
  • We also are still thinking if we should create a prop in RN to apply this fix, because seems like the behavior is expected according to RN code (at least for Android)
  • @kubabutkiewicz will help me and take over my side too as I'm pretty busy with other high priority stuff, so he will look iOS side now too.

@kubabutkiewicz
Copy link
Contributor

Hi leaving an update on that issue:

  • I managed to mostly fix it on android (there are needed still some adjustments)
  • Currently working on iOS to get it to the state same as iOS

Copy link

melvin-bot bot commented Mar 27, 2025

@fabioh8010 @Christinadobrzyn @allgandalf this issue is now 4 weeks old, please consider:

  • Finding a contributor to fix the bug
  • Closing the issue if BZ has been unable to add the issue to a VIP or Wave project
  • If you have any questions, don't hesitate to start a discussion in #expensify-open-source

Thanks!

@allgandalf
Copy link
Contributor

@kubabutkiewicz What's the plan for this week?

@kubabutkiewicz
Copy link
Contributor

Hi,
Currently working on iOS fixes, I am mostly in the state that ios is looking like android|
We prepared a testing playground in RN tester and this is how it looks before changes
iOS:
Image

Android:
Image

And this is how it looks after changes
iOS
Image
Image

Android:

Image Image

I will need to still do some adjustments and then I will go to extensive testing phase

@shawnborton
Copy link
Contributor Author

Exciting, love where this is heading!

@allgandalf
Copy link
Contributor

What's up for this week?

@kubabutkiewicz
Copy link
Contributor

Hey, I was dragged into other issue which have higher priority, I will get back to that issue after finishing it

@Christinadobrzyn
Copy link
Contributor

Hi @kubabutkiewicz just checking to see how everything is going with the other project and a timeline on this one. thanks!

@kubabutkiewicz
Copy link
Contributor

Hi!
Sorry I am right now involved into this issue #59913 which is a critical issue.
After finish it I will come back to this issue.
On our issue I have fixed issue on android and mostly on ios. Then I will need to file an issue in react-native repo and wait for the input from rn maintainers. But in the meantime we could add a patch in our repo.

@allgandalf
Copy link
Contributor

yeah, a patch sounds good to me!

@kubabutkiewicz
Copy link
Contributor

Hi, wanted to inform that I will be off for next 2 weeks. Will be back to this issue then

@allgandalf
Copy link
Contributor

thanks for the update!, @Christinadobrzyn maybe put this to monthly for now?

@Christinadobrzyn Christinadobrzyn added Monthly KSv2 and removed Weekly KSv2 labels Apr 29, 2025
@allgandalf
Copy link
Contributor

@kubabutkiewicz are you back to work on this?

@fabioh8010
Copy link
Contributor

@allgandalf Kuba is expected to be back on May 12th.

@kubabutkiewicz
Copy link
Contributor

Hi, I am back sooner and will go back to work on this issue 😄

@kubabutkiewicz
Copy link
Contributor

Hi update on that:
I am still working on the fixing few examples in our playground which causing troubles. Then I will need to test it on every possible way, like on new arch/old arch etc.

@allgandalf
Copy link
Contributor

Welcome back @kubabutkiewicz , thanks for the update!

@allgandalf
Copy link
Contributor

@Christinadobrzyn lets bump this back to weekly

@kubabutkiewicz
Copy link
Contributor

Hey, update on that I patched our app with the changes to react native and results seems promising (especially on ios)

Image

There is still work to do as last gap in the code block seems inconsistent with previous one and something weird is happening on android because sometimes the codeblocks are ovelapping with author label. Will continue next week.

@shawnborton
Copy link
Contributor Author

Oh that's an exciting update, thanks!

@allgandalf
Copy link
Contributor

wowww, excited for what will follow this week!

@Christinadobrzyn
Copy link
Contributor

Just a heads up that I'm going to be ooo May 21st - May 27th. Back on the 28th.

I'm not going to assign another BZ teammate but if you need someone while I'm gone, please remove and add the Bug label.

@allgandalf
Copy link
Contributor

@kubabutkiewicz what are the exiting updates for this week?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement. Weekly KSv2
Projects
Status: Bugs and Follow Up Issues
Development

No branches or pull requests

7 participants