Skip to content

AI Assistant: adjust command descriptions#33636

Merged
anna-shakhova merged 6 commits into
DevExpress:26_1from
anna-shakhova:26_1__ai_assistant_descriptions
May 20, 2026
Merged

AI Assistant: adjust command descriptions#33636
anna-shakhova merged 6 commits into
DevExpress:26_1from
anna-shakhova:26_1__ai_assistant_descriptions

Conversation

@anna-shakhova
Copy link
Copy Markdown
Contributor

No description provided.

@anna-shakhova anna-shakhova self-assigned this May 19, 2026
@anna-shakhova anna-shakhova force-pushed the 26_1__ai_assistant_descriptions branch from 8aca5e0 to edefc48 Compare May 20, 2026 11:33
@anna-shakhova anna-shakhova marked this pull request as ready for review May 20, 2026 11:33
@anna-shakhova anna-shakhova requested a review from a team as a code owner May 20, 2026 11:33
Copilot AI review requested due to automatic review settings May 20, 2026 11:33
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 refines the AI Grid Assistant’s command guidance and user-facing messages, and adjusts a few command behaviors to better match the intended “human-friendly” indexing and configuration semantics.

Changes:

  • Switch selectByIndexes to accept 1-based row indexes (normalize to 0-based internally) and update related tests/messages.
  • Update paging command messaging to display 1-based page numbers to the user.
  • Tighten summary command args contract (require both totalItems and groupItems) and strengthen system prompt guidance around optional args emission.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
packages/devextreme/js/__internal/grids/grid_core/ai_assistant/commands/selection.ts Adjusts selectByIndexes to treat input as 1-based and normalizes before calling the grid API; expands clearSelection description.
packages/devextreme/js/__internal/grids/grid_core/ai_assistant/commands/paging.ts Updates pageIndex description and default message to show 1-based page numbers.
packages/devextreme/js/__internal/grids/grid_core/ai_assistant/commands/focus.ts Tweaks focusRowByKey description text.
packages/devextreme/js/__internal/grids/grid_core/ai_assistant/commands/columns.ts Updates command descriptions and changes Zod import style.
packages/devextreme/js/__internal/grids/grid_core/ai_assistant/commands/tests/selection.test.ts Updates tests to match 1-based selectByIndexes input.
packages/devextreme/js/__internal/grids/grid_core/ai_assistant/commands/tests/paging.test.ts Updates tests for the new 1-based page number messaging.
packages/devextreme/js/__internal/grids/data_grid/ai_assistant/commands/summary.ts Makes totalItems/groupItems required, updates summary/clearSummary descriptions, and changes clear behavior to write empty arrays.
packages/devextreme/js/__internal/grids/data_grid/ai_assistant/commands/tests/summary.test.ts Updates schema and execution tests to require both arrays and validate new clear behavior.
packages/devextreme/js/__internal/core/ai_integration/templates/index.ts Strengthens system prompt rules for omitting unused optional fields in generated actions.

@anna-shakhova anna-shakhova force-pushed the 26_1__ai_assistant_descriptions branch from edefc48 to 268c5a6 Compare May 20, 2026 11:39
Copilot AI review requested due to automatic review settings May 20, 2026 12:05
@anna-shakhova anna-shakhova force-pushed the 26_1__ai_assistant_descriptions branch from 268c5a6 to c06db67 Compare May 20, 2026 12:05
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 9 out of 9 changed files in this pull request and generated 2 comments.

@anna-shakhova anna-shakhova force-pushed the 26_1__ai_assistant_descriptions branch from c06db67 to 3603a9d Compare May 20, 2026 12:19
@anna-shakhova anna-shakhova merged commit c8b70fd into DevExpress:26_1 May 20, 2026
176 of 183 checks passed
@anna-shakhova anna-shakhova deleted the 26_1__ai_assistant_descriptions branch May 20, 2026 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants