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

fix(ui): fix deletion issue for topmost quick reply #21

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

Osho957
Copy link

@Osho957 Osho957 commented Sep 16, 2024

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.

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (Storybook)
  • I have added unit tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

ScreenRecording with updated functionality

Screen.Recording.2024-09-16.at.5.27.06.PM.mov

@marrouchi marrouchi changed the base branch from main to docs/code-conduct September 16, 2024 13:30
@marrouchi marrouchi changed the base branch from docs/code-conduct to main September 16, 2024 13:30
@marrouchi
Copy link
Contributor

Thank you @Osho957

When deleting the first input and submitting the form, a validation message is displayed :
image

I think we need to pass the "minInput" prop as "0" in the Attachement Message Form. WDYT ?

Copy link
Contributor

@marrouchi marrouchi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost there 👏

@Osho957
Copy link
Author

Osho957 commented Sep 17, 2024

@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
also after checking I found that the top most quick reply was not getting removed so that I fixed adding few screenshots of the testing please verify if its as per expectations.

At the time of uploading
Screenshot 2024-09-17 at 3 09 50 PM

After Submit
Screenshot 2024-09-17 at 3 10 15 PM

Submit Recording without quick reply
https://github.com/user-attachments/assets/3636420d-1216-41fe-8935-26fed0feab54

Submit recording with quick reply
https://github.com/user-attachments/assets/b6d16ca8-e15b-4c1a-8f7f-499c2480f9df

@medtaher123
Copy link
Contributor

@marrouchi can you review this

Copy link
Contributor

@medtaher123 medtaher123 left a 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

@Osho957
Copy link
Author

Osho957 commented Oct 2, 2024

@marrouchi @medtaher123 is there anything remaining in this task please do let me know

Copy link
Contributor

@yassinedorbozgithub yassinedorbozgithub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@yassinedorbozgithub
Copy link
Contributor

Hi @Osho957,
The attachment block form have more than issue :

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 [BUG] - Unable to Delete Topmost Quick Reply in Attachment Block
4 participants