diff --git a/docs/PLAN-HEADER-SUBTITLE-TELEMETRY-CONSOLIDATION-ALTERNATIVE.md b/docs/PLAN-HEADER-SUBTITLE-TELEMETRY-CONSOLIDATION-ALTERNATIVE.md new file mode 100644 index 0000000..d02b011 --- /dev/null +++ b/docs/PLAN-HEADER-SUBTITLE-TELEMETRY-CONSOLIDATION-ALTERNATIVE.md @@ -0,0 +1,26 @@ +# Plan: Alternative Single-Row Header Layout — Folding Passive Telemetry Counters into `.subtitle` (`v2.0.19`) + +- **Document ID:** `PLAN-HEADER-SUBTITLE-TELEMETRY-CONSOLIDATION-ALTERNATIVE` (`v2.0.19`) +- **Roadmap Status:** **LONG-TERM INACTIVE PLAN (Deferred Alternative)** — Preserved in the inactive backlog in case a future layout revision wishes to fold the three passive telemetry counter badges on `site/index.html` into `.subtitle` so the right-hand `.meta-badges` container holds exclusively interactive route buttons. Not active unless explicitly requested by the user. +- **Target File (When Activated):** `/workspace/hyperstitionstudio-core/site/index.html` + +--- + +## 1. Motivation & Horizontal Budget Analysis + +In `/workspace/hyperstitionstudio-core/site/index.html`, the `
` container has `max-width: 1260px` and `padding: 1.4rem 1.6rem` (`25.6px` per side), providing `1208.8px` of usable inner horizontal width: + +- Currently (under implemented `Option 3` of `PLAN-STATIC-DONATE-SUBPAGE`), `.meta-badges` keeps the three passive `.badge` counters (`388 Graph Nodes`, `1,282 Typed Edges`, `24 Quant Tickers`) alongside the interactive route buttons (`Start Learning Track (/learn/)`, `Quant Time-Series (/quant/)`) and the terminal right-justified `( ♥ DONATE )` stadium pill (`.btn-donate-pill`), using `margin-left: auto; justify-content: flex-end;` so the cluster remains right-justified even when wrapping onto a second flex line. +- If a strictly non-wrapping single-row `
` at `1260px` desktop width is desired in the future without abbreviating button labels: + 1. Move the three static counts (`388 Nodes • 1,282 Edges • 24 Tickers`) inline into the existing `.subtitle` paragraph under `

