workspaces 0.1.18 → 0.1.20
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.
- checksums.yaml +4 -4
- data/DESIGN.md +31 -30
- data/README.md +42 -2
- data/lib/workspaces/config.rb +4 -0
- data/lib/workspaces/coordinator.rb +8 -0
- data/lib/workspaces/dashboard/app.js +19 -20
- data/lib/workspaces/dashboard/card.html.erb +42 -0
- data/lib/workspaces/dashboard/styles.css +160 -135
- data/lib/workspaces/dashboard/template.html.erb +13 -13
- data/lib/workspaces/dashboard_view.rb +115 -17
- data/lib/workspaces/front_door.rb +102 -7
- data/lib/workspaces/presentation.rb +18 -28
- data/lib/workspaces/version.rb +1 -1
- metadata +3 -2
|
@@ -1,15 +1,31 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
|
|
3
|
-
--bg
|
|
4
|
-
--
|
|
5
|
-
--
|
|
6
|
-
--
|
|
7
|
-
--
|
|
2
|
+
/* Surfaces. Page, then card, then the hairlines that divide them. */
|
|
3
|
+
--bg: #0b0f17;
|
|
4
|
+
--bg-elevated: #141a26;
|
|
5
|
+
--border: #2a3447;
|
|
6
|
+
--divider: #252e41;
|
|
7
|
+
--border-strong: #3f4b63;
|
|
8
|
+
/* The edge of an input or outline button. WCAG asks 3:1 for a control's boundary against what is
|
|
9
|
+
behind it; #3f4b63 is about 2:1 on the card. One token, so raising it is a one-line change. */
|
|
10
|
+
--control-border: #3f4b63;
|
|
11
|
+
/* Text. Every pairing with a surface is at least 4.5:1. */
|
|
12
|
+
--text-strong: #f8fafc;
|
|
13
|
+
--text: #e2e8f0;
|
|
14
|
+
--text-cell: #cbd5e1;
|
|
15
|
+
--muted: #a8b3c7;
|
|
16
|
+
--placeholder: #8a97ad;
|
|
17
|
+
--accent: #6fa8ff;
|
|
18
|
+
--accent-hover: #8dbbff;
|
|
19
|
+
--on-accent: #06101f;
|
|
8
20
|
--success: #2fbf8f;
|
|
9
21
|
--danger: #ff6f74;
|
|
10
22
|
--warning: #f1bb53;
|
|
11
23
|
--radius: 12px;
|
|
12
|
-
--
|
|
24
|
+
--radius-control: 8px;
|
|
25
|
+
--control-height: 44px;
|
|
26
|
+
--shadow: none;
|
|
27
|
+
--font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
28
|
+
--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
13
29
|
--space-1: 4px;
|
|
14
30
|
--space-2: 8px;
|
|
15
31
|
--space-3: 12px;
|
|
@@ -18,7 +34,7 @@
|
|
|
18
34
|
--space-6: 24px;
|
|
19
35
|
--space-8: 32px;
|
|
20
36
|
--space-10: 40px;
|
|
21
|
-
--panel-padding:
|
|
37
|
+
--panel-padding: 28px;
|
|
22
38
|
}
|
|
23
39
|
|
|
24
40
|
* {
|
|
@@ -29,6 +45,8 @@
|
|
|
29
45
|
which tag was used. Reset them once; every gap is declared by a stack rule below
|
|
30
46
|
using the --space-* scale. */
|
|
31
47
|
h1, h2, h3, h4, p, ul, ol, dl, dd, pre, fieldset, figure { margin: 0; }
|
|
48
|
+
h2 { font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--text-strong); }
|
|
49
|
+
label { font-size: 14px; font-weight: 600; }
|
|
32
50
|
ol, ul { padding-inline-start: var(--space-6); }
|
|
33
51
|
legend { padding: 0; }
|
|
34
52
|
|
|
@@ -45,9 +63,20 @@ legend { padding: 0; }
|
|
|
45
63
|
.stack--loose { gap: var(--space-6); }
|
|
46
64
|
|
|
47
65
|
[hidden] { display: none !important; }
|
|
48
|
-
input
|
|
49
|
-
|
|
50
|
-
|
|
66
|
+
input:not([type='checkbox']):not([type='radio']), select {
|
|
67
|
+
max-inline-size: 100%;
|
|
68
|
+
block-size: var(--control-height);
|
|
69
|
+
padding-inline: var(--space-3);
|
|
70
|
+
color: var(--text-strong);
|
|
71
|
+
background: var(--bg);
|
|
72
|
+
border: 1px solid var(--control-border);
|
|
73
|
+
border-radius: var(--radius-control);
|
|
74
|
+
font-family: var(--font-mono);
|
|
75
|
+
font-size: 14px;
|
|
76
|
+
}
|
|
77
|
+
select { font-family: var(--font-sans); font-size: 15px; }
|
|
78
|
+
::placeholder { color: var(--placeholder); opacity: 1; }
|
|
79
|
+
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
51
80
|
summary { cursor: pointer; color: var(--muted); }
|
|
52
81
|
summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
|
|
53
82
|
.workspace-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
|
|
@@ -67,9 +96,11 @@ dd + dt { margin-block-start: var(--space-3); }
|
|
|
67
96
|
body {
|
|
68
97
|
margin: 0;
|
|
69
98
|
min-block-size: 100dvb;
|
|
70
|
-
font-family:
|
|
99
|
+
font-family: var(--font-sans);
|
|
100
|
+
font-size: 15px;
|
|
101
|
+
line-height: 1.5;
|
|
71
102
|
color: var(--text);
|
|
72
|
-
background:
|
|
103
|
+
background: var(--bg);
|
|
73
104
|
}
|
|
74
105
|
|
|
75
106
|
a {
|
|
@@ -77,7 +108,7 @@ a {
|
|
|
77
108
|
}
|
|
78
109
|
|
|
79
110
|
.dashboard {
|
|
80
|
-
inline-size: min(100% - var(--space-6),
|
|
111
|
+
inline-size: min(100% - var(--space-6), 1180px);
|
|
81
112
|
margin-inline: auto;
|
|
82
113
|
padding-block: var(--space-8);
|
|
83
114
|
display: grid;
|
|
@@ -91,6 +122,7 @@ a {
|
|
|
91
122
|
align-items: end;
|
|
92
123
|
gap: var(--space-4);
|
|
93
124
|
}
|
|
125
|
+
.dashboard__note { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
|
|
94
126
|
|
|
95
127
|
.eyebrow {
|
|
96
128
|
margin: 0;
|
|
@@ -102,9 +134,13 @@ a {
|
|
|
102
134
|
|
|
103
135
|
h1 {
|
|
104
136
|
margin: 0;
|
|
105
|
-
|
|
137
|
+
color: var(--text-strong);
|
|
138
|
+
font-size: 32px;
|
|
139
|
+
font-weight: 700;
|
|
106
140
|
line-height: 1.2;
|
|
107
141
|
}
|
|
142
|
+
/* A workspace id as the page title: long and monospaced, so smaller, and allowed to wrap. */
|
|
143
|
+
.mono-title { font-family: var(--font-mono); font-size: clamp(1.1rem, 2vw + 0.5rem, 1.5rem); }
|
|
108
144
|
|
|
109
145
|
.header-message {
|
|
110
146
|
margin: var(--space-2) 0 0;
|
|
@@ -152,8 +188,8 @@ h1 {
|
|
|
152
188
|
/* Lead: a friendly headline, one sentence, and at most one big button. */
|
|
153
189
|
.lead { gap: var(--space-4); padding-block: var(--space-8); }
|
|
154
190
|
.lead__text { display: grid; gap: var(--space-2); }
|
|
155
|
-
.lead h2 { font-size:
|
|
156
|
-
.lead__summary { max-inline-size: 38rem; color: var(--muted); font-size:
|
|
191
|
+
.lead h2 { font-size: 24px; line-height: 1.25; }
|
|
192
|
+
.lead__summary { max-inline-size: 38rem; color: var(--muted); font-size: 15px; line-height: 1.5; }
|
|
157
193
|
.lead__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
|
|
158
194
|
.lead__actions:empty { display: none; }
|
|
159
195
|
|
|
@@ -167,50 +203,22 @@ h1 {
|
|
|
167
203
|
.progress-meta__time { font-variant-numeric: tabular-nums; }
|
|
168
204
|
@media (prefers-reduced-motion: reduce) { .progress-bar__fill { transition: none; } }
|
|
169
205
|
.lead__action:empty { display: none; }
|
|
170
|
-
.button--large { min-block-size: 52px; padding-inline: var(--space-8); font-size: 16px; border-radius: var(--radius); }
|
|
171
|
-
|
|
172
|
-
/*
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
/* Two classes so the narrow-screen panel padding below cannot re-add padding around the summary. */
|
|
177
|
-
.status-panel.disclosure { padding: 0; }
|
|
178
|
-
.disclosure > summary {
|
|
206
|
+
.button--large { min-block-size: 52px; padding-inline: var(--space-8); font-size: 16px; border-radius: var(--radius-control); }
|
|
207
|
+
|
|
208
|
+
/* Settings page sections: a heading, a one-line hint of what is inside, then the content. Nothing
|
|
209
|
+
folds; the card at /workspaces/ID is what keeps these details out of the way. The section is a grid
|
|
210
|
+
(.status-panel:not(details)), so the gap below the heading comes from there. */
|
|
211
|
+
.section-heading {
|
|
179
212
|
display: flex;
|
|
180
213
|
flex-wrap: wrap;
|
|
181
214
|
align-items: baseline;
|
|
182
215
|
gap: var(--space-1) var(--space-3);
|
|
183
|
-
padding
|
|
184
|
-
|
|
185
|
-
list-style: none;
|
|
186
|
-
color: var(--text);
|
|
187
|
-
font-weight: 600;
|
|
188
|
-
border-radius: var(--radius);
|
|
189
|
-
cursor: pointer;
|
|
190
|
-
user-select: none;
|
|
191
|
-
transition: background-color 120ms ease;
|
|
216
|
+
padding-block-end: var(--space-4);
|
|
217
|
+
border-block-end: 1px solid var(--border);
|
|
192
218
|
}
|
|
193
|
-
.
|
|
194
|
-
.
|
|
195
|
-
|
|
196
|
-
position: absolute;
|
|
197
|
-
inset-inline-end: var(--panel-padding);
|
|
198
|
-
inset-block-start: 50%;
|
|
199
|
-
inline-size: 8px;
|
|
200
|
-
block-size: 8px;
|
|
201
|
-
margin-block-start: -6px;
|
|
202
|
-
border-inline-end: 2px solid var(--muted);
|
|
203
|
-
border-block-end: 2px solid var(--muted);
|
|
204
|
-
transform: rotate(45deg);
|
|
205
|
-
transition: transform 160ms ease, border-color 120ms ease;
|
|
206
|
-
}
|
|
207
|
-
.disclosure[open] > summary::after { margin-block-start: -2px; transform: rotate(225deg); }
|
|
208
|
-
.disclosure > summary:hover { background: color-mix(in oklab, var(--accent) 8%, transparent); }
|
|
209
|
-
.disclosure > summary:hover::after { border-color: var(--text); }
|
|
210
|
-
.disclosure > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
|
|
211
|
-
.disclosure[open] > summary { border-end-start-radius: 0; border-end-end-radius: 0; border-block-end: 1px solid var(--border); margin-block-end: 0; }
|
|
212
|
-
.disclosure > :not(summary) { margin: var(--panel-padding); }
|
|
213
|
-
/* Which preset is active, readable without opening the section. Same tint as a pressed preset button. */
|
|
219
|
+
.section-heading h2 { margin: 0; font-size: 1.125rem; }
|
|
220
|
+
.section-heading p { margin: 0; font-size: 13px; }
|
|
221
|
+
/* Which preset is active, readable at a glance. Same tint as a pressed preset button. */
|
|
214
222
|
.badge {
|
|
215
223
|
display: inline-flex;
|
|
216
224
|
align-items: center;
|
|
@@ -226,14 +234,12 @@ h1 {
|
|
|
226
234
|
white-space: nowrap;
|
|
227
235
|
}
|
|
228
236
|
.badge::before { content: ''; inline-size: 6px; block-size: 6px; border-radius: 999px; background: var(--success); }
|
|
229
|
-
.
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
.disclosure .danger-zone { display: grid; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--danger); border-radius: var(--radius); }
|
|
233
|
-
.disclosure .log-panel { padding: 0; }
|
|
237
|
+
#technical-section .technical > section:not(.danger-zone) { padding: 0; border: 0; box-shadow: none; background: none; }
|
|
238
|
+
#technical-section .danger-zone { display: grid; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--danger); border-radius: var(--radius); }
|
|
239
|
+
#technical-section .log-panel { padding: 0; }
|
|
234
240
|
.log-panel > #log { margin-block-start: 0; }
|
|
235
|
-
|
|
236
|
-
|
|
241
|
+
#technical-section .danger-zone h3 { color: var(--danger); font-size: 1rem; }
|
|
242
|
+
#technical-section h3 { font-size: 1rem; }
|
|
237
243
|
|
|
238
244
|
.status-row {
|
|
239
245
|
display: grid;
|
|
@@ -247,35 +253,6 @@ h1 {
|
|
|
247
253
|
font-size: 13px;
|
|
248
254
|
}
|
|
249
255
|
|
|
250
|
-
.status-pill {
|
|
251
|
-
display: inline-flex;
|
|
252
|
-
align-items: center;
|
|
253
|
-
gap: var(--space-2);
|
|
254
|
-
margin: 0;
|
|
255
|
-
font-weight: 600;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
.status-dot {
|
|
259
|
-
inline-size: 10px;
|
|
260
|
-
block-size: 10px;
|
|
261
|
-
border-radius: 999px;
|
|
262
|
-
background: var(--warning);
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
.status-pill[data-status='ready'] .status-dot {
|
|
266
|
-
background: var(--success);
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.status-pill[data-status='sleeping'] .status-dot {
|
|
270
|
-
background: var(--muted);
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.status-pill[data-status='error'] .status-dot,
|
|
274
|
-
.status-pill[data-status='interrupted'] .status-dot,
|
|
275
|
-
.status-pill[data-status='stopped'] .status-dot {
|
|
276
|
-
background: var(--danger);
|
|
277
|
-
}
|
|
278
|
-
|
|
279
256
|
.status-value {
|
|
280
257
|
margin: 0;
|
|
281
258
|
font-weight: 600;
|
|
@@ -376,11 +353,11 @@ h1 {
|
|
|
376
353
|
min-block-size: 12rem;
|
|
377
354
|
resize: vertical;
|
|
378
355
|
padding: var(--space-3);
|
|
379
|
-
color: var(--text);
|
|
356
|
+
color: var(--text-strong);
|
|
380
357
|
background: var(--bg);
|
|
381
|
-
border: 1px solid var(--border);
|
|
382
|
-
border-radius: var(--
|
|
383
|
-
font-family:
|
|
358
|
+
border: 1px solid var(--control-border);
|
|
359
|
+
border-radius: var(--radius-control);
|
|
360
|
+
font-family: var(--font-mono);
|
|
384
361
|
line-height: 1.5;
|
|
385
362
|
white-space: pre;
|
|
386
363
|
overflow: auto;
|
|
@@ -399,12 +376,14 @@ h1 {
|
|
|
399
376
|
.env-row input[type='password'],
|
|
400
377
|
.env-row .env-row__name {
|
|
401
378
|
min-inline-size: 0;
|
|
402
|
-
|
|
403
|
-
|
|
379
|
+
block-size: var(--control-height);
|
|
380
|
+
padding: 0 var(--space-3);
|
|
381
|
+
color: var(--text-strong);
|
|
404
382
|
background: var(--bg);
|
|
405
|
-
border: 1px solid var(--border);
|
|
406
|
-
border-radius: var(--
|
|
407
|
-
font-family:
|
|
383
|
+
border: 1px solid var(--control-border);
|
|
384
|
+
border-radius: var(--radius-control);
|
|
385
|
+
font-family: var(--font-mono);
|
|
386
|
+
font-size: 14px;
|
|
408
387
|
}
|
|
409
388
|
|
|
410
389
|
.env-row[data-secret] .env-row__value { border-style: dashed; }
|
|
@@ -470,9 +449,9 @@ fieldset:disabled {
|
|
|
470
449
|
display: inline-flex;
|
|
471
450
|
justify-content: center;
|
|
472
451
|
align-items: center;
|
|
473
|
-
min-block-size:
|
|
474
|
-
padding-inline: var(--space-
|
|
475
|
-
border-radius:
|
|
452
|
+
min-block-size: var(--control-height);
|
|
453
|
+
padding-inline: var(--space-5);
|
|
454
|
+
border-radius: var(--radius-control);
|
|
476
455
|
border: 1px solid transparent;
|
|
477
456
|
text-decoration: none;
|
|
478
457
|
font-size: 14px;
|
|
@@ -490,13 +469,14 @@ fieldset:disabled {
|
|
|
490
469
|
|
|
491
470
|
.button:focus-visible {
|
|
492
471
|
outline: 2px solid var(--accent);
|
|
493
|
-
outline-offset:
|
|
472
|
+
outline-offset: 1px;
|
|
494
473
|
}
|
|
495
474
|
|
|
496
475
|
.button--primary {
|
|
497
476
|
background: var(--accent);
|
|
498
|
-
color:
|
|
477
|
+
color: var(--on-accent);
|
|
499
478
|
}
|
|
479
|
+
.button--primary:hover:not(:disabled) { background: var(--accent-hover); }
|
|
500
480
|
|
|
501
481
|
.button--primary:disabled {
|
|
502
482
|
opacity: 0.55;
|
|
@@ -505,10 +485,10 @@ fieldset:disabled {
|
|
|
505
485
|
}
|
|
506
486
|
|
|
507
487
|
.button--subtle {
|
|
508
|
-
border-color: var(--border);
|
|
488
|
+
border-color: var(--control-border);
|
|
509
489
|
}
|
|
510
490
|
|
|
511
|
-
.button--small { padding: 4px 10px; font-size: 12px; }
|
|
491
|
+
.button--small { min-block-size: 32px; padding: 4px 10px; font-size: 12px; }
|
|
512
492
|
|
|
513
493
|
.step-log__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: var(--space-2) var(--space-3) 0; }
|
|
514
494
|
.step-log__actions[hidden] { display: none; }
|
|
@@ -525,17 +505,55 @@ fieldset:disabled {
|
|
|
525
505
|
.danger-zone h2 { color: var(--danger); }
|
|
526
506
|
.danger-zone form { display: grid; justify-items: start; gap: var(--space-3); }
|
|
527
507
|
|
|
528
|
-
.
|
|
508
|
+
.table-scroll { overflow-x: auto; }
|
|
509
|
+
.workspace-table { inline-size: 100%; min-inline-size: 820px; border-collapse: collapse; }
|
|
529
510
|
.workspace-table th,
|
|
530
|
-
.workspace-table td { padding:
|
|
511
|
+
.workspace-table td { padding: 16px var(--space-4); text-align: start; vertical-align: middle; border-block-end: 1px solid var(--divider); overflow-wrap: anywhere; }
|
|
531
512
|
.workspace-table th:first-child,
|
|
532
513
|
.workspace-table td:first-child { padding-inline-start: 0; }
|
|
533
514
|
.workspace-table th:last-child,
|
|
534
515
|
.workspace-table td:last-child { padding-inline-end: 0; }
|
|
535
|
-
.workspace-table thead th { padding-block
|
|
536
|
-
.workspace-table tbody tr:last-child > * {
|
|
537
|
-
.workspace-table tbody th { font-weight: 600; }
|
|
538
|
-
.workspace-
|
|
516
|
+
.workspace-table thead th { padding-block: 0 12px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; border-block-end-color: var(--border-strong); }
|
|
517
|
+
.workspace-table tbody tr:last-child > * { border-block-end: 0; }
|
|
518
|
+
.workspace-table tbody th { font-family: var(--font-mono); font-size: 14px; font-weight: 600; }
|
|
519
|
+
.workspace-table tbody th a { color: var(--text-strong); text-decoration: none; }
|
|
520
|
+
.workspace-table tbody th a:hover { color: var(--accent-hover); text-decoration: underline; }
|
|
521
|
+
.workspace-table tbody th a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
|
|
522
|
+
.workspace-table td { color: var(--text-cell); }
|
|
523
|
+
.workspace-table__date { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
524
|
+
.workspace-table__date .never { color: var(--muted); }
|
|
525
|
+
|
|
526
|
+
/* A status is a dot and a word, never colour alone. The colours come from three custom properties so a
|
|
527
|
+
new status is one rule. Unlisted statuses fall back to the neutral pair. */
|
|
528
|
+
.status-pill {
|
|
529
|
+
--pill-bg: #252e41; --pill-text: #cbd5e1; --pill-dot: #94a3b8;
|
|
530
|
+
display: inline-flex;
|
|
531
|
+
align-items: center;
|
|
532
|
+
gap: 7px;
|
|
533
|
+
margin: 0;
|
|
534
|
+
padding: 3px 10px;
|
|
535
|
+
border-radius: 999px;
|
|
536
|
+
background: var(--pill-bg);
|
|
537
|
+
color: var(--pill-text);
|
|
538
|
+
font-size: 13px;
|
|
539
|
+
font-weight: 600;
|
|
540
|
+
line-height: 1.5;
|
|
541
|
+
white-space: nowrap;
|
|
542
|
+
}
|
|
543
|
+
.status-dot { inline-size: 7px; block-size: 7px; border-radius: 999px; background: var(--pill-dot); }
|
|
544
|
+
.status-pill[data-status='sleeping'] { --pill-bg: #232c4a; --pill-text: #c7d2fe; --pill-dot: #a5b4fc; }
|
|
545
|
+
.status-pill[data-status='idle'] { --pill-bg: #3a2e10; --pill-text: #fcd34d; --pill-dot: #fbbf24; }
|
|
546
|
+
.status-pill[data-status='stopped'] { --pill-bg: #43191f; --pill-text: #fca5a5; --pill-dot: #f87171; }
|
|
547
|
+
.status-pill[data-status='ready'] { --pill-bg: #12301f; --pill-text: #86efac; --pill-dot: #4ade80; }
|
|
548
|
+
.status-pill[data-status='preparing'] { --pill-bg: #0f2f3d; --pill-text: #a5f3fc; --pill-dot: #22d3ee; }
|
|
549
|
+
.status-pill[data-status='error'] { --pill-bg: #5a1a22; --pill-text: #fecaca; --pill-dot: #f87171; }
|
|
550
|
+
.status-pill[data-status='interrupted'] { --pill-bg: #43250f; --pill-text: #fdba74; --pill-dot: #fb923c; }
|
|
551
|
+
.status-pill[data-busy='true'] .status-dot { animation: workspace-pulse 1.5s infinite; }
|
|
552
|
+
@media (prefers-reduced-motion: reduce) { .status-pill[data-busy='true'] .status-dot { animation: none; } }
|
|
553
|
+
|
|
554
|
+
/* The create form: four fields in one wrapping row, the button on its own line below. */
|
|
555
|
+
.create-fields { display: flex; flex-wrap: wrap; gap: var(--space-4); }
|
|
556
|
+
.create-fields .field { flex: 1 1 220px; max-inline-size: none; }
|
|
539
557
|
|
|
540
558
|
.field { display: grid; gap: var(--space-2); max-inline-size: 28rem; font-size: 14px; }
|
|
541
559
|
.field input { inline-size: 100%; }
|
|
@@ -550,7 +568,7 @@ ol > li + li { margin-block-start: var(--space-2); }
|
|
|
550
568
|
.muted {
|
|
551
569
|
margin: 0;
|
|
552
570
|
color: var(--muted);
|
|
553
|
-
font-size:
|
|
571
|
+
font-size: 14px;
|
|
554
572
|
}
|
|
555
573
|
|
|
556
574
|
.error-panel h2,
|
|
@@ -566,9 +584,9 @@ ol > li + li { margin-block-start: var(--space-2); }
|
|
|
566
584
|
padding: var(--space-3);
|
|
567
585
|
border-radius: 10px;
|
|
568
586
|
border: 1px solid var(--border);
|
|
569
|
-
background:
|
|
570
|
-
color:
|
|
571
|
-
font-family:
|
|
587
|
+
background: var(--bg);
|
|
588
|
+
color: var(--text-cell);
|
|
589
|
+
font-family: var(--font-mono);
|
|
572
590
|
font-size: 12px;
|
|
573
591
|
line-height: 1.4;
|
|
574
592
|
white-space: pre-wrap;
|
|
@@ -596,8 +614,8 @@ ol > li + li { margin-block-start: var(--space-2); }
|
|
|
596
614
|
.log-switch a {
|
|
597
615
|
color: var(--muted);
|
|
598
616
|
padding: var(--space-2) var(--space-3);
|
|
599
|
-
border: 1px solid var(--border);
|
|
600
|
-
border-radius: var(--
|
|
617
|
+
border: 1px solid var(--control-border);
|
|
618
|
+
border-radius: var(--radius-control);
|
|
601
619
|
text-decoration: none;
|
|
602
620
|
}
|
|
603
621
|
|
|
@@ -641,21 +659,8 @@ ol > li + li { margin-block-start: var(--space-2); }
|
|
|
641
659
|
p:empty:not([role]):not([aria-live]) { display: none; }
|
|
642
660
|
|
|
643
661
|
@media (max-width: 640px) {
|
|
644
|
-
/* Stack each row: workspace, then status. Dates are desktop-only detail. */
|
|
645
|
-
.workspace-table,
|
|
646
|
-
.workspace-table tbody { display: block; }
|
|
647
|
-
.workspace-table thead,
|
|
648
|
-
.workspace-table th.workspace-table__date,
|
|
649
|
-
.workspace-table td.workspace-table__date { display: none; }
|
|
650
|
-
.workspace-table tr { display: grid; gap: var(--space-1); padding-block: var(--space-3); border-block-end: 1px solid var(--border); }
|
|
651
|
-
.workspace-table tbody tr:first-child { padding-block-start: 0; }
|
|
652
|
-
.workspace-table tbody tr:last-child { padding-block-end: 0; border-block-end: 0; }
|
|
653
|
-
.workspace-table th,
|
|
654
|
-
.workspace-table td { display: block; padding: 0; border: 0; }
|
|
655
|
-
.workspace-table tbody tr:last-child > * { padding-block-end: 0; }
|
|
656
|
-
|
|
657
662
|
.dashboard {
|
|
658
|
-
inline-size: min(100% - var(--space-4),
|
|
663
|
+
inline-size: min(100% - var(--space-4), 1180px);
|
|
659
664
|
padding-block: var(--space-6);
|
|
660
665
|
}
|
|
661
666
|
|
|
@@ -664,7 +669,7 @@ p:empty:not([role]):not([aria-live]) { display: none; }
|
|
|
664
669
|
.error-panel,
|
|
665
670
|
.log-panel,
|
|
666
671
|
.noscript-note {
|
|
667
|
-
--panel-padding: var(--space-
|
|
672
|
+
--panel-padding: var(--space-5);
|
|
668
673
|
padding: var(--panel-padding);
|
|
669
674
|
}
|
|
670
675
|
|
|
@@ -673,3 +678,23 @@ p:empty:not([role]):not([aria-live]) { display: none; }
|
|
|
673
678
|
align-items: flex-start;
|
|
674
679
|
}
|
|
675
680
|
}
|
|
681
|
+
|
|
682
|
+
/* The card: the default page for a workspace. One small square in the middle of the screen. */
|
|
683
|
+
.card-page { min-block-size: 100dvb; display: grid; place-items: center; padding: var(--space-6) var(--space-3); }
|
|
684
|
+
.card { inline-size: min(100%, 26rem); display: grid; gap: var(--space-5); align-content: start; padding: var(--panel-padding); background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
|
|
685
|
+
.card__header { display: flex; justify-content: space-between; align-items: start; gap: var(--space-3); }
|
|
686
|
+
.card__name { display: grid; gap: var(--space-1); min-inline-size: 0; }
|
|
687
|
+
.card__id { overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--text-strong); }
|
|
688
|
+
.card__text { display: grid; gap: var(--space-2); }
|
|
689
|
+
.card h1 { font-size: 24px; line-height: 1.25; }
|
|
690
|
+
.card__summary { color: var(--muted); line-height: 1.5; }
|
|
691
|
+
.card__actions { display: grid; gap: var(--space-3); }
|
|
692
|
+
.card__actions:not(:has(*:not([hidden]))) { display: none; }
|
|
693
|
+
.card__actions .button, .card__actions form, .card__start .button { inline-size: 100%; text-align: center; }
|
|
694
|
+
.card__actions .button { display: inline-flex; justify-content: center; align-items: center; text-decoration: none; }
|
|
695
|
+
.card .button--large { padding-inline: var(--space-4); }
|
|
696
|
+
.card .setup-error pre { max-block-size: 8rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
697
|
+
.card select { inline-size: 100%; }
|
|
698
|
+
.icon-link { display: inline-flex; padding: var(--space-2); border-radius: var(--radius-control); color: var(--muted); }
|
|
699
|
+
.icon-link:hover { color: var(--text); background: color-mix(in oklab, var(--accent) 12%, transparent); }
|
|
700
|
+
.icon-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<main class="dashboard" id="workspace" data-id="<%= @id %>" data-status="<%= field('status') %>" data-started="<%= field('prepare_started_at') %>" data-completed="<%= field('completed_at') %>" data-busy="<%= @presentation['busy'] %>"
|
|
1
|
+
<main class="dashboard" id="workspace" data-id="<%= @id %>" data-status="<%= field('status') %>" data-started="<%= field('prepare_started_at') %>" data-completed="<%= field('completed_at') %>" data-busy="<%= @presentation['busy'] %>">
|
|
2
2
|
<header class="dashboard__header">
|
|
3
|
-
<div class="dashboard__title"><p class="eyebrow">Managed workspace</p><h1><%= @id %></h1></div>
|
|
4
|
-
<a class="button button--subtle" href="/workspaces">All workspaces</a>
|
|
3
|
+
<div class="dashboard__title"><p class="eyebrow">Managed workspace</p><h1 class="mono-title"><%= @id %></h1></div>
|
|
4
|
+
<div class="header-actions"><a class="button button--subtle" href="/workspaces/<%= @id %>">Back to workspace</a><a class="button button--subtle" href="/workspaces">All workspaces</a></div>
|
|
5
5
|
</header>
|
|
6
6
|
<section class="status-panel lead" id="lead" data-section="lead" aria-labelledby="status" <%= 'hidden' unless section?('lead') %>>
|
|
7
7
|
<div class="lead__text">
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
</section>
|
|
27
27
|
<p id="connection" role="status"></p>
|
|
28
28
|
</section>
|
|
29
|
-
<
|
|
30
|
-
<
|
|
31
|
-
<div class="workspace-settings"
|
|
29
|
+
<section class="status-panel" id="environment-section" data-section="environment" aria-labelledby="environment-title" <%= 'hidden' unless section?('environment') %>>
|
|
30
|
+
<header class="section-heading"><h2 id="environment-title"><%= escape(@presentation['environment_title']) %></h2><span class="badge" id="environment-preset-badge" <%= 'hidden' unless @presentation['current_preset'] %>><%= escape(preset_badge_text) %></span><p class="muted">Presets and environment variables</p></header>
|
|
31
|
+
<div class="workspace-settings">
|
|
32
32
|
<form method="post" action="/workspaces/<%= @id %>/environment" id="environment-form" class="stack" data-environment-form data-environment-presets="<%= escape(environment_presets_json) %>">
|
|
33
33
|
<fieldset class="env-fieldset" data-environment-fieldset <%= 'disabled' if @presentation['busy'] %>>
|
|
34
34
|
<legend class="env-legend">Workspace settings</legend>
|
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
<p class="muted" id="environment-status" role="status" aria-live="polite"></p>
|
|
67
67
|
</form>
|
|
68
68
|
</div>
|
|
69
|
-
</
|
|
70
|
-
<
|
|
71
|
-
<
|
|
69
|
+
</section>
|
|
70
|
+
<section class="status-panel" id="technical-section" data-section="technical" aria-labelledby="technical-title" <%= 'hidden' unless section?('technical') %>>
|
|
71
|
+
<header class="section-heading"><h2 id="technical-title">Technical details</h2><p class="muted">Setup steps, logs and workspace controls</p></header>
|
|
72
72
|
<div class="technical stack stack--loose">
|
|
73
73
|
<div class="workspace-actions-group stack stack--snug" data-section="actions" aria-labelledby="actions-heading" <%= 'hidden' unless section?('actions') %>>
|
|
74
74
|
<h3 id="actions-heading">Workspace controls</h3>
|
|
@@ -80,8 +80,8 @@
|
|
|
80
80
|
<section class="log-panel" data-section="log" aria-labelledby="log-title" <%= 'hidden' unless section?('log') %>>
|
|
81
81
|
<div class="log-header"><h3 id="log-title">Live <%= field('log_source') == 'backend' ? 'backend' : 'setup' %> log</h3><time id="updated"><%= field('updated_at') %></time></div>
|
|
82
82
|
<nav class="log-switch" aria-label="Log source">
|
|
83
|
-
<a href="?log=setup" data-log-source="setup" <%= 'aria-current="page"' if @snapshot['log_source'] != 'backend' %>>Setup steps</a>
|
|
84
|
-
<a href="?log=backend" id="backend-tab" data-log-source="backend" <%= 'aria-current="page"' if @snapshot['log_source'] == 'backend' %> <%= 'hidden' unless backend_tab? %>>Web server log</a>
|
|
83
|
+
<a href="?log=setup#log-title" data-log-source="setup" <%= 'aria-current="page"' if @snapshot['log_source'] != 'backend' %>>Setup steps</a>
|
|
84
|
+
<a href="?log=backend#log-title" id="backend-tab" data-log-source="backend" <%= 'aria-current="page"' if @snapshot['log_source'] == 'backend' %> <%= 'hidden' unless backend_tab? %>>Web server log</a>
|
|
85
85
|
</nav>
|
|
86
86
|
<div id="steps" class="step-logs" data-step-logs <%= 'hidden' if @snapshot['log_source'] == 'backend' %>>
|
|
87
87
|
<% @presentation['steps'].each do |step| %><%= step_accordion(step) %><% end %>
|
|
@@ -107,6 +107,6 @@
|
|
|
107
107
|
</form>
|
|
108
108
|
</section>
|
|
109
109
|
</div>
|
|
110
|
-
</
|
|
111
|
-
<noscript><a href="/workspaces/<%= @id
|
|
110
|
+
</section>
|
|
111
|
+
<noscript><a href="/workspaces/<%= @id %>/settings">Refresh status</a></noscript>
|
|
112
112
|
</main>
|