Skip to content

Commit d3b6696

Browse files
committed
Made entries for the modal of /rcc-testcase
1 parent 80c8fc7 commit d3b6696

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

ai-assistant/src/commands/TestcasesCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
SlashCommandContext,
1010
} from "@rocket.chat/apps-engine/definition/slashcommands";
1111
import { persistUIData } from "../utils/persistenceHandlers";
12-
import { improveModal } from "./ImproveCommand.modal";
12+
import { testcasesModal } from "./TestcasesCommand.modal";
1313

1414
export class TestcasesCommand implements ISlashCommand {
1515
public command = "rcc-testcases";
@@ -35,7 +35,7 @@ export class TestcasesCommand implements ISlashCommand {
3535
await modify
3636
.getUiController()
3737
.openSurfaceView(
38-
await improveModal(),
38+
await testcasesModal(),
3939
{ triggerId },
4040
context.getSender()
4141
);

ai-assistant/src/utils/handleModalViewSubmit.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,16 @@ import {
1414
IMPROVE_COMMAND_MODAL,
1515
improveModalSubmitHandler,
1616
} from "../commands/ImproveCommand.modal";
17+
import {
18+
TESTCASES_COMMAND_MODAL,
19+
testcasesModalSubmitHandler,
20+
} from "../commands/TestcasesCommand.modal";
1721
import { getUIData } from "./persistenceHandlers";
1822

1923
const MODALS: Record<string, any> = {
2024
[IMPROVE_COMMAND_MODAL]: improveModalSubmitHandler,
2125
[FIND_SIMILAR_COMMAND_MODAL]: findSimilarModalSubmitHandler,
26+
[TESTCASES_COMMAND_MODAL]: testcasesModalSubmitHandler,
2227
};
2328

2429
export async function handleModalViewSubmit(

0 commit comments

Comments
 (0)