-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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-09-29] [$500] Chat - Inconsistent "(edited)" text on styled RTL text #27125
Comments
Triggered auto assignment to @JmillsExpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Having an edited RTL markdown/styled text put the What is the root cause of that problem?In ReportActionItemFragment, we force the report action text to be ltr by applying App/src/pages/home/report/ReportActionItemFragment.js Lines 140 to 144 in ae68e74
However, this only applies to normal text without markdown/styling. Markdown text will be rendered using RenderHTML which is not forced to ltr. App/src/pages/home/report/ReportActionItemFragment.js Lines 133 to 135 in ae68e74
What changes do you think we should make in order to solve the problem?Force the markdown text to be ltr too by:
Then clear the LTR unicode from the text in mention renderer. App/src/components/HTMLEngineProvider/HTMLRenderers/MentionUserRenderer.js Lines 34 to 35 in f5b7d5c
This will force the text to be LTR for all components that use RenderHTML (Banner, FormAlertWrapper, MoneyRequestAction, and TaskPreview). |
Job added to Upwork: https://www.upwork.com/jobs/~01466b9797b975245b |
Current assignee @JmillsExpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
looks like a simple solution #27125 (comment) 🎀 👀 🎀 |
Triggered auto assignment to @mountiny, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@rushatgabhane so fast haha, btw I found an issue with my own solution (Android). Appending the HTML with LTR unicode breaks the styling of non-text components. So, I have updated my solution |
@bernhardoj nice find! Your solution looks good. |
Contributor details |
is this something we actually support now @rushatgabhane this is a first time I am seeing something like that and I am not sure if this is worth spending our time on, right now. What do you think? |
@mountiny we don't support RTL by forcing the message text to LTR, but this does not work if the message is a markdown. |
📣 @rushatgabhane Please request via NewDot manual requests for the Reviewer role ($500) |
📣 @bernhardoj 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
📣 @kerupuksambel 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
Ok thanks, I think your solution looks good but it will touch lots of places so make sure to really test properly |
It's nearly midnight already at my place, I will create the PR tomorrow. |
yeah I am also in Bali 😂 |
@mountiny yeah, I saw the flag on your Slack status 😂 but I'm actually on a different island that is 1h+ flights apart from Bali 😞 Btw, PR is ready! |
Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.72-11 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-09-29. 🎊 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.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
|
Created a manual request here - https://staging.new.expensify.com/r/7161765702402744 |
@JmillsExpensify, @rushatgabhane, @mountiny, @bernhardoj Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@JmillsExpensify, @rushatgabhane, @mountiny, @bernhardoj Eep! 4 days overdue now. Issues have feelings too... |
$50 to @kerupuksambel |
$500 payment approved for @rushatgabhane based on summary above. |
All other contributors have been paid out! |
Regression test has also been created. Closing. |
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:
Expected Result:
The "(edited)" text is supposed to stay the same for right-to-left characters, regardless being edited or not
Actual Result:
In the normal edited text, the "(edited)" text is positioned in the right of the edited message. However in the styled edited text, the "(edited)" text is positioned on the left of the edited message.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: v1.3.67-1
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Styled.RTL.Text.-.Crop.mp4
Recording.1491.mp4
Expensify/Expensify Issue URL:
Issue reported by: @kerupuksambel
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1693864715884909
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: