Skip to content

REF-22: Implement loading state animation for chat interface #24

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

Merged
merged 2 commits into from
May 5, 2025

Conversation

devin-ai-integration[bot]
Copy link
Contributor

REF-22: Implement Loading State Animation for Chat Interface

Changes Made

  • Added isStreamingComplete state variable to track streaming completion status
  • Modified customHandleSubmit to set isStreamingComplete to false when starting a stream
  • Updated onFinish callback to set isStreamingComplete to true when streaming ends
  • Added error handling to set isStreamingComplete to true in case of errors
  • Updated Messages component to accept isStreamingComplete prop
  • Modified the condition for showing ThinkingMessage to persist during streaming until completion
  • Updated memo comparison function to include the new prop

Testing

  • Verified changes with local development server
  • Confirmed loading animation persists during streaming until completion
  • Ran lint checks to ensure code quality

Link to Devin run

https://app.devin.ai/sessions/a50049bd1a604c78be03b007cefdfd53

Requested by

dev@refact.co

Co-Authored-By: dev@refact.co <dev@refact.co>
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@hramini hramini merged commit 6f4d9de into main May 5, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant