Fix/28342: Task description does not remove empty quotes#29144
Conversation
|
|
@robertKozik 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] |
|
@DylanDylann why don't we preview the html on android native? It sticks to the rather then format properly or even remove the excessive quotes?
|
Updated and this is the result: Screencast.from.11-10-2023.01.01.24.webm |
|
@DylanDylann We are getting now strange margin on top of rendered HTML, it's diffrent on other platforms - can we do sth with it?
|
|
Has this issue already been reported? I'm fine with creating a separate bug report for it, but we should still address the problem of displaying the description with excessive quotes on android native, which should undoubtedly be part of this. |
I am not sure about it. Will check when I have a chance
Yeah. Let's wait internal team to confirm this #28342 (comment) |
|
@robertKozik Please help review the current change and we will create another issue to fix the markdown in android |
|
As I see we didn't get the confirmation from internal team about the creation of another issue about the markdown on android native - I had review the current state of the PR before, so if we agree on proceeding with it I'll post the reviewer PR quickly |
|
Thanks @robertKozik |
|
@robertKozik internal team has confirmed here #28342 (comment). Let's continue reviewing this PR |
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromeandroid.-.web.movMobile Web - Safariios.web.movDesktopdesktop.moviOSandroid.native.movAndroidios.native.mov |
| <View style={styles.mb5}> | ||
| <TextInput | ||
| defaultValue={props.task.description} | ||
| defaultValue={parser.htmlToMarkdown(parser.replace(props.task.description))} |
There was a problem hiding this comment.
Huh? Why are we converting to HTML and back to markdown?? This was not part of the proposal, was it?
There was a problem hiding this comment.
I have mentioned in this #29144 (comment)
So when submitting the description to BE, I keep using the original logic (let BE save the mark down string) rather than convert mark down to HTML.
There was a problem hiding this comment.
Hmmmm but comments are saved in the DB as html, no? So this would mean saving things differently than for comments? That does not sound correct...right?
There was a problem hiding this comment.
- Yeah. Comments and Privates notes are saved on BE side as HTML. As I mentioned above, with the description, I found out that if we let BE store the HTML, for example,
Hello
123, it just stores as "Hello123" - So if we want to store description as HTML, we need the BE fix
There was a problem hiding this comment.
Yeah I don't think we would want to save html in one place and markdown in the other.... can you comment on the OG issue what changes would need to be done in the backend please?
5b9f5a8 to
daf413c
Compare
|
@iwiznia Please help review this PR again. Please note that we will use the solution that I mentioned before #29144 (comment) |
|
✋ 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 production by https://github.com/luacmartins in version: 1.4.1-13 🚀
|



Details
Inconsistency bug - Assign Task - Task description does not remove empty quotes (works fine in private notes)
Fixed Issues
$ #28342
PROPOSAL: #28342 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Screencast.from.10-10-2023.13.23.11.webm
Android: mWeb Chrome
android-chrome-quote.mp4
iOS: Native
native.mov
iOS: mWeb Safari
ios.mp4
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov