Evidra commited on
Commit
c5aaf08
·
verified ·
1 Parent(s): a176b65

Stage sizing + bar scheme fixes

Browse files
Files changed (4) hide show
  1. DEPLOY_MANIFEST.txt +62 -53
  2. static/app.js +14 -4
  3. static/index.html +1 -1
  4. static/style.css +29 -8
DEPLOY_MANIFEST.txt CHANGED
@@ -3,58 +3,67 @@
3
  # with its path relative to the app directory and its size in bytes.
4
  # Excludes __pycache__/ and *.pyc. This file lists itself.
5
 
6
- .dockerignore 25
7
- DEPLOY_MANIFEST.txt 3408
8
- Dockerfile 1691
9
- README.md 5072
10
- app.py 9079
11
- requirements.txt 229
12
- runner.py 7497
13
- static/app.js 13311
14
- static/index.html 8349
15
- static/style.css 20341
16
- system/fixtures/accordion_form.html 1715
17
- system/fixtures/adversarial_banner.html 1799
18
- system/fixtures/adversarial_decoy.html 1685
19
- system/fixtures/adversarial_double_label.html 1734
20
- system/fixtures/adversarial_label.html 1519
21
- system/fixtures/adversarial_late_overlay.html 1543
22
- system/fixtures/adversarial_moved_button.html 2032
23
- system/fixtures/adversarial_overlay.html 2295
24
- system/fixtures/adversarial_rename_overlay.html 2200
25
- system/fixtures/adversarial_renamed_field.html 1356
26
- system/fixtures/autocomplete_select.html 1311
27
- system/fixtures/cart_update.html 1909
28
- system/fixtures/checkout_full.html 3175
29
- system/fixtures/crm_customers.html 4113
30
- system/fixtures/date_picker.html 1480
31
- system/fixtures/delayed_render.html 1750
32
- system/fixtures/dependent_dropdowns.html 2339
33
- system/fixtures/dependent_settings.html 2240
34
- system/fixtures/inline_edit_table.html 1813
35
- system/fixtures/lead_entry.html 2684
36
- system/fixtures/login.html 856
37
- system/fixtures/multistep_form.html 2259
38
- system/fixtures/otp_code_entry.html 1424
39
- system/fixtures/paginated_table.html 2989
40
- system/fixtures/settings.html 1482
41
- system/fixtures/sort_table.html 908
42
- system/fixtures/stacked_modals.html 2012
43
- system/fixtures/tabbed_panels.html 1671
44
- system/fixtures/table_filter.html 1550
45
- system/fixtures/todo.html 1112
46
- system/fixtures/validation_form.html 2249
47
- system/fixtures/vendor_application.html 4145
48
- system/fixtures/wizard_backtrack.html 2281
49
- system/results/archive_30task/run_off.json 6858
50
- system/results/archive_30task/run_on.json 6526
51
- system/results/run_off.json 7497
52
- system/results/run_on.json 7165
 
 
 
 
 
 
 
 
 
53
  system/src/__init__.py 0
54
- system/src/agent.py 9966
55
- system/src/snapshot.py 2720
56
- system/src/tasks.py 37282
57
- tests/test_app.py 6507
58
 
59
- Files: 52
60
- Total size: 219153 bytes
 
3
  # with its path relative to the app directory and its size in bytes.
4
  # Excludes __pycache__/ and *.pyc. This file lists itself.
5
 
