Skip to content

DataGrid - AI Assistant: set fixed default popup height#34289

Open
Alyar666 wants to merge 3 commits into
DevExpress:mainfrom
Alyar666:datagrid_ai_assistant_add_default_height_26_2
Open

DataGrid - AI Assistant: set fixed default popup height#34289
Alyar666 wants to merge 3 commits into
DevExpress:mainfrom
Alyar666:datagrid_ai_assistant_add_default_height_26_2

Conversation

@Alyar666

Copy link
Copy Markdown
Contributor

No description provided.

@Alyar666 Alyar666 self-assigned this Jul 13, 2026
Copilot AI review requested due to automatic review settings July 13, 2026 19:24
@Alyar666 Alyar666 requested a review from a team as a code owner July 13, 2026 19:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Sets a fixed default height for the DataGrid AI Assistant popup (instead of computing it from the grid layout), and adds an integration test to validate the default and overridden heights.

Changes:

  • Introduced AI_ASSISTANT_POPUP_HEIGHT constant (560) for the default popup height.
  • Updated AIAssistantView to use the fixed default height while still allowing aiAssistant.popup overrides.
  • Added an integration test verifying the default height and a custom aiAssistant.popup.height value; extended the AI chat test model with popup height helpers.

Reviewed changes

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

File Description
packages/devextreme/js/__internal/grids/grid_core/ai_assistant/const.ts Adds a shared constant for the default AI Assistant popup height.
packages/devextreme/js/__internal/grids/grid_core/ai_assistant/ai_assistant_view.ts Switches popup height from dynamic calculation to a fixed default height.
packages/devextreme/js/__internal/grids/grid_core/ai_assistant/tests/ai_assistant_view.integration.test.ts Adds integration coverage for default and overridden popup heights.
packages/devextreme/js/__internal/grids/grid_core/tests/mock/model/ai_chat.ts Adds helpers to locate popup content and read its height for tests.

Copilot AI review requested due to automatic review settings July 14, 2026 09:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 4 out of 12 changed files in this pull request and generated 2 comments.

Copilot AI review requested due to automatic review settings July 14, 2026 10:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 4 out of 13 changed files in this pull request and generated 2 comments.

// @ts-expect-error type declaration
height: () => this.getPopupHeight(),
_ignoreFunctionValueDeprecation: true,
height: AI_ASSISTANT_POPUP_HEIGHT,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

other default popup options were defined in DEFAULT_POPUP_OPTIONS inside grid_core/ai_chat/const.ts, lets move this const here too for consistency

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