You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -93,7 +96,7 @@ export default function KnowledgeExpansionDiamond({
93
96
aria-label="Knowledge Flow Diagram: Traditional software development expands knowledge downward from spec to code. AI coding agents enable extraction upward from code to spec—each layer appears once, with bidirectional flow."
94
97
>
95
98
<svg
96
-
viewBox={`0 0 ${viewBoxWidth}${viewBoxHeight}`}
99
+
viewBox={viewBox}
97
100
className={styles.svg}
98
101
xmlns="http://www.w3.org/2000/svg"
99
102
>
@@ -187,7 +190,7 @@ export default function KnowledgeExpansionDiamond({
187
190
className={styles.layerLabel}
188
191
textAnchor="middle"
189
192
>
190
-
HIGH-LEVEL SPEC
193
+
SPEC
191
194
</text>
192
195
<text
193
196
x={centerX}
@@ -257,14 +260,16 @@ export default function KnowledgeExpansionDiamond({
257
260
</g>
258
261
259
262
{/* Source of Truth label - below CODE box */}
260
-
<text
261
-
x={centerX}
262
-
y={codeY+codeBoxHeight+14}
263
-
className={styles.codeSubtitle}
264
-
textAnchor="middle"
265
-
>
266
-
Source of Truth
267
-
</text>
263
+
{!compact&&(
264
+
<text
265
+
x={centerX}
266
+
y={codeY+codeBoxHeight+14}
267
+
className={styles.codeSubtitle}
268
+
textAnchor="middle"
269
+
>
270
+
Source of Truth
271
+
</text>
272
+
)}
268
273
269
274
{/* ===== LEFT ARROWS (Traditional - Purple, Downward) ===== */}
270
275
<gclassName={styles.traditionalGroup}>
@@ -282,39 +287,43 @@ export default function KnowledgeExpansionDiamond({
282
287
/>
283
288
284
289
{/* Left annotations - aligned to consistent x position */}
285
-
<text
286
-
x={leftAnnotationX}
287
-
y={annotation1Y-5}
288
-
className={styles.annotation}
289
-
textAnchor="end"
290
-
>
291
-
adds: edge cases,
292
-
</text>
293
-
<text
294
-
x={leftAnnotationX}
295
-
y={annotation1Y+9}
296
-
className={styles.annotation}
297
-
textAnchor="end"
298
-
>
299
-
constraints
300
-
</text>
301
-
302
-
<text
303
-
x={leftAnnotationX}
304
-
y={annotation2Y-5}
305
-
className={styles.annotation}
306
-
textAnchor="end"
307
-
>
308
-
adds: implementation
309
-
</text>
310
-
<text
311
-
x={leftAnnotationX}
312
-
y={annotation2Y+9}
313
-
className={styles.annotation}
314
-
textAnchor="end"
315
-
>
316
-
approach
317
-
</text>
290
+
{!compact&&(
291
+
<>
292
+
<text
293
+
x={leftAnnotationX}
294
+
y={annotation1Y-5}
295
+
className={styles.annotation}
296
+
textAnchor="end"
297
+
>
298
+
adds: edge cases,
299
+
</text>
300
+
<text
301
+
x={leftAnnotationX}
302
+
y={annotation1Y+9}
303
+
className={styles.annotation}
304
+
textAnchor="end"
305
+
>
306
+
constraints
307
+
</text>
308
+
309
+
<text
310
+
x={leftAnnotationX}
311
+
y={annotation2Y-5}
312
+
className={styles.annotation}
313
+
textAnchor="end"
314
+
>
315
+
adds: implementation
316
+
</text>
317
+
<text
318
+
x={leftAnnotationX}
319
+
y={annotation2Y+9}
320
+
className={styles.annotation}
321
+
textAnchor="end"
322
+
>
323
+
approach
324
+
</text>
325
+
</>
326
+
)}
318
327
</g>
319
328
320
329
{/* ===== RIGHT ARROWS (AI - Cyan, Upward) ===== */}
@@ -335,64 +344,78 @@ export default function KnowledgeExpansionDiamond({
0 commit comments