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

feat: improve user chat input to display spacements #3687

Merged
merged 3 commits into from
Sep 10, 2024

Conversation

Cristhianzl
Copy link
Collaborator

This pull request refactors the chatMessage component to improve its readability and performance. The changes include:

  • Simplifying the classNames usage in the component.

  • Decoding the chatMessage and checking if it is empty.

  • Using conditional rendering to display different content based on the chatMessage and lockChat values.

  • Updating the className and data-testid attributes.

  • Refactoring the rendering of chat files.

  • Adding an id attribute to the last chat message div.

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Sep 4, 2024
@dosubot dosubot bot added the enhancement New feature or request label Sep 4, 2024
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Sep 4, 2024
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-3687.dmtpw4p5recq1.amplifyapp.com

Copy link
Contributor

@anovazzi1 anovazzi1 left a comment

Choose a reason for hiding this comment

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

lgtm

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Sep 5, 2024
@codenprogressive
Copy link

maybe this PR will fix #3456

@anovazzi1 anovazzi1 enabled auto-merge (squash) September 10, 2024 19:29
@anovazzi1 anovazzi1 merged commit 6f8beb8 into main Sep 10, 2024
20 checks passed
@anovazzi1 anovazzi1 deleted the cz/ux-playground-chat branch September 10, 2024 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants