workspaces 0.1.17 → 0.1.19

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.
@@ -1,15 +1,31 @@
1
1
  :root {
2
- --bg: #0f1524;
3
- --bg-elevated: #182035;
4
- --border: #2f3a57;
5
- --text: #e8edf9;
6
- --muted: #9eaccd;
7
- --accent: #4f8dff;
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
- --shadow: 0 10px 30px rgba(8, 12, 20, 0.35);
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: var(--space-6);
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 { max-width: 100%; padding: var(--space-2); color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: var(--space-1); }
49
- input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
50
- textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
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: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
99
+ font-family: var(--font-sans);
100
+ font-size: 15px;
101
+ line-height: 1.5;
71
102
  color: var(--text);
72
- background: linear-gradient(180deg, #0c1220 0%, var(--bg) 60%, #0b1020 100%);
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), 960px);
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
- font-size: clamp(1.4rem, 2vw + 1rem, 2rem);
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: clamp(1.4rem, 2vw + 1rem, 1.9rem); line-height: 1.2; }
156
- .lead__summary { max-inline-size: 38rem; color: var(--muted); font-size: 1.05rem; line-height: 1.5; }
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,7 +203,7 @@ 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); }
206
+ .button--large { min-block-size: 52px; padding-inline: var(--space-8); font-size: 16px; border-radius: var(--radius-control); }
171
207
 
172
208
  /* Disclosures: quiet by default, a clear label and a one-line hint of what is inside. */
