Skip to content

dxDataGrid - AI Assistant: Implement partial re-rendering of messages when their status is updated#33531

Merged
Alyar666 merged 3 commits intoDevExpress:26_1from
Alyar666:datagrid_ai_assistant_datasource_26_1
May 8, 2026
Merged

dxDataGrid - AI Assistant: Implement partial re-rendering of messages when their status is updated#33531
Alyar666 merged 3 commits intoDevExpress:26_1from
Alyar666:datagrid_ai_assistant_datasource_26_1

Conversation

@Alyar666
Copy link
Copy Markdown
Contributor

@Alyar666 Alyar666 commented May 8, 2026

No description provided.

@Alyar666 Alyar666 self-assigned this May 8, 2026
@Alyar666 Alyar666 requested a review from a team as a code owner May 8, 2026 10:11
Copilot AI review requested due to automatic review settings May 8, 2026 10:11
@Alyar666 Alyar666 added the 26_1 label May 8, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a 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 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 messageTemplate to re-read the latest message data from component.option('items'), avoiding stale template data during partial updates.
  • Switched AI message header/error rendering to use text (header, to trigger dxChat bubble updates) and errorText (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.

Copilot AI review requested due to automatic review settings May 8, 2026 11:38
@Alyar666 Alyar666 force-pushed the datagrid_ai_assistant_datasource_26_1 branch from 7cbd2bf to a3fbaaf Compare May 8, 2026 11:38
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Comment thread packages/devextreme/js/__internal/grids/grid_core/ai_chat/ai_chat.ts Outdated
@Alyar666 Alyar666 merged commit 9a2a1e9 into DevExpress:26_1 May 8, 2026
107 of 108 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants