Skip to content

✨AI Column: Methods and handlers#31275

Merged
Raushen merged 65 commits into
DevExpress:25_2from
Raushen:AI-Column-Methods
Oct 24, 2025
Merged

✨AI Column: Methods and handlers#31275
Raushen merged 65 commits into
DevExpress:25_2from
Raushen:AI-Column-Methods

Conversation

@Raushen
Copy link
Copy Markdown
Contributor

@Raushen Raushen commented Oct 8, 2025

No description provided.

Raushen added 30 commits September 18, 2025 19:05
…olumn-Properrties-Part1

# Conflicts:
#	packages/devextreme/js/__internal/grids/grid_core/ai_column/ai_column.integration.test.ts
#	packages/devextreme/js/__internal/grids/grid_core/ai_column/m_ai_column_controller.ts
#	packages/devextreme/js/__internal/grids/grid_core/ai_column/m_ai_column_integration_controller.ts
dmlvr
dmlvr previously approved these changes Oct 17, 2025
@vladaskorohodova
Copy link
Copy Markdown
Contributor

lgtm

@AlisherAmonulloev
Copy link
Copy Markdown
Contributor

LGTM

@marker-dao
Copy link
Copy Markdown
Contributor

Lgtm

pomahtri
pomahtri previously approved these changes Oct 20, 2025
@Alyar666 Alyar666 self-requested a review October 21, 2025 07:25

return {
data,
additionalInfo: response.additionalInfo,
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.

Shouldn't 'response.additionalInfo' be parsed too?

Copy link
Copy Markdown
Contributor Author

@Raushen Raushen Oct 21, 2025

Choose a reason for hiding this comment

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

We expected this field will be read-to-use in the onAIColumnResponseReceived handler as its value came not from AI, but from an endpoint. So yes, it was planned it is already dictionary.
However we gonna to avoid using this handler and prefer do all necessary operations on the aiIntegration.sendRequest level. In the future there will be a task removing this field.

Copilot AI review requested due to automatic review settings October 21, 2025 15:20
@Raushen Raushen dismissed stale reviews from pomahtri and dmlvr via 3ec15bd October 21, 2025 15:20
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 implements core methods and handlers for the AI Column feature in the DevExtreme DataGrid, focusing on request management, caching, and event handling.

Key Changes:

  • Added abortRequest, sendRequest, and refresh methods with per-column tracking
  • Implemented onAIColumnRequestCreating and onAIColumnResponseReceived event handlers
  • Added caching logic to avoid redundant AI requests for already-processed data

Reviewed Changes

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

Show a summary per file
File Description
m_toast_view.ts Improved toast component creation and positioning configuration
m_data_controller.ts Exported UserData type for use in AI column utilities
m_columns_controller.ts Added getColumnByName helper method for column lookup
utils.ts Created utility functions for data extraction and cache filtering
utils.test.ts Added comprehensive unit tests for utility functions
m_ai_column_view.ts Updated abort calls to include column name parameter
m_ai_column_integration_controller.ts Implemented request lifecycle management with caching and event handlers
m_ai_column_controller_utils.ts Deleted (functionality moved to utils.ts)
m_ai_column_controller.ts Refactored to use integration controller for request handling
m_ai_column_cache_controller.ts Updated return type to non-nullable empty object
ai_column.integration.test.ts Added extensive integration tests for API methods and event handlers
generateGridColumn.ts Enhanced response parsing to handle both string and object responses
dependencies.ts Added 'toast' dependency to datagrid and gantt components

Copilot AI review requested due to automatic review settings October 22, 2025 05:44
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 13 out of 15 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings October 22, 2025 09:43
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 13 out of 15 changed files in this pull request and generated 5 comments.

Copilot AI review requested due to automatic review settings October 23, 2025 12:39
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 13 out of 15 changed files in this pull request and generated 2 comments.

@Raushen Raushen merged commit 79248de into DevExpress:25_2 Oct 24, 2025
138 checks passed
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.

9 participants