6
+ .dockerignore 25
7
+ DEPLOY_MANIFEST.txt 3770
8
+ Dockerfile 1691
9
+ README.md 5169
10
+ app.py 9079
11
+ requirements.txt 229
12
+ runner.py 7497
13
+ static/app.js 13784
14
+ static/index.html 8349
15
+ static/style.css 21632
16
+ system/RESULTS.md 3553
17
+ system/fixtures/accordion_form.html 7647
18
+ system/fixtures/adversarial_banner.html 7403
19
+ system/fixtures/adversarial_decoy.html 7555
20
+ system/fixtures/adversarial_double_label.html 7238
21
+ system/fixtures/adversarial_label.html 7158
22
+ system/fixtures/adversarial_late_overlay.html 7120
23
+ system/fixtures/adversarial_moved_button.html 7871
24
+ system/fixtures/adversarial_overlay.html 8145
25
+ system/fixtures/adversarial_rename_overlay.html 7707
26
+ system/fixtures/adversarial_renamed_field.html 6889
27
+ system/fixtures/autocomplete_select.html 7099
28
+ system/fixtures/cart_update.html 7472
29
+ system/fixtures/checkout_full.html 9382
30
+ system/fixtures/crm_customers.html 10032
31
+ system/fixtures/date_picker.html 7174
32
+ system/fixtures/delayed_render.html 7720
33
+ system/fixtures/dependent_dropdowns.html 7850
34
+ system/fixtures/dependent_settings.html 8120
35
+ system/fixtures/inline_edit_table.html 7327
36
+ system/fixtures/lead_entry.html 8480
37
+ system/fixtures/login.html 6277
38
+ system/fixtures/multistep_form.html 7971
39
+ system/fixtures/otp_code_entry.html 7337
40
+ system/fixtures/paginated_table.html 8847
41
+ system/fixtures/portal_activity.html 7334
42
+ system/fixtures/portal_customer.html 8465
43
+ system/fixtures/portal_customer_edit.html 7911
44
+ system/fixtures/portal_customers.html 7606
45
+ system/fixtures/portal_home.html 6932
46
+ system/fixtures/portal_settings.html 6670
47
+ system/fixtures/settings.html 7338
48
+ system/fixtures/sort_table.html 6431
49
+ system/fixtures/stacked_modals.html 7833
50
+ system/fixtures/tabbed_panels.html 7648
51
+ system/fixtures/table_filter.html 7528
52
+ system/fixtures/todo.html 6871
53
+ system/fixtures/validation_form.html 7948
54
+ system/fixtures/vendor_application.html 10249
55
+ system/fixtures/wizard_backtrack.html 7887
56
+ system/results/archive_30task/run_off.json 6858
57
+ system/results/archive_30task/run_on.json 6526
58
+ system/results/archive_33task/run_off.json 7497
59
+ system/results/archive_33task/run_on.json 7165
60
+ system/results/run_off.json 8152
61
+ system/results/run_on.json 7820
62
  system/src/__init__.py 0
63
+ system/src/agent.py 9966
64
+ system/src/snapshot.py 2720
65
+ system/src/tasks.py 41301
66
+ tests/test_app.py 6507
67
 
68
+ Files: 61
69
+ Total size: 479762 bytes
static/app.js CHANGED
@@ -246,14 +246,24 @@ async function loadEval() {
246
  const p = Math.round(pctVal(x) * 10) / 10;
247
  return (Number.isInteger(p) ? p.toFixed(0) : p.toFixed(1)) + "%";
248
  };
249
- const barRow = (label, x, cls) =>
250
- `<div class="bar-row"><span class="bar-lab">${label}</span>` +
251
- `<div class="bar-track"><div class="bar-fill ${cls}" style="width:${pctVal(x)}%"></div></div>` +
252
- `<span class="bar-num">${x.passed}/${x.total} · ${pctTxt(x)}</span></div>`;
 
 
 
 
 
253
  const chartBlock = (title, on, off) =>
254
  `<div class="chart"><div class="chart-title">${esc(title)}</div>` +
255
  barRow("Recovery on", on, "on") + barRow("Recovery off", off, "off") + `</div>`;
 
 
 
 
256
  $("eval-charts").innerHTML =
 
257
  chartBlock("Full suite", s.on.overall, s.off.overall) +
258
  d.categories.map((c) => chartBlock(c.category, c.on, c.off)).join("");
259
 
 
246
  const p = Math.round(pctVal(x) * 10) / 10;
247
  return (Number.isInteger(p) ? p.toFixed(0) : p.toFixed(1)) + "%";
248
  };
249
+ const barRow = (label, x, cls) => {
250
+ const pct = pctVal(x);
251
+ const isZero = pct === 0 && x.total > 0;
252
+ const trackCls = x.passed < x.total ? "bar-track miss" : "bar-track";
253
+ const fillW = isZero ? "4px" : pct + "%";
254
+ return `<div class="bar-row"><span class="bar-lab">${label}</span>` +
255
+ `<div class="${trackCls}"><div class="bar-fill ${cls}${isZero ? " zero" : ""}" style="width:${fillW}"></div></div>` +
256
+ `<span class="bar-num">${x.passed}/${x.total} · ${pctTxt(x)}</span></div>`;
257
+ };
258
  const chartBlock = (title, on, off) =>
259
  `<div class="chart"><div class="chart-title">${esc(title)}</div>` +
260
  barRow("Recovery on", on, "on") + barRow("Recovery off", off, "off") + `</div>`;
261
+ const chartLegend =
262
+ `<div class="chart-legend"><span><i class="sw on"></i>Recovery on</span>` +
263
+ `<span><i class="sw off"></i>Recovery off</span>` +
264
+ `<span><i class="sw miss"></i>Share not passed</span></div>`;
265
  $("eval-charts").innerHTML =
266
+ chartLegend +
267
  chartBlock("Full suite", s.on.overall, s.off.overall) +
268
  d.categories.map((c) => chartBlock(c.category, c.on, c.off)).join("");
269
 
static/index.html CHANGED
@@ -108,7 +108,7 @@
108
  <section id="view-eval" class="view-section hidden">
109
  <p class="sec-eyebrow">Evaluation</p>
110
  <h2 class="sec-title">Measured, not asserted</h2>
111
- <p class="sec-sub eval-intro">Recorded full-suite results — the whole 33-task suite run with recovery on and with recovery off, read live from the system's own run files (<code>results/run_on.json</code> · <code>results/run_off.json</code>). These are the recorded suite runs, separate from the single live runs on the Live run view.</p>
112
 
113
  <div class="panel eval-panel">
114
  <div id="eval-cards" class="cards"></div>
 
108
  <section id="view-eval" class="view-section hidden">
109
  <p class="sec-eyebrow">Evaluation</p>
110
  <h2 class="sec-title">Measured, not asserted</h2>
111
+ <p class="sec-sub eval-intro">Recorded full-suite results — the whole 36-task suite run with recovery on and with recovery off, read live from the system's own run files (<code>results/run_on.json</code> · <code>results/run_off.json</code>). These are the recorded suite runs, separate from the single live runs on the Live run view.</p>
112
 
113
  <div class="panel eval-panel">
114
  <div id="eval-cards" class="cards"></div>
static/style.css CHANGED
@@ -211,9 +211,14 @@ main.wrap{padding-top:0;padding-bottom:0}
211
  .verdict .v-meta{font-family:var(--mono);font-size:13px;color:var(--muted);margin-top:3px}
