-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathohmlet-build-report.html
More file actions
504 lines (448 loc) · 37.1 KB
/
Copy pathohmlet-build-report.html
File metadata and controls
504 lines (448 loc) · 37.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Ohmlet — Build Report</title>
<style>
:root{
--yellow:#f3e515; --yellow-soft:#fffde8; --yellow-deep:#b9a800;
--ink:#0a0a0a; --ink-soft:#475569;
--slate-50:#f8fafc; --slate-100:#f1f5f9; --slate-200:#e2e8f0; --slate-300:#cbd5e1;
--green:#16a34a; --green-soft:#eafaf0;
--blue:#2563eb; --blue-soft:#eef2ff;
--amber:#d97706; --amber-soft:#fff7ed;
--line:#e6e9ef;
--shadow-card:0 1px 2px rgba(15,23,42,.06), 0 4px 12px rgba(15,23,42,.05);
--shadow-lift:0 8px 28px rgba(15,23,42,.12);
--shadow-press:4px 4px 0 var(--ink);
--font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,"Helvetica Neue",Arial,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
font-family:var(--font); color:var(--ink); background:var(--slate-50);
line-height:1.5; -webkit-font-smoothing:antialiased;
background-image:
radial-gradient(900px 500px at 88% -8%, rgba(243,229,21,.22), transparent 60%),
radial-gradient(700px 480px at -6% 4%, rgba(37,99,235,.07), transparent 55%);
}
.wrap{max-width:1080px;margin:0 auto;padding:0 22px}
/* Header */
header{padding:54px 0 26px}
.brand{display:flex;align-items:center;gap:10px;font-weight:900;letter-spacing:-.02em;font-size:15px;text-transform:uppercase}
.bolt{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:9px;background:var(--ink)}
.bolt svg{width:16px;height:16px}
h1{font-size:clamp(30px,5vw,46px);font-weight:900;letter-spacing:-.03em;margin:20px 0 8px;line-height:1.04}
.sub{font-size:17px;color:var(--ink-soft);font-weight:500;max-width:680px}
.meta{margin-top:14px;font-size:12.5px;color:var(--ink-soft);font-weight:700;text-transform:uppercase;letter-spacing:.08em}
/* Stat tiles */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:30px 0 8px}
.stat{background:#fff;border:2px solid var(--line);border-radius:18px;padding:18px 18px 16px;box-shadow:var(--shadow-card);position:relative;overflow:hidden}
.stat::after{content:"";position:absolute;inset:0 0 auto 0;height:4px;background:var(--yellow)}
.stat .num{font-size:34px;font-weight:900;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.stat .lab{font-size:12px;font-weight:700;color:var(--ink-soft);margin-top:2px;line-height:1.3}
/* Controls */
.controls{position:sticky;top:0;z-index:20;background:rgba(248,250,252,.86);backdrop-filter:blur(10px);padding:16px 0 10px;margin-top:26px;border-bottom:1px solid var(--line)}
.search{width:100%;border:2px solid var(--slate-200);background:#fff;border-radius:14px;padding:12px 14px;font:inherit;font-size:15px;font-weight:600;outline:none;transition:border-color .15s,box-shadow .15s}
.search:focus{border-color:var(--ink);box-shadow:0 0 0 4px var(--yellow-soft)}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.chip{border:2px solid var(--slate-200);background:#fff;border-radius:999px;padding:7px 14px;font:inherit;font-size:13px;font-weight:800;color:var(--ink-soft);cursor:pointer;transition:all .15s;white-space:nowrap}
.chip:hover{border-color:var(--ink);color:var(--ink);transform:translateY(-1px)}
.chip.active{background:var(--ink);color:#fff;border-color:var(--ink)}
.chip .c{opacity:.6;font-variant-numeric:tabular-nums}
/* Section labels */
.seclabel{font-size:12px;font-weight:900;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-soft);margin:34px 0 4px}
.secnote{font-size:14px;color:var(--ink-soft);margin-bottom:14px;font-weight:500}
/* Cards */
.grid{display:grid;gap:14px;margin-top:14px}
.card{background:#fff;border:2px solid var(--line);border-radius:20px;box-shadow:var(--shadow-card);overflow:hidden;transition:box-shadow .18s,transform .18s,border-color .18s;opacity:0;transform:translateY(10px);animation:rise .5s forwards}
@keyframes rise{to{opacity:1;transform:none}}
.card:hover{box-shadow:var(--shadow-lift);border-color:var(--slate-300)}
.card.session{border-color:var(--ink)}
.card.session::before{content:"";display:block;height:5px;background:linear-gradient(90deg,var(--yellow),var(--yellow-deep))}
.chead{display:flex;align-items:flex-start;gap:14px;padding:18px 20px;cursor:pointer;user-select:none}
.icon{flex:none;width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:var(--slate-100);border:1.5px solid var(--line)}
.icon svg{width:21px;height:21px}
.ctop{flex:1;min-width:0}
.ctitle{font-size:17px;font-weight:800;letter-spacing:-.01em;display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.cwhat{font-size:14.5px;color:var(--ink-soft);margin-top:4px;font-weight:500}
.badges{display:flex;gap:7px;align-items:center;flex:none;flex-wrap:wrap;justify-content:flex-end;max-width:170px}
.badge{font-size:10.5px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;padding:4px 9px;border-radius:999px;white-space:nowrap}
.b-live{background:var(--green-soft);color:var(--green)}
.b-shipped{background:var(--blue-soft);color:var(--blue)}
.b-next{background:var(--amber-soft);color:var(--amber)}
.b-date{background:var(--slate-100);color:var(--ink-soft)}
.b-session{background:var(--ink);color:var(--yellow)}
.chev{flex:none;align-self:center;transition:transform .25s;color:var(--slate-300)}
.card.open .chev{transform:rotate(90deg);color:var(--ink)}
/* expandable details (grid-rows trick = smooth height) */
.details{display:grid;grid-template-rows:0fr;transition:grid-template-rows .28s ease}
.card.open .details{grid-template-rows:1fr}
.dinner{overflow:hidden}
.dpad{padding:2px 20px 20px;border-top:1px dashed var(--line);margin-top:2px}
.row{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--slate-100)}
.row:last-child{border-bottom:0}
.rk{flex:none;width:104px;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:var(--ink);padding-top:2px}
.rk.why{color:var(--blue)} .rk.how{color:var(--green)}
.rv{font-size:14.5px;color:var(--ink-soft);font-weight:500}
.ev{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.pill{font-size:12px;font-weight:700;color:var(--ink);background:var(--yellow-soft);border:1.5px solid var(--yellow);border-radius:999px;padding:5px 11px;display:inline-flex;align-items:center;gap:6px}
.pill svg{width:13px;height:13px;color:var(--yellow-deep)}
/* progress */
.progwrap{background:#fff;border:2px solid var(--line);border-radius:20px;padding:22px;box-shadow:var(--shadow-card);margin-top:18px}
.progtop{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:12px}
.progtop h3{font-size:17px;font-weight:900}
.progtop .pct{font-size:26px;font-weight:900;font-variant-numeric:tabular-nums}
.bar{height:14px;background:var(--slate-100);border-radius:999px;overflow:hidden;border:1px solid var(--line)}
.bar > i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--yellow),var(--yellow-deep));border-radius:999px;transition:width 1.1s cubic-bezier(.2,.7,.2,1)}
.leg{display:flex;gap:18px;margin-top:12px;font-size:13px;font-weight:700;color:var(--ink-soft);flex-wrap:wrap}
.dot{display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:6px;vertical-align:middle}
.empty{display:none;text-align:center;padding:50px 20px;color:var(--ink-soft);font-weight:600}
footer{padding:40px 0 60px;color:var(--ink-soft);font-size:13px;font-weight:500;text-align:center}
footer b{color:var(--ink)}
@media(max-width:720px){
.stats{grid-template-columns:repeat(2,1fr)}
.badges{max-width:none}
.rk{width:72px}
}
</style>
</head>
<body>
<div class="wrap">
<header>
<div class="brand">
<span class="bolt"><svg viewBox="0 0 24 24" fill="none"><path d="M13 2L4.5 13.5H11l-1 8.5L19.5 10H13l0-8z" fill="#f3e515"/></svg></span>
Ohmlet
</div>
<h1>What I built, and why it matters.</h1>
<p class="sub">A plain-English tour of the work shipped recently, what each piece does for the product, and what comes next. Click any card to expand the detail. Filter or search to focus.</p>
<p class="meta" id="genline">Build report</p>
<div class="stats" id="stats"></div>
</header>
<div class="controls">
<input id="search" class="search" placeholder="Search the work (e.g. camera, billing, alerts, security)…" autocomplete="off" />
<div class="chips" id="chips"></div>
</div>
<div id="sessionSec">
<div class="seclabel">★ This session</div>
<div class="secnote">The headline work from right now: the camera kit check, the observability/hardening layer, the deploy, and the ops follow-ups.</div>
<div class="grid" id="grid-session"></div>
</div>
<div id="shippedSec">
<div class="seclabel">Recently shipped — the road to launch</div>
<div class="secnote">The commercial spine, security, reliability, and retention work already live in the product.</div>
<div class="grid" id="grid-shipped"></div>
</div>
<div id="nextSec">
<div class="seclabel">Up next</div>
<div class="secnote">What I'd tackle next, roughly in priority order.</div>
<div class="grid" id="grid-next"></div>
<div class="progwrap">
<div class="progtop">
<h3>Launch backlog progress</h3>
<div class="pct" id="pct">0%</div>
</div>
<div class="bar"><i id="barfill"></i></div>
<div class="leg">
<span><span class="dot" style="background:var(--yellow)"></span><b id="doneN">0</b> shipped</span>
<span><span class="dot" style="background:var(--slate-300)"></span><b id="nextN">0</b> remaining</span>
<span style="color:var(--ink-soft)">Tracked across the master roadmap (tasks #11–#66).</span>
</div>
</div>
</div>
<div class="empty" id="empty">No work matches that filter. Try another chip or clear the search.</div>
<footer>
Generated for <b>Ohmlet</b> — a real-time multimodal lab tutor for hands-on electronics.<br>
This is a summary of engineering work, written to be read without a CS degree.
</footer>
</div>
<script>
// ── Icons (inline, no deps) ──
const I = {
camera:'<path d="M3 7h4l2-2h6l2 2h4v12H3z" stroke="#0a0a0a" stroke-width="2" fill="none"/><circle cx="12" cy="13" r="3.5" stroke="#0a0a0a" stroke-width="2" fill="none"/>',
eye:'<path d="M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12z" stroke="#0a0a0a" stroke-width="2" fill="none"/><circle cx="12" cy="12" r="3" fill="#f3e515"/>',
rocket:'<path d="M5 15c-1 1-2 5-2 5s4-1 5-2m6.5-12.5C18 2 21 3 21 3s1 3-.5 6.5C19 13 13 18 13 18l-5-5s5-6 6.5-7.5z" stroke="#0a0a0a" stroke-width="2" fill="none"/>',
bell:'<path d="M6 9a6 6 0 1112 0c0 5 2 6 2 6H4s2-1 2-6z" stroke="#0a0a0a" stroke-width="2" fill="none"/><path d="M10 21h4" stroke="#0a0a0a" stroke-width="2"/>',
broom:'<path d="M3 21l6-6m4-4l4-4m-9 14l9-9 1 1-9 9zM13 7l4 4" stroke="#0a0a0a" stroke-width="2" fill="none"/>',
card:'<rect x="2.5" y="5" width="19" height="14" rx="2.5" stroke="#0a0a0a" stroke-width="2" fill="none"/><path d="M2.5 9.5h19" stroke="#0a0a0a" stroke-width="2"/>',
shield:'<path d="M12 3l8 3v5c0 5-4 8-8 10-4-2-8-5-8-10V6z" stroke="#0a0a0a" stroke-width="2" fill="none"/><path d="M9 12l2 2 4-4" stroke="#0a0a0a" stroke-width="2" fill="none"/>',
lock:'<rect x="4.5" y="10" width="15" height="10" rx="2" stroke="#0a0a0a" stroke-width="2" fill="none"/><path d="M8 10V7a4 4 0 118 0v3" stroke="#0a0a0a" stroke-width="2" fill="none"/>',
check:'<path d="M4 13l5 5L20 6" stroke="#0a0a0a" stroke-width="2.4" fill="none" stroke-linecap="round"/>',
bolt:'<path d="M13 2L4.5 13.5H11l-1 8.5L19.5 10H13z" stroke="#0a0a0a" stroke-width="2" fill="none" stroke-linejoin="round"/>',
users:'<circle cx="9" cy="8" r="3.2" stroke="#0a0a0a" stroke-width="2" fill="none"/><path d="M3 20c0-3.3 2.7-5 6-5s6 1.7 6 5" stroke="#0a0a0a" stroke-width="2" fill="none"/><path d="M16 5.5a3 3 0 010 6M21 20c0-2.6-1.4-4.2-3.5-4.8" stroke="#0a0a0a" stroke-width="2" fill="none"/>',
trophy:'<path d="M7 4h10v3a5 5 0 01-10 0zM7 5H4v2a3 3 0 003 3m10-5h3v2a3 3 0 01-3 3M9 16h6M8 20h8M12 12v4" stroke="#0a0a0a" stroke-width="2" fill="none"/>',
gauge:'<path d="M4 18a8 8 0 1116 0" stroke="#0a0a0a" stroke-width="2" fill="none"/><path d="M12 18l4-5" stroke="#0a0a0a" stroke-width="2"/>',
speaker:'<path d="M4 9v6h4l5 4V5L8 9z" stroke="#0a0a0a" stroke-width="2" fill="none" stroke-linejoin="round"/><path d="M16 9a4 4 0 010 6" stroke="#0a0a0a" stroke-width="2" fill="none"/>',
cube:'<path d="M12 2l9 5v10l-9 5-9-5V7z" stroke="#0a0a0a" stroke-width="2" fill="none" stroke-linejoin="round"/><path d="M12 12l9-5M12 12v10M12 12L3 7" stroke="#0a0a0a" stroke-width="2" fill="none"/>',
mail:'<rect x="3" y="5" width="18" height="14" rx="2" stroke="#0a0a0a" stroke-width="2" fill="none"/><path d="M3 7l9 6 9-6" stroke="#0a0a0a" stroke-width="2" fill="none"/>',
spark:'<path d="M12 3v6m0 6v6m-9-9h6m6 0h6" stroke="#0a0a0a" stroke-width="2"/><path d="M6 6l3 3m6 6l3 3m0-12l-3 3m-6 6l-3 3" stroke="#0a0a0a" stroke-width="2"/>',
};
const tick = '<svg viewBox="0 0 24 24" fill="none"><path d="M4 12l5 5L20 6" stroke="currentColor" stroke-width="3" stroke-linecap="round"/></svg>';
// ── The work ──
const ITEMS = [
// THIS SESSION
{ icon:'camera', session:true, status:'live', date:'Jun 24', groups:['services'],
title:'Vision-Verifier service — the camera “kit check”',
what:'A brand-new backend service: the learner lays their components out, the camera looks, and it confirms each expected part (present / missing / not sure), notices extras, and says whether they’re ready to wire. It can also identify a single part held up to the lens.',
why:'Step 2 of Ohmlet’s core loop is “verify components via camera.” Until now that step was just a spoken prompt — the button existed but did nothing real behind it.',
how:'Turns a hollow step into a working feature, kills the “do I even have the right parts?” friction before a first build, and stays camera-first and on-brand (no fake interactivity).',
ev:['Own Cloud Run service','Gemini 3.5 Flash, ~2–3s','15 automated tests','Deployed rev 00002','Live smoke test passed'] },
{ icon:'eye', session:true, status:'live', date:'Jun 24', groups:['observability','security'],
title:'Production hardening + observability',
what:'A shared “see what’s happening and stay safe” layer across all three services: logs that link straight to a Google Cloud trace, a metrics endpoint (response times, error rates, dependency health), a catch-all that turns any crash into a clean error with an ID (never an internal stack trace to a user), security headers, tightened CORS, and an audit trail for sensitive actions.',
why:'Before this, a production problem meant guessing. CORS was wide-open (“allow everyone”) — a real security smell. Billing and privacy actions left no paper trail.',
how:'When a paying user reports an issue you find the exact request in seconds. Sensitive actions (plan changes, data export, deletion) are now provable for disputes/compliance. The whole surface is safer and ready to scale.',
ev:['Identical obs + CORS layer on all 3 services','Audit trail on 4 sensitive events','CORS scoped to ohmlet.org + Firebase + localhost','Verified live'] },
{ icon:'rocket', session:true, status:'live', date:'Jun 24', groups:['services'],
title:'Shipped everything to production',
what:'Built and deployed all three backend services to Cloud Run and the frontend to Firebase Hosting, then health-checked every one.',
why:'Code on a laptop helps nobody — the value only lands when it’s live.',
how:'The new kit check and the hardening are actually serving users at ohmlet-app.web.app right now.',
ev:['live-bridge 00020','quiz-engine 00007','vision-verifier 00002','Frontend live + all /health green'] },
{ icon:'bell', session:true, status:'live', date:'Jun 24', groups:['observability'],
title:'Alerting, metrics access & a live smoke test',
what:'Set up Cloud Monitoring (uptime checks + alerts for outages, error spikes and slowness, emailing hello@ohmlet.org), created and mounted the secret token that unlocks the metrics endpoint, and ran a real authenticated end-to-end test of the kit check against the live service.',
why:'You should never learn your site is down from a user — and new code should be proven in production, not only in tests.',
how:'You get emailed the moment a service degrades, can read live performance numbers any time, and the kit check is confirmed working against real Gemini vision in production.',
ev:['1 email channel, 3 uptime checks, 6 alert policies','Metrics: 200 with token, 404 without','Smoke test passed, test user auto-deleted'] },
{ icon:'bolt', session:true, status:'partial', date:'Jun 24', groups:['gamification'],
title:'Circuit simulator — a real library, not one board',
what:'Turned the simulator from a few hand-built boards into a browsable library of 22 live circuits across 7 curriculum categories (Basics, Sensors, Inputs, Capacitors, Transistors, Op-Amps, Logic), each with difficulty, a one-line teach, and an adaptive tutor note. The physics engine grew to handle diodes, capacitors with real transient TIME (watch a cap charge on an oscilloscope trace, governed by τ = R·C), NPN transistors (off / saturated / active), op-amps / comparators, and a real 555 timer with an internal latch that actually oscillates. Highlights: the flagship Light-Activated Alarm (an LDR drives a transistor that sounds a buzzer in the dark), a transistor switch, a relay driver, a motor driver with flyback diode, a temperature sensor, RC charge/discharge on a live scope, a crisp comparator, op-amp follower + inverting/non-inverting amplifiers (with rail clipping), a 555 blinker, and NOT + AND logic gates.',
why:'We can’t launch with one build. The simulator is how someone with no parts still learns by seeing electricity move, and it now mirrors the curriculum the way the 140+ lessons do. Owning the engine means the tutor can narrate any circuit and there is zero licensing risk.',
how:'Circuits are DATA in one registry rendered by a generic schematic engine, so adding more is cheap. Every current, voltage, time-constant, transistor region, op-amp output and 555 cycle is solved live and was verified against hand calculations (diode 4.4 mA, Vce_sat 0.2 V, RC 63% at one τ, alarm trips in dark, comparator rails at threshold, amp gains exact, 555 oscillates at 4.8 Hz, logic gates correct). The engine also gained GMIN + bidirectional-diode robustness so circuits never go singular.',
ev:['22 circuits, 7 categories, data-driven','Engine: diodes, transient caps, transistors, op-amps, 555, logic','Live oscilloscope; heat map; adaptive tutor everywhere','All verified vs hand calcs; build green'] },
{ icon:'cpu', session:true, status:'shipped', date:'Jun 25', groups:['gamification','services'],
title:'Simulator: run REAL Arduino code',
what:'Write an Arduino sketch in the editor, hit Compile & Run, and watch the actual firmware drive the board: pin-13 and pin-9 LEDs light (their current solved by our engine) and a pin-2 button you can press, with a live serial monitor. This is the real chip, not a fake.',
why:'Units 4–5 of the curriculum are all about Arduino. Letting learners run their own code against a simulated board — no hardware needed — closes the loop between "write the sketch" and "see it work", which is the entire point.',
how:'A new sandboxed compile service (arduino-cli + avr-gcc on Cloud Run) turns the C++ into firmware; the browser runs that firmware cycle-accurately on AVR8js (MIT). Proven end to end against the live service: Blink compiles to 924 bytes of real firmware in ~4s, and a typo returns a precise line-and-message error. Sandbox: auth + rate limit, non-root, timeout + CPU/RAM/file limits, board allow-list.',
ev:['New ohmlet-compiler service (avr-gcc, sandboxed)','AVR8js runs the real hex in-browser','Verified: Blink → 924B firmware in 4s, errors parsed'] },
{ icon:'bolt', session:true, status:'shipped', date:'Jun 25', groups:['gamification'],
title:'Simulator: build-your-own schematic editor',
what:'A free-form canvas inside the simulator: pick components from a palette, drop them on a grid, wire the dots together, edit values, and watch the real currents and voltages appear instantly. A Circuit library / Build your own toggle sits at the top of the Simulator tab.',
why:'Curated boards teach a concept; a blank canvas lets people actually design. This is the difference between a worksheet and a workbench, and it’s the foundation for letting lessons hand learners a half-finished circuit to complete.',
how:'Connectivity is worked out with union-find over the wired grid points, the netlist is generated and handed to the same solver, and it auto-grounds the battery if you forget. Verified: the example LED circuit solves to 12.77 mA with correct node voltages; an open switch reads 0 mA.',
ev:['Place / wire / value-edit / delete on a grid','Same engine solves it live','Verified netlist-building vs hand calcs'] },
{ icon:'broom', session:true, status:'shipped', date:'Jun 23', groups:['cleanup'],
title:'Dead-code cleanup',
what:'After an exhaustive “is this actually used anywhere?” sweep, removed ~4,550 lines of unused code (9 files deleted, 2 trimmed) — including a 3,400-line legacy screen fully replaced by the current one.',
why:'Dead code slows builds, confuses future work, and hides bugs.',
how:'A leaner, faster, more trustworthy codebase. Nothing users see changed — verified by a green build and a careful check that kept lazily-loaded files.',
ev:['~4,554 lines removed','Build still green','0 orphaned modules left'] },
// RECENTLY SHIPPED
{ icon:'card', session:false, status:'partial', date:'Jun ~20', groups:['commercial'],
title:'Stripe billing — subscriptions live, more to add',
what:'The subscription core is built and tested: Checkout to subscribe, a signature-verified webhook as the single source of truth for a user’s plan, the Customer Portal to manage/cancel, and plan-aware “thanks for upgrading” pages. It is still in TEST mode.',
why:'Nothing monetizes without a reliable way to take money and grant exactly the right plan.',
how:'The spine works — but it is NOT finished. Still to do: flip to LIVE mode; the cancellation “save” flow with a 30% retention coupon; and in-app purchases / consumables (e.g. streak freezes, a gem economy) which need one-time payments, not just subscriptions.',
ev:['DONE: Checkout + Portal + webhook (idempotent, signed)','TODO: live-mode go-live','TODO: 30% retention coupon + cancel save-flow','TODO: in-app purchases / consumables'] },
{ icon:'lock', session:false, status:'shipped', date:'Jun ~20', groups:['security','commercial'],
title:'Accounts, true per-user isolation & server-side tiers',
what:'Real accounts (Firebase Auth), with the backend deriving who you are from a verified token — so one user can never read another’s data or spend their live-tutor budget — and plan limits enforced on the server, not the easily-edited browser.',
why:'The old “user id from the URL” was a dev placeholder; without this, data isolation and paid limits are unenforceable.',
how:'The trustworthy foundation everything paid and personal sits on.',
ev:['Token-verified identity','Per-user data isolation','Server-authoritative plan'] },
{ icon:'shield', session:false, status:'shipped', date:'Jun ~22', groups:['commercial','security'],
title:'GDPR data export + account deletion',
what:'Endpoints to download everything Ohmlet holds about you and to erase your account — canceling billing, deleting your data, and removing your login.',
why:'A legal must-have (GDPR/CCPA and friends) before taking real users’ data and money.',
how:'Ohmlet can open to real, paying users without a compliance gap.',
ev:['Art. 15/20 export','Art. 17 erasure','Lawful billing-record retention'] },
{ icon:'check', session:false, status:'shipped', date:'Jun ~21', groups:['security','observability'],
title:'Automated tests + CI gate',
what:'A backend test suite plus a pipeline that runs tests, a dependency-vulnerability scan, and a secret-leak scan on every push — failing the build if something’s wrong.',
why:'Catch breakage and vulnerabilities before they ever reach users.',
how:'Every change is checked automatically; the new vision-verifier was wired into this same gate.',
ev:['49 backend tests','CI on every push','Dependency + secret scanning'] },
{ icon:'gauge', session:false, status:'shipped', date:'Jun ~21', groups:['observability'],
title:'Resilience & graceful degradation',
what:'Circuit breakers and timeouts on every AI call: when Google’s models are slow or down, services fail fast with a friendly “try again in a moment” instead of hanging.',
why:'One slow dependency should never freeze the whole product.',
how:'The app stays responsive and honest under failure — and the same pattern is reused in the new service.',
ev:['Per-upstream circuit breakers','Hard request timeouts','Clean 503 fallbacks'] },
{ icon:'users', session:false, status:'shipped', date:'Jun 23', groups:['gamification'],
title:'Community persistence + weekly league',
what:'A real social backend: posts, comments, likes, challenges, and a winnable weekly XP league/leaderboard.',
why:'Community and competition are the retention engine — and churn is the biggest problem in edtech.',
how:'Turns a static-looking feed into a living social layer that pulls people back.',
ev:['Posts / comments / likes','Challenges','Weekly ISO-week league'] },
{ icon:'trophy', session:false, status:'shipped', date:'Jun 23', groups:['gamification'],
title:'50-achievement overhaul',
what:'Expanded from ~8 to 50 achievements across build counts, streaks, XP, drawings, community and more — earned from real stats, with honest progress shown on the locked ones.',
why:'Gamified milestones drive the “one more” habit Duolingo built its retention on.',
how:'Far more reasons to keep going — and no fake unlocks.',
ev:['50 achievements, 13 families','Computed from real stats','Progress on locked cards'] },
{ icon:'spark', session:false, status:'shipped', date:'Jun ~22', groups:['observability'],
title:'Quiz speed + Gemini 3.5 migration',
what:'Cut drawing-assessment latency from 30–60s to a few seconds, and moved the vision/quiz models to the stable GA Gemini 3.5 Flash (the 2.5 family retires Oct 2026).',
why:'Slow grading kills the learning loop — and a deprecating model is a ticking clock.',
how:'Snappy feedback now, and no forced scramble when 2.5 is retired.',
ev:['~10–20× faster grading','GA, non-deprecating model'] },
{ icon:'speaker', session:false, status:'shipped', date:'Jun 22', groups:['gamification'],
title:'Sound effects + mute',
what:'Duolingo-style correct / wrong / complete sounds with a mute control.',
why:'Audio feedback makes progress feel rewarding.',
how:'A small touch with real delight — and it respects people who want silence.',
ev:['Web Audio, no assets','Global mute'] },
// UP NEXT
{ icon:'bolt', session:false, status:'shipped', date:'Jun 25', groups:['gamification'],
title:'Interactive circuit simulator (the “Falstad” feature)',
what:'A live simulator where you SEE current flow as moving dots and watch voltages/LEDs respond — the most-loved electronics learning tool, made our own and narrated by the tutor. SHIPPED, fully: our own physics engine (resistors, diodes, transient capacitors, NPN transistors, op-amps/comparators, 555 timer, logic), a library of 22 circuits across 7 curriculum categories, a free-form build-your-own editor, AND real Arduino-code execution (compile service + AVR8js) — all with live readings, an oscilloscope, a heat map, and adaptive tutor narration.',
why:'It’s the #1 thing electronics people rave about (“what’s your favourite simulator? Falstad”). It’s pure Ohmlet — intuition-first, see-it-move learning — and we own the engine, so the tutor can narrate it and it carries no licensing risk.',
how:'Built our own (Option C). Every planned phase is done: the curated library, the free-form editor, and real firmware execution (the AVR8js + compile-service path was chosen and shipped, proven end to end). See metadata/falstad-simulator-research.md.' },
{ icon:'trophy', session:false, status:'next', date:'', groups:['next'],
title:'Collectible mascot achievement cards',
what:'Replace the generic crown/shape achievement art with collectible cards featuring the Ohmlet mascot — a premium, “gotta-collect-them” card set (think trading cards, branded as ours).',
why:'The current cards look placeholder-pretty. Real, characterful collectibles deepen engagement and lower churn — the whole point in a hard edtech market.',
how:'Same earned-from-real-stats system, but the art becomes a reason to keep playing. Needs mascot illustration per card.' },
{ icon:'card', session:false, status:'next', date:'', groups:['next'],
title:'In-app purchases / consumables (extend Stripe)',
what:'One-time purchases for consumables — streak freezes, a gem economy, cosmetic unlocks — on top of the subscription billing.',
why:'A second revenue stream and a retention lever (people pay to protect a streak). Stripe currently only does subscriptions.',
how:'Adds Stripe one-time payments + an entitlement/inventory ledger. Ties into streak freezes (#65).' },
{ icon:'bell', session:false, status:'next', date:'', groups:['next'],
title:'Streak notifications + home-screen widget',
what:'“Your streak is about to break” nudges via push + email, and a Duolingo-style home-screen widget showing your streak.',
why:'Re-engagement notifications are among the highest-leverage anti-churn mechanics there is.',
how:'Push/email (web first), with the widget arriving alongside the mobile app. Pairs with friend streaks (#66).' },
{ icon:'cube', session:false, status:'next', date:'', groups:['next'],
title:'3D digital twin (reporter service)',
what:'A new service that generates a 3D model of the finished build — the one post-session artifact Ohmlet promises.',
why:'It’s the signature payoff of finishing a build, and a shareable, word-of-mouth moment.',
how:'Closes the final step of the core learning loop.' },
{ icon:'card', session:false, status:'next', date:'', groups:['next'],
title:'Conversion engine + pricing',
what:'A first-build paywall, the 7-day conversion arc, and re-cutting price caps once real cost data is in.',
why:'Turns free users into paying ones at exactly the right moment.',
how:'The revenue engine that sits on top of the billing spine.' },
{ icon:'mail', session:false, status:'next', date:'', groups:['next'],
title:'Transactional email (Resend)',
what:'App-sent email — receipts, password resets, re-engagement — via Resend on ohmlet.org.',
why:'Needed for billing receipts and for bringing lapsed users back.',
how:'Runbook is ready; it needs domain verification + an API key.' },
{ icon:'users', session:false, status:'next', date:'', groups:['next'],
title:'Retention mechanics: streak freezes + friend streaks',
what:'Loss-aversion safety nets (streak freezes) plus social streaks and re-engagement push/email.',
why:'The highest-leverage retention moves from the Duolingo playbook.',
how:'Directly attacks churn — the #1 edtech problem.' },
{ icon:'shield', session:false, status:'next', date:'', groups:['next'],
title:'Launch polish: cookies, accessibility, caching, backups',
what:'Cookie consent, a WCAG 2.2 AA accessibility pass, a caching strategy, and backups / disaster-recovery drills.',
why:'The “trustworthy on launch day” checklist.',
how:'Makes Ohmlet safe, inclusive, fast, and recoverable.' },
];
// ── Stats (count-up) ──
const STATS = [
{ n:4, lab:'Backend services live on Cloud Run' },
{ n:49, lab:'Automated backend tests passing' },
{ n:4554, lab:'Lines of dead code removed', fmt:v=>v.toLocaleString() },
{ n:6, lab:'Production alert policies watching' },
];
const STATUS = {
live:{cls:'b-live', txt:'Live'},
shipped:{cls:'b-shipped', txt:'Shipped'},
partial:{cls:'b-next', txt:'Partial'},
next:{cls:'b-next', txt:'Next'},
};
const CHIPS = [
{key:'all', label:'All work'},
{key:'session', label:'★ This session'},
{key:'services', label:'Backend services'},
{key:'security', label:'Security'},
{key:'observability', label:'Reliability & ops'},
{key:'commercial', label:'Commercial'},
{key:'gamification', label:'Gamification'},
{key:'cleanup', label:'Cleanup'},
{key:'next', label:'Up next'},
];
let activeChip='all', query='';
function matches(it){
if(query){
const hay=(it.title+' '+it.what+' '+it.why+' '+it.how).toLowerCase();
if(!hay.includes(query)) return false;
}
if(activeChip==='all') return true;
if(activeChip==='session') return it.session;
if(activeChip==='next') return it.status==='next';
return it.groups.includes(activeChip);
}
function cardHTML(it,idx){
const st=STATUS[it.status];
const ev=(it.ev||[]).map(e=>`<span class="pill">${tick}${e}</span>`).join('');
return `<div class="card ${it.session?'session':''}" style="animation-delay:${Math.min(idx*45,400)}ms">
<div class="chead" onclick="this.parentNode.classList.toggle('open')">
<span class="icon"><svg viewBox="0 0 24 24" fill="none">${I[it.icon]||I.bolt}</svg></span>
<div class="ctop">
<div class="ctitle">${it.title}</div>
<div class="cwhat">${it.what}</div>
</div>
<div class="badges">
${it.session?'<span class="badge b-session">★ Session</span>':''}
<span class="badge ${st.cls}">${st.txt}</span>
${it.date?`<span class="badge b-date">${it.date}</span>`:''}
</div>
<span class="chev"><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M9 6l6 6-6 6" stroke="currentColor" stroke-width="2.4" stroke-linecap="round"/></svg></span>
</div>
<div class="details"><div class="dinner"><div class="dpad">
<div class="row"><div class="rk">What</div><div class="rv">${it.what}</div></div>
<div class="row"><div class="rk why">Why it matters</div><div class="rv">${it.why}</div></div>
<div class="row"><div class="rk how">How it helps</div><div class="rv">${it.how}</div></div>
${ev?`<div class="ev">${ev}</div>`:''}
</div></div></div>
</div>`;
}
function render(){
const buckets={session:[],shipped:[],next:[]};
let shown=0;
ITEMS.forEach((it,i)=>{
if(!matches(it)) return;
shown++;
const key = it.session ? 'session' : (it.status==='next'?'next':'shipped');
buckets[key].push(cardHTML(it,buckets[key].length));
});
document.getElementById('grid-session').innerHTML=buckets.session.join('');
document.getElementById('grid-shipped').innerHTML=buckets.shipped.join('');
document.getElementById('grid-next').innerHTML=buckets.next.join('');
// hide empty sections
document.getElementById('sessionSec').style.display=buckets.session.length?'':'none';
document.getElementById('shippedSec').style.display=buckets.shipped.length?'':'none';
document.getElementById('nextSec').style.display=buckets.next.length?'':'none';
document.getElementById('empty').style.display=shown?'none':'block';
}
// chips
document.getElementById('chips').innerHTML=CHIPS.map(c=>{
const count = c.key==='all'?ITEMS.length : c.key==='session'?ITEMS.filter(i=>i.session).length : c.key==='next'?ITEMS.filter(i=>i.status==='next').length : ITEMS.filter(i=>i.groups.includes(c.key)).length;
return `<button class="chip ${c.key==='all'?'active':''}" data-k="${c.key}">${c.label} <span class="c">${count}</span></button>`;
}).join('');
document.querySelectorAll('.chip').forEach(ch=>ch.onclick=()=>{
document.querySelectorAll('.chip').forEach(x=>x.classList.remove('active'));
ch.classList.add('active'); activeChip=ch.dataset.k; render();
});
document.getElementById('search').addEventListener('input',e=>{query=e.target.value.trim().toLowerCase();render();});
// stats count-up
function countUp(el,target,fmt){
const dur=900, t0=performance.now();
function step(t){
const p=Math.min(1,(t-t0)/dur), e=1-Math.pow(1-p,3), v=Math.round(target*e);
el.textContent=fmt?fmt(v):v; if(p<1)requestAnimationFrame(step);
}
requestAnimationFrame(step);
}
document.getElementById('stats').innerHTML=STATS.map((s,i)=>`<div class="stat"><div class="num" id="st${i}">0</div><div class="lab">${s.lab}</div></div>`).join('');
STATS.forEach((s,i)=>countUp(document.getElementById('st'+i),s.n,s.fmt));
// progress bar
const doneN=ITEMS.filter(i=>i.status!=='next').length, nextN=ITEMS.filter(i=>i.status==='next').length;
// Reflect the real roadmap, not just the cards shown here:
const ROADMAP_DONE=37, ROADMAP_TOTAL=60; // tasks #11–#70, completed vs total tracked
const pct=Math.round(ROADMAP_DONE/ROADMAP_TOTAL*100);
document.getElementById('doneN').textContent=ROADMAP_DONE;
document.getElementById('nextN').textContent=ROADMAP_TOTAL-ROADMAP_DONE;
setTimeout(()=>{document.getElementById('barfill').style.width=pct+'%';},250);
countUp(document.getElementById('pct'),pct,v=>v+'%');
// generated date
document.getElementById('genline').textContent='Build report · '+new Date().toLocaleDateString('en-GB',{day:'numeric',month:'long',year:'numeric'});
render();
</script>
</body>
</html>