-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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-09-27] Chat - Text and URL inside a strikethrough markdown isn't working #4897
Comments
Triggered auto assignment to @flodnv ( |
I can confirm this works on desktop but not on android. Probably a good External issue? |
Triggered auto assignment to @dylanexpensify ( |
On it! |
Posted! Internal: https://www.upwork.com/ab/applicants/1432715868561301504/job-details |
ProposalHi @dylanexpensify and everybody, Related code block: App/src/components/HTMLEngineProvider/BaseHTMLEngineProvider.js Lines 67 to 93 in 5bc21cd
Here in function AnchorRenderer({tnode, key, style}) {
const htmlAttribs = tnode.attributes;
// An auth token is needed to download Expensify chat attachments
const isAttachment = Boolean(htmlAttribs['data-expensify-source']);
const fileName = lodashGet(tnode, 'domNode.children[0].data', '');
+ const parentStyle = lodashGet(tnode, 'parent.styles.nativeTextRet', {});
return (
<AnchorForCommentsOnly
href={htmlAttribs.href}
isAuthTokenRequired={isAttachment}
// Unless otherwise specified open all links in
// a new window. On Desktop this means that we will
// skip the default Save As... download prompt
// and defer to whatever browser the user has.
// eslint-disable-next-line react/jsx-props-no-multi-spaces
target={htmlAttribs.target || '_blank'}
rel={htmlAttribs.rel || 'noopener noreferrer'}
- style={style}
+ style={{...style, ...parentStyle}}
key={key}
fileName={fileName}
>
<TNodeChildrenRenderer tnode={tnode} />
</AnchorForCommentsOnly>
);
} |
@dylanexpensify Heads up that you forgot to add the |
Triggered auto assignment to @marcaaron ( |
Interesting ... I think @pROFESOR11's proposal looks reasonable – if there are specific styles being applied to the parent element that conflict with the default styles of the link, we should give preference to the parent style. LGTM, so @dylanexpensify let's hire @pROFESOR11 on Upwork. @pROFESOR11 please feel free to submit a pull request for this once you've been hired on Upwork. |
On it now to send the offer @roryabraham (cc @pROFESOR11)! |
Offer: sent! |
Hi @dylanexpensify and @roryabraham, |
@roryabraham, @dylanexpensify Eep! 4 days overdue now. Issues have feelings too... |
For some reason I wasn't automatically assigned as a reviewer of the linked PR, but I just submitted my review now. |
Sounds good, thanks @roryabraham ! |
@pROFESOR11, Great job getting your first Expensify/App pull request over the finish line! 🎉 I know there's a lot of information in our contributing guidelines, so here are some points to take note of 📝:
So it might take a while before you're paid for your work, but we typically post multiple new jobs every day, so there's plenty of opportunity. I hope you've had a positive experience contributing to this repo! 😊 |
✋ 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 @marcaaron in version: 1.0.98-2 🚀
|
Not sure that this really needs to be on hold, because it's already been deployed to staging. |
The PR has been deployed to production on Monday 20th September. Updating the title appropriately 🙌 |
On hold for payment, changing this to weekly to appease melvin |
Submitting payment today |
Payment sent! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
www.homedepot.comExpected Result:
Text and URL inside a strikethrough markdown should work in Android app
Actual Result:
Text and URL inside a strikethrough markdown isn't working
Workaround:
Unknown
Platform:
Where is this issue occurring?
Version Number:
1.0.88-2
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
Bug5212974_Screen_Recording_20210827-215028_New_Expensify.mp4
Expensify/Expensify Issue URL:
View all open jobs on GitHub
Occurs in Production app too. So not adding Deployblocker
The text was updated successfully, but these errors were encountered: