From bc2a58903f256e14e3a7e05278e77ba4c137d3de Mon Sep 17 00:00:00 2001 From: TheFlow Date: Sun, 19 Oct 2025 16:37:27 +1300 Subject: [PATCH] feat(interactive): add clickable central core and improve desktop layout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SUMMARY: Enhanced interactive diagram with clickable central core explaining how all 6 services work together, plus improved side-by-side layout for better desktop UX. CHANGES: 1. Clickable Central Core (SVG): - Added service-node class and data-service="overview" to central core - Added cursor pointer and title for accessibility - Users can now click the "T" to see overall governance explanation 2. Overview Service Data (JavaScript): - Added 'overview' to serviceData with comprehensive description - Explains how all 6 services work together as a system - 6 key details about coordinated governance - Promise: External architectural enforcement 3. Improved Desktop Layout (HTML): - Scaled down diagram from max-w-2xl to max-w-md/lg - Changed to flex layout (lg:flex-row) for side-by-side on desktop - Panel now appears next to diagram on large screens - Stacks vertically on mobile (flex-col) - Updated tip text to highlight central core clickability 4. Panel Positioning (JavaScript): - Panel inserts into flex container instead of diagram-container - Added flex-1 class for proper flex behavior - lg:min-w-[400px] ensures readable width on desktop - Maintains mobile-first responsive design DESKTOP UX: - Diagram on left (max-w-lg = 512px) - Service details on right (flex-1, grows to fill space) - Both visible simultaneously on screens ≥1024px MOBILE UX: - Diagram full width (max-w-md = 448px, centered) - Service details below diagram (full width) - Maintains vertical flow on small screens IMPACT: Users can now: ✓ Click central "T" to understand overall governance ✓ See diagram and service details side-by-side (desktop) ✓ Better understand how 6 services coordinate together 🤖 Generated with Claude Code (https://claude.com/claude-code) Co-Authored-By: Claude --- public/architecture.html | 45 ++++++++++--------- .../architecture-diagram-interactive.svg | 5 ++- public/js/components/interactive-diagram.js | 27 ++++++++--- 3 files changed, 49 insertions(+), 28 deletions(-) diff --git a/public/architecture.html b/public/architecture.html index edcb27b9..e45c1273 100644 --- a/public/architecture.html +++ b/public/architecture.html @@ -317,35 +317,38 @@

Explore the Architecture Interactively

-

- Click any service node to see detailed information about how it enforces governance boundaries. +

+ Click any service node or the central core to see detailed information about how governance works.

-
- -
- -
- - - Tractatus Architecture Diagram - -
- -
+

- Tip: Click any colored circle to explore that governance service + Tip: Click the central "T" to see how all services work together

+
- +
+ +
+ +
+ + + Tractatus Architecture Diagram + +
+ + + +
diff --git a/public/images/architecture-diagram-interactive.svg b/public/images/architecture-diagram-interactive.svg index c18e84e3..cd107e53 100644 --- a/public/images/architecture-diagram-interactive.svg +++ b/public/images/architecture-diagram-interactive.svg @@ -115,12 +115,13 @@ - - + + T Tractatus + Tractatus Core - Click to see how all services work together