-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
701 lines (654 loc) · 46.2 KB
/
index.html
File metadata and controls
701 lines (654 loc) · 46.2 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
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Program Control Tower — Template</title>
<!--
CONTROL TOWER — sanitized template
------------------------------------------------------------------
A starter dashboard for program / project managers running 3–6
workstreams in parallel. Drop your own data into PROGRAMS below
and wire the sync hooks (search for "WIRE:") to your storage and
AI tools of choice.
------------------------------------------------------------------
-->
<style>
:root {
color-scheme: dark;
--green:#00ED64; --yellow:#FFC832; --red:#FF6B6B;
--ink:#E1F2EE; --muted:#8FA8A6;
--line:#0F4A45; --bg:#001E2B; --card:#023430;
--accent:#00ED64; --raid-bg:#001A23;
}
* { box-sizing: border-box; }
html,body { margin:0; padding:0; background:var(--bg); color:var(--ink); font:14px/1.5 -apple-system,system-ui,Segoe UI,Roboto,sans-serif; -webkit-font-smoothing:antialiased; }
.wrap { max-width:1400px; margin:0 auto; padding:20px; }
h1 { font-size:22px; margin:0 0 4px; letter-spacing:-0.01em; }
h2 { font-size:13px; margin:0 0 10px; text-transform:uppercase; letter-spacing:0.06em; color:var(--muted); font-weight:600; }
h3 { font-size:16px; margin:0 0 4px; }
.subhdr { color:var(--muted); font-size:12px; margin-bottom:16px; }
.topbar { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:18px; flex-wrap:wrap; }
.toolbar { display:flex; gap:8px; align-items:center; }
.toolbar button { background:var(--accent); color:#001E2B; border:none; padding:8px 14px; border-radius:6px; font-size:13px; font-weight:600; cursor:pointer; transition:opacity 0.15s; }
.toolbar button:hover { opacity:0.9; }
.toolbar button.ghost { background:transparent; color:var(--muted); border:1px solid var(--line); }
.toolbar button.ghost:hover { color:var(--ink); border-color:var(--ink); }
.toolbar .ts { font-size:11px; color:var(--muted); padding:0 4px; }
.toolbar .counter { font-size:11px; color:var(--green); padding:0 4px; font-weight:600; }
.toolbar .counter:empty { display:none; }
.top-fold { display:grid; grid-template-columns: 1fr 1fr; gap:12px; margin-bottom:20px; }
.panel { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:14px 16px; }
.panel ul { margin:0; padding-left:0; list-style:none; }
.panel li { margin-bottom:4px; }
.meeting .time { font-variant-numeric:tabular-nums; color:var(--muted); font-size:11px; margin-right:6px; }
.clash { padding:9px 0; border-bottom:1px dashed var(--line); font-size:13px; line-height:1.4; }
.clash:last-child { border-bottom:none; }
.clash .src { font-weight:600; color:var(--red); }
.clash .progs { display:flex; gap:4px; flex-wrap:wrap; margin-top:4px; }
.clash .prog-tag { font-size:10px; background:#012a26; border:1px solid var(--line); padding:2px 7px; border-radius:10px; color:var(--ink); font-variant:small-caps; letter-spacing:0.02em; }
.grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:14px; }
@media (max-width: 900px) { .grid, .top-fold { grid-template-columns: 1fr; } }
.card { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:16px; display:flex; flex-direction:column; gap:12px; }
.card .head { display:flex; gap:10px; align-items:flex-start; }
.dot { width:14px; height:14px; border-radius:50%; flex-shrink:0; margin-top:5px; }
.dot.g { background:var(--green); } .dot.y { background:var(--yellow); } .dot.r { background:var(--red); }
.card .titles { flex:1; min-width:0; }
.card .titles .sub { color:var(--muted); font-size:12px; margin-top:2px; }
.card section { padding-top:10px; border-top:1px dashed var(--line); }
.card section:first-of-type { padding-top:0; border-top:none; }
.card .label { font-size:11px; text-transform:uppercase; letter-spacing:0.06em; color:var(--muted); font-weight:600; margin-bottom:5px; }
.card .actions { background:#0a3d1a; border-left:3px solid var(--accent); padding:8px 10px 8px 12px; border-radius:0 6px 6px 0; }
.card .actions .label { color:var(--accent); }
.card ol, .card ul { margin:0; padding-left:0; list-style:none; }
.card ol li, .card ul li { margin-bottom:4px; line-height:1.45; }
/* INTERACTIVE ITEMS */
.iv { display:flex; align-items:flex-start; gap:7px; flex-wrap:wrap; position:relative; }
.iv .chk { display:inline-block; width:14px; height:14px; min-width:14px; border:1.5px solid #4A6B68; border-radius:3px; cursor:pointer; margin-top:4px; background:#001A23; position:relative; user-select:none; transition:all 0.15s ease; }
.iv .chk:hover { border-color:var(--accent); background:#003D2E; }
.iv .text { flex:1; min-width:0; }
.iv.done .chk { background:var(--green); border-color:var(--green); }
.iv.done .chk::after { content:""; position:absolute; left:3px; top:1px; width:4px; height:8px; border:solid #001E2B; border-width:0 1.5px 1.5px 0; transform:rotate(45deg); }
.iv.done .text { color:var(--muted); text-decoration:line-through; text-decoration-color:#4A6B68; }
.iv .undo { display:none; background:none; border:none; color:var(--accent); cursor:pointer; font-size:11px; padding:0 0 0 6px; flex-shrink:0; }
.iv.done .undo { display:inline; }
.raid .iv.done { display:none; } /* closed RAID items hide entirely */
/* per-item note / attach buttons */
.iv .note-btn, .iv .doc-btn { display:none; background:none; border:none; color:var(--accent); cursor:pointer; font-size:11px; padding:0 4px; flex-shrink:0; }
.iv:hover .note-btn, .iv:hover .doc-btn { display:inline; }
.iv.has-note .note-btn { display:inline; color:var(--muted); }
.iv-note { flex-basis:100%; font-size:11.5px; color:var(--muted); font-style:italic; padding:3px 8px; line-height:1.45; border-left:2px solid var(--accent); margin:3px 0 0 22px; background:#012a26; border-radius:0 4px 4px 0; }
.iv-note:empty { display:none; }
.iv-edit-area { flex-basis:100%; margin:6px 0 0 22px; display:none; }
.iv.editing .iv-edit-area { display:flex; gap:6px; }
.iv-edit-area input { flex:1; padding:5px 8px; font-size:12px; border:1px solid var(--line); border-radius:4px; background:#001A23; color:var(--ink); }
.iv-edit-area button { padding:5px 10px; font-size:11px; border:none; border-radius:4px; background:var(--accent); color:#001E2B; cursor:pointer; font-weight:600; }
.iv-attach { flex-basis:100%; margin:4px 0 0 22px; display:flex; gap:5px; flex-wrap:wrap; }
.iv-attach .chip { font-size:11px; padding:2px 8px; border-radius:10px; background:#012a26; border:1px solid var(--line); color:var(--ink); text-decoration:none; }
.iv-attach .chip.doc { border-color:#4f9eef; color:#9ec5f5; }
.iv-attach .chip.sheet { border-color:#34d399; color:#9af5cd; }
.iv-attach .chip.slide { border-color:#fbbf24; color:#fde68a; }
.iv-attach .chip .x { margin-left:4px; cursor:pointer; opacity:0.6; }
/* RAID + popover */
.raid { background:var(--raid-bg); border-radius:6px; padding:8px 10px; }
.raid .iv .badge { display:inline-block; font-size:10px; font-weight:700; padding:1px 6px; border-radius:3px; margin-right:4px; }
.raid .iv .badge.R { background:#4a1818; color:#ffb4b4; }
.raid .iv .badge.A { background:#4a3d18; color:#ffe9a3; }
.raid .iv .badge.I { background:#1a3d4a; color:#a3d8ff; }
.raid .iv .badge.D { background:#3d1a4a; color:#d4a3ff; }
.raid .iv .meta { display:block; font-size:11px; color:var(--muted); margin-top:3px; }
.raid-legend { margin-top:8px; font-size:10px; color:var(--muted); }
.age { display:inline-block; font-size:10px; color:var(--muted); margin-left:4px; }
.age.warn { color:var(--yellow); }
.age.crit { color:var(--red); font-weight:600; }
.raid-popover { position:absolute; left:100%; top:0; margin-left:10px; width:300px; padding:10px 12px; background:#001A23; border:1px solid var(--accent); border-radius:6px; box-shadow:0 4px 16px rgba(0,0,0,0.6); z-index:50; font-size:11.5px; display:none; }
.raid .iv:hover .raid-popover { display:block; }
.raid-popover .ttl { color:var(--accent); font-weight:600; margin-bottom:4px; font-size:11px; text-transform:uppercase; letter-spacing:0.06em; }
.raid-popover a { color:#9bd8ec; text-decoration:none; display:block; padding:2px 0; }
.raid-popover a:hover { text-decoration:underline; }
details.refs { margin-top:8px; font-size:12px; }
details.refs summary { color:var(--muted); cursor:pointer; padding:4px 0; }
details.refs ul { margin:4px 0 0; padding-left:18px; }
details.refs li { margin-bottom:3px; }
details.refs a { color:#9bd8ec; }
.footer { color:var(--muted); font-size:11px; margin-top:20px; text-align:center; padding:16px; border-top:1px solid var(--line); }
/* Ask drawer */
.ask-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.4); display:none; z-index:90; }
.ask-overlay.open { display:block; }
.ask-drawer { position:fixed; right:0; top:0; bottom:0; width:420px; max-width:90vw; background:var(--card); border-left:1px solid var(--line); transform:translateX(100%); transition:transform 0.25s ease; z-index:100; display:flex; flex-direction:column; }
.ask-drawer.open { transform:translateX(0); }
.ask-hdr { padding:14px 16px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.ask-hdr .sub { color:var(--muted); font-size:11px; margin-top:2px; }
.ask-hdr button.close { background:none; border:none; color:var(--muted); cursor:pointer; font-size:22px; padding:0 4px; }
.ask-body { flex:1; overflow-y:auto; padding:14px 16px; }
.ask-empty { color:var(--muted); font-size:13px; }
.ask-suggest { display:flex; flex-direction:column; gap:5px; margin-top:10px; }
.ask-suggest button { background:#012a26; border:1px solid var(--line); color:var(--ink); padding:6px 10px; border-radius:5px; cursor:pointer; font-size:12px; text-align:left; }
.ask-suggest button:hover { border-color:var(--accent); }
.ask-input { padding:12px 16px; border-top:1px solid var(--line); display:flex; gap:8px; align-items:flex-start; flex-wrap:wrap; }
.ask-input textarea { flex:1; min-height:38px; max-height:140px; padding:8px 10px; border:1.5px solid var(--line); border-radius:6px; font-family:inherit; font-size:13px; resize:vertical; background:#001A23; color:var(--ink); }
.ask-input button { font-size:12px; padding:8px 12px; border:1px solid var(--accent); border-radius:6px; background:var(--accent); color:#001E2B; font-weight:700; cursor:pointer; }
.ask-msg { margin-bottom:12px; padding:10px 12px; border-radius:8px; font-size:13px; line-height:1.45; }
.ask-msg.user { background:#012a26; border:1px solid var(--line); }
.ask-msg.bot { background:#0a3d1a; border:1px solid #1f6e3a; }
.toolbar button.ask-btn { background:#012a26; border:1px solid var(--accent); color:var(--accent); font-weight:600; }
.toolbar button.ask-btn:hover { background:var(--accent); color:#001E2B; }
</style>
</head>
<body>
<div class="wrap">
<div class="topbar">
<div>
<h1>Program Control Tower</h1>
<div class="subhdr">3 active programs · interactive · click ☐ to close items · auto-refreshes hourly (wire up your refresh task)</div>
</div>
<div class="toolbar">
<span class="counter" id="counter"></span>
<span class="ts" id="ts">—</span>
<button id="ask" class="ask-btn" title="Ask questions about what's on this dashboard (Cmd/Ctrl+K)">💬 Ask</button>
<button id="clear-closed" class="ghost" title="Un-close every item">↺ Reset closures</button>
<button id="refresh" title="Trigger your refresh task (wire it up)">⟳ Refresh</button>
</div>
</div>
<!-- TOP FOLD: meetings + cross-program clashes -->
<div class="top-fold">
<div class="panel">
<h2>Next 24h · Key meetings</h2>
<ul id="meetings">
<li class="iv meeting" data-prog="meta" data-section="meetings"><span class="chk"></span><span class="text"><span class="time">Tue 10:00</span>Mobile App v3 weekly — beta wrap-up + GA readiness gate; bring accessibility audit disposition<button class="note-btn">+ note</button><button class="doc-btn">+ doc</button></span><button class="undo">↺ undo</button></li>
<li class="iv meeting" data-prog="meta" data-section="meetings"><span class="chk"></span><span class="text"><span class="time">Wed 11:30</span>Payment Rails migration sync — compliance review scheduling + cutover sequencing<button class="note-btn">+ note</button><button class="doc-btn">+ doc</button></span><button class="undo">↺ undo</button></li>
<li class="iv meeting" data-prog="meta" data-section="meetings"><span class="chk"></span><span class="text"><span class="time">Thu 15:00</span>Card Rewards steering — partner API integration sign-off + comms send-date lock<button class="note-btn">+ note</button><button class="doc-btn">+ doc</button></span><button class="undo">↺ undo</button></li>
</ul>
</div>
<div class="panel">
<h2>Cross-program clashes <span style="text-transform:none;letter-spacing:0;font-weight:normal;color:var(--muted);">· auto-derived</span></h2>
<div id="clashes">
<div class="iv clash" data-prog="meta" data-section="clash"><span class="text"><span class="src">Rails cutover date ↔ app launch sequencing</span> · Mobile App v3 GA gates on Payment Rails cutover being live. Cutover date still unconfirmed — if it slips past month-end, the app launch date moves with it.<div class="progs"><span class="prog-tag">Mobile App v3</span><span class="prog-tag">Payment Rails</span></div><button class="note-btn">+ note</button></span></div>
<div class="iv clash" data-prog="meta" data-section="clash"><span class="text"><span class="src">Resource clash · Eng Lead on two critical paths</span> · Engineering Lead owns both the Rails integration layer and the App v3 backend. Cannot lead both sprint reviews in the same two-week window — one must be delegated.<div class="progs"><span class="prog-tag">Mobile App v3</span><span class="prog-tag">Payment Rails</span></div><button class="note-btn">+ note</button></span></div>
</div>
</div>
</div>
<!-- PROGRAM CARDS -->
<div class="grid">
<!-- PROGRAM A — Mobile App v3 -->
<div class="card" data-program="mobile-app-v3">
<div class="head">
<div class="dot y"></div>
<div class="titles">
<h3>Mobile App Relaunch (v3)</h3>
<div class="sub">Beta closed Mon · GA readiness review Thu · compliance sign-off pending · You = TPM</div>
</div>
</div>
<section class="actions" data-section-id="ma-actions">
<div class="label">Next 3 for you</div>
<ol>
<li class="iv" data-prog="mobile-app-v3" data-section="action"><span class="chk"></span><span class="text">Consolidate beta exit criteria with Product Lead and QA Lead — accessibility audit findings need disposition before GA gate<button class="note-btn">+ note</button><button class="doc-btn">+ doc</button></span><button class="undo">↺ undo</button></li>
<li class="iv" data-prog="mobile-app-v3" data-section="action"><span class="chk"></span><span class="text">Confirm compliance sign-off timeline with Risk Lead — updated disclosures required before store submission; currently on the critical path<button class="note-btn">+ note</button><button class="doc-btn">+ doc</button></span><button class="undo">↺ undo</button></li>
<li class="iv" data-prog="mobile-app-v3" data-section="action"><span class="chk"></span><span class="text">Draft store listing copy and get to Marketing Lead by Wed — 3-week App Store review window starts the clock<button class="note-btn">+ note</button><button class="doc-btn">+ doc</button></span><button class="undo">↺ undo</button></li>
</ol>
</section>
<section data-section-id="ma-decisions">
<div class="label">Decisions on others</div>
<ul>
<li class="iv" data-prog="mobile-app-v3" data-section="dec-other"><span class="chk"></span><span class="text"><b>Risk Lead</b> — Sign off on updated disclosure language in beta build <span class="age warn">·2d</span><button class="note-btn">+ note</button></span><button class="undo">↺ undo</button></li>
<li class="iv" data-prog="mobile-app-v3" data-section="dec-other"><span class="chk"></span><span class="text"><b>Exec Sponsor</b> — Approve GA date given compliance dependency on Rails cutover <span class="age">·1d</span><button class="note-btn">+ note</button></span><button class="undo">↺ undo</button></li>
<li class="iv" data-prog="mobile-app-v3" data-section="dec-other"><span class="chk"></span><span class="text"><b>Design Lead</b> — Resolve 3 open accessibility audit findings from last week's external review <span class="age warn">·3d</span><button class="note-btn">+ note</button></span><button class="undo">↺ undo</button></li>
</ul>
</section>
<section data-section-id="ma-raid">
<div class="label">Open RAID</div>
<div class="raid">
<div class="iv" data-prog="mobile-app-v3" data-section="raid"><span class="chk"></span><span class="text"><span class="badge R">R</span><div>GA date depends on Payment Rails cutover; cutover date still unconfirmed — any slip past month-end pushes the app launch</div><span class="meta"><b>Risk Lead / Payments Lead</b> <span class="age warn">·6d</span></span></span><button class="undo">↺ undo</button></div>
<div class="iv" data-prog="mobile-app-v3" data-section="raid"><span class="chk"></span><span class="text"><span class="badge R">R</span><div>Accessibility audit found 3 AA violations — store rejection risk if unresolved before submission</div><span class="meta"><b>Design Lead</b> <span class="age warn">·3d</span></span></span><button class="undo">↺ undo</button></div>
<div class="iv" data-prog="mobile-app-v3" data-section="raid"><span class="chk"></span><span class="text"><span class="badge I">I</span><div>Beta opt-out rate 12% vs 5% target — root cause traced to notification volume; fix scoped and in next build</div><span class="meta"><b>Product Lead</b> <span class="age warn">·2d</span></span></span><button class="undo">↺ undo</button></div>
<div class="iv" data-prog="mobile-app-v3" data-section="raid"><span class="chk"></span><span class="text"><span class="badge D">D</span><div>Compliance disclosure update requires legal sign-off — blocks store submission; Risk Lead review pushed from last week</div><span class="meta"><b>Risk Lead</b> <span class="age warn">·4d</span></span></span><button class="undo">↺ undo</button></div>
</div>
<div class="raid-legend">R Risk · A Assumption · I Issue · D Dependency</div>
</section>
<section>
<div class="label">What's hot</div>
<p style="margin:0;">Beta closed Monday — notification opt-out issue is scoped and in the next build. Compliance disclosure is the real gating item: Risk Lead review was pushed from last week and is now on the critical path into store submission. Rails dependency still floating; if cutover doesn't confirm this week, the GA date needs to move. Accessibility violations need Design Lead to move fast — three AA findings are a store-rejection risk.</p>
</section>
<details class="refs">
<summary>Refs (3) · Source: your shared drive</summary>
<ul>
<li><a href="https://example.com/doc/EXAMPLE_DOC_ID_1" target="_blank">Mobile App v3 — GA Readiness Checklist</a></li>
<li><a href="https://example.com/deck/EXAMPLE_DOC_ID_2" target="_blank">Beta Wrap-up Exec Summary</a></li>
<li><a href="https://example.com/doc/EXAMPLE_DOC_ID_3" target="_blank">Accessibility Audit Report</a></li>
</ul>
</details>
</div>
<!-- PROGRAM B — Payment Rails Migration -->
<div class="card" data-program="payment-rails">
<div class="head">
<div class="dot y"></div>
<div class="titles">
<h3>Payment Rails Migration</h3>
<div class="sub">Parallel run live 8 days · compliance review not yet scheduled · cutover date unconfirmed · You = Program TPM</div>
</div>
</div>
<section class="actions" data-section-id="pr-actions">
<div class="label">Next 3 for you</div>
<ol>
<li class="iv" data-prog="payment-rails" data-section="action"><span class="chk"></span><span class="text">Lock cutover date with Payments Lead and Eng Lead — parallel run is clean; compliance review is the only remaining gate<button class="note-btn">+ note</button><button class="doc-btn">+ doc</button></span><button class="undo">↺ undo</button></li>
<li class="iv" data-prog="payment-rails" data-section="action"><span class="chk"></span><span class="text">Get compliance review scheduled with Risk Lead this week — was deprioritized last sprint, now on critical path for both Rails and App v3<button class="note-btn">+ note</button><button class="doc-btn">+ doc</button></span><button class="undo">↺ undo</button></li>
<li class="iv" data-prog="payment-rails" data-section="action"><span class="chk"></span><span class="text">Confirm rollback playbook sign-off with Eng Lead before the cutover window opens<button class="note-btn">+ note</button><button class="doc-btn">+ doc</button></span><button class="undo">↺ undo</button></li>
</ol>
</section>
<section data-section-id="pr-decisions">
<div class="label">Decisions on others</div>
<ul>
<li class="iv" data-prog="payment-rails" data-section="dec-other"><span class="chk"></span><span class="text"><b>Risk Lead</b> — Schedule and complete compliance review; currently blocking cutover date confirmation <span class="age warn">·5d</span><button class="note-btn">+ note</button></span><button class="undo">↺ undo</button></li>
<li class="iv" data-prog="payment-rails" data-section="dec-other"><span class="chk"></span><span class="text"><b>Payments Lead</b> — Confirm processor contract SLAs for the post-cutover period <span class="age warn">·2d</span><button class="note-btn">+ note</button></span><button class="undo">↺ undo</button></li>
<li class="iv" data-prog="payment-rails" data-section="dec-other"><span class="chk"></span><span class="text"><b>Eng Lead</b> — Sign off on rollback playbook and cutover runbook <span class="age">·1d</span><button class="note-btn">+ note</button></span><button class="undo">↺ undo</button></li>
</ul>
</section>
<section data-section-id="pr-raid">
<div class="label">Open RAID</div>
<div class="raid">
<div class="iv" data-prog="payment-rails" data-section="raid"><span class="chk"></span><span class="text"><span class="badge R">R</span><div>Compliance review not yet scheduled — blocks cutover date confirmation for both Rails and App v3 GA</div><span class="meta"><b>Risk Lead</b> <span class="age warn">·5d</span></span></span><button class="undo">↺ undo</button></div>
<div class="iv" data-prog="payment-rails" data-section="raid"><span class="chk"></span><span class="text"><span class="badge A">A</span><div>Parallel run assumed clean after 8 days with no critical failures — formal sign-off pending before cutover proceeds</div><span class="meta"><b>Payments Lead</b> <span class="age">·8d</span></span></span><button class="undo">↺ undo</button></div>
<div class="iv" data-prog="payment-rails" data-section="raid"><span class="chk"></span><span class="text"><span class="badge I">I</span><div>3 edge-case transaction types not yet validated in parallel run — low volume but need explicit closure before cutover</div><span class="meta"><b>Eng Lead</b> <span class="age warn">·2d</span></span></span><button class="undo">↺ undo</button></div>
<div class="iv" data-prog="payment-rails" data-section="raid"><span class="chk"></span><span class="text"><span class="badge D">D</span><div>App v3 GA gates on Rails cutover being complete — sequencing must be confirmed this week or app launch date moves</div><span class="meta"><b>You</b> <span class="age">·1d</span></span></span><button class="undo">↺ undo</button></div>
</div>
<div class="raid-legend">R Risk · A Assumption · I Issue · D Dependency</div>
</section>
<section>
<div class="label">What's hot</div>
<p style="margin:0;">Parallel run is the good news — 8 days, no critical failures. The blocker is compliance review scheduling: Risk Lead deprioritized it last sprint and it's now on the critical path for two programs simultaneously. Edge-case transaction validation is scoped and assigned; should close before the cutover window. Rollback playbook needs one more sign-off pass from Eng Lead.</p>
</section>
<details class="refs">
<summary>Refs (3) · Source: your shared drive</summary>
<ul>
<li><a href="https://example.com/doc/EXAMPLE_DOC_ID_4" target="_blank">Payment Rails — Cutover Runbook</a></li>
<li><a href="https://example.com/sheet/EXAMPLE_DOC_ID_5" target="_blank">Parallel Run Monitoring Log</a></li>
<li><a href="https://example.com/doc/EXAMPLE_DOC_ID_6" target="_blank">Processor Contract SLA Summary</a></li>
</ul>
</details>
</div>
<!-- PROGRAM C — Card Rewards Redesign -->
<div class="card" data-program="card-rewards">
<div class="head">
<div class="dot g"></div>
<div class="titles">
<h3>Card Rewards Redesign</h3>
<div class="sub">New structure approved · partner integration in build · comms plan drafted · You = workstream TPM</div>
</div>
</div>
<section class="actions" data-section-id="cr-actions">
<div class="label">Next 3 for you</div>
<ol>
<li class="iv" data-prog="card-rewards" data-section="action"><span class="chk"></span><span class="text">Review partner API integration test results with Eng Lead — first test run completed Fri, 2 issues logged needing partner fixes<button class="note-btn">+ note</button><button class="doc-btn">+ doc</button></span><button class="undo">↺ undo</button></li>
<li class="iv" data-prog="card-rewards" data-section="action"><span class="chk"></span><span class="text">Lock cardholder comms send date with Marketing Lead — must go out 14 days before go-live; Marketing approval needed by Thu<button class="note-btn">+ note</button><button class="doc-btn">+ doc</button></span><button class="undo">↺ undo</button></li>
<li class="iv" data-prog="card-rewards" data-section="action"><span class="chk"></span><span class="text">Confirm CS training schedule with Ops Lead — training window opens next week; new redemption flow needs coverage before launch<button class="note-btn">+ note</button><button class="doc-btn">+ doc</button></span><button class="undo">↺ undo</button></li>
</ol>
</section>
<section data-section-id="cr-decisions">
<div class="label">Decisions on others</div>
<ul>
<li class="iv" data-prog="card-rewards" data-section="dec-other"><span class="chk"></span><span class="text"><b>Marketing Lead</b> — Approve cardholder comms draft and confirm send date (14-day pre-launch window) <span class="age warn">·2d</span><button class="note-btn">+ note</button></span><button class="undo">↺ undo</button></li>
<li class="iv" data-prog="card-rewards" data-section="dec-other"><span class="chk"></span><span class="text"><b>Ops Lead</b> — Confirm CS team training schedule for new rewards redemption flow <span class="age">·1d</span><button class="note-btn">+ note</button></span><button class="undo">↺ undo</button></li>
<li class="iv" data-prog="card-rewards" data-section="dec-other"><span class="chk"></span><span class="text"><b>Partner</b> — Resolve 2 open API integration issues from Fri test run; second test run blocked on fixes <span class="age warn">·2d</span><button class="note-btn">+ note</button></span><button class="undo">↺ undo</button></li>
</ul>
</section>
<section data-section-id="cr-raid">
<div class="label">Open RAID</div>
<div class="raid">
<div class="iv" data-prog="card-rewards" data-section="raid"><span class="chk"></span><span class="text"><span class="badge A">A</span><div>Partner API assumed ready for second test run this week — contingent on partner resolving 2 issues from Fri run first</div><span class="meta"><b>Partner</b> <span class="age warn">·2d</span></span></span><button class="undo">↺ undo</button></div>
<div class="iv" data-prog="card-rewards" data-section="raid"><span class="chk"></span><span class="text"><span class="badge D">D</span><div>Cardholder comms must go 14 days before go-live — Marketing approval is on the critical path; deadline is Thu</div><span class="meta"><b>Marketing Lead</b> <span class="age warn">·2d</span></span></span><button class="undo">↺ undo</button></div>
<div class="iv" data-prog="card-rewards" data-section="raid"><span class="chk"></span><span class="text"><span class="badge R">R</span><div>CS team not yet trained on new redemption flow — risk of incorrect handling at go-live if training schedule slips</div><span class="meta"><b>Ops Lead</b> <span class="age">·1d</span></span></span><button class="undo">↺ undo</button></div>
<div class="iv" data-prog="card-rewards" data-section="raid"><span class="chk"></span><span class="text"><span class="badge I">I</span><div>Rewards accrual logic update deployed to staging; QA sign-off expected by Wed</div><span class="meta"><b>Eng Lead</b> <span class="age">·1d</span></span></span><button class="undo">↺ undo</button></div>
</div>
<div class="raid-legend">R Risk · A Assumption · I Issue · D Dependency</div>
</section>
<section>
<div class="label">What's hot</div>
<p style="margin:0;">Mostly on track. Partner API test run Friday surfaced 2 issues — partner has them, fix expected this week. Comms approval is the scheduling risk: 14-day window before go-live means Marketing Lead must approve by Thursday latest. CS training starts next week and is on track. Accrual logic on staging, QA sign-off expected Wednesday.</p>
</section>
<details class="refs">
<summary>Refs (3) · Source: your shared drive</summary>
<ul>
<li><a href="https://example.com/sheet/EXAMPLE_DOC_ID_7" target="_blank">Card Rewards — Go-live Checklist</a></li>
<li><a href="https://example.com/doc/EXAMPLE_DOC_ID_8" target="_blank">Partner API Integration Spec</a></li>
<li><a href="https://example.com/deck/EXAMPLE_DOC_ID_9" target="_blank">Cardholder Comms Draft</a></li>
</ul>
</details>
</div>
</div>
<div class="footer">
Interactive · click ☐ to close items · click "+ note" to add user context · hover any RAID item for source refs<br>
Aging: <span class="age">·neutral</span> <3d · <span class="age warn">·amber</span> 3–7d · <span class="age crit">·red</span> 7d+ · R Risk · A Assumption · I Issue · D Dependency
</div>
</div>
<!-- Ask drawer -->
<div id="ask-overlay" class="ask-overlay"></div>
<aside id="ask-drawer" class="ask-drawer" aria-hidden="true">
<div class="ask-hdr">
<div>
<h3 style="margin:0;">Ask the Control Tower</h3>
<div class="sub">Grounded in this dashboard's state — wire to your AI of choice (see WIRE: ASK)</div>
</div>
<button class="close" id="ask-close" aria-label="Close">×</button>
</div>
<div class="ask-body" id="ask-body">
<div class="ask-empty" id="ask-empty">
Ask anything about what's on this dashboard — open decisions, RAID items, attached docs, closures.
<div class="ask-suggest">
<button data-q="What are my top three priorities today?">Top three priorities today</button>
<button data-q="Which open decisions are blocking other people, sorted by age?">Decisions blocking others (with age)</button>
<button data-q="Summarize the cross-program clashes and the most urgent action.">Cross-program clashes & urgent action</button>
<button data-q="What attached docs do I have and on which line?">List attached docs by line</button>
</div>
</div>
</div>
<div class="ask-input">
<textarea id="ask-text" rows="1" placeholder="Ask about a line, a program, or anything on the page…"></textarea>
<button id="ask-send">Send</button>
</div>
</aside>
<script>
(function() {
// ─────────────────────────────────────────────────────────────────────
// Control Tower — minimal interactive runtime.
// State is persisted to localStorage and (when you wire it) to your
// cloud storage of choice. Everything keyed by `itemKey` which is a
// stable hash of (program | section | first 100 chars of text).
// ─────────────────────────────────────────────────────────────────────
const STATE_KEY = 'ctrl-twr-state';
function getState() {
try { return JSON.parse(localStorage.getItem(STATE_KEY)) || { closures:{}, notes:{}, attachments:{}, edits:[] }; }
catch { return { closures:{}, notes:{}, attachments:{}, edits:[] }; }
}
function saveState(s) { localStorage.setItem(STATE_KEY, JSON.stringify(s)); }
let state = getState();
function itemKey(item) {
const prog = item.dataset.prog || 'meta';
const section = item.dataset.section || 'x';
const txt = (item.querySelector('.text')?.textContent || '').trim().replace(/\s+/g, ' ').slice(0, 100);
return `${prog}|${section}|${txt}`;
}
function logEdit(action, item, extra) {
const entry = { ts: new Date().toISOString(), action };
if (item) {
entry.prog = item.dataset.prog || 'meta';
entry.section = item.dataset.section || 'x';
}
if (extra) Object.assign(entry, extra);
state.edits.push(entry);
if (state.edits.length > 200) state.edits.splice(0, state.edits.length - 200);
}
// ─── Closures ────────────────────────────────────────────────────────
function applyClosures() {
document.querySelectorAll('.iv').forEach(item => {
const k = itemKey(item);
if (state.closures[k]) item.classList.add('done');
});
updateCounter();
}
function updateCounter() {
const total = document.querySelectorAll('.iv').length;
const closed = Object.keys(state.closures).length;
document.getElementById('counter').textContent = closed > 0 ? `${closed}/${total} closed` : '';
}
document.addEventListener('click', e => {
// Toggle closure
const chk = e.target.closest('.iv .chk');
if (chk) {
const item = chk.closest('.iv');
const k = itemKey(item);
if (state.closures[k]) {
delete state.closures[k];
item.classList.remove('done');
logEdit('reopen', item);
} else {
state.closures[k] = new Date().toISOString();
item.classList.add('done');
logEdit('close', item);
}
saveState(state); updateCounter(); scheduleSync();
return;
}
// Undo (un-close)
const undo = e.target.closest('.iv .undo');
if (undo) {
const item = undo.closest('.iv');
const k = itemKey(item);
delete state.closures[k];
item.classList.remove('done');
logEdit('reopen', item);
saveState(state); updateCounter(); scheduleSync();
return;
}
// Add / edit note
const nbtn = e.target.closest('.iv .note-btn');
if (nbtn) {
const item = nbtn.closest('.iv');
const k = itemKey(item);
const existing = state.notes[k]?.text || '';
openNoteEditor(item, existing);
return;
}
// Add attachment
const dbtn = e.target.closest('.iv .doc-btn');
if (dbtn) {
const item = dbtn.closest('.iv');
const url = prompt('Paste a URL to attach to this line:');
if (url) addAttachment(item, url);
return;
}
// Remove attachment
const x = e.target.closest('.iv-attach .x');
if (x) {
const chip = x.closest('.chip');
const item = chip.closest('.iv');
const k = itemKey(item);
const url = chip.dataset.url;
state.attachments[k] = (state.attachments[k] || []).filter(a => a.url !== url);
if (state.attachments[k].length === 0) delete state.attachments[k];
saveState(state); renderAttachments(item); scheduleSync();
logEdit('detach', item, { url });
}
});
// ─── Notes ───────────────────────────────────────────────────────────
function openNoteEditor(item, existing) {
item.classList.add('editing');
let area = item.querySelector('.iv-edit-area');
if (!area) {
area = document.createElement('div');
area.className = 'iv-edit-area';
area.innerHTML = '<input type="text" placeholder="add a note…" /><button>save</button>';
item.appendChild(area);
}
const input = area.querySelector('input');
input.value = existing;
input.focus();
const save = () => {
const v = input.value.trim();
const k = itemKey(item);
if (v) {
state.notes[k] = { text: v, updatedAt: new Date().toISOString() };
logEdit('note-set', item, { note: v });
} else if (state.notes[k]) {
delete state.notes[k];
logEdit('note-clear', item);
}
saveState(state); item.classList.remove('editing'); renderNote(item); scheduleSync();
};
area.querySelector('button').onclick = save;
input.onkeydown = e => { if (e.key === 'Enter') save(); if (e.key === 'Escape') item.classList.remove('editing'); };
}
function renderNote(item) {
const k = itemKey(item);
const n = state.notes[k];
let el = item.querySelector('.iv-note');
if (n) {
if (!el) { el = document.createElement('div'); el.className = 'iv-note'; item.appendChild(el); }
el.textContent = n.text;
item.classList.add('has-note');
} else {
if (el) el.remove();
item.classList.remove('has-note');
}
}
function renderAllNotes() { document.querySelectorAll('.iv').forEach(renderNote); }
// ─── Attachments ─────────────────────────────────────────────────────
function addAttachment(item, url) {
const k = itemKey(item);
const type = url.includes('docs') ? 'doc' : url.includes('sheets') ? 'sheet' : url.includes('slides') || url.includes('presentation') ? 'slide' : 'doc';
// WIRE: STORAGE — replace this with a metadata-fetch call to your
// file-storage API (Drive `files.get`, OneDrive `driveItem`, S3
// `HeadObject`, etc.) to resolve the human-readable title. For the
// template we just use the host.
let title;
try { title = new URL(url).hostname.replace('www.', '') + ' link'; }
catch { title = 'attachment'; }
state.attachments[k] = state.attachments[k] || [];
state.attachments[k].push({ url, title, type, addedAt: new Date().toISOString() });
saveState(state); renderAttachments(item); scheduleSync();
logEdit('attach', item, { url, type });
}
function renderAttachments(item) {
const k = itemKey(item);
const atts = state.attachments[k] || [];
let el = item.querySelector('.iv-attach');
if (!atts.length) { el?.remove(); return; }
if (!el) { el = document.createElement('div'); el.className = 'iv-attach'; item.appendChild(el); }
el.innerHTML = atts.map(a => `<a class="chip ${a.type}" href="${a.url}" target="_blank" data-url="${a.url}">${a.title}<span class="x" title="remove">×</span></a>`).join('');
}
function renderAllAttachments() { document.querySelectorAll('.iv').forEach(renderAttachments); }
// ─── RAID source tooltips ────────────────────────────────────────────
// For each RAID item, attach a popover that shows the parent card's
// Refs links. Pure derivation from DOM — no schema change.
document.querySelectorAll('.card').forEach(card => {
const refs = card.querySelector('details.refs');
if (!refs) return;
const refList = refs.querySelector('ul')?.innerHTML || '';
if (!refList) return;
card.querySelectorAll('.raid .iv').forEach(iv => {
const pop = document.createElement('div');
pop.className = 'raid-popover';
pop.innerHTML = `<div class="ttl">Source refs</div><ul style="list-style:none;padding:0;margin:0;">${refList}</ul>`;
iv.appendChild(pop);
});
});
// ─── Sync (WIRE: STORAGE) ────────────────────────────────────────────
// The real Control Tower writes state.closures + state.notes + state.attachments
// to two files in cloud storage (Drive, OneDrive, Dropbox, S3, etc.):
// [CTRL-TWR-STATE].md — state snapshot (read by the refresh task)
// [CTRL-TWR-EDITS].log — chronological audit trail
// Wire your storage integration here. Debounce 2s so a flurry of
// clicks collapses into one write.
let syncTimer = null;
function scheduleSync() {
clearTimeout(syncTimer);
syncTimer = setTimeout(() => {
// WIRE: STORAGE — replace this stub with calls to your storage of
// choice. The shape is the same whatever you use:
// await storage.upsertFile('[CTRL-TWR-STATE].md', stateToMarkdown(state));
// await storage.appendFile('[CTRL-TWR-EDITS].log', newEditLines);
// (Could be MCP tools, OpenAI function-calls, a fetch() to your
// own backend, a direct cloud SDK call — your choice.)
console.log('[sync stub] would push state to cloud storage', state);
}, 2000);
}
// ─── Reset / refresh ─────────────────────────────────────────────────
document.getElementById('clear-closed').onclick = () => {
if (!confirm('Re-open all closed items?')) return;
state.closures = {};
document.querySelectorAll('.iv.done').forEach(i => i.classList.remove('done'));
logEdit('reset-closures');
saveState(state); updateCounter(); scheduleSync();
};
document.getElementById('refresh').onclick = () => {
// WIRE: REFRESH — trigger your scheduled refresh task on demand.
// Examples:
// await fetch('/api/control-tower/refresh', { method: 'POST' });
// await scheduler.runNow('control-tower-refresh'); // n8n, Temporal, etc.
// await mcp.scheduledTasks.runNow('control-tower-refresh'); // if using MCP
alert('Wire this button to your refresh task (see WIRE: REFRESH in the script).');
};
// ─── Ask drawer (WIRE: ASK) ──────────────────────────────────────────
const askBtn = document.getElementById('ask');
const askDrawer = document.getElementById('ask-drawer');
const askOverlay = document.getElementById('ask-overlay');
const askClose = document.getElementById('ask-close');
const askBody = document.getElementById('ask-body');
const askText = document.getElementById('ask-text');
const askSend = document.getElementById('ask-send');
function openAsk() { askDrawer.classList.add('open'); askOverlay.classList.add('open'); askText.focus(); }
function closeAsk() { askDrawer.classList.remove('open'); askOverlay.classList.remove('open'); }
askBtn.onclick = openAsk;
askClose.onclick = closeAsk;
askOverlay.onclick = closeAsk;
document.addEventListener('keydown', e => {
if ((e.metaKey || e.ctrlKey) && e.key === 'k') { e.preventDefault(); openAsk(); }
if (e.key === 'Escape') closeAsk();
});
document.querySelectorAll('.ask-suggest button').forEach(b => {
b.onclick = () => { askText.value = b.dataset.q; askSend.click(); };
});
function snapshotForAsk() {
// Snapshot of live dashboard state for grounding the AI answer.
const programs = [];
document.querySelectorAll('.card').forEach(card => {
const prog = card.dataset.program;
const items = [];
card.querySelectorAll('.iv').forEach(iv => {
const k = itemKey(iv);
items.push({
key: k,
section: iv.dataset.section,
text: iv.querySelector('.text')?.textContent.trim(),
closed: !!state.closures[k],
note: state.notes[k]?.text,
attachments: state.attachments[k]?.map(a => a.url) || []
});
});
programs.push({ program: prog, items });
});
return { programs, edits: state.edits.slice(-20) };
}
askSend.onclick = async () => {
const q = askText.value.trim();
if (!q) return;
askText.value = '';
document.getElementById('ask-empty')?.remove();
const userMsg = document.createElement('div');
userMsg.className = 'ask-msg user';
userMsg.textContent = q;
askBody.appendChild(userMsg);
const botMsg = document.createElement('div');
botMsg.className = 'ask-msg bot';
botMsg.textContent = 'Thinking…';
askBody.appendChild(botMsg);
askBody.scrollTop = askBody.scrollHeight;
// WIRE: ASK — replace this stub with a call to whatever AI you've got.
// The snapshot below is the grounding context — send it as either a
// user message preamble or as a system prompt with the question.
// Works with any chat-completion API: Claude, OpenAI, Gemini, a local
// model behind an OpenAI-compatible endpoint, Glean, your own gateway.
const snapshot = snapshotForAsk();
console.log('[ask stub] question:', q, 'snapshot:', snapshot);
// Example pseudo-code (OpenAI-compatible shape — most providers match it):
// const answer = await ai.chat({
// model: 'claude-haiku-4-5', // or 'gpt-4o-mini', 'gemini-flash', etc.
// messages: [
// { role: 'system', content: 'You are a PM assistant. Answer using only the dashboard snapshot.' },
// { role: 'user', content: 'Dashboard snapshot:\n```json\n' + JSON.stringify(snapshot, null, 2) + '\n```\n\nQuestion: ' + q }
// ]
// });
// botMsg.textContent = answer;
botMsg.textContent = '⚠️ Ask drawer is stubbed — wire your AI provider at WIRE: ASK in the script.';
};
askText.addEventListener('keydown', e => {
if (e.key === 'Enter' && !e.shiftKey) { e.preventDefault(); askSend.click(); }
});
// ─── Boot ────────────────────────────────────────────────────────────
applyClosures();
renderAllNotes();
renderAllAttachments();
document.getElementById('ts').textContent = 'Last refresh: never (wire a refresh task)';
})();
</script>
</body>
</html>