dxDataGrid - AI Assistant: Implement partial re-rendering of messages when their status is updated#33531
Merged
Alyar666 merged 3 commits intoDevExpress:26_1from May 8, 2026
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the dxDataGrid AI Assistant’s chat rendering pipeline to support partial message updates when message status changes, relying on dxChat’s DataSource push-update path rather than full reloads.
Changes:
- Added message lookup by id and updated the dxChat
messageTemplateto re-read the latest message data fromcomponent.option('items'), avoiding stale template data during partial updates. - Switched AI message header/error rendering to use
text(header, to trigger dxChat bubble updates) anderrorText(details), and adjusted controller push updates accordingly. - Expanded unit/integration tests to cover status transitions and verify only the updated message DOM node re-renders.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/devextreme/js/__internal/grids/grid_core/ai_chat/utils.ts | Adds findMessageById helper for resolving the latest message instance by id. |
| packages/devextreme/js/__internal/grids/grid_core/ai_chat/ai_chat.ts | Updates message templating to use fresh item data; uses text as the header trigger and errorText for error details. |
| packages/devextreme/js/__internal/grids/grid_core/ai_chat/ai_chat.test.ts | Refactors template invocation helpers and adds coverage for “stale template vs fresh items” behavior. |
| packages/devextreme/js/__internal/grids/grid_core/ai_assistant/ai_assistant_controller.ts | Adjusts pushed message fields (text/errorText), pending/error headers, and removes reshapeOnPush to enable push-change-based partial updates. |
| packages/devextreme/js/__internal/grids/grid_core/ai_assistant/tests/ai_assistant_view_controller.integration.test.ts | Adds end-to-end-ish coverage for pending/success/failure rendering and “only updated message re-renders” behavior. |
added 2 commits
May 8, 2026 15:38
… when their status is updated
7cbd2bf to
a3fbaaf
Compare
anna-shakhova
approved these changes
May 8, 2026
dmirgaev
approved these changes
May 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.