@grainulation/barn 1.0.0
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/CHANGELOG.md +13 -0
- package/LICENSE +21 -0
- package/README.md +87 -0
- package/bin/barn.js +98 -0
- package/lib/index.js +93 -0
- package/lib/server.js +368 -0
- package/package.json +52 -0
- package/public/grainulation-tokens.css +321 -0
- package/public/index.html +907 -0
- package/templates/README.md +48 -0
- package/templates/adr.html +223 -0
- package/templates/adr.json +29 -0
- package/templates/brief.html +297 -0
- package/templates/brief.json +26 -0
- package/templates/certificate.html +247 -0
- package/templates/certificate.json +23 -0
- package/templates/changelog.html +239 -0
- package/templates/changelog.json +19 -0
- package/templates/ci-workflow.yml +52 -0
- package/templates/comparison.html +248 -0
- package/templates/comparison.json +21 -0
- package/templates/conflict-map.html +240 -0
- package/templates/conflict-map.json +19 -0
- package/templates/dashboard.html +515 -0
- package/templates/dashboard.json +22 -0
- package/templates/email-digest.html +178 -0
- package/templates/email-digest.json +18 -0
- package/templates/evidence-matrix.html +232 -0
- package/templates/evidence-matrix.json +21 -0
- package/templates/explainer.html +342 -0
- package/templates/explainer.json +23 -0
- package/templates/handoff.html +343 -0
- package/templates/handoff.json +24 -0
- package/templates/one-pager.html +248 -0
- package/templates/one-pager.json +22 -0
- package/templates/postmortem.html +303 -0
- package/templates/postmortem.json +20 -0
- package/templates/rfc.html +199 -0
- package/templates/rfc.json +32 -0
- package/templates/risk-register.html +231 -0
- package/templates/risk-register.json +22 -0
- package/templates/slide-deck.html +239 -0
- package/templates/slide-deck.json +23 -0
- package/templates/template.schema.json +25 -0
- package/templates/wiki-page.html +222 -0
- package/templates/wiki-page.json +23 -0
- package/tools/README.md +31 -0
- package/tools/build-pdf.js +43 -0
- package/tools/detect-sprints.js +292 -0
- package/tools/generate-manifest.js +237 -0
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Comparison — {{TITLE}}</title>
|
|
7
|
+
<style>
|
|
8
|
+
/* barn/templates/comparison.html — side-by-side option comparison
|
|
9
|
+
System font stack, no external dependencies, fully self-contained. */
|
|
10
|
+
|
|
11
|
+
:root {
|
|
12
|
+
--bg: #0a0e1a;
|
|
13
|
+
--bg-card: #1e293b;
|
|
14
|
+
--bg-card-alt: #1a2332;
|
|
15
|
+
--accent: #3b82f6;
|
|
16
|
+
--accent-light: #60a5fa;
|
|
17
|
+
--green: #22c55e;
|
|
18
|
+
--green-dim: rgba(34,197,94,0.15);
|
|
19
|
+
--orange: #f59e0b;
|
|
20
|
+
--orange-dim: rgba(245,158,11,0.15);
|
|
21
|
+
--red: #e11d48;
|
|
22
|
+
--red-dim: rgba(225,29,72,0.15);
|
|
23
|
+
--purple: #a78bfa;
|
|
24
|
+
--text: #f1f5f9;
|
|
25
|
+
--text-muted: #94a3b8;
|
|
26
|
+
--text-dim: #64748b;
|
|
27
|
+
--border: rgba(255,255,255,0.06);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
31
|
+
|
|
32
|
+
body {
|
|
33
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
|
|
34
|
+
background: var(--bg);
|
|
35
|
+
color: var(--text);
|
|
36
|
+
font-size: 10pt;
|
|
37
|
+
line-height: 1.5;
|
|
38
|
+
-webkit-font-smoothing: antialiased;
|
|
39
|
+
padding: 40px;
|
|
40
|
+
min-height: 100vh;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.comparison-header {
|
|
44
|
+
margin-bottom: 32px;
|
|
45
|
+
padding-bottom: 24px;
|
|
46
|
+
border-bottom: 1px solid var(--border);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.comparison-header h1 {
|
|
50
|
+
font-size: 24pt;
|
|
51
|
+
font-weight: 800;
|
|
52
|
+
letter-spacing: -0.02em;
|
|
53
|
+
margin-bottom: 8px;
|
|
54
|
+
background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
|
|
55
|
+
-webkit-background-clip: text;
|
|
56
|
+
-webkit-text-fill-color: transparent;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.comparison-header .meta {
|
|
60
|
+
display: flex;
|
|
61
|
+
gap: 24px;
|
|
62
|
+
color: var(--text-muted);
|
|
63
|
+
font-size: 10pt;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.question {
|
|
67
|
+
font-size: 13pt;
|
|
68
|
+
font-weight: 600;
|
|
69
|
+
color: var(--accent-light);
|
|
70
|
+
margin-bottom: 32px;
|
|
71
|
+
padding: 16px 24px;
|
|
72
|
+
background: rgba(59,130,246,0.08);
|
|
73
|
+
border-left: 3px solid var(--accent);
|
|
74
|
+
border-radius: 0 8px 8px 0;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.columns {
|
|
78
|
+
display: grid;
|
|
79
|
+
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
|
80
|
+
gap: 24px;
|
|
81
|
+
margin-bottom: 32px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.option-column {
|
|
85
|
+
background: var(--bg-card);
|
|
86
|
+
border-radius: 12px;
|
|
87
|
+
padding: 24px;
|
|
88
|
+
border: 1px solid var(--border);
|
|
89
|
+
display: flex;
|
|
90
|
+
flex-direction: column;
|
|
91
|
+
gap: 16px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.option-column.recommended {
|
|
95
|
+
border-color: var(--green);
|
|
96
|
+
box-shadow: 0 0 0 1px var(--green), 0 0 20px rgba(34,197,94,0.08);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.option-name {
|
|
100
|
+
font-size: 14pt;
|
|
101
|
+
font-weight: 700;
|
|
102
|
+
letter-spacing: -0.01em;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.section-label {
|
|
106
|
+
font-size: 8pt;
|
|
107
|
+
font-weight: 700;
|
|
108
|
+
text-transform: uppercase;
|
|
109
|
+
letter-spacing: 0.1em;
|
|
110
|
+
color: var(--text-dim);
|
|
111
|
+
margin-bottom: 8px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.claim-item {
|
|
115
|
+
padding: 10px 12px;
|
|
116
|
+
background: var(--bg-card-alt);
|
|
117
|
+
border-radius: 8px;
|
|
118
|
+
margin-bottom: 8px;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.claim-item .claim-text {
|
|
122
|
+
font-size: 10pt;
|
|
123
|
+
color: var(--text-muted);
|
|
124
|
+
line-height: 1.4;
|
|
125
|
+
margin-bottom: 6px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.claim-item .claim-meta {
|
|
129
|
+
display: flex;
|
|
130
|
+
gap: 8px;
|
|
131
|
+
align-items: center;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.badge {
|
|
135
|
+
display: inline-block;
|
|
136
|
+
padding: 2px 8px;
|
|
137
|
+
border-radius: 4px;
|
|
138
|
+
font-size: 8pt;
|
|
139
|
+
font-weight: 600;
|
|
140
|
+
text-transform: uppercase;
|
|
141
|
+
letter-spacing: 0.04em;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.badge.factual { color: var(--accent-light); background: rgba(59,130,246,0.12); }
|
|
145
|
+
.badge.constraint { color: var(--purple); background: rgba(167,139,250,0.12); }
|
|
146
|
+
.badge.estimate { color: var(--orange); background: var(--orange-dim); }
|
|
147
|
+
.badge.risk { color: var(--red); background: var(--red-dim); }
|
|
148
|
+
.badge.recommendation { color: var(--green); background: var(--green-dim); }
|
|
149
|
+
.badge.feedback { color: #f472b6; background: rgba(244,114,182,0.12); }
|
|
150
|
+
|
|
151
|
+
.badge.production { color: var(--green); background: var(--green-dim); }
|
|
152
|
+
.badge.tested { color: var(--accent-light); background: rgba(59,130,246,0.12); }
|
|
153
|
+
.badge.documented { color: var(--purple); background: rgba(167,139,250,0.12); }
|
|
154
|
+
.badge.web { color: var(--orange); background: var(--orange-dim); }
|
|
155
|
+
.badge.stated { color: var(--text-dim); background: rgba(100,116,139,0.15); }
|
|
156
|
+
|
|
157
|
+
.risk-list, .constraint-list { list-style: none; }
|
|
158
|
+
.risk-list li, .constraint-list li {
|
|
159
|
+
padding: 6px 0; border-bottom: 1px solid var(--border);
|
|
160
|
+
color: var(--text-muted); font-size: 10pt;
|
|
161
|
+
}
|
|
162
|
+
.risk-list li::before { content: "-- "; color: var(--red); font-weight: 700; }
|
|
163
|
+
.constraint-list li::before { content: "| "; color: var(--purple); font-weight: 700; }
|
|
164
|
+
|
|
165
|
+
.verdict-panel {
|
|
166
|
+
background: var(--bg-card);
|
|
167
|
+
border-radius: 12px;
|
|
168
|
+
padding: 24px;
|
|
169
|
+
border: 1px solid var(--border);
|
|
170
|
+
border-top: 3px solid var(--green);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.verdict-panel .verdict-label {
|
|
174
|
+
font-size: 9pt; font-weight: 700; text-transform: uppercase;
|
|
175
|
+
letter-spacing: 0.1em; color: var(--green); margin-bottom: 12px;
|
|
176
|
+
}
|
|
177
|
+
.verdict-panel .verdict-text { font-size: 12pt; font-weight: 600; color: var(--text); line-height: 1.5; }
|
|
178
|
+
.verdict-panel .verdict-rationale { margin-top: 12px; font-size: 10pt; color: var(--text-muted); line-height: 1.5; }
|
|
179
|
+
|
|
180
|
+
.compilation-bar {
|
|
181
|
+
margin-top: 32px;
|
|
182
|
+
padding: 16px 24px;
|
|
183
|
+
background: var(--bg-card);
|
|
184
|
+
border-radius: 8px;
|
|
185
|
+
border: 1px solid var(--border);
|
|
186
|
+
display: flex;
|
|
187
|
+
justify-content: space-between;
|
|
188
|
+
align-items: center;
|
|
189
|
+
font-size: 9pt;
|
|
190
|
+
color: var(--text-dim);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.compilation-bar .certificate {
|
|
194
|
+
font-family: monospace;
|
|
195
|
+
font-size: 8pt;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
@media (max-width: 768px) {
|
|
199
|
+
body { padding: 16px; }
|
|
200
|
+
.comparison-header h1 { font-size: 16pt; }
|
|
201
|
+
.comparison-header .meta { flex-wrap: wrap; gap: 8px 16px; }
|
|
202
|
+
.columns { grid-template-columns: 1fr; }
|
|
203
|
+
.option-column { padding: 16px; }
|
|
204
|
+
.question { font-size: 11pt; padding: 12px 16px; }
|
|
205
|
+
.compilation-bar { flex-direction: column; gap: 8px; text-align: center; }
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
@media print {
|
|
209
|
+
body { background: #fff; color: #1a1a1a; padding: 20px; }
|
|
210
|
+
.comparison-header h1 { -webkit-text-fill-color: #1a1a1a; background: none; }
|
|
211
|
+
.option-column, .verdict-panel, .compilation-bar { border-color: #ddd; background: #fafafa; }
|
|
212
|
+
.badge { border: 1px solid #ccc; }
|
|
213
|
+
.question { background: #f0f4ff; border-left-color: #3b82f6; }
|
|
214
|
+
.claim-item { background: #f5f5f5; }
|
|
215
|
+
}
|
|
216
|
+
</style>
|
|
217
|
+
</head>
|
|
218
|
+
<body>
|
|
219
|
+
|
|
220
|
+
<header class="comparison-header" role="banner">
|
|
221
|
+
<h1>{{TITLE}}</h1>
|
|
222
|
+
<div class="meta">
|
|
223
|
+
<span>Sprint: <strong>{{SPRINT_NAME}}</strong></span>
|
|
224
|
+
<span>Template: Comparison</span>
|
|
225
|
+
</div>
|
|
226
|
+
</header>
|
|
227
|
+
|
|
228
|
+
<div class="question" role="heading" aria-level="2">{{QUESTION}}</div>
|
|
229
|
+
|
|
230
|
+
<section class="columns" aria-label="Option columns">
|
|
231
|
+
{{OPTION_COLUMNS}}
|
|
232
|
+
<!-- Structure per column: .option-column > .option-name + .section-label
|
|
233
|
+
+ .claim-item (.claim-text + .claim-meta > .badge) + .risk-list + .constraint-list -->
|
|
234
|
+
</section>
|
|
235
|
+
|
|
236
|
+
<section class="verdict-panel" aria-label="Verdict">
|
|
237
|
+
<div class="verdict-label">Verdict</div>
|
|
238
|
+
<div class="verdict-text">{{VERDICT}}</div>
|
|
239
|
+
<div class="verdict-rationale">{{VERDICT_RATIONALE}}</div>
|
|
240
|
+
</section>
|
|
241
|
+
|
|
242
|
+
<footer class="compilation-bar" role="contentinfo">
|
|
243
|
+
<div>Compiled with barn</div>
|
|
244
|
+
<div class="certificate">{{CERTIFICATE_HASH}}</div>
|
|
245
|
+
</footer>
|
|
246
|
+
|
|
247
|
+
</body>
|
|
248
|
+
</html>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Comparison",
|
|
3
|
+
"description": "Side-by-side option comparison for evaluating alternatives. Multi-column layout with claims, evidence badges, risks, and a verdict row.",
|
|
4
|
+
"tags": ["comparison", "evaluate", "options", "side-by-side", "decision"],
|
|
5
|
+
"author": "grainulation",
|
|
6
|
+
"version": "1.0.0",
|
|
7
|
+
"exportPresets": [
|
|
8
|
+
{ "name": "pdf-landscape", "format": "pdf" },
|
|
9
|
+
{ "name": "static-site", "format": "html" }
|
|
10
|
+
],
|
|
11
|
+
"seedPacks": [
|
|
12
|
+
"architecture"
|
|
13
|
+
],
|
|
14
|
+
"scaffoldConfig": {
|
|
15
|
+
"defaultPlaceholders": {
|
|
16
|
+
"TITLE": "Option Comparison",
|
|
17
|
+
"QUESTION": "Which approach should we take?"
|
|
18
|
+
},
|
|
19
|
+
"postInit": ["load-claims", "group-by-topic"]
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Conflict Map — {{TITLE}}</title>
|
|
7
|
+
<style>
|
|
8
|
+
/* barn/templates/conflict-map.html — visual conflict resolution map
|
|
9
|
+
System font stack, no external dependencies, fully self-contained. */
|
|
10
|
+
|
|
11
|
+
:root {
|
|
12
|
+
--bg: #0a0e1a;
|
|
13
|
+
--bg-card: #1e293b;
|
|
14
|
+
--bg-card-alt: #1a2332;
|
|
15
|
+
--accent: #3b82f6;
|
|
16
|
+
--accent-light: #60a5fa;
|
|
17
|
+
--green: #22c55e;
|
|
18
|
+
--green-dim: rgba(34,197,94,0.15);
|
|
19
|
+
--orange: #f59e0b;
|
|
20
|
+
--orange-dim: rgba(245,158,11,0.15);
|
|
21
|
+
--red: #e11d48;
|
|
22
|
+
--red-dim: rgba(225,29,72,0.15);
|
|
23
|
+
--purple: #a78bfa;
|
|
24
|
+
--text: #f1f5f9;
|
|
25
|
+
--text-muted: #94a3b8;
|
|
26
|
+
--text-dim: #64748b;
|
|
27
|
+
--border: rgba(255,255,255,0.06);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
31
|
+
|
|
32
|
+
body {
|
|
33
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
|
|
34
|
+
background: var(--bg);
|
|
35
|
+
color: var(--text);
|
|
36
|
+
font-size: 10pt;
|
|
37
|
+
line-height: 1.5;
|
|
38
|
+
-webkit-font-smoothing: antialiased;
|
|
39
|
+
padding: 40px;
|
|
40
|
+
min-height: 100vh;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.map-header {
|
|
44
|
+
margin-bottom: 32px;
|
|
45
|
+
padding-bottom: 24px;
|
|
46
|
+
border-bottom: 1px solid var(--border);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.map-header h1 {
|
|
50
|
+
font-size: 24pt;
|
|
51
|
+
font-weight: 800;
|
|
52
|
+
letter-spacing: -0.02em;
|
|
53
|
+
margin-bottom: 8px;
|
|
54
|
+
background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
|
|
55
|
+
-webkit-background-clip: text;
|
|
56
|
+
-webkit-text-fill-color: transparent;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.map-header .meta {
|
|
60
|
+
display: flex;
|
|
61
|
+
gap: 24px;
|
|
62
|
+
color: var(--text-muted);
|
|
63
|
+
font-size: 10pt;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.summary-bar {
|
|
67
|
+
display: flex;
|
|
68
|
+
gap: 24px;
|
|
69
|
+
margin-bottom: 32px;
|
|
70
|
+
padding: 16px 24px;
|
|
71
|
+
background: var(--bg-card);
|
|
72
|
+
border-radius: 12px;
|
|
73
|
+
border: 1px solid var(--border);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.summary-stat { text-align: center; }
|
|
77
|
+
.summary-stat .stat-value { font-size: 20pt; font-weight: 800; display: block; }
|
|
78
|
+
.summary-stat .stat-label {
|
|
79
|
+
font-size: 8pt; font-weight: 700; text-transform: uppercase;
|
|
80
|
+
letter-spacing: 0.1em; color: var(--text-dim);
|
|
81
|
+
}
|
|
82
|
+
.stat-value.total { color: var(--accent-light); }
|
|
83
|
+
.stat-value.unresolved { color: var(--red); }
|
|
84
|
+
.stat-value.resolved { color: var(--green); }
|
|
85
|
+
.stat-value.pending { color: var(--orange); }
|
|
86
|
+
|
|
87
|
+
.conflict-pairs {
|
|
88
|
+
display: flex;
|
|
89
|
+
flex-direction: column;
|
|
90
|
+
gap: 24px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.conflict-pair {
|
|
94
|
+
display: grid;
|
|
95
|
+
grid-template-columns: 1fr auto 1fr;
|
|
96
|
+
gap: 0;
|
|
97
|
+
align-items: stretch;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.claim-card {
|
|
101
|
+
background: var(--bg-card);
|
|
102
|
+
border-radius: 12px;
|
|
103
|
+
padding: 20px;
|
|
104
|
+
border: 1px solid var(--border);
|
|
105
|
+
display: flex;
|
|
106
|
+
flex-direction: column;
|
|
107
|
+
gap: 10px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.claim-card .claim-id { font-family: monospace; font-size: 9pt; color: var(--accent-light); font-weight: 700; }
|
|
111
|
+
.claim-card .claim-content { font-size: 10pt; color: var(--text-muted); line-height: 1.5; flex: 1; }
|
|
112
|
+
.claim-card .claim-badges { display: flex; gap: 8px; flex-wrap: wrap; }
|
|
113
|
+
|
|
114
|
+
.badge {
|
|
115
|
+
display: inline-block;
|
|
116
|
+
padding: 2px 8px;
|
|
117
|
+
border-radius: 4px;
|
|
118
|
+
font-size: 8pt;
|
|
119
|
+
font-weight: 600;
|
|
120
|
+
text-transform: uppercase;
|
|
121
|
+
letter-spacing: 0.04em;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.badge.factual { color: var(--accent-light); background: rgba(59,130,246,0.12); }
|
|
125
|
+
.badge.constraint { color: var(--purple); background: rgba(167,139,250,0.12); }
|
|
126
|
+
.badge.estimate { color: var(--orange); background: var(--orange-dim); }
|
|
127
|
+
.badge.risk { color: var(--red); background: var(--red-dim); }
|
|
128
|
+
.badge.recommendation { color: var(--green); background: var(--green-dim); }
|
|
129
|
+
.badge.feedback { color: #f472b6; background: rgba(244,114,182,0.12); }
|
|
130
|
+
|
|
131
|
+
.badge.production { color: var(--green); background: var(--green-dim); }
|
|
132
|
+
.badge.tested { color: var(--accent-light); background: rgba(59,130,246,0.12); }
|
|
133
|
+
.badge.documented { color: var(--purple); background: rgba(167,139,250,0.12); }
|
|
134
|
+
.badge.web { color: var(--orange); background: var(--orange-dim); }
|
|
135
|
+
.badge.stated { color: var(--text-dim); background: rgba(100,116,139,0.15); }
|
|
136
|
+
|
|
137
|
+
.connector {
|
|
138
|
+
display: flex; flex-direction: column; align-items: center;
|
|
139
|
+
justify-content: center; padding: 0 16px; min-width: 80px;
|
|
140
|
+
}
|
|
141
|
+
.connector-line { width: 2px; flex: 1; max-height: 20px; background: var(--text-dim); }
|
|
142
|
+
.connector-icon {
|
|
143
|
+
width: 40px; height: 40px; border-radius: 50%; display: flex;
|
|
144
|
+
align-items: center; justify-content: center;
|
|
145
|
+
font-size: 10pt; font-weight: 800; flex-shrink: 0;
|
|
146
|
+
}
|
|
147
|
+
.connector-icon.unresolved { background: var(--red-dim); color: var(--red); border: 2px solid var(--red); }
|
|
148
|
+
.connector-icon.resolved { background: var(--green-dim); color: var(--green); border: 2px solid var(--green); }
|
|
149
|
+
.connector-icon.pending { background: var(--orange-dim); color: var(--orange); border: 2px solid var(--orange); }
|
|
150
|
+
.status-label { font-size: 7pt; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }
|
|
151
|
+
.status-label.unresolved { color: var(--red); }
|
|
152
|
+
.status-label.resolved { color: var(--green); }
|
|
153
|
+
.status-label.pending { color: var(--orange); }
|
|
154
|
+
|
|
155
|
+
.conflict-summary {
|
|
156
|
+
margin-top: 32px; padding: 20px 24px; background: var(--bg-card);
|
|
157
|
+
border-radius: 12px; border: 1px solid var(--border);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.conflict-summary .summary-title {
|
|
161
|
+
font-size: 9pt; font-weight: 700; text-transform: uppercase;
|
|
162
|
+
letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 12px;
|
|
163
|
+
}
|
|
164
|
+
.conflict-summary .summary-text { font-size: 10pt; color: var(--text-muted); line-height: 1.6; }
|
|
165
|
+
|
|
166
|
+
.compilation-bar {
|
|
167
|
+
margin-top: 32px; padding: 16px 24px; background: var(--bg-card);
|
|
168
|
+
border-radius: 8px; border: 1px solid var(--border); display: flex;
|
|
169
|
+
justify-content: space-between; align-items: center;
|
|
170
|
+
font-size: 9pt; color: var(--text-dim);
|
|
171
|
+
}
|
|
172
|
+
.compilation-bar .certificate { font-family: monospace; font-size: 8pt; }
|
|
173
|
+
|
|
174
|
+
@media (max-width: 768px) {
|
|
175
|
+
body { padding: 16px; }
|
|
176
|
+
.map-header h1 { font-size: 16pt; }
|
|
177
|
+
.map-header .meta { flex-wrap: wrap; gap: 8px 16px; }
|
|
178
|
+
.summary-bar { flex-wrap: wrap; gap: 16px; }
|
|
179
|
+
.conflict-pair {
|
|
180
|
+
grid-template-columns: 1fr;
|
|
181
|
+
gap: 0;
|
|
182
|
+
}
|
|
183
|
+
.connector {
|
|
184
|
+
flex-direction: row;
|
|
185
|
+
padding: 12px 0;
|
|
186
|
+
min-width: unset;
|
|
187
|
+
}
|
|
188
|
+
.connector-line {
|
|
189
|
+
height: 2px;
|
|
190
|
+
width: 100%;
|
|
191
|
+
max-height: unset;
|
|
192
|
+
max-width: 20px;
|
|
193
|
+
flex: 1;
|
|
194
|
+
}
|
|
195
|
+
.status-label { margin-top: 0; margin-left: 8px; }
|
|
196
|
+
.claim-card { padding: 16px; }
|
|
197
|
+
.compilation-bar { flex-direction: column; gap: 8px; text-align: center; }
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
@media print {
|
|
201
|
+
body { background: #fff; color: #1a1a1a; padding: 20px; }
|
|
202
|
+
.map-header h1 { -webkit-text-fill-color: #1a1a1a; background: none; }
|
|
203
|
+
.claim-card, .summary-bar, .conflict-summary, .compilation-bar {
|
|
204
|
+
border-color: #ddd; background: #fafafa;
|
|
205
|
+
}
|
|
206
|
+
.badge { border: 1px solid #ccc; }
|
|
207
|
+
.connector-icon { border-width: 2px; }
|
|
208
|
+
}
|
|
209
|
+
</style>
|
|
210
|
+
</head>
|
|
211
|
+
<body>
|
|
212
|
+
|
|
213
|
+
<header class="map-header" role="banner">
|
|
214
|
+
<h1>{{TITLE}}</h1>
|
|
215
|
+
<div class="meta">
|
|
216
|
+
<span>Sprint: <strong>{{SPRINT_NAME}}</strong></span>
|
|
217
|
+
<span>Conflicts: <strong>{{CONFLICT_COUNT}}</strong></span>
|
|
218
|
+
<span>Template: Conflict Map</span>
|
|
219
|
+
</div>
|
|
220
|
+
</header>
|
|
221
|
+
|
|
222
|
+
<div class="summary-bar" role="region" aria-label="Conflict statistics">
|
|
223
|
+
{{CONFLICT_SUMMARY}}
|
|
224
|
+
<!-- Structure: .summary-stat > .stat-value.{total|resolved|unresolved|pending} + .stat-label -->
|
|
225
|
+
</div>
|
|
226
|
+
|
|
227
|
+
<section class="conflict-pairs" aria-label="Conflict pairs">
|
|
228
|
+
{{CONFLICT_PAIRS}}
|
|
229
|
+
<!-- Structure per pair: .conflict-pair > .claim-card + .connector + .claim-card
|
|
230
|
+
Connector: .connector-line + .connector-icon.{unresolved|resolved|pending} + .status-label + .connector-line
|
|
231
|
+
Card: .claim-id + .claim-content + .claim-badges > .badge -->
|
|
232
|
+
</section>
|
|
233
|
+
|
|
234
|
+
<footer class="compilation-bar" role="contentinfo">
|
|
235
|
+
<div>Compiled with barn</div>
|
|
236
|
+
<div class="certificate">{{CERTIFICATE_HASH}}</div>
|
|
237
|
+
</footer>
|
|
238
|
+
|
|
239
|
+
</body>
|
|
240
|
+
</html>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Conflict Map",
|
|
3
|
+
"description": "Visual layout of conflicting claims for dispute resolution. Card pairs with connectors show opposing positions and resolution status.",
|
|
4
|
+
"tags": ["conflict", "resolve", "disputes", "claims", "visual"],
|
|
5
|
+
"author": "grainulation",
|
|
6
|
+
"version": "1.0.0",
|
|
7
|
+
"exportPresets": [
|
|
8
|
+
{ "name": "pdf", "format": "pdf" },
|
|
9
|
+
{ "name": "static-site", "format": "html" }
|
|
10
|
+
],
|
|
11
|
+
"seedPacks": [],
|
|
12
|
+
"scaffoldConfig": {
|
|
13
|
+
"defaultPlaceholders": {
|
|
14
|
+
"TITLE": "Conflict Map",
|
|
15
|
+
"SPRINT_NAME": "Untitled Sprint"
|
|
16
|
+
},
|
|
17
|
+
"postInit": ["load-claims", "detect-conflicts"]
|
|
18
|
+
}
|
|
19
|
+
}
|