-
Notifications
You must be signed in to change notification settings - Fork 32
Dynamic AI response status and related resources display #2030
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds dynamic AI response status indicators and references display to enhance the user experience during AI conversations. The changes provide real-time feedback about the AI's processing state and display source documents referenced in responses.
- Real-time status messages that progress through different AI processing states ("Thinking" → "Searching" → "Generating" → "Finding sources")
- References section that parses and displays source documents from AI responses using a delimiter-based approach
- Improved UI styling with dynamic send button appearance and refined message spacing
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
AskAiUsecase.cs |
Updates AI prompt to include formatting guidelines and references extraction schema with JSON structure |
RelatedResources.tsx |
New component to parse and display references from AI responses as formatted resource links |
GeneratingStatus.tsx |
New component providing dynamic status indicators based on AI processing state |
ChatMessageList.tsx |
Increases spacing between chat messages for better visual separation |
ChatMessage.tsx |
Integrates new components, splits content/references, and updates UI styling |
Chat.tsx |
Adds input state tracking for dynamic send button styling |
src/Elastic.Documentation.Site/Assets/web-components/SearchOrAskAi/AskAi/ChatMessage.tsx
Show resolved
Hide resolved
src/Elastic.Documentation.Site/Assets/web-components/SearchOrAskAi/AskAi/RelatedResources.tsx
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <[email protected]>
To increase the chance that the json will not be rendered on the UI
Changes
Added dynamic AI response status indicators and references display:
--- references ---
delimiter)Recording
cursorful-video-1760100875529.mp4