173
209
  /* A disclosure has to read as a control. The native marker is lost once a summary is a flex
@@ -247,35 +283,6 @@ h1 {
247
283
  font-size: 13px;
248
284
  }
249
285
 
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
286
  .status-value {
280
287
  margin: 0;
281
288
  font-weight: 600;
@@ -376,16 +383,50 @@ h1 {
376
383
  min-block-size: 12rem;
377
384
  resize: vertical;
378
385
  padding: var(--space-3);
379
- color: var(--text);
386
+ color: var(--text-strong);
380
387
  background: var(--bg);
381
- border: 1px solid var(--border);
382
- border-radius: var(--space-1);
383
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
388
+ border: 1px solid var(--control-border);
389
+ border-radius: var(--radius-control);
390
+ font-family: var(--font-mono);
384
391
  line-height: 1.5;
385
392
  white-space: pre;
386
393
  overflow: auto;
387
394
  }
388
395
 
396
+ .env-rows { display: grid; gap: var(--space-2); }
397
+
398
+ .env-row {
399
+ display: grid;
400
+ grid-template-columns: minmax(8rem, 1fr) minmax(8rem, 2fr) auto auto;
401
+ gap: var(--space-2);
402
+ align-items: center;
403
+ }
404
+
405
+ .env-row input[type='text'],
406
+ .env-row input[type='password'],
407
+ .env-row .env-row__name {
408
+ min-inline-size: 0;
409
+ block-size: var(--control-height);
410
+ padding: 0 var(--space-3);
411
+ color: var(--text-strong);
412
+ background: var(--bg);
413
+ border: 1px solid var(--control-border);
414
+ border-radius: var(--radius-control);
415
+ font-family: var(--font-mono);
416
+ font-size: 14px;
417
+ }
418
+
419
+ .env-row[data-secret] .env-row__value { border-style: dashed; }
420
+ .env-row__stored { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 13px; }
421
+ .env-row__secret { display: inline-flex; align-items: center; gap: var(--space-1); font-size: 13px; white-space: nowrap; }
422
+ .env-row-actions { display: flex; gap: var(--space-2); }
423
+ .env-vault-note { color: var(--warning); }
424
+
425
+ @media (max-width: 560px) {
426
+ .env-row { grid-template-columns: 1fr 1fr; }
427
+ .env-row .env-row__name, .env-row .env-row__value { grid-column: 1 / -1; }
428
+ }
429
+
389
430
  .env-actions {
390
431
  display: flex;
391
432
  flex-wrap: wrap;
@@ -438,9 +479,9 @@ fieldset:disabled {
438
479
  display: inline-flex;
439
480
  justify-content: center;
440
481
  align-items: center;
441
- min-block-size: 40px;
442
- padding-inline: var(--space-4);
443
- border-radius: 10px;
482
+ min-block-size: var(--control-height);
483
+ padding-inline: var(--space-5);
484
+ border-radius: var(--radius-control);
444
485
  border: 1px solid transparent;
445
486
  text-decoration: none;
446
487
  font-size: 14px;
@@ -458,13 +499,14 @@ fieldset:disabled {
458
499
 
459
500
  .button:focus-visible {
460
501
  outline: 2px solid var(--accent);
461
- outline-offset: 2px;
502
+ outline-offset: 1px;
462
503
  }
463
504
 
464
505
  .button--primary {
465
506
  background: var(--accent);
466
- color: #ffffff;
507
+ color: var(--on-accent);
467
508
  }
509
+ .button--primary:hover:not(:disabled) { background: var(--accent-hover); }
468
510
 
469
511
  .button--primary:disabled {
470
512
  opacity: 0.55;
@@ -473,10 +515,10 @@ fieldset:disabled {
473
515
  }
474
516
 
475
517
  .button--subtle {
476
- border-color: var(--border);
518
+ border-color: var(--control-border);
477
519
  }
478
520
 
479
- .button--small { padding: 4px 10px; font-size: 12px; }
521
+ .button--small { min-block-size: 32px; padding: 4px 10px; font-size: 12px; }
480
522
 
481
523
  .step-log__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: var(--space-2) var(--space-3) 0; }
482
524
  .step-log__actions[hidden] { display: none; }
@@ -493,17 +535,55 @@ fieldset:disabled {
493
535
  .danger-zone h2 { color: var(--danger); }
494
536
  .danger-zone form { display: grid; justify-items: start; gap: var(--space-3); }
495
537
 
496
- .workspace-table { inline-size: 100%; border-collapse: collapse; }
538
+ .table-scroll { overflow-x: auto; }
539
+ .workspace-table { inline-size: 100%; min-inline-size: 820px; border-collapse: collapse; }
497
540
  .workspace-table th,
498
- .workspace-table td { padding: var(--space-3) var(--space-4); text-align: start; vertical-align: middle; border-block-end: 1px solid var(--border); overflow-wrap: anywhere; }
541
+ .workspace-table td { padding: 16px var(--space-4); text-align: start; vertical-align: middle; border-block-end: 1px solid var(--divider); overflow-wrap: anywhere; }
499
542
  .workspace-table th:first-child,
500
543
  .workspace-table td:first-child { padding-inline-start: 0; }
501
544
  .workspace-table th:last-child,
502
545
  .workspace-table td:last-child { padding-inline-end: 0; }
503
- .workspace-table thead th { padding-block-start: 0; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
504
- .workspace-table tbody tr:last-child > * { padding-block-end: 0; border-block-end: 0; }
505
- .workspace-table tbody th { font-weight: 600; }
506
- .workspace-table__date { color: var(--muted); font-size: 13px; white-space: nowrap; }
546
+ .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); }
547
+ .workspace-table tbody tr:last-child > * { border-block-end: 0; }
548
+ .workspace-table tbody th { font-family: var(--font-mono); font-size: 14px; font-weight: 600; }
549
+ .workspace-table tbody th a { color: var(--text-strong); text-decoration: none; }
550
+ .workspace-table tbody th a:hover { color: var(--accent-hover); text-decoration: underline; }
551
+ .workspace-table tbody th a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
552
+ .workspace-table td { color: var(--text-cell); }
553
+ .workspace-table__date { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
554
+ .workspace-table__date .never { color: var(--muted); }
555
+
556
+ /* A status is a dot and a word, never colour alone. The colours come from three custom properties so a
557
+ new status is one rule. Unlisted statuses fall back to the neutral pair. */
558
+ .status-pill {
559
+ --pill-bg: #252e41; --pill-text: #cbd5e1; --pill-dot: #94a3b8;
560
+ display: inline-flex;
561
+ align-items: center;
562
+ gap: 7px;
563
+ margin: 0;
564
+ padding: 3px 10px;
565
+ border-radius: 999px;
566
+ background: var(--pill-bg);
567
+ color: var(--pill-text);
568
+ font-size: 13px;
569
+ font-weight: 600;
570
+ line-height: 1.5;
571
+ white-space: nowrap;
572
+ }
573
+ .status-dot { inline-size: 7px; block-size: 7px; border-radius: 999px; background: var(--pill-dot); }
574
+ .status-pill[data-status='sleeping'] { --pill-bg: #232c4a; --pill-text: #c7d2fe; --pill-dot: #a5b4fc; }
575
+ .status-pill[data-status='idle'] { --pill-bg: #3a2e10; --pill-text: #fcd34d; --pill-dot: #fbbf24; }
576
+ .status-pill[data-status='stopped'] { --pill-bg: #43191f; --pill-text: #fca5a5; --pill-dot: #f87171; }
577
+ .status-pill[data-status='ready'] { --pill-bg: #12301f; --pill-text: #86efac; --pill-dot: #4ade80; }
578
+ .status-pill[data-status='preparing'] { --pill-bg: #0f2f3d; --pill-text: #a5f3fc; --pill-dot: #22d3ee; }
579
+ .status-pill[data-status='error'] { --pill-bg: #5a1a22; --pill-text: #fecaca; --pill-dot: #f87171; }
580
+ .status-pill[data-status='interrupted'] { --pill-bg: #43250f; --pill-text: #fdba74; --pill-dot: #fb923c; }
581
+ .status-pill[data-busy='true'] .status-dot { animation: workspace-pulse 1.5s infinite; }
582
+ @media (prefers-reduced-motion: reduce) { .status-pill[data-busy='true'] .status-dot { animation: none; } }
583
+
584
+ /* The create form: four fields in one wrapping row, the button on its own line below. */
585
+ .create-fields { display: flex; flex-wrap: wrap; gap: var(--space-4); }
586
+ .create-fields .field { flex: 1 1 220px; max-inline-size: none; }
507
587
 
508
588
  .field { display: grid; gap: var(--space-2); max-inline-size: 28rem; font-size: 14px; }
509
589
  .field input { inline-size: 100%; }
@@ -518,7 +598,7 @@ ol > li + li { margin-block-start: var(--space-2); }
518
598
  .muted {
519
599
  margin: 0;
520
600
  color: var(--muted);
521
- font-size: 13px;
601
+ font-size: 14px;
522
602
  }
523
603
 
524
604
  .error-panel h2,
@@ -534,9 +614,9 @@ ol > li + li { margin-block-start: var(--space-2); }
534
614
  padding: var(--space-3);
535
615
  border-radius: 10px;
536
616
  border: 1px solid var(--border);
537
- background: #0f172a;
538
- color: #d8e1f7;
539
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
617
+ background: var(--bg);
618
+ color: var(--text-cell);
619
+ font-family: var(--font-mono);
540
620
  font-size: 12px;
541
621
  line-height: 1.4;
542
622
  white-space: pre-wrap;
@@ -564,8 +644,8 @@ ol > li + li { margin-block-start: var(--space-2); }
564
644
  .log-switch a {
565
645
  color: var(--muted);
566
646
  padding: var(--space-2) var(--space-3);
567
- border: 1px solid var(--border);
568
- border-radius: var(--space-1);
647
+ border: 1px solid var(--control-border);
648
+ border-radius: var(--radius-control);
569
649
  text-decoration: none;
570
650
  }
571
651
 
@@ -609,21 +689,8 @@ ol > li + li { margin-block-start: var(--space-2); }
609
689
  p:empty:not([role]):not([aria-live]) { display: none; }
610
690
 
611
691
  @media (max-width: 640px) {
612
- /* Stack each row: workspace, then status. Dates are desktop-only detail. */
613
- .workspace-table,
614
- .workspace-table tbody { display: block; }
615
- .workspace-table thead,
616
- .workspace-table th.workspace-table__date,
617
- .workspace-table td.workspace-table__date { display: none; }
618
- .workspace-table tr { display: grid; gap: var(--space-1); padding-block: var(--space-3); border-block-end: 1px solid var(--border); }
619
- .workspace-table tbody tr:first-child { padding-block-start: 0; }
620
- .workspace-table tbody tr:last-child { padding-block-end: 0; border-block-end: 0; }
621
- .workspace-table th,
622
- .workspace-table td { display: block; padding: 0; border: 0; }
623
- .workspace-table tbody tr:last-child > * { padding-block-end: 0; }
624
-
625
692
  .dashboard {
626
- inline-size: min(100% - var(--space-4), 960px);
693
+ inline-size: min(100% - var(--space-4), 1180px);
627
694
  padding-block: var(--space-6);
628
695
  }
629
696
 
@@ -632,7 +699,7 @@ p:empty:not([role]):not([aria-live]) { display: none; }
632
699
  .error-panel,
633
700
  .log-panel,
634
701
  .noscript-note {
635
- --panel-padding: var(--space-4);
702
+ --panel-padding: var(--space-5);
636
703
  padding: var(--panel-padding);
637
704
  }
638
705
 
@@ -641,3 +708,23 @@ p:empty:not([role]):not([aria-live]) { display: none; }
641
708
  align-items: flex-start;
642
709
  }
643
710
  }
711
+
712
+ /* The card: the default page for a workspace. One small square in the middle of the screen. */
713
+ .card-page { min-block-size: 100dvb; display: grid; place-items: center; padding: var(--space-6) var(--space-3); }
714
+ .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); }
715
+ .card__header { display: flex; justify-content: space-between; align-items: start; gap: var(--space-3); }
716
+ .card__name { display: grid; gap: var(--space-1); min-inline-size: 0; }
717
+ .card__id { overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--text-strong); }
718
+ .card__text { display: grid; gap: var(--space-2); }
719
+ .card h1 { font-size: 24px; line-height: 1.25; }
720
+ .card__summary { color: var(--muted); line-height: 1.5; }
721
+ .card__actions { display: grid; gap: var(--space-3); }
722
+ .card__actions:not(:has(*:not([hidden]))) { display: none; }
723
+ .card__actions .button, .card__actions form, .card__start .button { inline-size: 100%; text-align: center; }
724
+ .card__actions .button { display: inline-flex; justify-content: center; align-items: center; text-decoration: none; }
725
+ .card .button--large { padding-inline: var(--space-4); }
726
+ .card .setup-error pre { max-block-size: 8rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
727
+ .card select { inline-size: 100%; }
728
+ .icon-link { display: inline-flex; padding: var(--space-2); border-radius: var(--radius-control); color: var(--muted); }
729
+ .icon-link:hover { color: var(--text); background: color-mix(in oklab, var(--accent) 12%, transparent); }
730
+ .icon-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@@ -1,7 +1,7 @@
1
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'] %>" data-disclosure-state="<%= escape(@presentation['state']) %>">
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">
@@ -44,9 +44,21 @@
44
44
  </div>
45
45
  <% end %>
46
46
  <div class="stack stack--tight">
47
- <label class="env-input-label" for="editable-env">Environment variables</label>
48
- <textarea id="editable-env" name="editable_env" rows="8" spellcheck="false" autocomplete="off" autocapitalize="off"><%= escape(editable_environment_text) %></textarea>
47
+ <p class="env-input-label" id="env-rows-label">Environment variables</p>
48
+ <div class="env-rows" id="env-rows" role="group" aria-labelledby="env-rows-label" data-env-rows>
49
+ <% environment_rows.each_with_index do |row, index| %>
50
+ <%= env_row_html(index, row) %>
51
+ <% end %>
52
+ </div>
53
+ <div class="env-row-actions">
54
+ <button type="button" class="button button--subtle button--small" data-env-add-row hidden>Add variable</button>
55
+ </div>
56
+ <% unless vault_status['available'] %>
57
+ <p class="muted env-vault-note" id="env-vault-note"><%= escape(vault_status['problem'] || 'Secrets are not available.') %></p>
58
+ <% end %>
59
+ <p class="muted env-secret-help">Secrets are write-only: once saved their values are never shown again. Leave a secret's value blank to keep what is stored.</p>
49
60
  </div>
61
+ <template id="env-row-template"><%= env_row_html('__INDEX__', { 'name' => '', 'value' => '', 'secret' => false }) %></template>
50
62
  </fieldset>
51
63
  <div class="env-actions">
52
64
  <button class="button button--primary" data-env-submit <%= 'disabled' if @presentation['busy'] %>><%= escape(@presentation['environment_submit']) %></button>
@@ -96,5 +108,5 @@
96
108
  </section>
97
109
  </div>
98
110
  </details>
99
- <noscript><a href="/workspaces/<%= @id %>">Refresh status</a></noscript>
111
+ <noscript><a href="/workspaces/<%= @id %>/settings">Refresh status</a></noscript>
100
112
  </main>