-
Notifications
You must be signed in to change notification settings - Fork 67
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(ui): fix deletion issue for topmost quick reply #21
base: main
Are you sure you want to change the base?
Conversation
frontend/src/components/visual-editor/form/inputs/message/QuickRepliesInput.tsx
Outdated
Show resolved
Hide resolved
Thank you @Osho957 When deleting the first input and submitting the form, a validation message is displayed : I think we need to pass the "minInput" prop as "0" in the Attachement Message Form. WDYT ? |
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.
Almost there 👏
@marrouchi I have gone through the attachment message form and quick replies input code and figured it out that when a quick reply is present then at the time of submission it checks for the validation if it is empty which in my opinion is good Submit Recording without quick reply Submit recording with quick reply |
frontend/src/components/visual-editor/form/inputs/message/QuickRepliesInput.tsx
Outdated
Show resolved
Hide resolved
frontend/src/components/visual-editor/form/inputs/message/QuickRepliesInput.tsx
Outdated
Show resolved
Hide resolved
frontend/src/components/visual-editor/form/inputs/message/QuickRepliesInput.tsx
Outdated
Show resolved
Hide resolved
frontend/src/components/visual-editor/form/inputs/message/QuickRepliesInput.tsx
Outdated
Show resolved
Hide resolved
@marrouchi can you review 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.
Looks great to me
@marrouchi @medtaher123 is there anything remaining in this task please do let me know |
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 👍
Hi @Osho957,
|
Motivation
This PR fixes an issue with the deletion functionality for the topmost quick reply in the UI. The bug was causing the quick reply at the top of the list not to be removed correctly, potentially affecting the user experience.
Fixes #15
Type of change
Please delete options that are not relevant.
Checklist:
ScreenRecording with updated functionality
Screen.Recording.2024-09-16.at.5.27.06.PM.mov