Skip to content

Commit 507c155

Browse files
New design + Jira integration (#37)
* Start UI only if needed * Custom pause * UI - new design * Create Jira ticket --------- Co-authored-by: Max Soloviov <max.soloviov@keenethics.com>
1 parent 1127089 commit 507c155

File tree

17 files changed

+1219
-893
lines changed

17 files changed

+1219
-893
lines changed

package-lock.json

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

package.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
22
"name": "@cyborgtests/test",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"description": "Powerfull extension for Playwright, that allows you to include manual verification steps in your automated test flow",
55
"main": "./dist/index.cjs",
66
"module": "./dist/index.mjs",
77
"types": "./dist/index.d.ts",
88
"type": "module",
99
"exports": {
1010
".": {
11+
"types": "./dist/index.d.ts",
1112
"import": "./dist/index.mjs",
12-
"require": "./dist/index.cjs",
13-
"types": "./dist/index.d.ts"
13+
"require": "./dist/index.cjs"
1414
}
1515
},
1616
"repository": {
@@ -37,14 +37,14 @@
3737
"author": "",
3838
"license": "MIT",
3939
"peerDependencies": {
40-
"@playwright/test": "^1.53.0"
40+
"@playwright/test": "^1.54.2"
4141
},
4242
"devDependencies": {
4343
"@heroui/react": "^2.8.1",
4444
"@heroui/system": "^2.4.19",
4545
"@heroui/theme": "^2.4.19",
4646
"@medv/finder": "^4.0.2",
47-
"@playwright/test": "^1.53.0",
47+
"@playwright/test": "^1.54.2",
4848
"@tailwindcss/vite": "^4.1.11",
4949
"@types/node": "^22.15.18",
5050
"@types/react": "^19.1.4",
@@ -69,5 +69,7 @@
6969
"package-lock.json",
7070
"src"
7171
],
72-
"dependencies": {}
72+
"dependencies": {
73+
"react-hot-toast": "^2.6.0"
74+
}
7375
}

src/control-panel-ui/components/App.tsx

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,38 @@
11
import React from 'react';
22
import Footer from './Footer';
3-
import Header from './Header';
43
import TestControlPanel from './TestControlPanel';
5-
import { TestStoreProvider } from '../store/TestStore';
4+
import JiraTicket from './JiraTicket';
5+
import { TestStoreProvider, useTestStore } from '../store/TestStore';
66
import { HeroUIProvider } from "@heroui/system";
7+
import { Toaster } from 'react-hot-toast';
8+
9+
function AppContent() {
10+
const { state } = useTestStore();
11+
12+
return (
13+
<div className="relative flex flex-col h-screen bg-background">
14+
{
15+
state.createJiraTicket ? <JiraTicket /> : <TestControlPanel />
16+
}
17+
<Footer />
18+
<Toaster
19+
position="bottom-center"
20+
toastOptions={{
21+
style: {
22+
background: '#000000',
23+
color: '#fff',
24+
},
25+
}}
26+
/>
27+
</div>
28+
);
29+
}
730

831
export default function App() {
932
return (
1033
<TestStoreProvider>
1134
<HeroUIProvider>
12-
<div className="relative flex flex-col h-screen bg-background">
13-
<Header />
14-
<TestControlPanel />
15-
<Footer />
16-
</div>
35+
<AppContent />
1736
</HeroUIProvider>
1837
</TestStoreProvider>
1938
);

0 commit comments

Comments
 (0)