Skip to content
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

Formatting bugs triage #823

Closed
8 of 9 tasks
koke opened this issue Apr 5, 2019 · 15 comments
Closed
8 of 9 tasks

Formatting bugs triage #823

koke opened this issue Apr 5, 2019 · 15 comments
Labels
[Pri] Low [Type] Bug Something isn't working

Comments

@koke
Copy link
Member

koke commented Apr 5, 2019

I'm migrating the list from #275 here so we can test again and create individual issues for those bugs that are still relevant:

  • [Android] Word gets "bold": Start with two words text like "two words". Place the cursor between the space and the "w". Tap on "B" to turn on bold. Type a few chars and press "space". Notice the "word" becoming strong while it shouldn't. 👉 Format propagates to adjacent word after typing a space #824
  • [iOS] Style doesn't apply: Start with "two words". Place the cursor between the space and the "w". Tap on "B" to turn on bold. Type a few chars and notice that only the first new char is in bold. The rest are not styled.
  • [Android] Selection is dropped. Select a word and style it (example: to bold) by tapping on a toolbar button. Word gets stlyed but selection is removed. 👉 Selection is dropped when formatting #825
  • Haven't replicated this but as per Tug: it seems AztecEditor-iOS returns <strike> tags instead of <del> in some cases. It causes inconsistencies in the selected formats on iOS. 👉 Aztec rewrites HTML and formatting is lost #832
  • [Android] Known issue: "b" tags are not recognized by the format-library as "bold" so, the toolbar doesn't highlight the "B" button when the cursor is on a <b></b> section. That behavior is same on GB-web but I think it's counter-intuitive.
  • [iOS] on iOS, the editor mutates the markup, replacing <b> with <strong>s. Issue it that this doesn't align with what Gutenberg-web does. 👉 Aztec rewrites HTML and formatting is lost #832
  • [Both platforms] Styling issues as reported by Thomas above. 👉 Links UI using BottomSheet component #623
  • [Android] Style button gets highlighted again. See video reported by @daniloercoli : https://cloudup.com/cXNXc52YxKK 👉 Formatting button can't be unchecked in some cases #834
  • [Android] Note for the next pass/fixes: setting the last content from the "onSelectionChange" event feels wrong and we should remove it. Makes the logic more complex and it may introduce Aztec/RN sync bugs.
@koke
Copy link
Member Author

koke commented Apr 5, 2019

[iOS] Style doesn't apply

Seems to work fine on WPiOS 12.1

@koke
Copy link
Member Author

koke commented Apr 5, 2019

AztecEditor-iOS returns <strike> tags instead of <del>

"b" tags are not recognized by the format-library as "bold"

the editor mutates the markup, replacing <b> with <strong>s

Just by those descriptions, I'm not sure how much we should care about this. Is this something that would happen often? Can we describe it as an actual use case that a user would experience? @Tug @hypest

@koke
Copy link
Member Author

koke commented Apr 5, 2019

Style button gets highlighted again

I can't reproduce this one on alpha-160 🎉

@koke
Copy link
Member Author

koke commented Apr 5, 2019

setting the last content from the "onSelectionChange" event feels wrong and we should remove it

@hypest Feel free to create an issue for this if it's still relevant, but I'm keeping it out of the bug fixes list

@koke koke closed this as completed Apr 5, 2019
@Tug
Copy link
Contributor

Tug commented Apr 5, 2019

AztecEditor-iOS returns <strike> tags instead of <del>

I can reproduce quite consistently when mixing formats (bold inside strike inside strikethrough, at some point aztec iOS rewrites the HTML using it's own tags and it causes inconsistencies in the current formats.

"b" tags are not recognized by the format-library as "bold"

Well it's also the case on the web. Unless gutenberg web decides to tackle it we should probably ignore this "bug"

the editor mutates the markup, replacing <b> with <strong>s

Same as the first bug you mentioned (with del and strike), I think it's quite important that we fix it imo. We either need to switch the default tags for Aztec (easiest solution) or distinguish between different types of the same styles and have a 1:1 mapping between our aztec format and our generated tags (harder).

@hypest
Copy link
Contributor

hypest commented Apr 5, 2019

@koke koke closed this 2 hours ago

Seems like at the time of writing, there are a few checklist items that are still undone so, can you share more context about why the ticket was closed @koke ? Thanks!

@koke
Copy link
Member Author

koke commented Apr 5, 2019

I can reproduce quite consistently when mixing formats

@Tug I'm trying every combination I could think of in WPiOS Internal 12.1, and can't see any issues. Can you share some reproduction steps?

@koke
Copy link
Member Author

koke commented Apr 5, 2019

can you share more context about why the ticket was closed

@hypest sure. As I mentioned, the remaining issues didn't seem worth fixing from my understanding at the moment. After Tug's comment, if we can reproduce the tag rewrite thing, it should be on a new separate issue.

More generally, I think master issues/checklists like this have been useful in the past but can be problematic when trying to prioritize each item separately, or track their progress. I think we should start restricting master issues to be temporary. Like this one, make a checklist for a bug scrub with the intention to be done with it in a short period of time. Any results that take longer would go to a new issue.

@koke
Copy link
Member Author

koke commented Apr 5, 2019

Created #832 for the nested tags problem

@mzorz
Copy link
Contributor

mzorz commented Apr 5, 2019

[Android] Style button gets highlighted again. See video reported by @daniloercoli : https://cloudup.com/cXNXc52YxKK

I can't reproduce this one on alpha-160 🎉

I can reproduce on develop on a Pixel 2 with Android 8.1 😕

Will open an issue and track it down here 👍

@hypest
Copy link
Contributor

hypest commented Apr 5, 2019

Thanks for expanding @koke .

How about striking through the checklist items we think don't need action or are already obsolete? What is weird to me is to have a checklist with unchecked items but the whole ticket being closed. The items should either be "open" (and the ticket open too) or closed in some form (either checked or striken-through). Otherwise it's not clear if tasks are actually pending or not.

@koke
Copy link
Member Author

koke commented Apr 5, 2019

I can reproduce on develop on a Pixel 2 with Android 8.1 😕

Will open an issue and track it down here 👍

😢 Thanks for checking @mzorz. I've added a note to the "2.0 Bugs" column in the right position, please convert that to an issue and add the details there

@koke koke reopened this Apr 5, 2019
@koke
Copy link
Member Author

koke commented Apr 5, 2019

@hypest I just wanted the issue out of the project 😂 I've reopened and removed it from the project until we have issues for all the items

@mzorz
Copy link
Contributor

mzorz commented Apr 5, 2019

I've added a note to the "2.0 Bugs" column in the right position, please convert that to an issue and add the details there

Converted to issue and added details in #834

@SergioEstevao SergioEstevao added [Type] Bug Something isn't working [Pri] Low labels May 4, 2020
@SergioEstevao
Copy link
Contributor

It looks all the issues are addressed and the only remaining issue is a tech debt question for RichtText.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Pri] Low [Type] Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants