bokata 3.0.0-beta.3 → 3.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/skills/bokata-acceptance-criteria/SKILL.md +6 -7
- package/.agents/skills/bokata-acceptance-criteria/resources/output-template-functional.md +3 -3
- package/.agents/skills/bokata-acceptance-criteria/resources/output-template.md +1 -1
- package/.agents/skills/bokata-feature-map/SKILL.md +10 -11
- package/.agents/skills/bokata-feature-mapper/SKILL.md +4 -5
- package/.agents/skills/bokata-feature-mapper/resources/output-template.md +1 -1
- package/.agents/skills/bokata-feature-slicer/SKILL.md +16 -12
- package/.agents/skills/bokata-feature-slicer/resources/output-template-bites.md +12 -4
- package/.agents/skills/bokata-feature-slicer/resources/phase-2-increments.md +29 -51
- package/.agents/skills/bokata-feature-slicer/resources/{phase-3-baby-steps.md → phase-3-skeleton.md} +3 -3
- package/.agents/skills/bokata-feature-slicer/resources/phase-4-bites.md +8 -7
- package/.agents/skills/bokata-plan/SKILL.md +21 -15
- package/.agents/skills/bokata-plan/resources/plan-template.md +7 -5
- package/.agents/skills/bokata-render/SKILL.md +62 -138
- package/.agents/skills/bokata-render/assets/story-map.html +428 -0
- package/.agents/skills/bokata-render/scripts/render.mjs +703 -0
- package/.agents/skills/bokata-shape/SKILL.md +1 -1
- package/.agents/skills/bokata-slice/SKILL.md +194 -100
- package/.agents/skills/bokata-slice/resources/inc-template.md +36 -0
- package/.agents/skills/bokata-slice/resources/slice-template.md +37 -84
- package/.agents/skills/bokata-status/SKILL.md +27 -15
- package/.agents/skills/bokata-tdd/resources/evidence-rules.md +2 -2
- package/LICENSE +21 -0
- package/README.md +54 -40
- package/agents/bokata-product-designer.md +2 -2
- package/agents/bokata-product-engineer.md +2 -2
- package/agents/bokata-product-manager.md +3 -3
- package/agents/code-executor.md +27 -16
- package/agents/design-reviewer.md +2 -2
- package/agents/feature-slicer.md +21 -9
- package/bin/bokata.js +17 -5
- package/package.json +1 -1
- package/src/agents.js +36 -11
- package/src/config.js +8 -7
- package/src/install.js +12 -3
- package/.agents/skills/bokata-render/resources/story-map-template.md +0 -835
- package/agents/story-map-renderer.md +0 -19
|
@@ -1,835 +0,0 @@
|
|
|
1
|
-
# Bokata Story Map Template — Dashboard (Patton-Style Board, v3)
|
|
2
|
-
|
|
3
|
-
This file defines the **real Jeff Patton User Story Mapping structure** for bokata: the
|
|
4
|
-
**Backbone** (Features) is distributed horizontally as a header row; within each Feature's span,
|
|
5
|
-
its **Steps** (User Tasks) are distributed horizontally as individual sub-columns in narrative
|
|
6
|
-
order; and **within each Step's own column**, release/priority tiers (Walking Skeleton, then
|
|
7
|
-
Increments) are stacked **vertically**, highest priority nearest the header. Below the increments, the **bites** the slice has not built
|
|
8
|
-
yet wait as muted, dashed cards (must-have first).
|
|
9
|
-
|
|
10
|
-
On top of the board, v3 adds the **initiative dashboard layer**: per-card state, a "next step"
|
|
11
|
-
banner, progress counters, the **bites still in each slice's backlog** (cards below the
|
|
12
|
-
increments) and three pieces of vanilla interactivity (Feature focus, card expansion, hide-done). This is the only HTML artifact bokata writes; `features.md` and
|
|
13
|
-
`slices/*.md` stay the source of truth and this file is always derived from them.
|
|
14
|
-
|
|
15
|
-
**Critical: the addressable unit is the User Task (Step) column, not the Feature.** A Feature is a
|
|
16
|
-
*header that spans several Step columns* — it is never itself a column with tasks listed inside it
|
|
17
|
-
as a list. If you catch yourself building `.map-column[data-feature-id]` as a container holding a
|
|
18
|
-
list of task cards, that is the wrong structure — stop and re-read this file.
|
|
19
|
-
|
|
20
|
-
---
|
|
21
|
-
|
|
22
|
-
## Visual Structure
|
|
23
|
-
|
|
24
|
-
```
|
|
25
|
-
┌───────────────────────────────────────┬───────────────────────┬───────────────────────────────────┐
|
|
26
|
-
│ Feature 1 (spans 3 Steps) │ Feature 2 (spans 2) │ Feature 3 (spans 2) │ ← Backbone (Features), row 1
|
|
27
|
-
├────────────┬────────────┬─────────────┼────────────┬───────────┼──────────────┬──────────────────────┤
|
|
28
|
-
│ Step A │ Step B │ Step C │ Step D │ Step E │ Step F │ Step G │ ← Steps (User Tasks), row 2 — ONE COLUMN EACH
|
|
29
|
-
├────────────┼────────────┼─────────────┼────────────┼───────────┼──────────────┼──────────────────────┤
|
|
30
|
-
│ Skeleton │ Skeleton │ Not sliced │ Skeleton │ Not │ Not sliced │ Not sliced │ ← highest priority row (Walking Skeleton)
|
|
31
|
-
│ 1.a ✓ │ 1.b ● │ │ 2.a ○ │ sliced │ │ │
|
|
32
|
-
├────────────┼────────────┼─────────────┼────────────┼───────────┼──────────────┼──────────────────────┤
|
|
33
|
-
│ Increment │ │ │ Increment │ │ │ │ ← lower priority, stacked below within
|
|
34
|
-
│ 1.c ○ │ │ │ 2.b ○ │ │ │ │ the SAME Step's column
|
|
35
|
-
├────────────┼────────────┼─────────────┼────────────┼───────────┼──────────────┼──────────────────────┤
|
|
36
|
-
│ ┄ Bite F1-a │ ┄ Bite F1-c│ │ ┄ Bite F2-a │ │ │ │ ← bites left in the backlog (dashed),
|
|
37
|
-
│ ┄ Bite F1-b │ │ │ │ │ │ │ below the increments, same column
|
|
38
|
-
└────────────┴────────────┴─────────────┴────────────┴───────────┴──────────────┴──────────────────────┘
|
|
39
|
-
✓ done ● building ○ planned ┄ bite (not built)
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
Key structural rules:
|
|
43
|
-
- **Features are distributed horizontally** as a spanning header row (row 1) — width proportional to how many Steps they contain.
|
|
44
|
-
- **Within each Feature's span, its Steps are distributed horizontally**, one column per User Task, in narrative/journey order.
|
|
45
|
-
- **Within each Step's own column, increments are distributed vertically** by priority — the item closest to the header line is the Walking Skeleton pick for that Step; everything below it in the same column is a lower-priority increment for that *same* Step, not a different one.
|
|
46
|
-
- Every card carries a small **badge in its bottom-right corner** saying where it belongs: `S02 · Inc 2`, or `S02 · Backlog` for a bite.
|
|
47
|
-
- **Bites** (the slice's untaken backlog) sit below the increments of the Step column of their first option; they are drawn, never counted as increments.
|
|
48
|
-
- A Step with nothing sliced yet just shows "Not yet sliced" in its own column — it does NOT borrow or share a cell with a neighboring Step.
|
|
49
|
-
|
|
50
|
-
---
|
|
51
|
-
|
|
52
|
-
## Base HTML Shell & Styling
|
|
53
|
-
|
|
54
|
-
Use this base for all story-map renders. Keep every block verbatim; the `state-*` classes, the
|
|
55
|
-
banner, the counters, the toolbar and the script at the end are what make it a dashboard.
|
|
56
|
-
|
|
57
|
-
```html
|
|
58
|
-
<!DOCTYPE html>
|
|
59
|
-
<html lang="es">
|
|
60
|
-
<head>
|
|
61
|
-
<meta charset="UTF-8">
|
|
62
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
63
|
-
<meta name="bokata-story-map" content="v3">
|
|
64
|
-
<title>{{TITLE}}</title>
|
|
65
|
-
<style>
|
|
66
|
-
* {
|
|
67
|
-
margin: 0;
|
|
68
|
-
padding: 0;
|
|
69
|
-
box-sizing: border-box;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
body {
|
|
73
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
74
|
-
line-height: 1.6;
|
|
75
|
-
color: #2d3748;
|
|
76
|
-
background: #f7fafc;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
@media (prefers-color-scheme: dark) {
|
|
80
|
-
body {
|
|
81
|
-
background: #1a202c;
|
|
82
|
-
color: #e2e8f0;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
header {
|
|
87
|
-
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
88
|
-
color: white;
|
|
89
|
-
padding: 2.5rem 2rem 2rem;
|
|
90
|
-
text-align: center;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
header h1 {
|
|
94
|
-
font-size: 2.25rem;
|
|
95
|
-
margin-bottom: 0.35rem;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
header p {
|
|
99
|
-
font-size: 1.05rem;
|
|
100
|
-
opacity: 0.95;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.counters {
|
|
104
|
-
display: flex;
|
|
105
|
-
justify-content: center;
|
|
106
|
-
flex-wrap: wrap;
|
|
107
|
-
gap: 0.6rem;
|
|
108
|
-
margin-top: 1rem;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.counter {
|
|
112
|
-
background: rgba(255, 255, 255, 0.18);
|
|
113
|
-
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
114
|
-
border-radius: 999px;
|
|
115
|
-
padding: 0.2rem 0.8rem;
|
|
116
|
-
font-size: 0.8rem;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.counter strong {
|
|
120
|
-
font-size: 0.9rem;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.container {
|
|
124
|
-
max-width: 1600px;
|
|
125
|
-
margin: 0 auto;
|
|
126
|
-
padding: 2rem;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/* ——— Next step banner ——— */
|
|
130
|
-
.next-banner {
|
|
131
|
-
display: flex;
|
|
132
|
-
align-items: center;
|
|
133
|
-
gap: 0.75rem;
|
|
134
|
-
flex-wrap: wrap;
|
|
135
|
-
margin: 0 0 1rem 0;
|
|
136
|
-
padding: 0.75rem 1rem;
|
|
137
|
-
background: #fffbeb;
|
|
138
|
-
border: 1px solid #f6e05e;
|
|
139
|
-
border-left: 5px solid #d69e2e;
|
|
140
|
-
border-radius: 8px;
|
|
141
|
-
font-size: 0.9rem;
|
|
142
|
-
color: #744210;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.next-banner[hidden] { display: none; }
|
|
146
|
-
|
|
147
|
-
.next-label {
|
|
148
|
-
font-size: 0.7rem;
|
|
149
|
-
font-weight: 800;
|
|
150
|
-
letter-spacing: 0.08em;
|
|
151
|
-
text-transform: uppercase;
|
|
152
|
-
background: #d69e2e;
|
|
153
|
-
color: white;
|
|
154
|
-
border-radius: 999px;
|
|
155
|
-
padding: 0.1rem 0.55rem;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.next-link {
|
|
159
|
-
margin-left: auto;
|
|
160
|
-
color: #744210;
|
|
161
|
-
font-weight: 600;
|
|
162
|
-
white-space: nowrap;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
@media (prefers-color-scheme: dark) {
|
|
166
|
-
.next-banner {
|
|
167
|
-
background: rgba(246, 224, 94, 0.1);
|
|
168
|
-
border-color: rgba(246, 224, 94, 0.35);
|
|
169
|
-
border-left-color: #f6e05e;
|
|
170
|
-
color: #fefcbf;
|
|
171
|
-
}
|
|
172
|
-
.next-link { color: #fefcbf; }
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/* ——— Legend + toolbar ——— */
|
|
176
|
-
.toolbar {
|
|
177
|
-
display: flex;
|
|
178
|
-
align-items: center;
|
|
179
|
-
justify-content: space-between;
|
|
180
|
-
gap: 1rem;
|
|
181
|
-
flex-wrap: wrap;
|
|
182
|
-
margin: 0 0 1rem 0;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.legend { display: flex; gap: 1.25rem; flex-wrap: wrap; padding: 1rem; background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); font-size: 0.85rem; flex: 1; }
|
|
186
|
-
@media (prefers-color-scheme: dark) { .legend { background: #2d3748; box-shadow: 0 2px 8px rgba(0,0,0,0.3); } }
|
|
187
|
-
.legend-item { display: flex; align-items: center; gap: 0.5rem; }
|
|
188
|
-
.swatch { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; }
|
|
189
|
-
.swatch.activity { background: #ec4899; }
|
|
190
|
-
.swatch.step { background: #667eea; }
|
|
191
|
-
.swatch.release { background: #f0b429; }
|
|
192
|
-
.swatch.done { background: #48bb78; }
|
|
193
|
-
.swatch.building { background: #ed8936; }
|
|
194
|
-
.swatch.bite { background: transparent; border: 2px dashed #a0aec0; }
|
|
195
|
-
|
|
196
|
-
.filter {
|
|
197
|
-
display: flex;
|
|
198
|
-
align-items: center;
|
|
199
|
-
gap: 0.45rem;
|
|
200
|
-
padding: 0.6rem 0.9rem;
|
|
201
|
-
background: white;
|
|
202
|
-
border-radius: 8px;
|
|
203
|
-
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
|
204
|
-
font-size: 0.85rem;
|
|
205
|
-
white-space: nowrap;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
@media (prefers-color-scheme: dark) {
|
|
209
|
-
.filter { background: #2d3748; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
body.hide-done .state-done { display: none; }
|
|
213
|
-
|
|
214
|
-
/* ——— Board ——— */
|
|
215
|
-
.story-map {
|
|
216
|
-
background: white;
|
|
217
|
-
border-radius: 8px;
|
|
218
|
-
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
|
219
|
-
overflow-x: auto;
|
|
220
|
-
margin: 0 0 2rem 0;
|
|
221
|
-
display: flex;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
@media (prefers-color-scheme: dark) {
|
|
225
|
-
.story-map {
|
|
226
|
-
background: #2d3748;
|
|
227
|
-
box-shadow: 0 2px 8px rgba(0,0,0,0.3);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
/* Grid: one column PER STEP (User Task), not per Feature. Features are row-1 headers
|
|
232
|
-
that span N columns (N = how many Steps/User Tasks they contain) via grid-column: span N,
|
|
233
|
-
relying on CSS Grid auto-placement to tile them left-to-right in narrative order. */
|
|
234
|
-
.map-grid {
|
|
235
|
-
display: grid;
|
|
236
|
-
grid-auto-rows: min-content;
|
|
237
|
-
flex: 1;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
.priority-axis {
|
|
241
|
-
writing-mode: vertical-rl;
|
|
242
|
-
transform: rotate(180deg);
|
|
243
|
-
flex: 0 0 auto;
|
|
244
|
-
display: flex;
|
|
245
|
-
align-items: center;
|
|
246
|
-
justify-content: center;
|
|
247
|
-
padding: 1rem 0.5rem;
|
|
248
|
-
font-weight: 700;
|
|
249
|
-
font-size: 0.85rem;
|
|
250
|
-
color: #764ba2;
|
|
251
|
-
text-transform: uppercase;
|
|
252
|
-
letter-spacing: 0.1em;
|
|
253
|
-
border-right: 2px dashed #cbd5e0;
|
|
254
|
-
position: sticky;
|
|
255
|
-
left: 0;
|
|
256
|
-
background: white;
|
|
257
|
-
z-index: 2;
|
|
258
|
-
}
|
|
259
|
-
.priority-axis::before { content: "▼ decreasing priority"; }
|
|
260
|
-
|
|
261
|
-
@media (prefers-color-scheme: dark) {
|
|
262
|
-
.priority-axis {
|
|
263
|
-
color: #d8b4fe;
|
|
264
|
-
background: #2d3748;
|
|
265
|
-
border-right-color: #4a5568;
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
/* Row 1: Feature headers (Backbone) — one div per Feature, grid-row:1, grid-column: span N.
|
|
270
|
-
Documents a header only; data-feature-id here is for focus highlighting. */
|
|
271
|
-
.feature-header {
|
|
272
|
-
grid-row: 1;
|
|
273
|
-
background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
|
|
274
|
-
color: white;
|
|
275
|
-
padding: 0.85rem 0.75rem;
|
|
276
|
-
font-weight: 700;
|
|
277
|
-
font-size: 0.95rem;
|
|
278
|
-
border: 1px solid white;
|
|
279
|
-
display: flex;
|
|
280
|
-
flex-direction: column;
|
|
281
|
-
gap: 0.35rem;
|
|
282
|
-
cursor: pointer;
|
|
283
|
-
transition: opacity 0.15s ease;
|
|
284
|
-
}
|
|
285
|
-
.feature-header .fid {
|
|
286
|
-
font-size: 0.7rem;
|
|
287
|
-
font-weight: 500;
|
|
288
|
-
opacity: 0.9;
|
|
289
|
-
font-family: 'Monaco','Menlo',monospace;
|
|
290
|
-
}
|
|
291
|
-
.feature-header .priority-badge {
|
|
292
|
-
align-self: flex-start;
|
|
293
|
-
padding: 0.15rem 0.5rem;
|
|
294
|
-
border-radius: 10px;
|
|
295
|
-
font-size: 0.65rem;
|
|
296
|
-
font-weight: 700;
|
|
297
|
-
background: rgba(255,255,255,0.25);
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
/* Row 2: Steps (User Tasks) — ONE COLUMN EACH, grid-row:2, auto-placed one per grid column.
|
|
301
|
-
This IS the addressable unit: data-task-id lives here, and is what bokata-render targets. */
|
|
302
|
-
.step-card {
|
|
303
|
-
grid-row: 2;
|
|
304
|
-
background: #eef1fd;
|
|
305
|
-
border: 1px solid #c9d2f7;
|
|
306
|
-
border-bottom: 4px solid #667eea;
|
|
307
|
-
padding: 0.65rem 0.6rem;
|
|
308
|
-
font-size: 0.8rem;
|
|
309
|
-
line-height: 1.35;
|
|
310
|
-
min-height: 78px;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
@media (prefers-color-scheme: dark) {
|
|
314
|
-
.step-card {
|
|
315
|
-
background: rgba(102,126,234,0.12);
|
|
316
|
-
border-color: #4c51bf;
|
|
317
|
-
border-bottom-color: #a78bfa;
|
|
318
|
-
color: #e2e8f0;
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
/* Rows 3+: release/priority tiers, stacked VERTICALLY within each Step's own column.
|
|
323
|
-
Row 3 = highest priority (Walking Skeleton once sliced). Additional rows below it
|
|
324
|
-
(4, 5, ...) = lower-priority increments for that SAME Step's column. */
|
|
325
|
-
.release-cell {
|
|
326
|
-
grid-row: 3;
|
|
327
|
-
background: #fffbea;
|
|
328
|
-
border: 1px solid #f5e6a8;
|
|
329
|
-
padding: 0.6rem;
|
|
330
|
-
font-size: 0.75rem;
|
|
331
|
-
font-style: italic;
|
|
332
|
-
color: #92702a;
|
|
333
|
-
text-align: center;
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
@media (prefers-color-scheme: dark) {
|
|
337
|
-
.release-cell {
|
|
338
|
-
background: rgba(240,180,41,0.1);
|
|
339
|
-
border-color: rgba(240,180,41,0.3);
|
|
340
|
-
color: #f0b429;
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
.skeleton-item-card {
|
|
345
|
-
grid-row: 3;
|
|
346
|
-
background: #f0fdf4;
|
|
347
|
-
border: 1px solid #86efac;
|
|
348
|
-
border-left: 4px solid #48bb78;
|
|
349
|
-
padding: 0.6rem;
|
|
350
|
-
font-size: 0.78rem;
|
|
351
|
-
line-height: 1.4;
|
|
352
|
-
color: #22543d;
|
|
353
|
-
cursor: pointer;
|
|
354
|
-
transition: opacity 0.15s ease;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
@media (prefers-color-scheme: dark) {
|
|
358
|
-
.skeleton-item-card {
|
|
359
|
-
background: rgba(72, 187, 120, 0.12);
|
|
360
|
-
border-color: #4a5568;
|
|
361
|
-
border-left-color: #81e6d9;
|
|
362
|
-
color: #a7f3d0;
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
.increment-card {
|
|
367
|
-
background: white;
|
|
368
|
-
border: 1px solid #f5d7a8;
|
|
369
|
-
border-left: 4px solid #ed8936;
|
|
370
|
-
padding: 0.6rem;
|
|
371
|
-
font-size: 0.78rem;
|
|
372
|
-
line-height: 1.4;
|
|
373
|
-
color: #7c2d12;
|
|
374
|
-
cursor: pointer;
|
|
375
|
-
transition: opacity 0.15s ease;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
@media (prefers-color-scheme: dark) {
|
|
379
|
-
.increment-card {
|
|
380
|
-
background: rgba(0,0,0,0.2);
|
|
381
|
-
border-left-color: #fbd38d;
|
|
382
|
-
color: #fed7aa;
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
/* Scope badge: where a card belongs, in its bottom-right corner — "S02 · Inc 2" for the skeleton and
|
|
387
|
-
increment cards, "S02 · Backlog" for a bite still waiting. S<nn> = the slice, so cards of different
|
|
388
|
-
slices stay tellable apart. Written by bokata-render; state-sync never changes it. */
|
|
389
|
-
.skeleton-item-card, .increment-card, .bite-card { position: relative; padding-bottom: 1.7rem; }
|
|
390
|
-
.scope-badge {
|
|
391
|
-
position: absolute;
|
|
392
|
-
right: 0.4rem;
|
|
393
|
-
bottom: 0.35rem;
|
|
394
|
-
padding: 0.05rem 0.45rem;
|
|
395
|
-
border: 1px solid currentColor;
|
|
396
|
-
border-radius: 999px;
|
|
397
|
-
font-size: 0.6rem;
|
|
398
|
-
font-weight: 700;
|
|
399
|
-
letter-spacing: 0.03em;
|
|
400
|
-
white-space: nowrap;
|
|
401
|
-
opacity: 0.75;
|
|
402
|
-
pointer-events: none;
|
|
403
|
-
}
|
|
404
|
-
.bite-card .scope-badge { border-style: dashed; }
|
|
405
|
-
|
|
406
|
-
/* Bites: INVEST groups of options still in the slice's backlog. Not built, so muted and dashed;
|
|
407
|
-
must-have is solid-looking, ~nice-to-have is lighter, deferred is greyest. */
|
|
408
|
-
.bite-card {
|
|
409
|
-
background: transparent;
|
|
410
|
-
border: 1px dashed #a0aec0;
|
|
411
|
-
border-left: 4px dashed #667eea;
|
|
412
|
-
padding: 0.55rem 0.6rem;
|
|
413
|
-
font-size: 0.75rem;
|
|
414
|
-
line-height: 1.4;
|
|
415
|
-
color: #4a5568;
|
|
416
|
-
cursor: pointer;
|
|
417
|
-
transition: opacity 0.15s ease;
|
|
418
|
-
}
|
|
419
|
-
.bite-card .bite-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.4rem; margin-bottom: 0.2rem; }
|
|
420
|
-
.bite-card .bite-id { font-family: 'Monaco','Menlo',monospace; font-size: 0.65rem; opacity: 0.8; }
|
|
421
|
-
.bite-card .bite-tag { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
|
|
422
|
-
.bite-card .bite-title { font-weight: 600; }
|
|
423
|
-
.bite-card .bite-deps { margin-top: 0.2rem; font-size: 0.68rem; opacity: 0.75; }
|
|
424
|
-
.bite-card.bite-nice { border-left-color: #a0aec0; opacity: 0.8; }
|
|
425
|
-
.bite-card.bite-deferred { border-left-color: #cbd5e0; opacity: 0.55; font-style: italic; }
|
|
426
|
-
|
|
427
|
-
@media (prefers-color-scheme: dark) {
|
|
428
|
-
.bite-card { border-color: #718096; border-left-color: #a78bfa; color: #cbd5e0; }
|
|
429
|
-
.bite-card.bite-nice { border-left-color: #718096; }
|
|
430
|
-
.bite-card.bite-deferred { border-left-color: #4a5568; }
|
|
431
|
-
.swatch.bite { border-color: #718096; }
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
/* ——— State layer (class toggled by bokata-render, label drawn from it) ——— */
|
|
435
|
-
.card-title {
|
|
436
|
-
font-weight: 600;
|
|
437
|
-
display: flex;
|
|
438
|
-
align-items: baseline;
|
|
439
|
-
justify-content: space-between;
|
|
440
|
-
gap: 0.4rem;
|
|
441
|
-
margin-bottom: 0.25rem;
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
.state-done > .card-title { color: #276749; }
|
|
445
|
-
.state-done > .card-title::after { content: "✓ done"; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.85; white-space: nowrap; }
|
|
446
|
-
.state-building > .card-title { color: #975a16; }
|
|
447
|
-
.state-building > .card-title::after { content: "● building"; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.85; white-space: nowrap; }
|
|
448
|
-
.state-planned > .card-title { color: inherit; opacity: 0.9; }
|
|
449
|
-
.state-planned > .card-title::after { content: "○ planned"; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.6; white-space: nowrap; }
|
|
450
|
-
|
|
451
|
-
.state-done { background: #f0fff4; border-color: #9ae6b4; border-left-color: #48bb78; }
|
|
452
|
-
.state-building { border-left-color: #ed8936; box-shadow: inset 0 0 0 1px rgba(237, 137, 54, 0.25); }
|
|
453
|
-
|
|
454
|
-
.increment-description { font-size: 0.85rem; }
|
|
455
|
-
|
|
456
|
-
.steps-badge {
|
|
457
|
-
font-size: 0.62rem;
|
|
458
|
-
font-weight: 700;
|
|
459
|
-
color: #718096;
|
|
460
|
-
white-space: nowrap;
|
|
461
|
-
}
|
|
462
|
-
.steps-badge::after { content: attr(data-done) "/" attr(data-total); }
|
|
463
|
-
.steps-badge:not([data-total]) { display: none; }
|
|
464
|
-
|
|
465
|
-
.card-details {
|
|
466
|
-
margin-top: 0.4rem;
|
|
467
|
-
padding-top: 0.35rem;
|
|
468
|
-
border-top: 1px dashed currentColor;
|
|
469
|
-
font-size: 0.72rem;
|
|
470
|
-
}
|
|
471
|
-
.card-details ul { padding-left: 1rem; }
|
|
472
|
-
.card-details a { color: inherit; font-weight: 600; }
|
|
473
|
-
|
|
474
|
-
@media (prefers-color-scheme: dark) {
|
|
475
|
-
.state-done { background: rgba(72, 187, 120, 0.1); border-color: #4a5568; border-left-color: #81e6d9; }
|
|
476
|
-
.state-done > .card-title { color: #9ae6b4; }
|
|
477
|
-
.state-building > .card-title { color: #fbd38d; }
|
|
478
|
-
.steps-badge { color: #a0aec0; }
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
/* ——— Focus mode ——— */
|
|
482
|
-
.is-dimmed { opacity: 0.22; }
|
|
483
|
-
.is-focused { box-shadow: 0 0 0 2px #667eea inset; }
|
|
484
|
-
|
|
485
|
-
/* System Tasks (autonomous workflow transitions) are NOT Step columns. Footnote spanning
|
|
486
|
-
that Feature's own columns, in a row below the release tiers. */
|
|
487
|
-
.system-tasks-note {
|
|
488
|
-
background: rgba(0,0,0,0.03);
|
|
489
|
-
border: 1px solid #e2e8f0;
|
|
490
|
-
padding: 0.6rem 0.75rem;
|
|
491
|
-
font-size: 0.72rem;
|
|
492
|
-
line-height: 1.4;
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
@media (prefers-color-scheme: dark) {
|
|
496
|
-
.system-tasks-note {
|
|
497
|
-
background: rgba(0,0,0,0.2);
|
|
498
|
-
border-color: #4a5568;
|
|
499
|
-
color: #cbd5e0;
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
footer {
|
|
504
|
-
text-align: center;
|
|
505
|
-
padding: 2rem;
|
|
506
|
-
color: #718096;
|
|
507
|
-
font-size: 0.9rem;
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
@media (prefers-color-scheme: dark) {
|
|
511
|
-
footer {
|
|
512
|
-
color: #a0aec0;
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
</style>
|
|
516
|
-
</head>
|
|
517
|
-
<body>
|
|
518
|
-
|
|
519
|
-
<header>
|
|
520
|
-
<h1>{{TITLE}}</h1>
|
|
521
|
-
<p>{{SUBTITLE}}</p>
|
|
522
|
-
<div class="counters">
|
|
523
|
-
<span class="counter"><strong>{{DONE_INCREMENTS}}</strong>/{{TOTAL_INCREMENTS}} increments</span>
|
|
524
|
-
<span class="counter"><strong>{{DONE_STEPS}}</strong>/{{TOTAL_STEPS}} steps</span>
|
|
525
|
-
<span class="counter"><strong>{{DONE_SLICES}}</strong>/{{TOTAL_SLICES}} slices</span>
|
|
526
|
-
<span class="counter"><strong>{{BITES_LEFT}}</strong> bites left</span>
|
|
527
|
-
</div>
|
|
528
|
-
</header>
|
|
529
|
-
|
|
530
|
-
<div class="container">
|
|
531
|
-
<div class="next-banner" id="next-banner"{{NEXT_HIDDEN}}>
|
|
532
|
-
<span class="next-label">Next</span>
|
|
533
|
-
<span class="next-text">{{NEXT_TEXT}}</span>
|
|
534
|
-
<a class="next-link" href="{{NEXT_LINK}}">open slice</a>
|
|
535
|
-
</div>
|
|
536
|
-
|
|
537
|
-
<div class="toolbar">
|
|
538
|
-
<div class="legend">
|
|
539
|
-
<div class="legend-item"><span class="swatch activity"></span> Backbone — Features</div>
|
|
540
|
-
<div class="legend-item"><span class="swatch step"></span> Steps — User Tasks</div>
|
|
541
|
-
<div class="legend-item"><span class="swatch release"></span> Releases — by priority</div>
|
|
542
|
-
<div class="legend-item"><span class="swatch done"></span> done</div>
|
|
543
|
-
<div class="legend-item"><span class="swatch building"></span> building</div>
|
|
544
|
-
<div class="legend-item"><span class="swatch bite"></span> Bites — still in the backlog</div>
|
|
545
|
-
</div>
|
|
546
|
-
<label class="filter"><input type="checkbox" id="hide-done"> Hide done</label>
|
|
547
|
-
</div>
|
|
548
|
-
|
|
549
|
-
<div class="story-map">
|
|
550
|
-
<div class="priority-axis"></div>
|
|
551
|
-
<div class="map-grid" style="grid-template-columns: repeat({{TOTAL_STEP_COUNT}}, minmax(150px, 1fr));">
|
|
552
|
-
{{BODY}}
|
|
553
|
-
</div>
|
|
554
|
-
</div>
|
|
555
|
-
</div>
|
|
556
|
-
|
|
557
|
-
<footer>
|
|
558
|
-
{{FOOTER_META}}
|
|
559
|
-
</footer>
|
|
560
|
-
|
|
561
|
-
<script>
|
|
562
|
-
(function () {
|
|
563
|
-
var focused = null;
|
|
564
|
-
|
|
565
|
-
function applyFocus(id) {
|
|
566
|
-
var nodes = document.querySelectorAll('.feature-header, .step-card, .skeleton-item-card, .increment-card, .bite-card');
|
|
567
|
-
for (var i = 0; i < nodes.length; i++) {
|
|
568
|
-
var el = nodes[i];
|
|
569
|
-
var mine = el.getAttribute('data-feature-id');
|
|
570
|
-
el.classList.toggle('is-dimmed', !!id && mine !== id);
|
|
571
|
-
el.classList.toggle('is-focused', !!id && mine === id && el.classList.contains('feature-header'));
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
var headers = document.querySelectorAll('.feature-header');
|
|
576
|
-
for (var h = 0; h < headers.length; h++) {
|
|
577
|
-
(function (header) {
|
|
578
|
-
var id = header.getAttribute('data-feature-id');
|
|
579
|
-
header.addEventListener('mouseenter', function () { applyFocus(id); });
|
|
580
|
-
header.addEventListener('mouseleave', function () { applyFocus(focused); });
|
|
581
|
-
header.addEventListener('click', function () {
|
|
582
|
-
focused = (focused === id) ? null : id;
|
|
583
|
-
applyFocus(focused);
|
|
584
|
-
});
|
|
585
|
-
})(headers[h]);
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
var cards = document.querySelectorAll('.skeleton-item-card, .increment-card, .bite-card');
|
|
589
|
-
for (var c = 0; c < cards.length; c++) {
|
|
590
|
-
(function (card) {
|
|
591
|
-
card.addEventListener('click', function (event) {
|
|
592
|
-
if (event.target.closest('a')) { return; }
|
|
593
|
-
var details = card.querySelector('.card-details');
|
|
594
|
-
if (details) { details.hidden = !details.hidden; }
|
|
595
|
-
});
|
|
596
|
-
})(cards[c]);
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
var toggle = document.getElementById('hide-done');
|
|
600
|
-
if (toggle) {
|
|
601
|
-
toggle.addEventListener('change', function () {
|
|
602
|
-
document.body.classList.toggle('hide-done', toggle.checked);
|
|
603
|
-
});
|
|
604
|
-
}
|
|
605
|
-
})();
|
|
606
|
-
</script>
|
|
607
|
-
</body>
|
|
608
|
-
</html>
|
|
609
|
-
```
|
|
610
|
-
|
|
611
|
-
`{{TOTAL_STEP_COUNT}}` = the sum of User Tasks across every Feature (e.g. 40 for a 7-Feature, 40-task backbone) — this is the total number of grid columns, since one column = one Step, not one Feature.
|
|
612
|
-
|
|
613
|
-
---
|
|
614
|
-
|
|
615
|
-
## Column DOM Structure (Critical for Updates)
|
|
616
|
-
|
|
617
|
-
**The addressable unit is the Step (User Task) column — `data-task-id` — never the Feature.** A Feature is only a spanning header div; it holds no tasks or cards itself.
|
|
618
|
-
|
|
619
|
-
Build the grid in DOM passes, all children of the same `.map-grid` container, positioned purely by `grid-row` / `grid-column` (CSS Grid auto-placement fills left-to-right within a row, so as long as items appear in backbone journey order within each pass, they land in the right column automatically):
|
|
620
|
-
|
|
621
|
-
```html
|
|
622
|
-
<!-- PASS 1 (row 1): one div per FEATURE, spanning its Step count. Auto-placed left-to-right. -->
|
|
623
|
-
<div class="feature-header" data-feature-id="RTMVP-FEAT-001" style="grid-column: span 2;">
|
|
624
|
-
<span class="feature-title">Feature 1: Tourist Opts Into Location Services</span>
|
|
625
|
-
<span class="fid">RTMVP-FEAT-001</span>
|
|
626
|
-
<span class="priority-badge">Critical MVP</span>
|
|
627
|
-
</div>
|
|
628
|
-
|
|
629
|
-
<!-- PASS 2 (row 2): one div per STEP (User Task) — the real column unit.
|
|
630
|
-
data-task-id is the addressable unit; data-feature-id feeds the focus highlight. -->
|
|
631
|
-
<div class="step-card" data-task-id="RTMVP-TASK-001" data-feature-id="RTMVP-FEAT-001">Enable geolocation permissions on first launch</div>
|
|
632
|
-
<div class="step-card" data-task-id="RTMVP-TASK-002" data-feature-id="RTMVP-FEAT-001">Verify location is active</div>
|
|
633
|
-
|
|
634
|
-
<!-- PASS 3 (row 3+): release tier, one per Step's column, stacked vertically by priority.
|
|
635
|
-
Before slicing, every Step gets exactly one placeholder in row 3. -->
|
|
636
|
-
<div class="release-cell" data-task-id="RTMVP-TASK-001">Not yet sliced</div>
|
|
637
|
-
<div class="release-cell" data-task-id="RTMVP-TASK-002">Not yet sliced</div>
|
|
638
|
-
```
|
|
639
|
-
|
|
640
|
-
After a slice has been rendered, that Feature's Step columns get their placeholder(s) replaced in place:
|
|
641
|
-
|
|
642
|
-
```html
|
|
643
|
-
<!-- A sliced Step's column: skeleton item at row 3 (nearest the header = highest priority),
|
|
644
|
-
increments stacked below it in the SAME column at rows 4, 5, ... -->
|
|
645
|
-
<div class="skeleton-item-card state-planned" data-task-id="RTMVP-TASK-001" data-feature-id="RTMVP-FEAT-001" data-increment-id="01-Inc1" data-slice="01-walking-skeleton" data-state="planned" style="grid-row: 3; grid-column: 1;">
|
|
646
|
-
<div class="card-title"><strong>Inc 1 — Walking skeleton</strong><span class="steps-badge" data-done="0" data-total="3"></span></div>
|
|
647
|
-
<small>F1-1.1 Native permission dialog · F1-2.1 Skip leads to offline browsing</small>
|
|
648
|
-
<div class="card-details" hidden>
|
|
649
|
-
<ul>
|
|
650
|
-
<li>Scenario: Permission prompt shown on first launch</li>
|
|
651
|
-
<li>Scenario: Skipping keeps offline browsing available</li>
|
|
652
|
-
</ul>
|
|
653
|
-
<a href="slices/01-walking-skeleton.md">slices/01-walking-skeleton.md</a>
|
|
654
|
-
</div>
|
|
655
|
-
<span class="scope-badge">S01 · Inc 1</span>
|
|
656
|
-
</div>
|
|
657
|
-
<div class="increment-card state-building" data-task-id="RTMVP-TASK-001" data-feature-id="RTMVP-FEAT-001" data-increment-id="01-Inc2" data-slice="01-walking-skeleton" data-state="building" style="grid-row: 4; grid-column: 1;">
|
|
658
|
-
<div class="card-title"><span class="increment-id">Inc 2 — Re-enable location after skip</span><span class="steps-badge" data-done="2" data-total="5"></span></div>
|
|
659
|
-
<div class="increment-description">F1-1.3 Grant permission from the settings screen</div>
|
|
660
|
-
<div class="card-details" hidden>
|
|
661
|
-
<ul><li>Scenario: Granting from settings enables location</li></ul>
|
|
662
|
-
<a href="slices/01-walking-skeleton.md">slices/01-walking-skeleton.md</a>
|
|
663
|
-
</div>
|
|
664
|
-
<span class="scope-badge">S01 · Inc 2</span>
|
|
665
|
-
</div>
|
|
666
|
-
```
|
|
667
|
-
|
|
668
|
-
Bites go in the same column, **below the last increment card**, one `.bite-card` per untaken bite
|
|
669
|
-
(`grid-row` = next free row; must-have first, then `~nice-to-have`, then deferred). The Increment card
|
|
670
|
-
of an increment that took bites lists them on a second line (`Bites: F1-a Ana ve… · F1-b …`).
|
|
671
|
-
|
|
672
|
-
```html
|
|
673
|
-
<div class="bite-card" data-bite-id="F1-a" data-task-id="RTMVP-TASK-001" data-feature-id="RTMVP-FEAT-001" data-slice="01-walking-skeleton" data-priority="must" style="grid-row: 5; grid-column: 1;">
|
|
674
|
-
<div class="bite-head"><span class="bite-id">F1-a</span><span class="bite-tag">must-have</span></div>
|
|
675
|
-
<div class="bite-title">Tourist sees why location was denied</div>
|
|
676
|
-
<div class="bite-deps">depends on: Inc 1</div>
|
|
677
|
-
<div class="card-details" hidden>
|
|
678
|
-
<ul>
|
|
679
|
-
<li>Options: F1-1.3, F1-2.2</li>
|
|
680
|
-
<li>Value: the tourist knows what to fix</li>
|
|
681
|
-
<li>Check: denying the prompt shows the reason banner</li>
|
|
682
|
-
</ul>
|
|
683
|
-
<a href="slices/01-walking-skeleton.md">slices/01-walking-skeleton.md</a>
|
|
684
|
-
</div>
|
|
685
|
-
<span class="scope-badge">S01 · Backlog</span>
|
|
686
|
-
</div>
|
|
687
|
-
<div class="bite-card bite-nice" data-bite-id="F1-b" data-priority="nice" …>…<span class="scope-badge">S01 · Backlog</span></div>
|
|
688
|
-
<div class="bite-card bite-deferred" data-bite-id="F1-x" data-priority="deferred" …>…<span class="scope-badge">S01 · Backlog</span></div>
|
|
689
|
-
```
|
|
690
|
-
|
|
691
|
-
Note the explicit `grid-column` on sliced cards: once a column has more than one card stacked vertically, you can no longer rely on row-scoped auto-placement alone — pin `grid-column` to the Step's numeric column position (1-indexed, left to right across the *entire* grid, not per-Feature).
|
|
692
|
-
|
|
693
|
-
If a Feature has System Tasks (autonomous transitions — see methodology.md), they are not Steps and get no column. Render them as one `.system-tasks-note` div spanning that Feature's own column range, placed in a row below the release tiers.
|
|
694
|
-
|
|
695
|
-
---
|
|
696
|
-
|
|
697
|
-
## Markdown→HTML Conversion Rules
|
|
698
|
-
|
|
699
|
-
When building or updating the story-map HTML from `features.md` (and the slice files), use these mappings:
|
|
700
|
-
|
|
701
|
-
| Source (Markdown) | Target (HTML) | Notes |
|
|
702
|
-
|------------------------------|--------------------------------------------|-------|
|
|
703
|
-
| `## Features Backbone` | (Signal: build the board from the Features below) | Not rendered directly; used to parse Features |
|
|
704
|
-
| `#### Feature: [Actor] [Verb] [Object]` (+ ID comment) | `.feature-header` div, `grid-row: 1`, `grid-column: span N`, `data-feature-id` | N = that Feature's User Task count; auto-placed in backbone journey order — a header, NOT a container |
|
|
705
|
-
| `##### User Task: [Verb] [Object]` (+ Task ID comment) | `.step-card` div, `grid-row: 2`, `data-task-id`, `data-feature-id` | One column per User Task, in order under its parent Feature — the addressable unit |
|
|
706
|
-
| `### Inc 1 — …` in `slices/*.md` (Walking Skeleton) | One `.skeleton-item-card` per `**[User Task Name]**` tag, `grid-row: 3`, `data-increment-id="<nn>-Inc1"` | Replaces that Step's `.release-cell` placeholder only |
|
|
707
|
-
| `### Inc <n> — …` (n > 1) | One `.increment-card` per tag, next free row (4, 5, …) of that Step's column, `data-increment-id="<nn>-Inc<n>"` | Stacked below the skeleton in that Step's own column, in increment order; replaces the placeholder if the column has none yet |
|
|
708
|
-
| `Options:` of an `### Inc` + `## Slicing` | Card description: the option IDs and names that belong to that card's User Task | Map each option ID to its User Task through the `## Slicing` section |
|
|
709
|
-
| `plan.md` checkboxes under `## Slice <nn>` → `### Inc <n>` | `state-*` class + `data-state` + `.steps-badge` on every card with `data-increment-id="<nn>-Inc<n>"` | `done` (all checked) / `building` (some checked) / `planned` (none, or no plan yet) |
|
|
710
|
-
| Open slices + first unchecked `- [ ]` in `plan.md` | `.next-banner` text/link (to `plan.md`; or `hidden`) | Active slice = first `Status: open` slice with an unchecked plan step |
|
|
711
|
-
| `## Backlog` of each slice: each **untaken** bite line (`**F1-a · <title>** (must-have\|nice-to-have\|deferred) — <options> · depends on: … · value: … · check: …`) | One `.bite-card` below the last increment of the Step column of the bite's **first option** (resolve it through `## Slicing`); `bite-nice` / `bite-deferred` class, `data-priority` | A bite is **taken** when its line carries `→ Inc n`: it gets no bite card (its increment card shows it). Order in a column: must-have, nice-to-have, deferred. A Backlog with no bite lines (a slice written before bites) draws nothing. The `### Proposed increments` table is not a bite line and is **not drawn** |
|
|
712
|
-
| Every skeleton, increment and bite card | A `.scope-badge` as the card's last child, bottom-right corner | `S<nn> · Inc <n>` for the skeleton and increment cards (`<nn>` = the slice number, `<n>` = its increment); `S<nn> · Backlog` for a bite. Fixed at draw time; `state-sync` leaves it alone |
|
|
713
|
-
| `Bites:` of an `### Inc` | Second line of that Inc's card description: the bite IDs and titles | Absent on Inc 1 (`—`) |
|
|
714
|
-
| System Tasks (if any, per methodology.md) | `.system-tasks-note` footnote, spanning the Feature's column range | Not a Step column |
|
|
715
|
-
| Feature dependency info (if present) | Optional legend/footnote below the grid | Critical/recommended/optional path if inferred from trio notes |
|
|
716
|
-
|
|
717
|
-
---
|
|
718
|
-
|
|
719
|
-
## Update Algorithms (In-Place Modification)
|
|
720
|
-
|
|
721
|
-
All updates happen **in place**: read `story-map.html`, change only the targeted nodes, write it
|
|
722
|
-
back to the same filename. Never recreate the whole file on the normal path.
|
|
723
|
-
|
|
724
|
-
### A. Slice added (`slice-added`)
|
|
725
|
-
|
|
726
|
-
1. **Read** the existing `story-map.html` and the new slice file.
|
|
727
|
-
2. Take the increment the caller named (`increment: Inc <n>`); if none was named, every
|
|
728
|
-
`### Inc <n>` heading that has no card yet. Read its `**[User Task Name]**` tags and its
|
|
729
|
-
`Options:` IDs. Not every User Task is touched — that is expected.
|
|
730
|
-
3. For each tagged User Task, locate `.step-card[data-task-id="<TASK_ID>"]` and resolve its
|
|
731
|
-
absolute `grid-column` (1-indexed over the whole grid, not per Feature).
|
|
732
|
-
4. `Inc 1` **replaces** the column's `.release-cell[data-task-id="<TASK_ID>"]` with a
|
|
733
|
-
`.skeleton-item-card` (`grid-row: 3`, same `grid-column`). A later `Inc <n>` appends an
|
|
734
|
-
`.increment-card` at the next free row of that column (`grid-row: 4, 5, …`), or replaces the
|
|
735
|
-
placeholder at row 3 if the column has no card yet. `data-increment-id="<nn>-Inc<n>"`; the
|
|
736
|
-
description lists the increment's option IDs and names that belong to this User Task.
|
|
737
|
-
5. **Preserve every other Step's column untouched** — including other Steps within the *same*
|
|
738
|
-
Feature that this slicing pass didn't address.
|
|
739
|
-
6. **Refresh the bites of this slice.** For **every** Step column of the Features this slice
|
|
740
|
-
covers (not just the tagged ones: a `--next` re-prune can add, remove or reword bites anywhere),
|
|
741
|
-
delete that column's `.bite-card`s for this slice and redraw them from `## Backlog`, below the
|
|
742
|
-
column's last increment card. An Inc card added in step 4 that lands on a row a bite used
|
|
743
|
-
pushes the bites down — they are redrawn after it, never before.
|
|
744
|
-
7. **Write** back to the same file, then run the state-sync algorithm.
|
|
745
|
-
|
|
746
|
-
### B. State sync (`state-sync`)
|
|
747
|
-
|
|
748
|
-
1. Parse every `slices/*.md`: the `Status:` line (open | done) and per `### Inc <n>` heading its
|
|
749
|
-
scenarios; parse `plan.md` for the plan checkboxes (`- [ ]` / `- [x]`) under `## Slice <nn>` →
|
|
750
|
-
`### Inc <n>`. Do **not** touch `.bite-card`s: only
|
|
751
|
-
`slice-added` and `rebuild` redraw bites.
|
|
752
|
-
2. For each card with `data-increment-id="<nn>-Inc<n>"` (one per tagged User Task), set its
|
|
753
|
-
`state-*` class and `data-state`:
|
|
754
|
-
- all plan boxes checked (≥1) → `state-done`
|
|
755
|
-
- some checked → `state-building`
|
|
756
|
-
- none checked → `state-planned`
|
|
757
|
-
3. Set the card's `.steps-badge` `data-done` / `data-total`; remove the badge when the increment
|
|
758
|
-
has no section in `plan.md`.
|
|
759
|
-
4. Rebuild `.next-banner`: active slice = the first `Status: open` slice with an unchecked plan
|
|
760
|
-
step; next step = its first `- [ ]` in `plan.md` under `## Slice <nn>`. Update `.next-text` as `"<step> — <nn>-<name>"` and
|
|
761
|
-
`.next-link` as `plan.md`; set `hidden` when there is no next step.
|
|
762
|
-
5. Update `.counters` (increments done/total, steps done/total, slices done/total, bites left)
|
|
763
|
-
and the footer (`Sliced: <features with ≥1 card>/<features>`, `Slices: <n>`, `Bites: <n>`,
|
|
764
|
-
generated date). *Bites left* = the number of `.bite-card`s on the board.
|
|
765
|
-
|
|
766
|
-
### C. Auto-check (always, before writing)
|
|
767
|
-
|
|
768
|
-
- `.step-card` count = User Task ID count in `features.md`.
|
|
769
|
-
- `.feature-header` count = Feature count; each `span N` = its User Task count.
|
|
770
|
-
- `.bite-card` count = untaken bite lines (no `→ Inc n`) in every `## Backlog`; none duplicates a
|
|
771
|
-
taken one; each sits in the column of its first option.
|
|
772
|
-
- `state-done` cards = cards of increments whose plan is fully checked.
|
|
773
|
-
- Counters = the real counts; the footer's numbers agree.
|
|
774
|
-
|
|
775
|
-
If a check fails, correct the HTML from the markdown and re-run the check. If it still fails,
|
|
776
|
-
add a visible `.system-tasks-note` with the mismatch and report it rather than writing wrong
|
|
777
|
-
counters.
|
|
778
|
-
|
|
779
|
-
### D. Migration / repair (`rebuild`)
|
|
780
|
-
|
|
781
|
-
Only when the `v3` marker is missing or an in-place fix is impossible: re-render the whole board
|
|
782
|
-
from `features.md` + every `slices/*.md` using this template, exactly as a fresh `create` plus
|
|
783
|
-
all `slice-added` runs would produce.
|
|
784
|
-
|
|
785
|
-
---
|
|
786
|
-
|
|
787
|
-
## Template Placeholders
|
|
788
|
-
|
|
789
|
-
- `{{TITLE}}`: Page title (e.g., "Real Tourism MVP — Story Mapping")
|
|
790
|
-
- `{{SUBTITLE}}`: Tagline (e.g., "Backbone (Features) → Steps (User Tasks) → Releases (Slices)")
|
|
791
|
-
- `{{BODY}}`: Complete set of `.feature-header`, `.step-card`, and `.release-cell`/`.skeleton-item-card`/`.increment-card` divs described above, in DOM pass order
|
|
792
|
-
- `{{TOTAL_STEP_COUNT}}`: Sum of User Tasks across every Feature — sets the grid's total column count
|
|
793
|
-
- `{{DONE_INCREMENTS}}` / `{{TOTAL_INCREMENTS}}`: Increments (`### Inc` headings) fully checked vs all increments
|
|
794
|
-
- `{{DONE_STEPS}}` / `{{TOTAL_STEPS}}`: Checked plan steps vs all plan steps in `plan.md`
|
|
795
|
-
- `{{DONE_SLICES}}` / `{{TOTAL_SLICES}}`: `Status: done` slice files vs all slice files
|
|
796
|
-
- `{{BITES_LEFT}}`: Untaken bites drawn on the board (the number of `.bite-card`s)
|
|
797
|
-
- `{{NEXT_HIDDEN}}`: ` hidden` when there is no next step, otherwise empty
|
|
798
|
-
- `{{NEXT_TEXT}}` / `{{NEXT_LINK}}`: First unchecked step + its slice, or empty
|
|
799
|
-
- `{{FOOTER_META}}`: Generated footer (e.g., "Real Tourism MVP Story Mapping | Generated 2026-07-16 | Features: 7 | Steps: 40 | Sliced: 3/7 | Slices: 3")
|
|
800
|
-
|
|
801
|
-
---
|
|
802
|
-
|
|
803
|
-
## Example Footer Generation
|
|
804
|
-
|
|
805
|
-
```
|
|
806
|
-
Real Tourism MVP Story Mapping | Generated 2026-07-16 | 7 Features | 40 Steps | Sliced: 3/7 | Slices: 3 | Bites left: 12 | Skills: bokata-feature-map → bokata-slice
|
|
807
|
-
```
|
|
808
|
-
|
|
809
|
-
---
|
|
810
|
-
|
|
811
|
-
## Notes for Orchestrator Implementation
|
|
812
|
-
|
|
813
|
-
- **Initial Creation** (in `bokata-render` op `create`, dispatched by `bokata-feature-map`):
|
|
814
|
-
- Row 1: one `.feature-header` per Feature, spanning its Step count, in journey order
|
|
815
|
-
- Row 2: one `.step-card` per User Task (with `data-task-id`, `data-feature-id`)
|
|
816
|
-
- Row 3: every Step gets a `.release-cell` placeholder ("Not yet sliced") — one per Step, not one per Feature
|
|
817
|
-
- Counters at 0 done; next banner hidden; footer shows `Sliced: 0/N`
|
|
818
|
-
|
|
819
|
-
- **Incremental Updates** (op `slice-added`, dispatched by `bokata-slice`):
|
|
820
|
-
- Only the Step columns tagged by that run's increment are modified
|
|
821
|
-
- Untouched Steps keep their original `.release-cell` placeholder
|
|
822
|
-
- Footer updates as more Features are sliced (a Feature counts as "sliced" once at least one of its Steps has a card)
|
|
823
|
-
- Multiple slicing passes accumulate in the same file without conflict, since each only ever touches its own Steps' columns
|
|
824
|
-
|
|
825
|
-
- Each card's `.scope-badge` is written with the card, so `slice-added` and `rebuild` set it; `state-sync` never edits it.
|
|
826
|
-
- **Bites** are redrawn by `slice-added` (for the slice's Features, all columns) and by `rebuild`; `state-sync` never adds or removes them.
|
|
827
|
-
|
|
828
|
-
- **State sync** (dispatched by `bokata-plan` after writing the plan, by the `code-executor` agent at the end of each increment, by `bokata-slice --done`, and by `bokata-status` as a catch-up when it detects lag):
|
|
829
|
-
- Never adds or removes cards; only state classes, badge attributes, banner, counters and footer
|
|
830
|
-
|
|
831
|
-
---
|
|
832
|
-
|
|
833
|
-
## Dark Mode Support
|
|
834
|
-
|
|
835
|
-
All colors have `@media (prefers-color-scheme: dark)` overrides. No extra work needed — browser's dark-mode toggle automatically applies.
|