plum-e2e 1.0.10 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/.claude/settings.local.json +16 -1
  2. package/.vscode/settings.json +10 -0
  3. package/README.md +151 -37
  4. package/backend/_scaffold/features/LoginPage.feature +45 -3
  5. package/backend/_scaffold/pages/HomepagePage.ts +7 -0
  6. package/backend/_scaffold/pages/LoginPage.ts +37 -13
  7. package/backend/_scaffold/step_definitions/HomepageSteps.ts +6 -0
  8. package/backend/_scaffold/step_definitions/LoginSteps.ts +30 -4
  9. package/backend/_scaffold/utils/browser.ts +33 -0
  10. package/backend/_scaffold/utils/hooks.ts +8 -29
  11. package/backend/_scaffold/utils/utils.ts +3 -9
  12. package/backend/config/scripts/create-settings.js +7 -14
  13. package/backend/config/scripts/create-step.mjs +268 -0
  14. package/backend/config/scripts/generate-report.js +31 -75
  15. package/backend/config/scripts/run-tests.js +19 -4
  16. package/backend/package-lock.json +56 -641
  17. package/backend/package.json +4 -1
  18. package/backend/routes/reports.routes.js +6 -10
  19. package/backend/services/envService.js +4 -10
  20. package/backend/services/reportService.js +70 -20
  21. package/backend/services/testService.js +99 -24
  22. package/backend/tsconfig.json +2 -2
  23. package/backend/websockets/socketHandler.js +12 -6
  24. package/bin/plum.js +49 -3
  25. package/frontend/package-lock.json +436 -135
  26. package/frontend/package.json +1 -1
  27. package/frontend/src/app.css +241 -6
  28. package/frontend/src/app.html +14 -1
  29. package/frontend/src/lib/api/reports.js +68 -0
  30. package/frontend/src/lib/api/schedules.js +64 -0
  31. package/frontend/src/lib/api/tests.js +41 -0
  32. package/frontend/src/lib/components/layout/Nav.svelte +304 -0
  33. package/frontend/src/lib/components/layout/PageShell.svelte +28 -0
  34. package/frontend/src/lib/components/layout/RunnerPanel.svelte +378 -0
  35. package/frontend/src/lib/components/ui/Badge.svelte +63 -0
  36. package/frontend/src/lib/components/ui/Button.svelte +117 -0
  37. package/frontend/src/lib/components/ui/Modal.svelte +140 -0
  38. package/frontend/src/lib/components/ui/Pagination.svelte +100 -0
  39. package/frontend/src/lib/components/ui/Terminal.svelte +100 -0
  40. package/frontend/src/lib/stores/runner.js +55 -0
  41. package/frontend/src/lib/stores/theme.js +47 -0
  42. package/frontend/src/routes/+layout.svelte +7 -12
  43. package/frontend/src/routes/+page.svelte +690 -142
  44. package/frontend/src/routes/reports/+page.svelte +395 -125
  45. package/frontend/src/routes/reports/[slug]/+page.svelte +749 -0
  46. package/frontend/src/routes/scheduled-tests/+page.svelte +267 -303
  47. package/frontend/svelte.config.js +1 -4
  48. package/frontend/tailwind.config.js +2 -23
  49. package/package.json +2 -2
  50. package/backend/_scaffold/utils/world.ts +0 -25
  51. package/frontend/src/routes/components/Navigation.svelte +0 -53
