Skip to content

Commit 7f4078e

Browse files
committed
Merge branch 'feature/fix-xterm-logs' into develop
2 parents b990be0 + b67458c commit 7f4078e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+649
-599
lines changed

backend/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "backend",
3-
"version": "1.0.0",
3+
"version": "1.0.1-beta.0",
44
"main": "index.js",
55
"type": "module",
66
"scripts": {
File renamed without changes.

backend/src/services/ai-test-generator.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ JSON Response:
4242
const prompt = `${roleAndTask}\n${rules}\n${dataContext}\n${command}`;
4343

4444
try {
45-
logger.debug(`Sending prompt to AI for ${method.toUpperCase()} ${path}`);
45+
logger.info(`Sending prompt to AI for ${method.toUpperCase()} ${path}`);
4646
const response = await axios.post("http://127.0.0.1:11434/api/generate", {
4747
model: "gemma2:2b",
4848
prompt: prompt,
@@ -58,7 +58,7 @@ JSON Response:
5858
.trim();
5959
}
6060

61-
logger.debug("Raw AI response (cleaned):", aiResponseText);
61+
logger.info("Raw AI response (cleaned):" + aiResponseText);
6262
try {
6363
testCases = JSON.parse(aiResponseText);
6464
} catch (err) {
@@ -68,7 +68,7 @@ JSON Response:
6868
if (!Array.isArray(testCases)) {
6969
throw new Error("AI response is not a JSON array");
7070
}
71-
logger.debug(
71+
logger.info(
7272
`Successfully generated ${
7373
testCases.length
7474
} test cases for ${method.toUpperCase()} ${path}`

backend/src/websocket/socket.config.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ export const setUpWebSocket = (server: HTTPServer) => {
88

99
wss.on("connection", (ws: WebSocket) => {
1010
logger.info("Client has connected!");
11-
ws.send(
12-
JSON.stringify({ type: "status", data: "Connected to WebSocket server!" })
13-
);
11+
ws.send("Connection to the backend successful!");
1412

1513
// Listen for *all* incoming messages
1614
ws.on("message", (raw: string) => handleMessage(ws, raw));

frontend/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ If you are developing a production application, we recommend updating the config
1313

1414
```js
1515
export default tseslint.config([
16-
globalIgnores(['dist']),
16+
globalIgnores(["dist"]),
1717
{
18-
files: ['**/*.{ts,tsx}'],
18+
files: ["**/*.{ts,tsx}"],
1919
extends: [
2020
// Other configs...
2121

@@ -30,40 +30,40 @@ export default tseslint.config([
3030
],
3131
languageOptions: {
3232
parserOptions: {
33-
project: ['./tsconfig.node.json', './tsconfig.app.json'],
33+
project: ["./tsconfig.node.json", "./tsconfig.app.json"],
3434
tsconfigRootDir: import.meta.dirname,
3535
},
3636
// other options...
3737
},
3838
},
39-
])
39+
]);
4040
```
4141

4242
You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
4343

4444
```js
4545
// eslint.config.js
46-
import reactX from 'eslint-plugin-react-x'
47-
import reactDom from 'eslint-plugin-react-dom'
46+
import reactX from "eslint-plugin-react-x";
47+
import reactDom from "eslint-plugin-react-dom";
4848

4949
export default tseslint.config([
50-
globalIgnores(['dist']),
50+
globalIgnores(["dist"]),
5151
{
52-
files: ['**/*.{ts,tsx}'],
52+
files: ["**/*.{ts,tsx}"],
5353
extends: [
5454
// Other configs...
5555
// Enable lint rules for React
56-
reactX.configs['recommended-typescript'],
56+
reactX.configs["recommended-typescript"],
5757
// Enable lint rules for React DOM
5858
reactDom.configs.recommended,
5959
],
6060
languageOptions: {
6161
parserOptions: {
62-
project: ['./tsconfig.node.json', './tsconfig.app.json'],
62+
project: ["./tsconfig.node.json", "./tsconfig.app.json"],
6363
tsconfigRootDir: import.meta.dirname,
6464
},
6565
// other options...
6666
},
6767
},
68-
])
68+
]);
6969
```

frontend/package-lock.json

Lines changed: 9 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "frontend",
33
"private": true,
4-
"version": "0.0.0",
4+
"version": "0.0.1-beta.0",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
@@ -22,6 +22,7 @@
2222
"clsx": "^2.1.1",
2323
"js-yaml": "^4.1.0",
2424
"lucide-react": "^0.542.0",
25+
"openapi-types": "^12.1.3",
2526
"react": "^19.1.1",
2627
"react-dom": "^19.1.1",
2728
"react-hook-form": "^7.62.0",

frontend/src/App.tsx

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,29 @@
11
import './App.css'
2-
import Terminal from './components/Terminal'
3-
import { FileProvider } from './context/fileContext'
4-
import { OpenApiProvider } from './context/openApiContext'
2+
import Navbar01 from './components/ui/navbar'
3+
import { FileProvider } from './context/FileProvider'
4+
import { LoadingProvider } from './context/LoadingProvider'
5+
import { OpenApiProvider } from './context/openApiProvider'
6+
import { TerminalProvider } from './context/TerminalProvider'
7+
import { TestRunnerProvider } from './context/TestRunnerProvider'
8+
import Dashboard from './features/dashboard'
59
import SchemaPage from './features/schema-input'
610
import TestDetailsPane from './features/test-details'
7-
import { TestRunnerProvider } from './features/test-runner/TestRunnerContext'
11+
import TestRunner from './features/test-runner'
812
function App() {
913
return (
1014
<>
1115
<TestRunnerProvider>
1216
<OpenApiProvider>
1317
<FileProvider>
14-
<SchemaPage />
15-
<TestDetailsPane />
16-
<Terminal />
18+
<TerminalProvider>
19+
<LoadingProvider>
20+
<Navbar01 />
21+
<SchemaPage />
22+
<TestDetailsPane />
23+
<TestRunner />
24+
<Dashboard />
25+
</LoadingProvider>
26+
</TerminalProvider>
1727
</FileProvider>
1828
</OpenApiProvider >
1929
</TestRunnerProvider >

frontend/src/components/Terminal.tsx

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)