Release v2.17.0: Implement cross-page & intra-page style, font-family, background token & navigation parity with regression gates S1-S4 (Plan #65) and adaptive mobile device detection & Group 3 mobile UI across all surfaces (Plan #66 Strategies 1A/2A/3A/4A)

This commit is contained in:
Hermes Agent committed 2026-12-01 19:22:49 +00:00
1 parent a598c193f8
commit 05ea6bec12
17 files changed
+499 -216

No files matched your search

+166 -29
View File
@@ -3,14 +3,17 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Encyclopedia of Technocapital Singularity Zoology — Interactive Knowledge Graph (v2.16.0)</title>
<link rel="stylesheet" href="/assets/hs-group3-basalt-chamfer.css?v=2.15.0" onerror="this.onerror=null;this.href='../hyperstitionstudio-core/site/assets/hs-group3-basalt-chamfer.css';" />
<title>Encyclopedia of Technocapital Singularity Zoology — Interactive Knowledge Graph (v2.17.0)</title>
<link rel="stylesheet" href="/assets/hs-group3-basalt-chamfer.css?v=2.17.0" onerror="this.onerror=null;this.href='../hyperstitionstudio-core/site/assets/hs-group3-basalt-chamfer.css';" />
<style>
:root {
--font-mono: 'DejaVu Sans Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
--bg-canvas: #020617;
--bg-panel: #0f172a;
--bg-card: #1e293b;
--border-col: #334155;
--bg-panel: #0c1324;
--bg-card: #0c1324;
--bg-elevated: #111a2e;
--bg-well: #070d1b;
--border-col: #26344d;
--text-main: #f8fafc;
--text-muted: #94a3b8;
--accent-red: #f43f5e;
@@ -22,7 +25,7 @@
body {
background: var(--bg-canvas);
color: var(--text-main);
font-family: 'DejaVu Sans Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-family: var(--font-mono);
height: 100vh;
overflow: hidden;
display: flex;
@@ -32,7 +35,7 @@
background: var(--bg-panel);
border: 1px solid var(--border-col);
border-left: 4px solid var(--accent-cyan);
padding: 0.85rem 1.35rem;
padding: 1.1rem 1.35rem;
display: flex;
align-items: center;
justify-content: space-between;
@@ -61,13 +64,14 @@
z-index: 18;
}
.btn {
background: var(--bg-card);
background: #132038;
color: var(--text-main);
border: 1px solid var(--border-col);
border-radius: 5px;
padding: 6px 11px;
font-size: 12px;
font-weight: 600;
font-family: var(--font-mono);
cursor: pointer;
transition: all 0.15s ease;
}
@@ -78,22 +82,24 @@
color: #121318;
}
.search-input {
background: #101217;
background: var(--bg-well);
color: var(--text-main);
border: 1px solid var(--border-col);
border-radius: 5px;
padding: 6px 10px;
font-size: 12px;
font-family: var(--font-mono);
width: 220px;
}
.search-input:focus { outline: none; border-color: var(--accent-cyan); }
.filter-select {
background: var(--bg-card);
background: var(--bg-well);
color: var(--text-main);
border: 1px solid var(--border-col);
border-radius: 5px;
padding: 6px 9px;
font-size: 12px;
font-family: var(--font-mono);
}
.workspace {
flex: 1;
@@ -143,12 +149,12 @@
gap: 5px;
}
.coord-pill {
background: var(--bg-card);
background: var(--bg-elevated);
border: 1px solid var(--border-col);
color: var(--accent-cyan);
padding: 3px 7px;
border-radius: 4px;
font-family: monospace;
font-family: var(--font-mono);
font-size: 11px;
cursor: pointer;
}
@@ -173,11 +179,11 @@
position: absolute;
bottom: 12px;
left: 14px;
background: rgba(20, 23, 31, 0.90);
background: rgba(12, 19, 36, 0.92);
border: 1px solid var(--border-col);
border-radius: 6px;
padding: 7px 12px;
font-family: monospace;
font-family: var(--font-mono);
font-size: 11.5px;
color: var(--text-muted);
pointer-events: none;
@@ -209,12 +215,12 @@
border-radius: 4px;
font-size: 10.5px;
font-weight: 700;
font-family: monospace;
background: var(--bg-card);
font-family: var(--font-mono);
background: var(--bg-elevated);
border: 1px solid var(--border-col);
}
.kv-box {
background: var(--bg-card);
background: var(--bg-well);
border: 1px solid var(--border-col);
border-radius: 6px;
padding: 9px 10px;
@@ -227,11 +233,11 @@
display: flex;
flex-direction: column;
gap: 5px;
font-family: monospace;
font-family: var(--font-mono);
font-size: 11px;
}
.eq-list li {
background: #141720;
background: #0c1324;
padding: 6px 8px;
border-left: 3px solid var(--accent-mint);
border-radius: 3px;
@@ -257,7 +263,7 @@
overflow-y: auto;
}
.neighbor-item {
background: var(--bg-card);
background: var(--bg-elevated);
padding: 5px 8px;
border-radius: 4px;
font-size: 11.5px;
@@ -268,6 +274,46 @@
border: 1px solid transparent;
}
.neighbor-item:hover { border-color: var(--accent-cyan); }
.mobile-graph-drawer-toggles {
display: none;
position: absolute;
top: 10px;
left: 10px;
z-index: 25;
gap: 6px;
}
html[data-device-ui="mobile"] .mobile-graph-drawer-toggles {
display: flex;
}
html[data-device-ui="mobile"] .left-sidebar {
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: min(290px, 86vw);
z-index: 30;
display: none;
box-shadow: 8px 0 28px rgba(0, 0, 0, 0.85);
}
html[data-device-ui="mobile"] .left-sidebar.mobile-open {
display: flex;
}
html[data-device-ui="mobile"] .right-drawer {
position: absolute;
left: 0;
right: 0;
bottom: 0;
width: 100%;
max-height: 54vh;
border-left: none;
border-top: 2px solid var(--accent-cyan);
z-index: 30;
display: none;
box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.85);
}
html[data-device-ui="mobile"] .right-drawer.mobile-open {
display: flex;
}
</style>
</head>
<body>
@@ -277,7 +323,7 @@
<span class="dot" style="background:var(--accent-cyan);box-shadow:0 0 10px var(--accent-cyan);" aria-hidden="true"></span>
<h1>ENCYCLOPEDIA OF TECHNOCAPITAL SINGULARITY ZOOLOGY — INTERACTIVE KNOWLEDGE GRAPH</h1>
</div>
<p>388 Nodes • 1,282 Deduplicated Edges • Zero Glossary Leak &bull; v2.16.0</p>
<p class="subtitle">388 Nodes • 1,282 Deduplicated Edges • Zero Glossary Leak &bull; v2.17.0</p>
</div>
<nav class="top-nav hs-global-nav" aria-label="Primary Ecosystem Navigation">
<a class="btn" id="graphNavHome" href="/">Portal Home (/)</a>
@@ -338,6 +384,10 @@
</aside>
<div class="canvas-wrap">
<div class="mobile-graph-drawer-toggles">
<button type="button" class="btn" id="mobileGraphFiltersBtn">&#x2699; Ontology &amp; Filters</button>
<button type="button" class="btn" id="mobileGraphInspectorBtn">&#x24D8; Node Inspector</button>
</div>
<canvas id="graphCanvas"></canvas>
<div class="hud-stats" id="hudStats">Loading Encyclopedia Knowledge Graph...</div>
</div>
@@ -349,10 +399,11 @@
</aside>
</div>
<footer class="hs-global-footer" style="background:#1A1D26;border-top:1px solid #323846;padding:4px 14px;text-align:center;font-size:11px;color:#9BA3B8;z-index:20;">
<span class="hs-lemur-credit">hyperstitionstud.io/graph v2.16.0 &bull; Made with <span class="hs-heart" role="img" aria-label="love" style="color:#FB7185;display:inline-block;padding:0 2px;">&#x2665;</span> by Lemurs.</span>
<span class="hs-lemur-credit">hyperstitionstud.io/graph v2.17.0 &bull; Made with <span class="hs-heart" role="img" aria-label="love" style="color:#FB7185;display:inline-block;padding:0 2px;">&#x2665;</span> by Lemurs.</span>
</footer>
<script src="graph-data.js?v=2.16.0"></script>
<script src="graph-data.js?v=2.17.0"></script>
<script src="/assets/hs-mobile-ui.js?v=2.17.0" defer></script>
<script>
(function() {
const DATA = (window.HyperstitionStudio && window.HyperstitionStudio.EncyclopediaGraphData) || window.ENCYCLOPEDIA_GRAPH_DATA;
@@ -551,7 +602,7 @@
ctx.stroke();
ctx.setLineDash([]);
ctx.fillStyle = col + "CC";
ctx.font = "bold 10px monospace";
ctx.font = "bold 10px 'DejaVu Sans Mono', monospace";
ctx.textAlign = "center";
ctx.fillText(txt, 800, 500 - r + 12);
});
@@ -571,7 +622,7 @@
ctx.lineWidth = 1;
ctx.stroke();
ctx.fillStyle = "#F5C630";
ctx.font = "bold 11px monospace";
ctx.font = "bold 11px 'DejaVu Sans Mono', monospace";
ctx.textAlign = "center";
ctx.fillText(txt, x, 30);
});
@@ -633,7 +684,7 @@
);
if (showLbl) {
ctx.fillStyle = "#F3F5FA";
ctx.font = n.node_type === "TaxonAssemblageBuild" ? "bold 11px sans-serif" : "10px monospace";
ctx.font = n.node_type === "TaxonAssemblageBuild" ? "bold 11px 'DejaVu Sans Mono', monospace" : "10px 'DejaVu Sans Mono', monospace";
ctx.textAlign = "center";
ctx.fillText(n.label.slice(0, 32), pos.x, pos.y + r + 12);
}
@@ -657,9 +708,15 @@
titleEl.textContent = "Click any node to inspect its Encyclopedia Article";
badgesEl.innerHTML = "";
bodyEl.innerHTML = `<div class="kv-box">Select any specimen, philosophical operator, ETI build, or AQ coordinate hub on the canvas (or click one of the 13 Flex Pivot pills on the left) to inspect its bidirectional Base-36 AQ telemetry, verified 333/666/777 equations, and Volume PDF link.</div>`;
const drw = document.getElementById("inspectorDrawer");
if (drw) drw.classList.remove("mobile-open");
draw();
return;
}
const drwOpen = document.getElementById("inspectorDrawer");
if (drwOpen && document.documentElement.getAttribute("data-device-ui") === "mobile") {
drwOpen.classList.add("mobile-open");
}
titleEl.textContent = n.full_term || n.full_title || n.label;
badgesEl.innerHTML = `<span class="badge" style="color:${n.color}">${n.node_type}</span>` +
@@ -738,7 +795,7 @@
neighbors.slice(0, limitCount).forEach(item => {
const row = document.createElement("div");
row.className = "neighbor-item";
row.innerHTML = `<span style="color:${item.node.color};font-weight:600;">${item.node.label.slice(0, 26)}</span> <span style="font-family:monospace;font-size:10px;color:#9BA3B8;">${item.rel}</span>`;
row.innerHTML = `<span style="color:${item.node.color};font-weight:600;">${item.node.label.slice(0, 26)}</span> <span style="font-family:var(--font-mono);font-size:10px;color:#9BA3B8;">${item.rel}</span>`;
row.addEventListener("click", () => {
selectNode(item.node);
centerOnNode(item.node);
@@ -763,12 +820,13 @@
return { x: (sx - camX) / camScale, y: (sy - camY) / camScale };
}
function findNodeAt(wx, wy) {
function findNodeAt(wx, wy, minHitRadius) {
const minR = minHitRadius || 6;
for (let i = DATA.nodes.length - 1; i >= 0; i--) {
const n = DATA.nodes[i];
if (!nodePassesFilter(n)) continue;
const pos = n.layouts[currentMode];
const r = Math.max(6, n.size * 0.42);
const r = Math.max(minR, n.size * 0.42);
const dx = wx - pos.x, dy = wy - pos.y;
if (dx * dx + dy * dy <= r * r) return n;
}
@@ -818,6 +876,85 @@
draw();
}, { passive: false });
// Strategy 3A (Plan #66): Mobile Multi-Touch (1-Finger Tap/Pan + 2-Finger Pinch-to-Zoom) & Drawer Toggles
const leftSbEl = document.querySelector(".left-sidebar");
const rightDrwEl = document.getElementById("inspectorDrawer");
const mobFltBtn = document.getElementById("mobileGraphFiltersBtn");
const mobInspBtn = document.getElementById("mobileGraphInspectorBtn");
if (mobFltBtn && leftSbEl) {
mobFltBtn.addEventListener("click", () => {
leftSbEl.classList.toggle("mobile-open");
if (rightDrwEl) rightDrwEl.classList.remove("mobile-open");
});
}
if (mobInspBtn && rightDrwEl) {
mobInspBtn.addEventListener("click", () => {
rightDrwEl.classList.toggle("mobile-open");
if (leftSbEl) leftSbEl.classList.remove("mobile-open");
});
}
let touchStartX = 0, touchStartY = 0, touchMoved = false, pinchStartDist = 0, pinchStartScale = 1.0;
canvas.addEventListener("touchstart", e => {
if (e.touches.length === 1) {
const t = e.touches[0];
touchStartX = t.clientX;
touchStartY = t.clientY;
dragStartX = t.clientX - camX;
dragStartY = t.clientY - camY;
touchMoved = false;
isDragging = true;
} else if (e.touches.length === 2) {
isDragging = false;
touchMoved = true;
const dx = e.touches[0].clientX - e.touches[1].clientX;
const dy = e.touches[0].clientY - e.touches[1].clientY;
pinchStartDist = Math.max(10, Math.hypot(dx, dy));
pinchStartScale = camScale;
}
}, { passive: true });
canvas.addEventListener("touchmove", e => {
if (e.touches.length === 1 && isDragging) {
const t = e.touches[0];
if (Math.hypot(t.clientX - touchStartX, t.clientY - touchStartY) > 8) {
touchMoved = true;
}
if (touchMoved) {
e.preventDefault();
camX = t.clientX - dragStartX;
camY = t.clientY - dragStartY;
draw();
}
} else if (e.touches.length === 2) {
e.preventDefault();
const rect = canvas.getBoundingClientRect();
const mx = ((e.touches[0].clientX + e.touches[1].clientX) * 0.5) - rect.left;
const my = ((e.touches[0].clientY + e.touches[1].clientY) * 0.5) - rect.top;
const dx = e.touches[0].clientX - e.touches[1].clientX;
const dy = e.touches[0].clientY - e.touches[1].clientY;
const dist = Math.max(10, Math.hypot(dx, dy));
const newScale = Math.max(0.22, Math.min(4.5, pinchStartScale * (dist / pinchStartDist)));
camX = mx - (mx - camX) * (newScale / camScale);
camY = my - (my - camY) * (newScale / camScale);
camScale = newScale;
draw();
}
}, { passive: false });
canvas.addEventListener("touchend", e => {
if (!touchMoved && e.changedTouches && e.changedTouches.length === 1) {
const t = e.changedTouches[0];
const rect = canvas.getBoundingClientRect();
const wpt = screenToWorld(t.clientX - rect.left, t.clientY - rect.top);
const hit = findNodeAt(wpt.x, wpt.y, 14);
selectNode(hit || null);
}
if (!e.touches || e.touches.length === 0) {
isDragging = false;
}
});
document.querySelectorAll("[data-mode]").forEach(btn => {
btn.addEventListener("click", () => {
document.querySelectorAll("[data-mode]").forEach(b => b.classList.remove("active"));