Skip to content
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 for payment 2021-12-13] URL link is mangled up with the rest of the text #4911

Closed
sketchydroide opened this issue Aug 30, 2021 · 60 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@sketchydroide
Copy link
Contributor

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Action Performed:

  1. Wrote Chronos 10am update on desktop
  2. Added GH links to the update
  3. submitted
  4. opened conversation on mobile iOS
  5. Links are on top of the other text

Expected Result:

The links should take their own space

Actual Result:

Link is on top of the normal text

Workaround:

N/A

Platform:

Where is this issue occurring?

  • iOS
  • Android (not sure, I haven't checked)

Version Number:
V1.0.86-4
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
IMG_3582
Expensify/Expensify Issue URL:

View all open jobs on GitHub

@sketchydroide sketchydroide added AutoAssignerTriage Auto assign issues for triage to an available triage team member Daily KSv2 labels Aug 30, 2021
@MelvinBot
Copy link

Triggered auto assignment to @michaelhaxhiu (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

@MelvinBot MelvinBot added Overdue and removed AutoAssignerTriage Auto assign issues for triage to an available triage team member labels Aug 30, 2021
@michaelhaxhiu
Copy link
Contributor

@mallenexpensify I have searched titles with various naming conventions, but can't find another GH that looks like this one. Before I push this through, I'd love a buddy check from you 🙏 . Have you come across this before? I feel like I've seen it once before but can't tell if I'm crazy or not.

@MelvinBot MelvinBot removed the Overdue label Sep 1, 2021
@sketchydroide
Copy link
Contributor Author

This happened when I added a url to my 10ams

@mallenexpensify
Copy link
Contributor

@michaelhaxhiu yup! Saw for the first time last night or this morn. iOS v1.0.90-4
image
I'll move it along since you're likely already off Hax

@MelvinBot
Copy link

Triggered auto assignment to @johnmlee101 (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@michaelhaxhiu
Copy link
Contributor

@sketchydroide sorry for the confusion, I agree this is a real problem (I reproduced it myself 😄) but was trying to make sure it wasn't a duplicate. We are all set, thanks Matt!

@MelvinBot
Copy link

@johnmlee101 Huh... This is 4 days overdue. Who can take care of this?

@johnmlee101
Copy link
Contributor

Oh! I think everything above looks good and should be good to toss this out for external contributions. I believe its contained to just long links if I'm not mistaken?

@MelvinBot MelvinBot removed the Overdue label Sep 7, 2021
@johnmlee101 johnmlee101 added the External Added to denote the issue can be worked on by a contributor label Sep 7, 2021
@MelvinBot
Copy link

Triggered auto assignment to @arielgreen (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@arielgreen
Copy link
Contributor

arielgreen commented Sep 7, 2021

@MelvinBot MelvinBot added Weekly KSv2 Help Wanted Apply this label when an issue is open to proposals by contributors and removed Daily KSv2 labels Sep 7, 2021
@meetmangukiya
Copy link
Contributor

meetmangukiya commented Sep 8, 2021

I am able to fix this by commenting out the lineHeight css in baseFontStyle

lineHeight: variables.fontSizeNormalHeight,
not sure why. We could do that unless we have any reason to hardcode to 20 and not use the default lineHeight.

A little more context: the problem is with rendering the html which we are doing with RenderHTMLSource. This is also affected by TRenderEngineProvider and RenderHTMLConfigProvider

<TRenderEngineProvider
customHTMLElementModels={customHTMLElementModels}
baseStyle={webViewStyles.baseFontStyle}
tagsStyles={webViewStyles.tagStyles}
enableCSSInlineProcessing={false}
dangerouslyDisableWhitespaceCollapsing={false}
systemFonts={EXTRA_FONTS}
>
<RenderHTMLConfigProvider
defaultTextProps={defaultTextProps}
defaultViewProps={defaultViewProps}
renderers={renderers}
renderersProps={renderersProps}
computeEmbeddedMaxWidth={computeEmbeddedMaxWidth}
>
{children}
</RenderHTMLConfigProvider>
</TRenderEngineProvider>
. I tried commenting out different props and trying to isolate the problem, and commenting out the lineHeight in baseStyle was when it started working.

Proposal

Remove lineHeight styling from baseFontStyle.

lineHeight: variables.fontSizeNormalHeight,

@johnmlee101
Copy link
Contributor

I'm curious @meetmangukiya do you know why commenting that out fixes the issue? Is there another way for us to make sure word wrapping with urls works well?

@parasharrajat
Copy link
Member

parasharrajat commented Sep 9, 2021

There is more to it. Basically, BoxModel of RenderHTMLEngine is not compatible with this design so it is a technical limitation. #4733 is also caused by the same issue. I am trying to find a solution to it.

@arielgreen
Copy link
Contributor

@jboniface reassigning, I'm off for mat leave!

@parasharrajat
Copy link
Member

Can I submit the PR or.....?

@jboniface
Copy link

@parasharrajat yeah i think so; we didn't have you hired yet, did we? here's a link to the UW job just in case https://www.upwork.com/jobs/~0198867f3b0915c30b

@botify botify removed the Daily KSv2 label Nov 22, 2021
@MelvinBot MelvinBot added Weekly KSv2 Help Wanted Apply this label when an issue is open to proposals by contributors labels Nov 22, 2021
@MelvinBot
Copy link

Current assignee @johnmlee101 is eligible for the Exported assigner, not assigning anyone new.

@MelvinBot
Copy link

📣 @parasharrajat You have been assigned to this job by @jboniface!
Please apply to this job in Upwork and let us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@MelvinBot MelvinBot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Nov 22, 2021
@parasharrajat
Copy link
Member

So, I am officially hired now. but I have a concern to share before I move to PR. This PR will also fix #5572. I am eligible for the payment of that issue as well. If not, I would like to request a bonus here not because it is too much work but I have been following this issue for quite a time now. There have been multiple holds and I have spent a lot of time finding a solution without the possibility that I will be hired.

Let me know what do you think @jboniface?

@jboniface
Copy link

Considering you're hired on both jobs, you'd get paid for both jobs, right? We wouldn't invalidate one just because the same PR solved both issues (although we might not have filed both jobs if we knew this ahead of time). Do you think we should pay out more than the reward for both the jobs? In my opinion, the other issue was on n6-hold and you had a solution during the hold, so that one should be 500. This one would be 250. So 750 for one PR -- that seems like a fair deal. What do you think?

@mountiny
Copy link
Contributor

@parasharrajat I will make sure you are also hired for the other issue as well. Then just make sure to link both of the issues in the PR 🙌

@parasharrajat
Copy link
Member

If I am hired for other as well. Then it's fine.

Thanks @mountiny.

@mountiny
Copy link
Contributor

Perfect! No worries and thank you for digging into this and the related issue 🙌

@jboniface
Copy link

on staging

@MelvinBot MelvinBot removed the Overdue label Nov 30, 2021
@botify botify added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Dec 6, 2021
@botify botify changed the title URL link is mangled up with the rest of the text [HOLD for payment 2021-12-13] URL link is mangled up with the rest of the text Dec 6, 2021
@botify
Copy link

botify commented Dec 6, 2021

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.17-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2021-12-13. 🎊

@jboniface
Copy link

@parasharrajat will pay when you accept, sorry I missed the proposal earlier

@jboniface
Copy link

paid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
None yet
Development

No branches or pull requests