Skip to content

DataGrid - AI Assistant: update AI Chat regenerate button behavior and move some AIChat utility methods to AIAssistant utils#33571

Merged
Alyar666 merged 3 commits into
DevExpress:26_1from
Alyar666:datagrid_ai_assistant_regenerate_button_behavior_26_1
May 13, 2026
Merged

DataGrid - AI Assistant: update AI Chat regenerate button behavior and move some AIChat utility methods to AIAssistant utils#33571
Alyar666 merged 3 commits into
DevExpress:26_1from
Alyar666:datagrid_ai_assistant_regenerate_button_behavior_26_1

Conversation

@Alyar666
Copy link
Copy Markdown
Contributor

No description provided.

…d move some AIChat utility methods to AIAssistant utils
@Alyar666 Alyar666 self-assigned this May 13, 2026
Copilot AI review requested due to automatic review settings May 13, 2026 12:49
@Alyar666 Alyar666 requested a review from a team as a code owner May 13, 2026 12:49
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

Updates the DataGrid AI Chat UI logic around message state rendering (icons, command list, regenerate button) and consolidates command-status helper utilities under the AI Assistant utilities module.

Changes:

  • Simplified message icon selection to depend only on message.status, and made command list rendering depend only on whether commands are present.
  • Changed regenerate button visibility to show only for failed messages that have no commands.
  • Moved hasCommandErrors / hasAbortedCommands helpers from ai_chat utilities into ai_assistant utilities and added unit tests for them.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/devextreme/js/__internal/grids/grid_core/ai_chat/utils.ts Adjusts icon selection, command list rendering predicate, and regenerate button visibility rules.
packages/devextreme/js/__internal/grids/grid_core/ai_chat/utils.test.ts Updates unit tests to match the new ai_chat/utils behavior and removes tests for moved helpers.
packages/devextreme/js/__internal/grids/grid_core/ai_chat/ai_chat.test.ts Updates integration-style rendering tests to reflect the new icon/regenerate behavior.
packages/devextreme/js/__internal/grids/grid_core/ai_assistant/utils.ts Adds/moves command-status helpers into AI Assistant utilities and removes dependency on ai_chat/utils.
packages/devextreme/js/__internal/grids/grid_core/ai_assistant/utils.test.ts Adds unit tests for the moved command-status helpers.

Comment thread packages/devextreme/js/__internal/grids/grid_core/ai_assistant/utils.test.ts Outdated
Comment thread packages/devextreme/js/__internal/grids/grid_core/ai_assistant/utils.ts Outdated
Comment thread packages/devextreme/js/__internal/grids/grid_core/ai_assistant/utils.ts Outdated
Comment thread packages/devextreme/js/__internal/grids/grid_core/ai_assistant/utils.ts Outdated
Copilot AI review requested due to automatic review settings May 13, 2026 15:49
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 5 out of 5 changed files in this pull request and generated 1 comment.

Comment thread packages/devextreme/js/__internal/grids/grid_core/ai_chat/utils.ts
@Alyar666 Alyar666 merged commit 1688596 into DevExpress:26_1 May 13, 2026
148 of 152 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