Repository navigation
Closed
Labels
BugSomething is broken. Auto assigns a BugZero manager.Something is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorAdded to denote the issue can be worked on by a contributorReviewingHas a PR in reviewHas a PR in reviewWeeklyKSv2KSv2
Description
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.13-0
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
Expensify/Expensify Issue URL:
Issue reported by: @quinthar
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1702572793589809
Action Performed:
- Open any chat
- Send a lengthy codeblock message
Expected Result:
Should wrap themessage
Actual Result:
Message does not wrap
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
- Android: Native
- Android: mWeb Chrome
- iOS: Native
- iOS: mWeb Safari
- MacOS: Chrome / Safari
- MacOS: Desktop
Screenshots/Videos
Add any screenshot/video evidence
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~0128f71c5292f13b05
- Upwork Job ID: 1735401155881005056
- Last Price Increase: 2023-12-14
- Automatic offers:
- cubuspl42 | Reviewer | 28067470
- Krishna2323 | Contributor | 28067471
Metadata
Metadata
Labels
BugSomething is broken. Auto assigns a BugZero manager.Something is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorAdded to denote the issue can be worked on by a contributorReviewingHas a PR in reviewHas a PR in reviewWeeklyKSv2KSv2



Activity
[-]Codeblocks does not wrap[/-][+][$500] Codeblocks does not wrap[/+]melvin-bot commentedon Dec 14, 2023
Triggered auto assignment to @sakluger (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Dec 14, 2023
Job added to Upwork: https://www.upwork.com/jobs/~0128f71c5292f13b05
melvin-bot commentedon Dec 14, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)melvin-bot commentedon Dec 14, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @cubuspl42 (
External)abzokhattab commentedon Dec 14, 2023
What do you mean by
wrap the message? the attached example's message is already in a code block @quintharKrishna2323 commentedon Dec 14, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Codeblocks does not wrap.
What is the root cause of that problem?
We wrap the code block text with
ScrollViewwithhorizontalprop passed to it, that makes it scrollable horizontally and does not wrap the text.App/src/components/HTMLEngineProvider/HTMLRenderers/PreRenderer/BasePreRenderer.js
Lines 41 to 43 in 648c000
What changes do you think we should make in order to solve the problem?
By removing the
horizontalprop this issue can be solved, we would also need to cleanup some code related to scrolling if we decide to remove thehorizontalprop. IMO we should remove it just to be consistent with the inline code block view.We can also add maxHeight to the code block if we want to make the code block scrollable after reaching maxHeight.
Result
pre_styling_issue.mp4
What alternative solutions did you explore? (Optional)
We can remove the
ScrollViewelement if needed.sakluger commentedon Dec 14, 2023
@abzokhattab In the example provided, you can see that when the user enters a long text string in code blocks, they must scroll right and left to see the full message. In the screenshot from Slack, the text in the code block wraps and the user doesn't need to scroll right and left.
jakub-trzebiatowski commentedon Dec 15, 2023
For future reference, this seems unrelated to #27913
31 remaining items
melvin-bot commentedon Dec 28, 2023
@cubuspl42 @sakluger @jasperhuangg @Krishna2323 this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!
Krishna2323 commentedon Dec 30, 2023
@cubuspl42, PR ready for review.
Krishna2323 commentedon Jan 9, 2024
PR is 🚀 Deployed to production by https://github.com/thienlnam in version: 1.4.22-6 🚀
Krishna2323 commentedon Jan 15, 2024
@sakluger, I think this is ready for payments.
Krishna2323 commentedon Jan 19, 2024
@sakluger, bump for payments.
Krishna2323 commentedon Jan 24, 2024
@sakluger melv failed here😭, can you pls process the payments🙃
jakub-trzebiatowski commentedon Jan 24, 2024
Asked on Slack
sakluger commentedon Jan 24, 2024
Thanks for the bump, all paid out!