-
Notifications
You must be signed in to change notification settings - Fork 3
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
fix(rich-text-editor): NO-JIRA multiple improvements #402
Conversation
Please add either the |
On Conversation View -> Message input -> Default vue2 if you press enter, it doesn't add a jump line, it does it in vue3 Screen.Recording.2024-07-10.at.11.59.37.movNon on vue3 if you press arrow down key it trigger console error. Screen.Recording.2024-07-10.at.11.58.03.mov |
packages/dialtone-vue2/components/rich_text_editor/extensions/suggestion/SuggestionList.vue
Show resolved
Hide resolved
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.
Apart from my comments, fixs looks good
It's actually only supposed to add a line if you use "shift + enter" pressing enter normally would send the message. I will look into this. |
Couple more small requested fixes that came in from design today that I will add and document. |
Added:
|
K, seems like in vue3 it sends the actions and also adds a jump line. |
onKeyDown ({ event }) { | ||
if (this.items.length === 0) return; |
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.
This seems like not working, I can still trigger errors in console pressing arrow keys
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.
This seems like not working, I can still trigger errors in console pressing arrow keys
hmm can you tell me the steps you take to trigger this?
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.
ahh, seems like this.items
is not empty on a second search so it always pass this validation.
Check the video, after I type @
I start to press the down arrow key.
Then I delete it and type again @
and start to press down arrow key, console error appears.
Screen.Recording.2024-07-10.at.18.55.06.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.
There is another issue but it was there before.
If you press up arrow key it triggers a console error that seems to be related to destroy the popup (probably because you are moving out the @)
To reproduce type @
and quickly up arrow key.
Screen.Recording.2024-07-10.at.18.58.08.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.
Check the video, after I type
@
I start to press the down arrow key.
Then I delete it and type again@
and start to press down arrow key, console error appears.
Ah yeah, seems to happen if you press the arrow key before the dialog is loaded
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.
The variables for the component and the popup in suggestion.js were not getting set to null after being destroyed. They still had an object in them even though they were destroyed which kept many things "alive" when they shouldn't have been.
Should be fixed now.
Sorry for disrupting here, but I noticed some issues with the input when adding Screen.Recording.2024-07-11.at.09.16.01.movprobably we need to execute submit action on those cases? |
Ah yeah, that's definitely a problem, thanks. |
@bianca-artola-dialpad should be fixed now. |
UPDATE: oops, I guess I meant to address this to @braddialpad (never mind @bianca-artola-dialpad) New tiny (I promise) improvement while you're in here: Change... .dt-message-input--focused {
...
} ...to... .dt-message-input:focus-within {
...
} This will remove the awkward blinking observed as Oh, and I assume remove associated tests and the current toggling of Thanks much! Let me know if you've any questions. Screen.Recording.2024-07-11.at.9.52.00.PM.mov |
yeah, I cannot reproduce it anymore, thank you! |
Fixed now. |
✔️ Deploy previews ready! |
# [9.55.0](dialtone/v9.54.2...dialtone/v9.55.0) (2024-07-12) ### Bug Fixes * NO-JIRA corrupted pnpm-lock file ([4f732c8](4f732c8)) * **Rich Text Editor:** NO-JIRA multiple improvements ([#402](#402)) ([c30b3a7](c30b3a7)) ### Documentation * DLT-1787 implement custom TOC ([#397](#397)) ([bf82624](bf82624)) * **Logo:** DLT-1866 modify dialtone documentation logo ([#403](#403)) ([8047550](8047550)) ### Features * **Design Tokens:** DLT-1870 additional expressive typography tokens ([#404](#404)) ([2bdc3a5](2bdc3a5)) * **Design Tokens:** DLT-1871 added gold brand color ([#405](#405)) ([ab0d032](ab0d032)) * **Multi Select:** DLT-1845 allow duplicated names on multiselect ([#394](#394)) ([ff8be5f](ff8be5f)) * **Scrollbar:** DLT-1473 add scrollbar directive ([#391](#391)) ([05af2ff](05af2ff))
# [2.143.0](dialtone-vue2/v2.142.2...dialtone-vue2/v2.143.0) (2024-07-12) ### Bug Fixes * **Rich Text Editor:** NO-JIRA multiple improvements ([#402](#402)) ([c30b3a7](c30b3a7)) ### Features * **Multi Select:** DLT-1845 allow duplicated names on multiselect ([#394](#394)) ([ff8be5f](ff8be5f)) * **Scrollbar:** DLT-1473 add scrollbar directive ([#391](#391)) ([05af2ff](05af2ff))
# [3.136.0](dialtone-vue3/v3.135.2...dialtone-vue3/v3.136.0) (2024-07-12) ### Bug Fixes * **Rich Text Editor:** NO-JIRA multiple improvements ([#402](#402)) ([c30b3a7](c30b3a7)) ### Features * **Multi Select:** DLT-1845 allow duplicated names on multiselect ([#394](#394)) ([ff8be5f](ff8be5f)) * **Scrollbar:** DLT-1473 add scrollbar directive ([#391](#391)) ([05af2ff](05af2ff))
fix(rich-text-editor): multiple improvements
Obligatory GIF (super important!)
🛠️ Type Of Change
These types will increment the version number on release:
📖 Jira Ticket
https://dialpad.atlassian.net/browse/DLT-1825
https://dialpad.atlassian.net/browse/DLT-1858
https://dialpad.atlassian.net/browse/DLT-1856
https://dialpad.atlassian.net/browse/DLT-1674
📖 Description
Fixes for multiple reported issues with rich-text-editor / message-input
💡 Context
Reported issues from the implementation of message input into dialpad.
📝 Checklist
For all PRs:
For all Vue changes:
./scripts/dialtone-vue-sync.sh
script. Read docs here: Dialtone Vue Sync ScriptFor all CSS changes:
🔮 Next Steps
Notify the messaging team that these have been fixed.