-
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
[HOLD for payment 2023-05-16] Add custom renderer for user mentions #17885
Comments
Current assignee @puneetlath is eligible for the NewFeature assigner, not assigning anyone new. |
Hi 👋🏼 I'm from Software Mansion and I'll handle this task |
This comment was marked as off-topic.
This comment was marked as off-topic.
Ok great @robertKozik. I have assigned you to the issue and shared the design doc with you. Please feel free to hit me up here or in slack if you have any questions! |
@robertKozik if you want to test this, the easiest way will be to:
|
Thats way more convenient than what I used to do (patching the |
Hey Hey, two follow up questions:
|
Great questions.
|
Thanks for answers, today I should create the PR with it. |
Awesome! |
Hi! Sadly I didn't finish it :/ I've encountered two problems:
I'll investigate it further @puneetlath |
Hmm, interesting. It looks like our custom renderer for Anchor tags also returns a component wrapped in a Pressable. |
Hi @robertKozik |
@robertKozik I just wanted to check in and see how this is going. |
Sorry, I was OOO most of the time. I've checked the android issue on the physical device and now it work as it should be, maybe that was a problem with my simulator. I'll check today one more just to be sure, and tomorrow PR will be ready to review, hopefully alongside the |
Awesome! |
I've pushed PR to review. Problems with android were indeed corelated with usage of I've used newest implementation of ExpensiMark changes, it works on every browser, although now it cannot recognise properly when mention handle has the |
Nice! Reviewing asap. Yes, it is intended that only certain characters are allowed directly before the |
Just merged. |
Great! I'll follow up with the here mention renderer soon |
As the PR needs to be reverted due to android problems, what is the correct way to go with this? Do we pivot to the non-rounded mentions for now? |
Ok I reverted the PR. This issue is the problem. I'm going to chat internally and see what the best path forward is here. |
That catch me off guard 😢 I could have sworn that It was working for me while testing... Let me know if you will know what next, with the work we do already here reverting to the more simple colouring will be an ease and would take no time |
@puneetlath Please assign this issue to me as C+. I think we can just use no border-radius and padding solution for now. When the inline-code block PR is fixed, we can swap that. |
Is there any alternative of using |
Ok @robertKozik @parasharrajat I chatted internally and let's go back to using styled text so it will look good on most devices and just accept that it will be ugly on Android in some scenarios. So back to what you had originally that had this problem: And then when Expensify/react-native#43 is merged, the issue should resolve itself. |
Sorry for all the flip-flopping! |
Alright, It will hopefully need only reverting commits, so I'll do it right away, create new PR and test it
Not quite itself, as it will introduce new prop for such styling. But follow-up pr would need only to move style to another prop. |
Sounds great and that makes sense. Thanks @robertKozik |
Created draft PR for that, just want to check it on all platforms and I'll change it to |
I will check this tomorrow daytime. Night..Night... |
PR is not yet ready for review. |
Sorry, forgot to change it 😄 |
Merged again! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.12-0 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 2023-05-16. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
@parasharrajat just sent you a contract offer: https://www.upwork.com/nx/wm/pre-hire/c/8577561/offer/24575855 |
All paid. Thanks everyone! |
As part of the mentions project, we will be adding a custom renderer called MentionUserRenderer for the tag. The custom renderer will be similar to the AnchorRenderer.
The details of the implementation are described in the doc here.
The text was updated successfully, but these errors were encountered: