Skip to content

AI Assistant: DataGrid - write JS frameworks demos (Angular)#33665

Open
Raushen wants to merge 7 commits into
DevExpress:26_1from
Raushen:AIAssistant-Demo-Angular
Open

AI Assistant: DataGrid - write JS frameworks demos (Angular)#33665
Raushen wants to merge 7 commits into
DevExpress:26_1from
Raushen:AIAssistant-Demo-Angular

Conversation

@Raushen
Copy link
Copy Markdown
Contributor

@Raushen Raushen commented May 21, 2026

No description provided.

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

Adds an Angular-based DataGrid “AI Assistant” demo to the DevExtreme demos app, including an OpenAI/AzureOpenAI-backed AIIntegration implementation and a demo UI that wires DataGrid’s AI assistant to a chat/suggestions configuration.

Changes:

  • Added a new Angular demo entry for DataGrid AI Assistant (standalone Angular bootstrap + DataGrid configuration).
  • Implemented an Angular AiService that provides AIIntegration and calls the demo Azure OpenAI endpoint (with retry behavior).
  • Updated the Angular SystemJS config to load zod and zod-to-json-schema from node_modules paths.

Reviewed changes

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

Show a summary per file
File Description
apps/demos/Demos/DataGrid/AIAssistant/Angular/index.html Adds the Angular demo host page (SystemJS bootstrapping).
apps/demos/Demos/DataGrid/AIAssistant/Angular/app/app.component.ts Adds the standalone Angular component wiring DataGrid + chat suggestions behavior.
apps/demos/Demos/DataGrid/AIAssistant/Angular/app/app.component.html Defines the DataGrid configuration including dxo-data-grid-ai-assistant.
apps/demos/Demos/DataGrid/AIAssistant/Angular/app/ai/ai.service.ts Adds AIIntegration implementation calling the demo Azure OpenAI endpoint (with retry).
apps/demos/configs/Angular/config.js Adjusts SystemJS mappings for zod and zod-to-json-schema.

Comment thread apps/demos/Demos/DataGrid/AIAssistant/Angular/app/ai/ai.service.ts
Comment thread apps/demos/Demos/DataGrid/AIAssistant/Angular/app/ai/ai.service.ts
Comment thread apps/demos/Demos/DataGrid/AIAssistant/Angular/app/ai/ai.service.ts
Comment thread apps/demos/Demos/DataGrid/AIAssistant/Angular/app/app.component.ts
Comment thread apps/demos/Demos/DataGrid/AIAssistant/Angular/app/app.component.ts
Copilot AI review requested due to automatic review settings May 21, 2026 17:48
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 6 changed files in this pull request and generated 3 comments.

Comment thread apps/demos/Demos/DataGrid/AIAssistant/Angular/app/ai/ai.service.ts
Comment thread apps/demos/Demos/DataGrid/AIAssistant/Angular/app/ai/ai.service.ts
Comment thread apps/demos/Demos/DataGrid/AIAssistant/Angular/app/app.component.ts
};
}

onSuggestionItemClick(e: DxButtonGroupTypes.ItemClickEvent) {
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.

ItemClickEvent is generic, DxButtonGroupTypes.ItemClickEvent should work without necessity of assserion

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Let's leave it as is as it writes the ItemClickEvent is not generic

},
};

const response = await service.chat.completions.create(params as any, { signal });
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.

Just a reminder about any which we want to get rid of (=

@@ -0,0 +1,119 @@
import { AzureOpenAI, OpenAI } from 'openai';
import type { ChatCompletionCreateParamsNonStreaming } from 'openai/resources/chat/completions';
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.

use OpenAI.ChatCompletionCreateParamsNonStreaming instead, as that is unsafe import (=

Copilot AI review requested due to automatic review settings May 22, 2026 14:35
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 6 changed files in this pull request and generated 1 comment.

Comment thread apps/demos/Demos/DataGrid/AIAssistant/Angular/app/ai/ai.service.ts
@Raushen Raushen closed this May 22, 2026
@Raushen Raushen reopened this May 22, 2026
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.

4 participants