Skip to content

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

fix: keep sequence labels above timeline geometry

tt-a1id521a41e8a37
diff --git a/archify.zip b/archify.zip
index 65b29f36..121269f4 100644
Binary files a/archify.zip and b/archify.zip differ
diff --git a/archify/examples/sequence-cache-miss-request.html b/archify/examples/sequence-cache-miss-request.html
index 7c787c7e..9dbd25b8 100644
--- a/archify/examples/sequence-cache-miss-request.html
+++ b/archify/examples/sequence-cache-miss-request.html
@@ -4571,13 +4571,10 @@
<!-- Time Segments -->
<rect data-graph-role="structural-frame" data-composition-frame-kind="segment" data-composition-frame-id="0" x="48" y="150" width="724" height="145" rx="10" class="c-lane" stroke-width="1"/>
- <text x="62" y="168" class="t-dim" font-size="9" font-weight="600">Request</text>
<rect data-graph-role="structural-frame" data-composition-frame-kind="segment" data-composition-frame-id="1" x="48" y="315" width="724" height="190" rx="10" class="c-lane" stroke-width="1"/>
- <text x="62" y="333" class="t-dim" font-size="9" font-weight="600">Fallback</text>
<rect data-graph-role="structural-frame" data-composition-frame-kind="segment" data-composition-frame-id="2" x="48" y="525" width="724" height="140" rx="10" class="c-lane" stroke-width="1"/>
- <text x="62" y="543" class="t-dim" font-size="9" font-weight="600">Response + trace</text>
<!-- Lifelines -->
<path d="M 62 142 L 62 695" class="a-default" stroke-width="0.8" stroke-dasharray="3,7"/>
@@ -4588,6 +4585,20 @@
<path d="M 602 142 L 602 695" class="a-default" stroke-width="0.8" stroke-dasharray="3,7"/>
<path d="M 710 142 L 710 695" class="a-default" stroke-width="0.8" stroke-dasharray="3,7"/>
+ <!-- Activations -->
+ <rect x="165" y="220" width="10" height="448" rx="3" class="c-mask"/>
+ <rect x="165" y="220" width="10" height="448" rx="3" class="c-frontend" stroke-width="1"/>
+ <rect x="273" y="228" width="10" height="404" rx="3" class="c-mask"/>
+ <rect x="273" y="228" width="10" height="404" rx="3" class="c-backend" stroke-width="1"/>
+ <rect x="381" y="265" width="10" height="45" rx="3" class="c-mask"/>
+ <rect x="381" y="265" width="10" height="45" rx="3" class="c-security" stroke-width="1"/>
+ <rect x="489" y="349" width="10" height="49" rx="3" class="c-mask"/>
+ <rect x="489" y="349" width="10" height="49" rx="3" class="c-database" stroke-width="1"/>
+ <rect x="597" y="438" width="10" height="58" rx="3" class="c-mask"/>
+ <rect x="597" y="438" width="10" height="58" rx="3" class="c-database" stroke-width="1"/>
+ <rect x="705" y="575" width="10" height="55" rx="3" class="c-mask"/>
+ <rect x="705" y="575" width="10" height="55" rx="3" class="c-messagebus" stroke-width="1"/>
+
<!-- Messages -->
<g data-edge-from="user" data-edge-to="web" data-edge-label="open page" data-edge-key="0" data-edge-id="open-page">
<path data-composition-edge-from="user" data-composition-edge-to="web" data-composition-edge-id="open-page" data-composition-points="69,185;163,185" d="M 69 185 L 163 185" class="a-default" data-animate="edge" style="--step:0" stroke-width="1.4" marker-end="url(#arrowhead)"/>
@@ -4685,19 +4696,19 @@
</g>
</g>
- <!-- Activations -->
- <rect x="165" y="220" width="10" height="448" rx="3" class="c-mask"/>
- <rect x="165" y="220" width="10" height="448" rx="3" class="c-frontend" stroke-width="1"/>
- <rect x="273" y="228" width="10" height="404" rx="3" class="c-mask"/>
- <rect x="273" y="228" width="10" height="404" rx="3" class="c-backend" stroke-width="1"/>
- <rect x="381" y="265" width="10" height="45" rx="3" class="c-mask"/>
- <rect x="381" y="265" width="10" height="45" rx="3" class="c-security" stroke-width="1"/>
- <rect x="489" y="349" width="10" height="49" rx="3" class="c-mask"/>
- <rect x="489" y="349" width="10" height="49" rx="3" class="c-database" stroke-width="1"/>
- <rect x="597" y="438" width="10" height="58" rx="3" class="c-mask"/>
- <rect x="597" y="438" width="10" height="58" rx="3" class="c-database" stroke-width="1"/>
- <rect x="705" y="575" width="10" height="55" rx="3" class="c-mask"/>
- <rect x="705" y="575" width="10" height="55" rx="3" class="c-messagebus" stroke-width="1"/>
+ <!-- Segment Labels -->
+ <g data-graph-role="segment-label" data-segment-id="0">
+ <rect x="56" y="128" width="50.4" height="18" rx="3" class="c-mask"/>
+ <text x="62" y="141" class="t-dim" font-size="9" font-weight="600">Request</text>
+ </g>
+ <g data-graph-role="segment-label" data-segment-id="1">
+ <rect x="56" y="293" width="55.6" height="18" rx="3" class="c-mask"/>
+ <text x="62" y="306" class="t-dim" font-size="9" font-weight="600">Fallback</text>
+ </g>
+ <g data-graph-role="segment-label" data-segment-id="2">
+ <rect x="56" y="503" width="97.2" height="18" rx="3" class="c-mask"/>
+ <text x="62" y="516" class="t-dim" font-size="9" font-weight="600">Response + trace</text>
+ </g>
<!-- Participants -->
<g id="node-user" data-node-id="user" data-node-label="User" tabindex="0" role="button" aria-label="Focus User, browser session, Sequence participant" aria-pressed="false" data-node-kind="external" data-node-sublabel="browser session" data-node-context="Sequence participant">
diff --git a/archify/renderers/sequence/render-sequence.mjs b/archify/renderers/sequence/render-sequence.mjs
index 48a7875c..d398fce8 100644
--- a/archify/renderers/sequence/render-sequence.mjs
+++ b/archify/renderers/sequence/render-sequence.mjs
@@ -258,8 +258,15 @@ function renderLifeline(participant) {
}
function renderSegment(segment, index) {
- return ` <rect data-graph-role="structural-frame" data-composition-frame-kind="segment" data-composition-frame-id="${index}" x="48" y="${segment.from}" width="${viewBox[0] - 96}" height="${segment.to - segment.from}" rx="10" class="c-lane" stroke-width="1"/>
- <text x="62" y="${segment.from + 18}" class="t-dim" font-size="9" font-weight="600">${esc(segment.label)}</text>`;
+ return ` <rect data-graph-role="structural-frame" data-composition-frame-kind="segment" data-composition-frame-id="${index}" x="48" y="${segment.from}" width="${viewBox[0] - 96}" height="${segment.to - segment.from}" rx="10" class="c-lane" stroke-width="1"/>`;
+}
+
+function renderSegmentLabel(segment, index) {
+ const labelW = Math.max(42, textUnits(segment.label) * 5.2 + 14);
+ return ` <g data-graph-role="segment-label" data-segment-id="${index}">
+ <rect x="56" y="${segment.from - 22}" width="${labelW}" height="18" rx="3" class="c-mask"/>
+ <text x="62" y="${segment.from - 9}" class="t-dim" font-size="9" font-weight="600">${esc(segment.label)}</text>
+ </g>`;
}
function renderActivation(activation) {
@@ -334,11 +341,14 @@ ${asArray(sequence.segments).map(renderSegment).join('\n\n')}
<!-- Lifelines -->
${participantList.map(renderLifeline).join('\n')}
+ <!-- Activations -->
+${asArray(sequence.activations).map(renderActivation).join('\n')}
+
<!-- Messages -->
${asArray(sequence.messages).map(renderMessage).join('\n\n')}
- <!-- Activations -->
-${asArray(sequence.activations).map(renderActivation).join('\n')}
+ <!-- Segment Labels -->
+${asArray(sequence.segments).map(renderSegmentLabel).join('\n')}
<!-- Participants -->
${participantList.map(renderParticipant).join('\n\n')}
diff --git a/archify/test/layout-rules.test.mjs b/archify/test/layout-rules.test.mjs
index 81a538c2..1cd90c6e 100644
--- a/archify/test/layout-rules.test.mjs
+++ b/archify/test/layout-rules.test.mjs
@@ -520,4 +520,20 @@ test('sequence: lifelines and activation bars remain intentional pass-through ge
assert.doesNotMatch(stderr, /Clean Flow Gate/);
});
+test('sequence: segment titles render as foreground badges above their borders', () => {
+ const d = load('sequence');
+ const { code, stderr, outPath } = render('sequence', d);
+ assert.equal(code, 0, stderr);
+ const html = fs.readFileSync(outPath, 'utf8');
+ const firstSegment = d.segments[0];
+ const segmentLabelsAt = html.indexOf('<!-- Segment Labels -->');
+ const activationsAt = html.indexOf('<!-- Activations -->');
+ const messagesAt = html.indexOf('<!-- Messages -->');
+
+ assert.ok(segmentLabelsAt > activationsAt, 'segment labels should stay above lifelines, messages, and activations');
+ assert.ok(messagesAt > activationsAt, 'message arrows and labels should stay above activation bars');
+ assert.match(html, new RegExp(`data-graph-role="segment-label"[^>]*data-segment-id="0"`));
+ assert.match(html, new RegExp(`<text x="62" y="${firstSegment.from - 9}"[^>]*>${firstSegment.label}</text>`));
+});
+
process.on('exit', () => fs.rmSync(tmp, { recursive: true, force: true }));
diff --git a/docs/assets/archify-live-proof.gif b/docs/assets/archify-live-proof.gif
index 07eb62bb..6272a085 100644
Binary files a/docs/assets/archify-live-proof.gif and b/docs/assets/archify-live-proof.gif differ
diff --git a/docs/assets/archify-live-proof.json b/docs/assets/archify-live-proof.json
index 15e534fc..99899978 100644
--- a/docs/assets/archify-live-proof.json
+++ b/docs/assets/archify-live-proof.json
@@ -7,8 +7,8 @@
"fps": 10,
"frameCount": 54,
"durationSeconds": 5.4,
- "bytes": 1554440,
- "sha256": "3284db7224c163ac28dd65df193d9360836146136fa64038d10e93d4b367bce2",
+ "bytes": 1727313,
+ "sha256": "c4acb97a322cb70aab30106936738998c20e99917805102dae775f73eb9bcbcf",
"scenes": [
{
"id": "signal-flow",
@@ -31,7 +31,7 @@
{
"id": "classic",
"artifact": "docs/gallery/artifacts/cache-miss.sequence.html",
- "artifactSha256": "371e790fa410c221903e97097ba07cd559093170d95987662040870e4ab45a79",
+ "artifactSha256": "1ca674c7ebd8df68f358adde54549cea4cb305f5c9c27ff090cff4715961b3c5",
"view": "cache-fallback",
"eyebrow": "SEQUENCE · CLASSIC",
"title": "Cache Miss Request",
diff --git a/docs/gallery.html b/docs/gallery.html
index 6eee3469..63d0ea6a 100644
--- a/docs/gallery.html
+++ b/docs/gallery.html
@@ -384,7 +384,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">7N · 12E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="371e790fa410c221903e97097ba07cd559093170d95987662040870e4ab45a79">371e790fa410</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="1ca674c7ebd8df68f358adde54549cea4cb305f5c9c27ff090cff4715961b3c5">1ca674c7ebd8</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/cache-miss.sequence.html?present=1&amp;play=1#view=cache-fallback" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>
@@ -496,7 +496,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">7N · 14E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="018c81d577ff248e46ad038ea2f09fbb3504ea4fd10fc51e18ba5dc1f6868ab7">018c81d577ff</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="de84aaab5faa9c7ebfd9131d954d082aec4f86339191b5e4c06b709ea434440f">de84aaab5faa</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/async-job-roundtrip.sequence.html?present=1&amp;play=1#view=work-and-retry" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>
@@ -882,8 +882,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 7,
"edgeCount": 12,
- "artifactBytes": 612972,
- "artifactSha256": "371e790fa410c221903e97097ba07cd559093170d95987662040870e4ab45a79",
+ "artifactBytes": 613482,
+ "artifactSha256": "1ca674c7ebd8df68f358adde54549cea4cb305f5c9c27ff090cff4715961b3c5",
"sourceBytes": 4442,
"sourceSha256": "30098d81006a18813bab447da698edf74604a1463770f01dc056b0af8cb314ef",
"checks": [
@@ -1274,8 +1274,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 7,
"edgeCount": 14,
- "artifactBytes": 613757,
- "artifactSha256": "018c81d577ff248e46ad038ea2f09fbb3504ea4fd10fc51e18ba5dc1f6868ab7",
+ "artifactBytes": 614279,
+ "artifactSha256": "de84aaab5faa9c7ebfd9131d954d082aec4f86339191b5e4c06b709ea434440f",
"sourceBytes": 4483,
"sourceSha256": "1b53d7c4ce7b2d8f6f40b8f33a394abe1d37fc991272b534c1ccd0255920ab52",
"checks": [
diff --git a/docs/gallery/artifacts/async-job-roundtrip.sequence.html b/docs/gallery/artifacts/async-job-roundtrip.sequence.html
index 078e9e60..e7dd8029 100644
--- a/docs/gallery/artifacts/async-job-roundtrip.sequence.html
+++ b/docs/gallery/artifacts/async-job-roundtrip.sequence.html
@@ -4571,13 +4571,10 @@
<!-- Time Segments -->
<rect data-graph-role="structural-frame" data-composition-frame-kind="segment" data-composition-frame-id="0" x="48" y="150" width="724" height="138" rx="10" class="c-lane" stroke-width="1"/>
- <text x="62" y="168" class="t-dim" font-size="9" font-weight="600">Accept</text>
<rect data-graph-role="structural-frame" data-composition-frame-kind="segment" data-composition-frame-id="1" x="48" y="306" width="724" height="232" rx="10" class="c-lane" stroke-width="1"/>
- <text x="62" y="324" class="t-dim" font-size="9" font-weight="600">Background work</text>
<rect data-graph-role="structural-frame" data-composition-frame-kind="segment" data-composition-frame-id="2" x="48" y="554" width="724" height="246" rx="10" class="c-lane" stroke-width="1"/>
- <text x="62" y="572" class="t-dim" font-size="9" font-weight="600">Notify + reconcile</text>
<!-- Lifelines -->
<path d="M 62 142 L 62 855" class="a-default" stroke-width="0.8" stroke-dasharray="3,7"/>
@@ -4588,6 +4585,22 @@
<path d="M 602 142 L 602 855" class="a-default" stroke-width="0.8" stroke-dasharray="3,7"/>
<path d="M 710 142 L 710 855" class="a-default" stroke-width="0.8" stroke-dasharray="3,7"/>
+ <!-- Activations -->
+ <rect x="165" y="174" width="10" height="98" rx="3" class="c-mask"/>
+ <rect x="165" y="174" width="10" height="98" rx="3" class="c-backend" stroke-width="1"/>
+ <rect x="273" y="216" width="10" height="118" rx="3" class="c-mask"/>
+ <rect x="273" y="216" width="10" height="118" rx="3" class="c-messagebus" stroke-width="1"/>
+ <rect x="381" y="320" width="10" height="254" rx="3" class="c-mask"/>
+ <rect x="381" y="320" width="10" height="254" rx="3" class="c-backend" stroke-width="1"/>
+ <rect x="489" y="362" width="10" height="54" rx="3" class="c-mask"/>
+ <rect x="489" y="362" width="10" height="54" rx="3" class="c-cloud" stroke-width="1"/>
+ <rect x="597" y="488" width="10" height="254" rx="3" class="c-mask"/>
+ <rect x="597" y="488" width="10" height="254" rx="3" class="c-database" stroke-width="1"/>
+ <rect x="705" y="560" width="10" height="56" rx="3" class="c-mask"/>
+ <rect x="705" y="560" width="10" height="56" rx="3" class="c-messagebus" stroke-width="1"/>
+ <rect x="165" y="644" width="10" height="140" rx="3" class="c-mask"/>
+ <rect x="165" y="644" width="10" height="140" rx="3" class="c-backend" stroke-width="1"/>
+
<!-- Messages -->
<g data-edge-from="client" data-edge-to="api" data-edge-label="POST /jobs" data-edge-key="0">
<path data-composition-edge-from="client" data-composition-edge-to="api" data-composition-points="69,180;163,180" d="M 69 180 L 163 180" class="a-emphasis" data-animate="edge" style="--step:0" stroke-width="1.8" marker-end="url(#arrowhead-emphasis)"/>
@@ -4701,21 +4714,19 @@
</g>
</g>
- <!-- Activations -->
- <rect x="165" y="174" width="10" height="98" rx="3" class="c-mask"/>
- <rect x="165" y="174" width="10" height="98" rx="3" class="c-backend" stroke-width="1"/>
- <rect x="273" y="216" width="10" height="118" rx="3" class="c-mask"/>
- <rect x="273" y="216" width="10" height="118" rx="3" class="c-messagebus" stroke-width="1"/>
- <rect x="381" y="320" width="10" height="254" rx="3" class="c-mask"/>
- <rect x="381" y="320" width="10" height="254" rx="3" class="c-backend" stroke-width="1"/>
- <rect x="489" y="362" width="10" height="54" rx="3" class="c-mask"/>
- <rect x="489" y="362" width="10" height="54" rx="3" class="c-cloud" stroke-width="1"/>
- <rect x="597" y="488" width="10" height="254" rx="3" class="c-mask"/>
- <rect x="597" y="488" width="10" height="254" rx="3" class="c-database" stroke-width="1"/>
- <rect x="705" y="560" width="10" height="56" rx="3" class="c-mask"/>
- <rect x="705" y="560" width="10" height="56" rx="3" class="c-messagebus" stroke-width="1"/>
- <rect x="165" y="644" width="10" height="140" rx="3" class="c-mask"/>
- <rect x="165" y="644" width="10" height="140" rx="3" class="c-backend" stroke-width="1"/>
+ <!-- Segment Labels -->
+ <g data-graph-role="segment-label" data-segment-id="0">
+ <rect x="56" y="128" width="45.2" height="18" rx="3" class="c-mask"/>
+ <text x="62" y="141" class="t-dim" font-size="9" font-weight="600">Accept</text>
+ </g>
+ <g data-graph-role="segment-label" data-segment-id="1">
+ <rect x="56" y="284" width="92" height="18" rx="3" class="c-mask"/>
+ <text x="62" y="297" class="t-dim" font-size="9" font-weight="600">Background work</text>
+ </g>
+ <g data-graph-role="segment-label" data-segment-id="2">
+ <rect x="56" y="532" width="107.60000000000001" height="18" rx="3" class="c-mask"/>
+ <text x="62" y="545" class="t-dim" font-size="9" font-weight="600">Notify + reconcile</text>
+ </g>
<!-- Participants -->
<g id="node-client" data-node-id="client" data-node-label="Client" tabindex="0" role="button" aria-label="Focus Client, mobile app, Sequence participant" aria-pressed="false" data-node-kind="external" data-node-sublabel="mobile app" data-node-context="Sequence participant">
diff --git a/docs/gallery/artifacts/cache-miss.sequence.html b/docs/gallery/artifacts/cache-miss.sequence.html
index 7c787c7e..9dbd25b8 100644
--- a/docs/gallery/artifacts/cache-miss.sequence.html
+++ b/docs/gallery/artifacts/cache-miss.sequence.html
@@ -4571,13 +4571,10 @@
<!-- Time Segments -->
<rect data-graph-role="structural-frame" data-composition-frame-kind="segment" data-composition-frame-id="0" x="48" y="150" width="724" height="145" rx="10" class="c-lane" stroke-width="1"/>
- <text x="62" y="168" class="t-dim" font-size="9" font-weight="600">Request</text>
<rect data-graph-role="structural-frame" data-composition-frame-kind="segment" data-composition-frame-id="1" x="48" y="315" width="724" height="190" rx="10" class="c-lane" stroke-width="1"/>
- <text x="62" y="333" class="t-dim" font-size="9" font-weight="600">Fallback</text>
<rect data-graph-role="structural-frame" data-composition-frame-kind="segment" data-composition-frame-id="2" x="48" y="525" width="724" height="140" rx="10" class="c-lane" stroke-width="1"/>
- <text x="62" y="543" class="t-dim" font-size="9" font-weight="600">Response + trace</text>
<!-- Lifelines -->
<path d="M 62 142 L 62 695" class="a-default" stroke-width="0.8" stroke-dasharray="3,7"/>
@@ -4588,6 +4585,20 @@
<path d="M 602 142 L 602 695" class="a-default" stroke-width="0.8" stroke-dasharray="3,7"/>
<path d="M 710 142 L 710 695" class="a-default" stroke-width="0.8" stroke-dasharray="3,7"/>
+ <!-- Activations -->
+ <rect x="165" y="220" width="10" height="448" rx="3" class="c-mask"/>
+ <rect x="165" y="220" width="10" height="448" rx="3" class="c-frontend" stroke-width="1"/>
+ <rect x="273" y="228" width="10" height="404" rx="3" class="c-mask"/>
+ <rect x="273" y="228" width="10" height="404" rx="3" class="c-backend" stroke-width="1"/>
+ <rect x="381" y="265" width="10" height="45" rx="3" class="c-mask"/>
+ <rect x="381" y="265" width="10" height="45" rx="3" class="c-security" stroke-width="1"/>
+ <rect x="489" y="349" width="10" height="49" rx="3" class="c-mask"/>
+ <rect x="489" y="349" width="10" height="49" rx="3" class="c-database" stroke-width="1"/>
+ <rect x="597" y="438" width="10" height="58" rx="3" class="c-mask"/>
+ <rect x="597" y="438" width="10" height="58" rx="3" class="c-database" stroke-width="1"/>
+ <rect x="705" y="575" width="10" height="55" rx="3" class="c-mask"/>
+ <rect x="705" y="575" width="10" height="55" rx="3" class="c-messagebus" stroke-width="1"/>
+
<!-- Messages -->
<g data-edge-from="user" data-edge-to="web" data-edge-label="open page" data-edge-key="0" data-edge-id="open-page">
<path data-composition-edge-from="user" data-composition-edge-to="web" data-composition-edge-id="open-page" data-composition-points="69,185;163,185" d="M 69 185 L 163 185" class="a-default" data-animate="edge" style="--step:0" stroke-width="1.4" marker-end="url(#arrowhead)"/>
@@ -4685,19 +4696,19 @@
</g>
</g>
- <!-- Activations -->
- <rect x="165" y="220" width="10" height="448" rx="3" class="c-mask"/>
- <rect x="165" y="220" width="10" height="448" rx="3" class="c-frontend" stroke-width="1"/>
- <rect x="273" y="228" width="10" height="404" rx="3" class="c-mask"/>
- <rect x="273" y="228" width="10" height="404" rx="3" class="c-backend" stroke-width="1"/>
- <rect x="381" y="265" width="10" height="45" rx="3" class="c-mask"/>
- <rect x="381" y="265" width="10" height="45" rx="3" class="c-security" stroke-width="1"/>
- <rect x="489" y="349" width="10" height="49" rx="3" class="c-mask"/>
- <rect x="489" y="349" width="10" height="49" rx="3" class="c-database" stroke-width="1"/>
- <rect x="597" y="438" width="10" height="58" rx="3" class="c-mask"/>
- <rect x="597" y="438" width="10" height="58" rx="3" class="c-database" stroke-width="1"/>
- <rect x="705" y="575" width="10" height="55" rx="3" class="c-mask"/>
- <rect x="705" y="575" width="10" height="55" rx="3" class="c-messagebus" stroke-width="1"/>
+ <!-- Segment Labels -->
+ <g data-graph-role="segment-label" data-segment-id="0">
+ <rect x="56" y="128" width="50.4" height="18" rx="3" class="c-mask"/>
+ <text x="62" y="141" class="t-dim" font-size="9" font-weight="600">Request</text>
+ </g>
+ <g data-graph-role="segment-label" data-segment-id="1">
+ <rect x="56" y="293" width="55.6" height="18" rx="3" class="c-mask"/>
+ <text x="62" y="306" class="t-dim" font-size="9" font-weight="600">Fallback</text>
+ </g>
+ <g data-graph-role="segment-label" data-segment-id="2">
+ <rect x="56" y="503" width="97.2" height="18" rx="3" class="c-mask"/>
+ <text x="62" y="516" class="t-dim" font-size="9" font-weight="600">Response + trace</text>
+ </g>
<!-- Participants -->
<g id="node-user" data-node-id="user" data-node-label="User" tabindex="0" role="button" aria-label="Focus User, browser session, Sequence participant" aria-pressed="false" data-node-kind="external" data-node-sublabel="browser session" data-node-context="Sequence participant">
diff --git a/docs/gallery/manifest.json b/docs/gallery/manifest.json
index 27a75196..7cf6a40b 100644
--- a/docs/gallery/manifest.json
+++ b/docs/gallery/manifest.json
@@ -223,8 +223,8 @@
"engineeringProfile": null,
"nodeCount": 7,
"edgeCount": 12,
- "artifactBytes": 612972,
- "artifactSha256": "371e790fa410c221903e97097ba07cd559093170d95987662040870e4ab45a79",
+ "artifactBytes": 613482,
+ "artifactSha256": "1ca674c7ebd8df68f358adde54549cea4cb305f5c9c27ff090cff4715961b3c5",
"sourceBytes": 4442,
"sourceSha256": "30098d81006a18813bab447da698edf74604a1463770f01dc056b0af8cb314ef",
"checks": [
@@ -615,8 +615,8 @@
"engineeringProfile": null,
"nodeCount": 7,
"edgeCount": 14,
- "artifactBytes": 613757,
- "artifactSha256": "018c81d577ff248e46ad038ea2f09fbb3504ea4fd10fc51e18ba5dc1f6868ab7",
+ "artifactBytes": 614279,
+ "artifactSha256": "de84aaab5faa9c7ebfd9131d954d082aec4f86339191b5e4c06b709ea434440f",
"sourceBytes": 4483,
"sourceSha256": "1b53d7c4ce7b2d8f6f40b8f33a394abe1d37fc991272b534c1ccd0255920ab52",
"checks": [
diff --git a/examples/sequence-cache-miss-request.html b/examples/sequence-cache-miss-request.html
index 7c787c7e..9dbd25b8 100644
--- a/examples/sequence-cache-miss-request.html
+++ b/examples/sequence-cache-miss-request.html
@@ -4571,13 +4571,10 @@
<!-- Time Segments -->
<rect data-graph-role="structural-frame" data-composition-frame-kind="segment" data-composition-frame-id="0" x="48" y="150" width="724" height="145" rx="10" class="c-lane" stroke-width="1"/>
- <text x="62" y="168" class="t-dim" font-size="9" font-weight="600">Request</text>
<rect data-graph-role="structural-frame" data-composition-frame-kind="segment" data-composition-frame-id="1" x="48" y="315" width="724" height="190" rx="10" class="c-lane" stroke-width="1"/>
- <text x="62" y="333" class="t-dim" font-size="9" font-weight="600">Fallback</text>
<rect data-graph-role="structural-frame" data-composition-frame-kind="segment" data-composition-frame-id="2" x="48" y="525" width="724" height="140" rx="10" class="c-lane" stroke-width="1"/>
- <text x="62" y="543" class="t-dim" font-size="9" font-weight="600">Response + trace</text>
<!-- Lifelines -->
<path d="M 62 142 L 62 695" class="a-default" stroke-width="0.8" stroke-dasharray="3,7"/>
@@ -4588,6 +4585,20 @@
<path d="M 602 142 L 602 695" class="a-default" stroke-width="0.8" stroke-dasharray="3,7"/>
<path d="M 710 142 L 710 695" class="a-default" stroke-width="0.8" stroke-dasharray="3,7"/>
+ <!-- Activations -->
+ <rect x="165" y="220" width="10" height="448" rx="3" class="c-mask"/>
+ <rect x="165" y="220" width="10" height="448" rx="3" class="c-frontend" stroke-width="1"/>
+ <rect x="273" y="228" width="10" height="404" rx="3" class="c-mask"/>
+ <rect x="273" y="228" width="10" height="404" rx="3" class="c-backend" stroke-width="1"/>
+ <rect x="381" y="265" width="10" height="45" rx="3" class="c-mask"/>
+ <rect x="381" y="265" width="10" height="45" rx="3" class="c-security" stroke-width="1"/>
+ <rect x="489" y="349" width="10" height="49" rx="3" class="c-mask"/>
+ <rect x="489" y="349" width="10" height="49" rx="3" class="c-database" stroke-width="1"/>
+ <rect x="597" y="438" width="10" height="58" rx="3" class="c-mask"/>
+ <rect x="597" y="438" width="10" height="58" rx="3" class="c-database" stroke-width="1"/>
+ <rect x="705" y="575" width="10" height="55" rx="3" class="c-mask"/>
+ <rect x="705" y="575" width="10" height="55" rx="3" class="c-messagebus" stroke-width="1"/>
+
<!-- Messages -->
<g data-edge-from="user" data-edge-to="web" data-edge-label="open page" data-edge-key="0" data-edge-id="open-page">
<path data-composition-edge-from="user" data-composition-edge-to="web" data-composition-edge-id="open-page" data-composition-points="69,185;163,185" d="M 69 185 L 163 185" class="a-default" data-animate="edge" style="--step:0" stroke-width="1.4" marker-end="url(#arrowhead)"/>
@@ -4685,19 +4696,19 @@
</g>
</g>
- <!-- Activations -->
- <rect x="165" y="220" width="10" height="448" rx="3" class="c-mask"/>
- <rect x="165" y="220" width="10" height="448" rx="3" class="c-frontend" stroke-width="1"/>
- <rect x="273" y="228" width="10" height="404" rx="3" class="c-mask"/>
- <rect x="273" y="228" width="10" height="404" rx="3" class="c-backend" stroke-width="1"/>
- <rect x="381" y="265" width="10" height="45" rx="3" class="c-mask"/>
- <rect x="381" y="265" width="10" height="45" rx="3" class="c-security" stroke-width="1"/>
- <rect x="489" y="349" width="10" height="49" rx="3" class="c-mask"/>
- <rect x="489" y="349" width="10" height="49" rx="3" class="c-database" stroke-width="1"/>
- <rect x="597" y="438" width="10" height="58" rx="3" class="c-mask"/>
- <rect x="597" y="438" width="10" height="58" rx="3" class="c-database" stroke-width="1"/>
- <rect x="705" y="575" width="10" height="55" rx="3" class="c-mask"/>
- <rect x="705" y="575" width="10" height="55" rx="3" class="c-messagebus" stroke-width="1"/>
+ <!-- Segment Labels -->
+ <g data-graph-role="segment-label" data-segment-id="0">
+ <rect x="56" y="128" width="50.4" height="18" rx="3" class="c-mask"/>
+ <text x="62" y="141" class="t-dim" font-size="9" font-weight="600">Request</text>
+ </g>
+ <g data-graph-role="segment-label" data-segment-id="1">
+ <rect x="56" y="293" width="55.6" height="18" rx="3" class="c-mask"/>
+ <text x="62" y="306" class="t-dim" font-size="9" font-weight="600">Fallback</text>
+ </g>
+ <g data-graph-role="segment-label" data-segment-id="2">
+ <rect x="56" y="503" width="97.2" height="18" rx="3" class="c-mask"/>
+ <text x="62" y="516" class="t-dim" font-size="9" font-weight="600">Response + trace</text>
+ </g>
<!-- Participants -->
<g id="node-user" data-node-id="user" data-node-label="User" tabindex="0" role="button" aria-label="Focus User, browser session, Sequence participant" aria-pressed="false" data-node-kind="external" data-node-sublabel="browser session" data-node-context="Sequence participant">