HtmlEditor and Chat AI Demos: Create an AI service to make demo code more readable#32154
Merged
marker-dao merged 8 commits intoDevExpress:26_1from Jan 13, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request refactors AI integration code in HtmlEditor and Chat demos by extracting AI service logic into dedicated service files, improving code organization and readability across all framework implementations (Angular, React, ReactJs, and Vue).
Key Changes:
- Created separate service files containing AI integration logic (service.ts/service.js) for both HtmlEditor and Chat demos
- Removed AI service implementation from component files and data files
- Updated imports to use the new service modules
Reviewed changes
Copilot reviewed 23 out of 23 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| apps/demos/Demos/HtmlEditor/AITextEditing/Vue/service.ts | New service file exporting aiIntegration instance with OpenAI integration logic |
| apps/demos/Demos/HtmlEditor/AITextEditing/Vue/App.vue | Updated to import aiIntegration from service.ts instead of defining it inline |
| apps/demos/Demos/HtmlEditor/AITextEditing/ReactJs/service.js | New service file with AI integration logic and config |
| apps/demos/Demos/HtmlEditor/AITextEditing/ReactJs/data.js | Removed AI integration code moved to service.js |
| apps/demos/Demos/HtmlEditor/AITextEditing/ReactJs/App.js | Updated imports to use service.js |
| apps/demos/Demos/HtmlEditor/AITextEditing/React/service.ts | New TypeScript service file with AI integration logic |
| apps/demos/Demos/HtmlEditor/AITextEditing/React/data.ts | Removed AI integration code moved to service.ts |
| apps/demos/Demos/HtmlEditor/AITextEditing/React/App.tsx | Updated imports to use service.ts |
| apps/demos/Demos/HtmlEditor/AITextEditing/Angular/app/app.service.ts | Removed AzureOpenAIConfig and getAzureOpenAIConfig method |
| apps/demos/Demos/HtmlEditor/AITextEditing/Angular/app/app.component.ts | Refactored to use AiService instead of inline AI logic |
| apps/demos/Demos/HtmlEditor/AITextEditing/Angular/app/ai/ai.service.ts | New Angular service encapsulating AI integration logic |
| apps/demos/Demos/Chat/AIAndChatbotIntegration/Vue/service.ts | New service file exporting getAIResponse function |
| apps/demos/Demos/Chat/AIAndChatbotIntegration/Vue/data.ts | Removed AzureOpenAIConfig moved to service.ts |
| apps/demos/Demos/Chat/AIAndChatbotIntegration/Vue/App.vue | Updated to import getAIResponse from service.ts |
| apps/demos/Demos/Chat/AIAndChatbotIntegration/ReactJs/useApi.js | Updated to import getAIResponse from service.js |
| apps/demos/Demos/Chat/AIAndChatbotIntegration/ReactJs/service.js | New service file with AI response logic |
| apps/demos/Demos/Chat/AIAndChatbotIntegration/ReactJs/data.js | Removed AzureOpenAIConfig moved to service.js |
| apps/demos/Demos/Chat/AIAndChatbotIntegration/React/useApi.ts | Updated to import getAIResponse and Message type from service.ts |
| apps/demos/Demos/Chat/AIAndChatbotIntegration/React/service.ts | New TypeScript service file with AI response logic and Message type export |
| apps/demos/Demos/Chat/AIAndChatbotIntegration/React/data.ts | Removed AzureOpenAIConfig moved to service.ts |
| apps/demos/Demos/Chat/AIAndChatbotIntegration/Angular/app/app.service.ts | Refactored to use AiService for AI responses |
| apps/demos/Demos/Chat/AIAndChatbotIntegration/Angular/app/app.component.ts | Added AiService to providers |
| apps/demos/Demos/Chat/AIAndChatbotIntegration/Angular/app/ai/ai.service.ts | New Angular service for AI integration |
mpreyskurantov
requested changes
Jan 12, 2026
6ad3c31 to
d25c52d
Compare
r-farkhutdinov
previously approved these changes
Jan 12, 2026
added 8 commits
January 12, 2026 15:38
83dd370 to
32a051a
Compare
r-farkhutdinov
approved these changes
Jan 13, 2026
mpreyskurantov
approved these changes
Jan 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.