` (`~710px` total left block width). + 2. Reserve `.meta-badges` (`margin-left: auto; display: flex; align-items: center; gap: 0.55rem; flex-shrink: 0`) strictly for interactive navigation routes: + `[ Start Learning Track (/learn/) ] [ Quant Time-Series (/quant/) ] | ( ♥ DONATE )` (`~430px` total right block width). + 3. Combined width: `710px + 16px gap + 430px = 1156px <= 1208.8px` (`~52px` of spare horizontal margin on a single unbroken row). + +--- + +## 2. Implementation Specification (When Activated) + +1. In `/workspace/hyperstitionstudio-core/site/index.html`, update `.subtitle` to include `388 Graph Nodes • 1,282 Typed Edges • 24 Quant Tickers` and remove the three `...` elements from `.meta-badges`. +2. Add `flex-wrap: nowrap` on desktop (`@media (min-width: 1180px)`) to `
` while retaining `flex-wrap: wrap` and `margin-left: auto; justify-content: flex-end` on `.meta-badges` below `1180px`. +3. Verify `version_sync --check` and `tests/test_core_suite.py` pass with zero regressions. diff --git a/docs/PLAN-HEADER-SUBTITLE-TELEMETRY-CONSOLIDATION-ALTERNATIVE.pdf b/docs/PLAN-HEADER-SUBTITLE-TELEMETRY-CONSOLIDATION-ALTERNATIVE.pdf new file mode 100644 index 0000000..c7bb806 Binary files /dev/null and b/docs/PLAN-HEADER-SUBTITLE-TELEMETRY-CONSOLIDATION-ALTERNATIVE.pdf differ diff --git a/docs/PLAN-QUANT-TUTORIAL-VIDEO-SERIES-AND-CITATION-DEEP-LINKS.md b/docs/archive/PLAN-QUANT-TUTORIAL-VIDEO-SERIES-AND-CITATION-DEEP-LINKS.md similarity index 100% rename from docs/PLAN-QUANT-TUTORIAL-VIDEO-SERIES-AND-CITATION-DEEP-LINKS.md rename to docs/archive/PLAN-QUANT-TUTORIAL-VIDEO-SERIES-AND-CITATION-DEEP-LINKS.md diff --git a/docs/PLAN-QUANT-TUTORIAL-VIDEO-SERIES-AND-CITATION-DEEP-LINKS.pdf b/docs/archive/PLAN-QUANT-TUTORIAL-VIDEO-SERIES-AND-CITATION-DEEP-LINKS.pdf similarity index 100% rename from docs/PLAN-QUANT-TUTORIAL-VIDEO-SERIES-AND-CITATION-DEEP-LINKS.pdf rename to docs/archive/PLAN-QUANT-TUTORIAL-VIDEO-SERIES-AND-CITATION-DEEP-LINKS.pdf diff --git a/docs/PLAN-STATIC-DONATE-SUBPAGE.md b/docs/archive/PLAN-STATIC-DONATE-SUBPAGE.md similarity index 95% rename from docs/PLAN-STATIC-DONATE-SUBPAGE.md rename to docs/archive/PLAN-STATIC-DONATE-SUBPAGE.md index 8e3dbad..4ebd796 100644 --- a/docs/PLAN-STATIC-DONATE-SUBPAGE.md +++ b/docs/archive/PLAN-STATIC-DONATE-SUBPAGE.md @@ -128,8 +128,8 @@ To give `/donate/` an unmistakable, tactile visual centerpiece—while keeping ` - Automatic `file://` vs. `https://` link resolution, and - The global `"Made with ♥ by Lemurs."` (`♥`) footer. -### Phase 2: Wire Navigation Links & `version_sync.py` -1. Add a `Signal Support (/donate/)` link in the navigation of `site/index.html`, `site/quant/index.html`, and `site/learn/index.html`. +### Phase 2: Wire Right-Justified Stadium-Pill Donate Button (`Option 3`) & `version_sync.py` +1. In `site/index.html`, `site/quant/index.html`, and `site/learn/index.html`, place a right-justified (`margin-left: auto; justify-content: flex-end`), `34px`-tall stadium-pill `( ♥ DONATE )` button (`.btn-donate-pill`, `border-radius: 999px`, preceded by a `1px solid #334155` vertical divider `.nav-donate-sep`, featuring a `20px × 20px` circular inset `.donate-pill-emblem` and warm amber-gold bevel) as the `:last-child` flush with the right inner header padding boundary—without altering the single-row height or modifying existing `.badge` telemetry counters. *(Option 1—folding the 3 passive telemetry counters into `.subtitle`—is preserved as a separate Long-Term Inactive Plan in `docs/PLAN-HEADER-SUBTITLE-TELEMETRY-CONSOLIDATION-ALTERNATIVE.{md,pdf}`; Option 2 is discarded).* 2. Register `core / "site" / "donate" / "index.html"` in `/workspace/hyperstitionstudio-core/src/hyperstitionstud_io/version_sync.py` and in `test_offline_urn_namespaces_and_no_external_https_fonts()` inside `tests/test_core_suite.py`. ### Phase 3: Wire into `deploy/sync-vps-repos.sh` & `deploy/test-first-deployment.sh` diff --git a/docs/PLAN-STATIC-DONATE-SUBPAGE.pdf b/docs/archive/PLAN-STATIC-DONATE-SUBPAGE.pdf similarity index 89% rename from docs/PLAN-STATIC-DONATE-SUBPAGE.pdf rename to docs/archive/PLAN-STATIC-DONATE-SUBPAGE.pdf index c476b8f..7508532 100644 Binary files a/docs/PLAN-STATIC-DONATE-SUBPAGE.pdf and b/docs/archive/PLAN-STATIC-DONATE-SUBPAGE.pdf differ diff --git a/docs/archive/README.md b/docs/archive/README.md index 176ad59..35df2a6 100644 --- a/docs/archive/README.md +++ b/docs/archive/README.md @@ -7,7 +7,7 @@ > - **Production VPS & Git Operator Deployment Guide:** `../VPS-AND-GIT-OPERATOR-DEPLOYMENT-GUIDE.pdf` (and `.md`) > - **Cross-Repository Dependency & Audit Flow Diagram:** `../cross-repo-dependency-and-audit-flow-diagram.html` (and `.png` / `.pdf`) > - **Concentric ETI Radar (`D Periphery`) Specification:** `../specification-concentric-eti-tier-ring-radar-d-periphery.pdf` (and `.md`) -> - **Active / Deferred Roadmap Plans in `../`:** `../PLAN-STATIC-DONATE-SUBPAGE.{md,pdf}` and `../PLAN-QUANT-TUTORIAL-VIDEO-SERIES-AND-CITATION-DEEP-LINKS.{md,pdf}` (active outstanding plans); `../PLAN-SQLITE-META-REST-ENDPOINTS-ETAG-AND-VPS-SYNC.{md,pdf}`, `../PLAN-LLM-TOKEN-ECONOMIZER-AND-VARIANCE-ROUTING.{md,pdf}`, and `../PLAN-MEMETIC-GALLERY-SUBPAGE.{md,pdf}` (long-term inactive/deferred plans). +> - **Active / Deferred Roadmap Plans in `../`:** All active `v2.0.19` plans are now implemented and archived below; `../PLAN-HEADER-SUBTITLE-TELEMETRY-CONSOLIDATION-ALTERNATIVE.{md,pdf}`, `../PLAN-SQLITE-META-REST-ENDPOINTS-ETAG-AND-VPS-SYNC.{md,pdf}`, `../PLAN-LLM-TOKEN-ECONOMIZER-AND-VARIANCE-ROUTING.{md,pdf}`, and `../PLAN-MEMETIC-GALLERY-SUBPAGE.{md,pdf}` are preserved in `../` as long-term inactive/deferred plans. --- @@ -33,3 +33,5 @@ | `PLAN-QUANTITATIVE-FINANCE-TIMESERIES-SUBPAGE.{md,pdf}` | Specification for the `/quant/` interactive time-series workbench (`site/quant/{index.html,quant-app.js,quant-timeseries-data.js}`) and TradingView `EXCHANGE:SYMBOL` new-window launcher; now implemented and live at `/quant/`. | | `PLAN-MCP-REST-API-ADAPTER.{md,pdf}` | Specification for the unified stateless REST API v1 (`/api/v1/*`) and OpenAPI 3.1.0 adapter (`/api/v1/openapi.json`) on `hs-mcp` (`127.0.0.1:8095`); now implemented in `hyperstitionstud_io.mcp.{rest,server}` and `deploy/Caddyfile`. | | `PLAN-SQLITE-REST-API-METADATA-DB.{md,pdf}` | Specification for the standalone SQLite + FTS5 catalog & telemetry engine (`hyperstitionstud_io.db.sqlite_meta`, `hs-db-build`), automatic `/api/v1/*` and `/mcp` telemetry population (`api-telemetry.db`), and quiescent `logrotate.d` snapshot compression (`deploy/logrotate.d/hyperstition-sqlite-meta`, default `100M`); now implemented and verified in `tests/test_core_suite.py` and `deploy/test-first-deployment.sh`. | +| `PLAN-STATIC-DONATE-SUBPAGE.{md,pdf}` | Specification for the `/donate/` signal patronage & open-instrument subpage (`site/donate/index.html`) and Option 3 right-justified `34px` stadium-pill `( ♥ DONATE )` navbar button across `site/index.html`, `site/learn/index.html`, and `site/quant/index.html`; now implemented and live at `/donate/`. | +| `PLAN-QUANT-TUTORIAL-VIDEO-SERIES-AND-CITATION-DEEP-LINKS.{md,pdf}` | Specification for the Option B Zero-MP4 5-episode, 25-scene interactive HTML5 canvas tutorial player (`site/quant/quant-tutorials.js`), passage-encoded deep links (`#page=N&search=...`, `#:~:text=...`, `/graph/index.html?select=aq:N`, `/api/v1/dossiers/N?highlight=...`), and `site/quant/OPERATORS-MANUAL-QUANT-TIMESERIES-WORKBENCH.{md,pdf}`; now implemented and verified in `tests/test_core_suite.py` and `deploy/test-first-deployment.sh`. | diff --git a/index.html b/index.html index 28a8df0..dcbaced 100644 --- a/index.html +++ b/index.html @@ -797,7 +797,35 @@ window.addEventListener("resize", resizeCanvas); resizeCanvas(); - selectNode(nodeMap["build:S1"] || DATA.nodes[0]); + + // Deep-link query parameter support (?select=aq:137&mode=mode2_radar) + const urlParams = new URLSearchParams(window.location.search || ""); + const reqMode = urlParams.get("mode"); + if (reqMode && ["mode1_trophic", "mode2_radar", "mode3_bipartite"].includes(reqMode)) { + currentMode = reqMode; + document.querySelectorAll("[data-mode]").forEach(b => { + b.classList.toggle("active", b.getAttribute("data-mode") === reqMode); + }); + } + const reqSelect = (urlParams.get("select") || "").trim(); + let initialNode = nodeMap["build:S1"] || DATA.nodes[0]; + if (reqSelect) { + const selLow = reqSelect.toLowerCase(); + const selCoord = selLow.replace(/^aq:/, ""); + const matchedNode = nodeMap[reqSelect] || DATA.nodes.find(n => + String(n.id).toLowerCase() === selLow || + String(n.ing_aq || "") === selCoord || + String(n.aq_value || "") === selCoord || + String(n.label || "").toLowerCase().includes(selLow) + ); + if (matchedNode) { + initialNode = matchedNode; + } + } + selectNode(initialNode); + if (reqSelect && initialNode) { + centerOnNode(initialNode); + } })();