-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Feature: Render markdown in thread header #24574
Feature: Render markdown in thread header #24574
Conversation
bacceb3
to
eea1007
Compare
@sobitneupane Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@tienifr Any update? |
@sobitneupane Worked on Web: Basically, I'll introduce a new custom tag 'thread-title': defaultHTMLElementModels.span.extend({
reactNativeProps: {
text: {numberOfLines: 1},
},
}), |
…nder-markdown-in-thread-header
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am yet to review all the cases. But initial tests are quite promising. Thanks for the work @tienifr
The header still overflows.
Screen.Recording.2023-08-23.at.16.03.21.mov
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tienifr Since we are only using first line in the header, should we do the same in LHN as well? What do you think?
Update:
I'll resolve those ASAP. |
…nder-markdown-in-thread-header
Update: Found a solution. I'm curating the code changes. Will push the tonight. |
…nder-markdown-in-thread-header
@tienifr Any update? |
Update: My new solution worked very well on native but failed on web. I think that's because I'm wrapping the thread title inside a |
I'm still working on the fix for Web. Resolving one platform would cause failure for the others. |
@tienifr Let's focus on this issue. Can you please update where you are stuck now? |
What can we do to get this PR merged asap? We can open follow up PR for some implementations if it doesn't break anything. |
Any update @tienifr ? |
I'm still blocking on these issues #24574 (comment) where |
@tienifr Yup. That sounds like a good idea. Please test it thoroughly at your end, update the screen recordings and let me know. Let's wrap this up before weekend. |
…nder-markdown-in-thread-header
I'm testing again since there have been many changes to the report title logics. |
Let us know when there are updated screenshots to review, thanks! |
Actually... I'm kind of curious why we are even doing this in the first place. Going to head to the original issue to discuss. |
@shawnborton Working screenshots are in PR description. |
Can you update them with the latest? They seem quite dated: Either way, we are discussing in Slack and I think it might have been a mistake to allow for the markdown to appear in the report headers, especially with no clean way of truncating things. So let's pause for a moment until we get clarification from @JmillsExpensify, but I think we should keep the report headers as just our normal app text style. |
What's the latest here? Can we just close this one? |
Friendly bump @tienifr and @sobitneupane - what's the status with this one? |
@shawnborton Looks like we don't want to make the change introduced by this PR. So, I think we are good to close this out. I have asked for update in the issue. |
Sounds good, closing! |
Details
Expected outcome for thread name in LHN:
Expected outcome for thread header:
Fixed Issues
$ #22832
PROPOSAL: #22832 (comment)
Tests
====
Inline code
, Link, Email, Bold, Italic,Strikethrough, > Quote, Mention user, Mention here.Offline tests
NA
QA Steps
Expected outcome for thread header:
====
Inline code
, Link, Email, Bold, Italic,Strikethrough, > Quote, Mention user, Mention here.PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android