Skip to content

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

Merged
hramini merged 2 commits intomainfrom
devin/REF-22-1714925752
May 5, 2025
Merged

REF-22: Implement loading state animation for chat interface#24
hramini merged 2 commits intomainfrom
devin/REF-22-1714925752

Conversation

@devin-ai-integration
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>
@devin-ai-integration
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