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: show loading message and scroll to buttom in chatroom #133

Merged
merged 1 commit into from
Dec 27, 2024

Conversation

howard9199
Copy link
Contributor

This pull request includes several enhancements and bug fixes to the Chatroom.svelte component. The changes improve the user experience by adding new features and fixing existing issues.

Enhancements to Chatroom.svelte:

  • Added a new isIndividual property to the Chatroom component to handle individual chat sessions.
  • Introduced an animated dots feature to indicate ongoing processing or thinking, which updates every 500 milliseconds.
  • Implemented a new UI element to display a loading message with animated dots when the last message in an individual conversation is from the user.

Bug fixes and minor improvements:

  • Changed the scrollToBottom function to use requestAnimationFrame for smoother scrolling and added a delay using setTimeout to ensure it scrolls correctly.
  • Adjusted the minimum height of the Textarea component to improve the layout.

Updates to ParticipantView.svelte:

  • Passed the new isIndividual property to the Chatroom component when the session status is 'individual'.

@howard9199 howard9199 self-assigned this Dec 27, 2024
@howard9199 howard9199 merged commit 9a34a0b into main Dec 27, 2024
4 checks passed
@howard9199 howard9199 deleted the feat/chatroom-ui-improvements branch December 27, 2024 00:07
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.

1 participant