212
  @keyframes rise{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
213
 
214
- /* console: screenshot showcase + event log */
215
- .console{display:grid;grid-template-columns:1.25fr 1fr;gap:18px;margin-top:20px}
216
- @media(max-width:1100px){.console{grid-template-columns:1fr}}
 
 
 
 
 
217
  .screen-wrap{background:#ecefee;
218
  border:1px solid var(--line-strong);border-radius:20px;overflow:hidden;
219
  min-height:260px;position:relative;box-shadow:var(--shadow)}
@@ -227,10 +232,11 @@ main.wrap{padding-top:0;padding-bottom:0}
227
  .progress{margin-top:16px;background:var(--surface-2);border:1px solid var(--line);
228
  border-radius:16px;padding:14px 16px;animation:rise .45s ease both}
229
  .progress-head{display:flex;justify-content:space-between;align-items:baseline;
230
- gap:12px;margin-bottom:11px}
231
  .progress-label{font-family:var(--mono);font-size:11.5px;letter-spacing:.1em;
232
- text-transform:uppercase;color:var(--muted);font-weight:600}
233
- .progress-count{font-family:var(--mono);font-size:12.5px;color:var(--ink-2)}
 
234
  .step-nodes{display:flex;flex-wrap:wrap;gap:7px}
235
  .node{width:30px;height:30px;border-radius:50%;flex:none;
236
  display:inline-flex;align-items:center;justify-content:center;
@@ -257,7 +263,7 @@ main.wrap{padding-top:0;padding-bottom:0}
257
  background:rgba(255,255,255,.65);border:1px solid var(--line-strong);
258
  color:var(--ink-2);padding:3px 11px;border-radius:99px}
259
  .log{list-style:none;margin:0;padding:8px 0;background:var(--surface-2);
260
- border:1px solid var(--line);border-radius:20px;max-height:540px;overflow:auto}
261
  .log li{font-family:var(--mono);font-size:12.8px;padding:8px 16px;line-height:1.5;
262
  border-bottom:1px solid #e9e9ec;display:flex;gap:10px;color:var(--ink-2)}
263
  .log li:last-child{border-bottom:0}
@@ -304,9 +310,24 @@ tr:last-child td{border-bottom:0}
304
  text-transform:uppercase;letter-spacing:.05em}
305
  .bar-track{height:14px;background:var(--surface-2);border:1px solid var(--line);
306
  border-radius:99px;overflow:hidden}
 
 
 
 
307
  .bar-fill{height:100%;border-radius:99px;transition:width .6s ease}
 
 
308
  .bar-fill.on{background:linear-gradient(90deg,var(--accent),var(--accent-bright))}
309
- .bar-fill.off{background:linear-gradient(90deg,#d97762,var(--red))}
 
 
 
 
 
 
 
 
 
310
  .bar-num{font-family:var(--mono);font-size:12.5px;color:var(--ink-2);text-align:right}
311
 
312
  /* evaluation heatmap: tasks x recovery mode */
 
211
  .verdict .v-meta{font-family:var(--mono);font-size:13px;color:var(--muted);margin-top:3px}
212
  @keyframes rise{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
213
 
214
+ /* console: screenshot showcase + event log.
215
+ Stacked, not side-by-side: the stage column left over after the
216
+ picker is ~714px at most, and a 1.25fr/1fr split starved the
217
+ screenshot to ~386px wide (a third of its 1100px natural width),
218
+ while grid stretch ballooned the frame to the log's height and
219
+ left dead space under the image. Stacked, the screenshot gets the
220
+ full stage width and the frame hugs it exactly. */
221
+ .console{display:flex;flex-direction:column;gap:18px;margin-top:20px}
222
  .screen-wrap{background:#ecefee;
223
  border:1px solid var(--line-strong);border-radius:20px;overflow:hidden;
224
  min-height:260px;position:relative;box-shadow:var(--shadow)}
 
232
  .progress{margin-top:16px;background:var(--surface-2);border:1px solid var(--line);
233
  border-radius:16px;padding:14px 16px;animation:rise .45s ease both}
234
  .progress-head{display:flex;justify-content:space-between;align-items:baseline;
235
+ gap:6px 12px;margin-bottom:11px;flex-wrap:wrap}
236
  .progress-label{font-family:var(--mono);font-size:11.5px;letter-spacing:.1em;
237
+ text-transform:uppercase;color:var(--muted);font-weight:600;flex:none}
238
+ .progress-count{font-family:var(--mono);font-size:12.5px;color:var(--ink-2);
239
+ white-space:nowrap;margin-left:auto}
240
  .step-nodes{display:flex;flex-wrap:wrap;gap:7px}
241
  .node{width:30px;height:30px;border-radius:50%;flex:none;
242
  display:inline-flex;align-items:center;justify-content:center;
 
263
  background:rgba(255,255,255,.65);border:1px solid var(--line-strong);
264
  color:var(--ink-2);padding:3px 11px;border-radius:99px}
265
  .log{list-style:none;margin:0;padding:8px 0;background:var(--surface-2);
266
+ border:1px solid var(--line);border-radius:20px;max-height:400px;overflow:auto}
267
  .log li{font-family:var(--mono);font-size:12.8px;padding:8px 16px;line-height:1.5;
268
  border-bottom:1px solid #e9e9ec;display:flex;gap:10px;color:var(--ink-2)}
269
  .log li:last-child{border-bottom:0}
 
310
  text-transform:uppercase;letter-spacing:.05em}
311
  .bar-track{height:14px;background:var(--surface-2);border:1px solid var(--line);
312
  border-radius:99px;overflow:hidden}
313
+ /* the unfilled remainder of a bar is the share NOT passed: tint it
314
+ pale red so a partial bar reads as green/slate + red remainder,
315
+ never as a shorter "mode" bar */
316
+ .bar-track.miss{background:var(--red-soft);border-color:#f0c6bd}
317
  .bar-fill{height:100%;border-radius:99px;transition:width .6s ease}
318
+ /* bar colour encodes the MODE (green = recovery on, slate = recovery
319
+ off); the result is the fill length plus the red remainder above */
320
  .bar-fill.on{background:linear-gradient(90deg,var(--accent),var(--accent-bright))}
321
+ .bar-fill.off{background:linear-gradient(90deg,#8296ab,#5b7186)}
322
+ /* a true 0% still shows a red sliver — zero is a result, not missing data */
323
+ .bar-fill.zero{background:var(--red)}
324
+ .chart-legend{display:flex;gap:10px 20px;flex-wrap:wrap;align-items:center;
325
+ margin:2px 0 6px;font-size:12.5px;color:var(--muted)}
326
+ .chart-legend .sw{display:inline-block;width:12px;height:12px;border-radius:3px;
327
+ margin-right:6px;vertical-align:-1px}
328
+ .chart-legend .sw.on{background:var(--accent)}
329
+ .chart-legend .sw.off{background:#5b7186}
330
+ .chart-legend .sw.miss{background:var(--red-soft);border:1px solid #f0c6bd}
331
  .bar-num{font-family:var(--mono);font-size:12.5px;color:var(--ink-2);text-align:right}
332
 
333
  /* evaluation heatmap: tasks x recovery mode */