Skip to content

DataGrid - AI Assistant: Implement message cleanup#33537

Merged
Alyar666 merged 2 commits into
DevExpress:26_1from
Alyar666:datagrid_ai_assistant_onChatCleared_26_1
May 11, 2026
Merged

DataGrid - AI Assistant: Implement message cleanup#33537
Alyar666 merged 2 commits into
DevExpress:26_1from
Alyar666:datagrid_ai_assistant_onChatCleared_26_1

Conversation

@Alyar666
Copy link
Copy Markdown
Contributor

No description provided.

@Alyar666 Alyar666 self-assigned this May 11, 2026
@Alyar666 Alyar666 requested a review from a team as a code owner May 11, 2026 07:15
Copilot AI review requested due to automatic review settings May 11, 2026 07:15
@Alyar666 Alyar666 added the 26_1 label May 11, 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

Implements “clear chat” behavior for the DataGrid AI Assistant by wiring the clear-chat UI action to a new AIChat.clear() method and adding unit/integration test coverage to ensure messages are removed.

Changes:

  • Added AIChat.clear() to clear the underlying message store and reload the chat’s data source.
  • Wired AIAssistantView’s onChatCleared handler to invoke aiChatInstance.clear().
  • Added unit tests for AIChat.clear() and AIAssistantView’s handler, plus an integration test validating the UI clears rendered messages.

Reviewed changes

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

Show a summary per file
File Description
packages/devextreme/js/__internal/grids/grid_core/ai_chat/ai_chat.ts Adds clear() method to remove all chat messages via the data source/store.
packages/devextreme/js/__internal/grids/grid_core/ai_chat/ai_chat.test.ts Adds unit tests validating clear() behavior and safety when uninitialized.
packages/devextreme/js/__internal/grids/grid_core/ai_assistant/ai_assistant_view.ts Hooks the clear-chat UI callback to AIChat.clear().
packages/devextreme/js/__internal/grids/grid_core/ai_assistant/tests/ai_assistant_view.test.ts Adds a unit test ensuring onChatCleared triggers aiChatInstance.clear().
packages/devextreme/js/__internal/grids/grid_core/ai_assistant/tests/ai_assistant_view_controller.integration.test.ts Adds an integration test that clicking the clear button removes all rendered messages.

@Alyar666 Alyar666 merged commit 4cf80a3 into DevExpress:26_1 May 11, 2026
103 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.

3 participants