@@ -0,0 +1,304 @@
1
+ <!--
2
+ * This file is part of Plum.
3
+ *
4
+ * Plum is free software: you can redistribute it and/or modify
5
+ * it under the terms of the GNU General Public License as published by
6
+ * the Free Software Foundation, either version 3 of the License, or
7
+ * (at your option) any later version.
8
+ *
9
+ * Plum is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ * GNU General Public License for more details.
13
+ *
14
+ * You should have received a copy of the GNU General Public License
15
+ * along with Plum. If not, see https://www.gnu.org/licenses/.
16
+ -->
17
+
18
+ <script>
19
+ import { page } from '$app/stores';
20
+ import { theme } from '$lib/stores/theme';
21
+ import { slide } from 'svelte/transition';
22
+
23
+ let menuOpen = false;
24
+
25
+ const links = [
26
+ { href: '/', label: 'Run Tests' },
27
+ { href: '/reports', label: 'Reports' },
28
+ { href: '/scheduled-tests', label: 'Scheduled' }
29
+ ];
30
+
31
+ function toggleTheme() {
32
+ theme.update((t) => (t === 'light' ? 'dark' : 'light'));
33
+ }
34
+
35
+ function closeMenu() {
36
+ menuOpen = false;
37
+ }
38
+ </script>
39
+
40
+ <nav class="nav">
41
+ <div class="inner">
42
+ <a href="/" class="brand" on:click={closeMenu}>
43
+ <span class="brand-serif">Pl</span><span class="brand-sans">um</span>
44
+ </a>
45
+
46
+ <div class="links">
47
+ {#each links as link}
48
+ <a href={link.href} class="link" class:active={$page.url.pathname === link.href}>
49
+ {link.label}
50
+ </a>
51
+ {/each}
52
+ </div>
53
+
54
+ <div class="actions">
55
+ <button class="theme-btn" on:click={toggleTheme} aria-label="Toggle theme">
56
+ {#if $theme === 'light'}
57
+ <svg
58
+ width="15"
59
+ height="15"
60
+ viewBox="0 0 24 24"
61
+ fill="none"
62
+ stroke="currentColor"
63
+ stroke-width="2"
64
+ stroke-linecap="round"
65
+ stroke-linejoin="round"
66
+ >
67
+ <path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" />
68
+ </svg>
69
+ {:else}
70
+ <svg
71
+ width="15"
72
+ height="15"
73
+ viewBox="0 0 24 24"
74
+ fill="none"
75
+ stroke="currentColor"
76
+ stroke-width="2"
77
+ stroke-linecap="round"
78
+ stroke-linejoin="round"
79
+ >
80
+ <circle cx="12" cy="12" r="5" />
81
+ <line x1="12" y1="1" x2="12" y2="3" />
82
+ <line x1="12" y1="21" x2="12" y2="23" />
83
+ <line x1="4.22" y1="4.22" x2="5.64" y2="5.64" />
84
+ <line x1="18.36" y1="18.36" x2="19.78" y2="19.78" />
85
+ <line x1="1" y1="12" x2="3" y2="12" />
86
+ <line x1="21" y1="12" x2="23" y2="12" />
87
+ <line x1="4.22" y1="19.78" x2="5.64" y2="18.36" />
88
+ <line x1="18.36" y1="5.64" x2="19.78" y2="4.22" />
89
+ </svg>
90
+ {/if}
91
+ </button>
92
+
93
+ <button
94
+ class="hamburger"
95
+ on:click={() => (menuOpen = !menuOpen)}
96
+ aria-label={menuOpen ? 'Close menu' : 'Open menu'}
97
+ aria-expanded={menuOpen}
98
+ >
99
+ <span class:rotated={menuOpen}></span>
100
+ <span class:hidden={menuOpen}></span>
101
+ <span class:rotated-reverse={menuOpen}></span>
102
+ </button>
103
+ </div>
104
+ </div>
105
+
106
+ {#if menuOpen}
107
+ <div class="mobile-menu" transition:slide={{ duration: 200 }}>
108
+ {#each links as link}
109
+ <a
110
+ href={link.href}
111
+ class="mobile-link"
112
+ class:active={$page.url.pathname === link.href}
113
+ on:click={closeMenu}
114
+ >
115
+ {link.label}
116
+ </a>
117
+ {/each}
118
+ </div>
119
+ {/if}
120
+ </nav>
121
+
122
+ <style>
123
+ .nav {
124
+ position: sticky;
125
+ top: 0;
126
+ z-index: 40;
127
+ background: var(--bg);
128
+ border-bottom: 1px solid var(--border);
129
+ transition:
130
+ background var(--duration-base) var(--ease-out),
131
+ border-color var(--duration-base) var(--ease-out);
132
+ }
133
+
134
+ .inner {
135
+ max-width: 1200px;
136
+ margin: 0 auto;
137
+ padding: 0 1.5rem;
138
+ height: 56px;
139
+ display: flex;
140
+ align-items: center;
141
+ gap: 2rem;
142
+ }
143
+
144
+ /* Brand */
145
+ .brand {
146
+ font-size: 1.2rem;
147
+ letter-spacing: -0.02em;
148
+ flex-shrink: 0;
149
+ text-decoration: none;
150
+ }
151
+
152
+ .brand-serif {
153
+ font-family: var(--font-display);
154
+ font-weight: 400;
155
+ color: var(--accent);
156
+ }
157
+
158
+ .brand-sans {
159
+ font-family: var(--font-body);
160
+ font-weight: 400;
161
+ color: var(--text);
162
+ }
163
+
164
+ /* Desktop links */
165
+ .links {
166
+ display: flex;
167
+ gap: 0.125rem;
168
+ flex: 1;
169
+ }
170
+
171
+ .link {
172
+ font-size: 0.875rem;
173
+ font-weight: 400;
174
+ color: var(--text-muted);
175
+ text-decoration: none;
176
+ padding: 0.35rem 0.75rem;
177
+ border-radius: var(--radius-sm);
178
+ transition:
179
+ color var(--duration-fast),
180
+ background var(--duration-fast);
181
+ }
182
+
183
+ .link:hover {
184
+ color: var(--text);
185
+ background: var(--bg-subtle);
186
+ }
187
+
188
+ .link.active {
189
+ color: var(--accent);
190
+ background: var(--accent-soft);
191
+ }
192
+
193
+ /* Actions */
194
+ .actions {
195
+ display: flex;
196
+ align-items: center;
197
+ gap: 0.5rem;
198
+ margin-left: auto;
199
+ }
200
+
201
+ .theme-btn {
202
+ display: flex;
203
+ align-items: center;
204
+ justify-content: center;
205
+ width: 34px;
206
+ height: 34px;
207
+ border-radius: var(--radius-sm);
208
+ border: 1px solid var(--border);
209
+ background: transparent;
210
+ color: var(--text-muted);
211
+ cursor: pointer;
212
+ transition:
213
+ background var(--duration-fast),
214
+ color var(--duration-fast),
215
+ border-color var(--duration-fast);
216
+ }
217
+
218
+ .theme-btn:hover {
219
+ background: var(--bg-subtle);
220
+ color: var(--text);
221
+ border-color: var(--text-muted);
222
+ }
223
+
224
+ /* Hamburger */
225
+ .hamburger {
226
+ display: none;
227
+ flex-direction: column;
228
+ justify-content: center;
229
+ gap: 4px;
230
+ width: 34px;
231
+ height: 34px;
232
+ background: none;
233
+ border: 1px solid var(--border);
234
+ border-radius: var(--radius-sm);
235
+ cursor: pointer;
236
+ padding: 0 8px;
237
+ }
238
+
239
+ .hamburger span {
240
+ display: block;
241
+ width: 100%;
242
+ height: 1.5px;
243
+ background: var(--text-muted);
244
+ border-radius: 2px;
245
+ transform-origin: center;
246
+ transition:
247
+ transform var(--duration-base) var(--ease-out),
248
+ opacity var(--duration-fast);
249
+ }
250
+
251
+ .hamburger span.rotated {
252
+ transform: translateY(5.5px) rotate(45deg);
253
+ }
254
+
255
+ .hamburger span.hidden {
256
+ opacity: 0;
257
+ }
258
+
259
+ .hamburger span.rotated-reverse {
260
+ transform: translateY(-5.5px) rotate(-45deg);
261
+ }
262
+
263
+ /* Mobile menu */
264
+ .mobile-menu {
265
+ border-top: 1px solid var(--border);
266
+ padding: 0.75rem 1.5rem 1rem;
267
+ display: flex;
268
+ flex-direction: column;
269
+ gap: 0.125rem;
270
+ }
271
+
272
+ .mobile-link {
273
+ color: var(--text-muted);
274
+ text-decoration: none;
275
+ font-size: 0.9375rem;
276
+ font-weight: 400;
277
+ padding: 0.5rem 0.75rem;
278
+ border-radius: var(--radius-sm);
279
+ transition:
280
+ background var(--duration-fast),
281
+ color var(--duration-fast);
282
+ }
283
+
284
+ .mobile-link:hover,
285
+ .mobile-link.active {
286
+ background: var(--bg-subtle);
287
+ color: var(--text);
288
+ }
289
+
290
+ .mobile-link.active {
291
+ color: var(--accent);
292
+ background: var(--accent-soft);
293
+ }
294
+
295
+ @media (max-width: 640px) {
296
+ .links {
297
+ display: none;
298
+ }
299
+
300
+ .hamburger {
301
+ display: flex;
302
+ }
303
+ }
304
+ </style>
@@ -0,0 +1,28 @@
1
+ <!--
2
+ * This file is part of Plum.
3
+ *
4
+ * Plum is free software: you can redistribute it and/or modify
5
+ * it under the terms of the GNU General Public License as published by
6
+ * the Free Software Foundation, either version 3 of the License, or
7
+ * (at your option) any later version.
8
+ *
9
+ * Plum is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ * GNU General Public License for more details.
13
+ *
14
+ * You should have received a copy of the GNU General Public License
15
+ * along with Plum. If not, see https://www.gnu.org/licenses/.
16
+ -->
17
+
18
+ <main class="shell">
19
+ <slot />
20
+ </main>
21
+
22
+ <style>
23
+ .shell {
24
+ max-width: 1200px;
25
+ margin: 0 auto;
26
+ padding: 2.5rem 1.5rem 5rem; /* bottom clearance for RunnerPanel */
27
+ }
28
+ </style>
@@ -0,0 +1,378 @@
1
+ <!--
2
+ * This file is part of Plum.
3
+ *
4
+ * Plum is free software: you can redistribute it and/or modify
5
+ * it under the terms of the GNU General Public License as published by
6
+ * the Free Software Foundation, either version 3 of the License, or
7
+ * (at your option) any later version.
8
+ *
9
+ * Plum is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ * GNU General Public License for more details.
13
+ *
14
+ * You should have received a copy of the GNU General Public License
15
+ * along with Plum. If not, see https://www.gnu.org/licenses/.
16
+ -->
17
+
18
+ <script>
19
+ import { onMount } from 'svelte';
20
+ import { slide, fly } from 'svelte/transition';
21
+ import { io } from 'socket.io-client';
22
+ import { socket, runnerState, runnerConfig, panelExpanded, triggerRun } from '$lib/stores/runner';
23
+ import { fetchLatestReport, reportUrl } from '$lib/api/reports';
24
+ import Terminal from '$lib/components/ui/Terminal.svelte';
25
+ import Button from '$lib/components/ui/Button.svelte';
26
+
27
+ const WORKER_OPTIONS = [1, 2, 4, 8];
28
+
29
+ onMount(() => {
30
+ const s = io('http://localhost:3001');
31
+ socket.set(s);
32
+
33
+ s.on('log', (data) => {
34
+ runnerState.update((r) => ({ ...r, output: r.output + data + '\n' }));
35
+ });
36
+
37
+ s.on('done', async (code) => {
38
+ const report = await fetchLatestReport().catch(() => null);
39
+ const passed = code === 0;
40
+ runnerState.update((r) => ({
41
+ ...r,
42
+ output: r.output + (passed ? '✓ All tests passed\n' : '✗ Some tests failed\n'),
43
+ running: false,
44
+ testCompleted: true,
45
+ latestReport: report,
46
+ status: passed ? 'pass' : 'fail'
47
+ }));
48
+ });
49
+
50
+ return () => s.disconnect();
51
+ });
52
+
53
+ $: state = $runnerState;
54
+ $: cfg = $runnerConfig;
55
+ $: workerCount = Math.min(cfg.workers, 4);
56
+ $: dots = Array.from({ length: workerCount });
57
+
58
+ $: statusColor =
59
+ state.status === 'pass'
60
+ ? 'var(--pass)'
61
+ : state.status === 'fail'
62
+ ? 'var(--fail)'
63
+ : state.status === 'running'
64
+ ? 'var(--accent)'
65
+ : 'var(--border)';
66
+
67
+ $: statusLabel =
68
+ state.status === 'running'
69
+ ? 'running'
70
+ : state.status === 'pass'
71
+ ? 'passed'
72
+ : state.status === 'fail'
73
+ ? 'failed'
74
+ : 'ready';
75
+
76
+ function handleKeydown(e) {
77
+ if (e.key === 'Enter' && !state.running) triggerRun();
78
+ }
79
+ </script>
80
+
81
+ <div class="panel" class:expanded={$panelExpanded}>
82
+ <!-- Header bar — always visible -->
83
+ <div class="bar">
84
+ <div class="bar-left">
85
+ <span class="status-dot" class:pulse={state.running} style="background: {statusColor}"></span>
86
+ <span class="status-label">{statusLabel}</span>
87
+ {#if state.lastRunId}
88
+ <span class="run-id">{state.lastRunId || '(all)'}</span>
89
+ {/if}
90
+ </div>
91
+
92
+ <div class="bar-dots" title="{cfg.workers} worker{cfg.workers !== 1 ? 's' : ''}">
93
+ {#each dots as _, i}
94
+ <span
95
+ class="dot"
96
+ class:running={state.running}
97
+ class:pass={state.status === 'pass'}
98
+ class:fail={state.status === 'fail'}
99
+ style="animation-delay: {i * 180}ms"
100
+ ></span>
101
+ {/each}
102
+ </div>
103
+
104
+ <button
105
+ class="expand-btn"
106
+ on:click={() => panelExpanded.update((v) => !v)}
107
+ aria-label={$panelExpanded ? 'Collapse panel' : 'Expand panel'}
108
+ >
109
+ <svg
110
+ width="14"
111
+ height="14"
112
+ viewBox="0 0 24 24"
113
+ fill="none"
114
+ stroke="currentColor"
115
+ stroke-width="2"
116
+ stroke-linecap="round"
117
+ stroke-linejoin="round"
118
+ class:rotated={$panelExpanded}
119
+ >
120
+ <polyline points="18 15 12 9 6 15" />
121
+ </svg>
122
+ </button>
123
+ </div>
124
+
125
+ <!-- Body — visible when expanded -->
126
+ {#if $panelExpanded}
127
+ <div class="body" transition:slide={{ duration: 220 }}>
128
+ <div class="controls">
129
+ <input
130
+ type="text"
131
+ class="field-input run-input"
132
+ bind:value={$runnerConfig.testID}
133
+ placeholder="@test-1 or @suite-login or blank for all"
134
+ on:keydown={handleKeydown}
135
+ disabled={state.running}
136
+ />
137
+
138
+ <div class="workers-control">
139
+ {#each WORKER_OPTIONS as n}
140
+ <button
141
+ class="worker-btn"
142
+ class:active={cfg.workers === n}
143
+ on:click={() => runnerConfig.update((c) => ({ ...c, workers: n }))}
144
+ >
145
+ {n === 1 ? 'Off' : n}
146
+ </button>
147
+ {/each}
148
+ </div>
149
+
150
+ <Button on:click={() => triggerRun()} disabled={state.running}>
151
+ {state.running ? 'Running…' : 'Run'}
152
+ </Button>
153
+ </div>
154
+
155
+ <Terminal output={state.output} />
156
+
157
+ {#if state.testCompleted && state.latestReport}
158
+ <div class="report-row" transition:fly={{ y: 6, duration: 200 }}>
159
+ <a href={reportUrl(state.latestReport)} target="_blank" rel="noopener noreferrer">
160
+ <Button variant="outline" size="sm">View Report →</Button>
161
+ </a>
162
+ </div>
163
+ {/if}
164
+ </div>
165
+ {/if}
166
+ </div>
167
+
168
+ <style>
169
+ .panel {
170
+ position: fixed;
171
+ bottom: 0;
172
+ left: 0;
173
+ right: 0;
174
+ z-index: 200;
175
+ background: var(--bg-elevated);
176
+ border-top: 1px solid var(--border);
177
+ box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
178
+ transition: box-shadow var(--duration-base) var(--ease-out);
179
+ }
180
+
181
+ .panel.expanded {
182
+ box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.1);
183
+ }
184
+
185
+ /* ── Header bar ── */
186
+ .bar {
187
+ display: flex;
188
+ align-items: center;
189
+ gap: 0.75rem;
190
+ padding: 0 1.5rem;
191
+ height: 48px;
192
+ cursor: default;
193
+ }
194
+
195
+ .bar-left {
196
+ display: flex;
197
+ align-items: center;
198
+ gap: 0.5rem;
199
+ flex: 1;
200
+ min-width: 0;
201
+ }
202
+
203
+ .status-dot {
204
+ flex-shrink: 0;
205
+ width: 8px;
206
+ height: 8px;
207
+ border-radius: 50%;
208
+ transition: background var(--duration-base);
209
+ }
210
+
211
+ .status-dot.pulse {
212
+ animation: statusPulse 1.6s ease-in-out infinite;
213
+ }
214
+
215
+ @keyframes statusPulse {
216
+ 0%,
217
+ 100% {
218
+ opacity: 1;
219
+ transform: scale(1);
220
+ }
221
+ 50% {
222
+ opacity: 0.5;
223
+ transform: scale(0.7);
224
+ }
225
+ }
226
+
227
+ .status-label {
228
+ font-size: 0.7rem;
229
+ font-weight: 500;
230
+ letter-spacing: 0.07em;
231
+ text-transform: uppercase;
232
+ color: var(--text-muted);
233
+ flex-shrink: 0;
234
+ }
235
+
236
+ .run-id {
237
+ font-size: 0.75rem;
238
+ color: var(--text-muted);
239
+ font-family: 'JetBrains Mono', monospace;
240
+ white-space: nowrap;
241
+ overflow: hidden;
242
+ text-overflow: ellipsis;
243
+ }
244
+
245
+ /* ── Worker dots ── */
246
+ .bar-dots {
247
+ display: flex;
248
+ align-items: center;
249
+ gap: 4px;
250
+ flex-shrink: 0;
251
+ }
252
+
253
+ .dot {
254
+ width: 7px;
255
+ height: 7px;
256
+ border-radius: 50%;
257
+ background: var(--border);
258
+ transition:
259
+ background var(--duration-base),
260
+ transform var(--duration-fast);
261
+ }
262
+
263
+ .dot.running {
264
+ background: var(--pass);
265
+ animation: dotBeat 1.4s ease-in-out infinite;
266
+ }
267
+
268
+ .dot.pass {
269
+ background: var(--pass);
270
+ }
271
+
272
+ .dot.fail {
273
+ background: var(--fail);
274
+ }
275
+
276
+ @keyframes dotBeat {
277
+ 0%,
278
+ 100% {
279
+ opacity: 1;
280
+ transform: scale(1);
281
+ }
282
+ 50% {
283
+ opacity: 0.35;
284
+ transform: scale(0.65);
285
+ }
286
+ }
287
+
288
+ .expand-btn {
289
+ display: flex;
290
+ align-items: center;
291
+ justify-content: center;
292
+ width: 28px;
293
+ height: 28px;
294
+ border-radius: var(--radius-sm);
295
+ border: none;
296
+ background: transparent;
297
+ color: var(--text-muted);
298
+ cursor: pointer;
299
+ flex-shrink: 0;
300
+ transition:
301
+ background var(--duration-fast),
302
+ color var(--duration-fast);
303
+ }
304
+
305
+ .expand-btn:hover {
306
+ background: var(--bg-subtle);
307
+ color: var(--text);
308
+ }
309
+
310
+ .expand-btn svg {
311
+ transition: transform var(--duration-base) var(--ease-out);
312
+ }
313
+
314
+ .expand-btn svg.rotated {
315
+ transform: rotate(180deg);
316
+ }
317
+
318
+ /* ── Body ── */
319
+ .body {
320
+ padding: 0.875rem 1.5rem 1.125rem;
321
+ border-top: 1px solid var(--border);
322
+ display: flex;
323
+ flex-direction: column;
324
+ gap: 0.75rem;
325
+ }
326
+
327
+ .controls {
328
+ display: flex;
329
+ align-items: center;
330
+ gap: 0.625rem;
331
+ }
332
+
333
+ .run-input {
334
+ flex: 1;
335
+ }
336
+
337
+ .workers-control {
338
+ display: flex;
339
+ gap: 2px;
340
+ background: var(--bg-subtle);
341
+ border: 1px solid var(--border);
342
+ border-radius: var(--radius-sm);
343
+ padding: 2px;
344
+ flex-shrink: 0;
345
+ }
346
+
347
+ .worker-btn {
348
+ font-family: var(--font-body);
349
+ font-size: 0.75rem;
350
+ font-weight: 400;
351
+ min-width: 2rem;
352
+ padding: 0.2rem 0.5rem;
353
+ border: none;
354
+ border-radius: 4px;
355
+ background: transparent;
356
+ color: var(--text-muted);
357
+ cursor: pointer;
358
+ transition:
359
+ background var(--duration-fast),
360
+ color var(--duration-fast);
361
+ }
362
+
363
+ .worker-btn:hover:not(.active) {
364
+ background: var(--bg-elevated);
365
+ color: var(--text);
366
+ }
367
+
368
+ .worker-btn.active {
369
+ background: var(--bg-elevated);
370
+ color: var(--accent);
371
+ font-weight: 500;
372
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
373
+ }
374
+
375
+ .report-row {
376
+ display: flex;
377
+ }
378
+ </style>