-
Notifications
You must be signed in to change notification settings - Fork 44
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
#6512 - Update Editor Component UI - Toolbar Lists #6605
Conversation
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.
- in ordered list, if you have multiple lines selected, order is not maintained
Kapture.2024-02-07.at.12.54.02.mp4
- for each type of list, it works only for the first entry line. Expected behaviour should be to keep using selected list type after clicking return
Kapture.2024-02-07.at.12.53.05.mp4
@Miaplacidus my understanding is that if you're inside a list, hitting enter/return should create a new list bullet automatically (which you can then backspace out of to end the list), which is fairly standard editor dynamics across the web. |
I believe there are some Markdown style guides which prefer pre-rendered ordered lists to read as they currently do in the PR, e.g.
But I do agree it can be confusing to users, especially nontechnical users/those not familiar with Markdown, who won't realize that the MD above renders normally to 1, 2, 3 |
What's left to get this in? I am not seeing any unresolved issues here, is this ready to go into v0.9.5 today? @masvelio @jnaviask @ilijabojanovic |
To give an update here, the toolbar specifically the toolbar in markdown mode is not currently setup to be a "toggle" but more-so a modifier. For example if you highlight something then hit the button it'll format as a list or whatever format you desire but if you hit enter and continue. That selection is no longer present. I'm currently working that out and just wanted the update into writing. |
The highlighting list items and selecting the ordered list button now correctly increments the list to how many lines are highlighted. As for @masvelio 's comment about hitting enter and it should continue the list after speaking with @CowMuon this will be a separate ticket: #6683 Reopening the ticket since the above comments have been addressed. |
Are we following github markdown? If yes then clicking on any list button (check list, bullet list, numbered list) should toggle list. Our App Screen.Recording.2024-02-09.at.9.38.56.PM.movGithub Screen.Recording.2024-02-09.at.9.40.28.PM.movEdit: just realized that others have already mentioned this above |
After the first list item (on the next line), if we press the numbered list button again, it starts from
but i believe this issue is different (not sure if we plan to resolve this in #6683 or resolve it at all? -- plz confirm @lzach83) Screen.Recording.2024-02-09.at.9.43.26.PM.mov |
Your first comment, good find I'll implement the fix for that now. Second, Yeah it's because there's no context available to the toolbar so when you click that button is creates a new list rather than extending the current list. This may be solved in #6683 certainly the availability of that context will be established so it might inheritly be solved. |
@mzparacha All set on this to re-review. Thank you |
Is this fixed? It doesn't seem so. Kapture.2024-02-13.at.12.47.35.mp4Also noticed another issue that probably is a blocker for this PR. Basically if you do not highlight the list first but you want to use it, it always starts the list in the first line of the editor, regardless the cursor position. Kapture.2024-02-13.at.12.48.39.mp4 |
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.
Yes! Appears to be finally ready to go in. Given the history on this story would be good to have additional eyes on this. (What did I miss!)
packages/commonwealth/client/scripts/views/components/react_quill_editor/toolbar.tsx
Show resolved
Hide resolved
…uce for readability.
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.
LGTM
Allows user to create a list without selecting text first.
Link to Issue
Closes: #6512
Description of Changes
Test Plan
Other considerations
Keep in mind there is a seperate ticket for continuing a list via the enter button: #6683