Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
6fe269c
install zod and zon-to-json-schema packages
dmirgaev Apr 28, 2026
4d96e9a
add necessary types for grid commands
dmirgaev Apr 28, 2026
8f7dbed
temporarily add grid_commands_spec.md to observe all the changes
dmirgaev Apr 28, 2026
d217f3b
add default error message to locales
dmirgaev Apr 28, 2026
2cc239a
fix spec types description
dmirgaev Apr 28, 2026
2354bf3
clarify JsonSchema type
dmirgaev Apr 28, 2026
a560f08
fix naming
dmirgaev Apr 28, 2026
95659fd
remove "m_" prefix from AIAssistantIntegrationController
dmirgaev Apr 28, 2026
ca9acf8
GridCommands class draft
dmirgaev Apr 29, 2026
008e4c9
add localized messages
dmirgaev Apr 29, 2026
2a094a8
added tests according to acceptance criteria
dmirgaev Apr 29, 2026
6466470
fix types after rebasing
dmirgaev Apr 29, 2026
1b15cb5
fix after rebasing
dmirgaev Apr 29, 2026
103dbfd
fix ai chat integration
dmirgaev Apr 29, 2026
638581a
remove temporarily added specification
dmirgaev Apr 29, 2026
a77eb45
fix qunit tests
dmirgaev Apr 30, 2026
8a2b773
fix a response validation
dmirgaev Apr 30, 2026
82db686
fix type error and zod-to-json-schema import path
dmirgaev Apr 30, 2026
186d370
fix zod import path for qunit tests
dmirgaev Apr 30, 2026
eea4526
fix import path and format for zod and zod-to-json-schema
dmirgaev Apr 30, 2026
06a6203
fix qunit meta
anna-shakhova May 5, 2026
15c301f
try zod stabs for qunit configuration
anna-shakhova May 5, 2026
eb12dda
Add todo comment and move constants to suitable file
dmirgaev May 6, 2026
7ebcf0d
Add todo comment and remove unnecessary underscore from private props
dmirgaev May 6, 2026
483c4ee
Show a duplication error in console instead of throwing it
dmirgaev May 6, 2026
b475e0c
Combine conditions
dmirgaev May 6, 2026
87c7ed9
Add clarifying comments
dmirgaev May 6, 2026
e748e5e
move execution flag reset into 'finally' block
dmirgaev May 6, 2026
98d0990
simplify systemjs config for qunit tests
dmirgaev May 6, 2026
9a93d2a
add zod and zod-to-json-schema dependencies to e2e tests
dmirgaev May 6, 2026
0ccacf2
add customizeResponseText as second argument
dmirgaev May 6, 2026
899775d
replace console with logger
dmirgaev May 6, 2026
95256be
fix tests
dmirgaev May 6, 2026
305e2f1
simplified option retrieval
dmirgaev May 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions e2e/wrappers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
"tslib": "^2.3.0",
"vue": "^3.5.13",
"vue-router": "^4.3.0",
"zod": "3.24.4",
"zod-to-json-schema": "3.24.6",
"zone.js": "~0.15.0"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export class ExecuteGridAssistantCommand extends BaseCommand<
};
}

// TODO: check response more carefully
protected parseResult(
response: ExecuteGridAssistantCommandResponse,
): ExecuteGridAssistantCommandResult {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ import {
AI_ASSISTANT_AUTHOR_ID,
MessageStatus,
} from '../const';
import { GridCommands } from '../grid_commands';
import type { CommandResult } from '../types';

jest.mock('../grid_commands');

const MockedGridCommands = GridCommands as jest.MockedClass<typeof GridCommands>;

let sendRequestCallbacks: RequestCallbacks<ExecuteGridAssistantCommandResult> = {};

Expand Down Expand Up @@ -59,6 +65,15 @@ const getStore = (controller: AIAssistantController): ArrayStore<Message, string
describe('AIAssistantController', () => {
beforeEach(() => {
jest.clearAllMocks();

// TODO: Rework the tests using updated GridCommands implementation
(MockedGridCommands.mockImplementation as jest.Mock).call(
MockedGridCommands,
() => ({
validate: jest.fn().mockReturnValue(true),
executeCommands: jest.fn<() => Promise<CommandResult[]>>().mockResolvedValue([{ status: 'success', message: 'sort' }]),
}),
);
});

describe('getMessageDataSource', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
beforeTest,
createDataGrid,
} from '../../__tests__/__mock__/helpers/utils';
import { AIAssistantIntegrationController } from '../m_ai_assistant_integration_controller';
import { AIAssistantIntegrationController } from '../ai_assistant_integration_controller';

interface SendRequestResult {
promise: Promise<string>;
Expand Down
Loading
Loading