Commit graph

4 commits

Author SHA1 Message Date
TheFlow
2298d36bed fix(submissions): restructure Economist package and fix article display
- Create Economist SubmissionTracking package correctly:
  * mainArticle = full blog post content
  * coverLetter = 216-word SIR— letter
  * Links to blog post via blogPostId
- Archive 'Letter to The Economist' from blog posts (it's the cover letter)
- Fix date display on article cards (use published_at)
- Target publication already displaying via blue badge

Database changes:
- Make blogPostId optional in SubmissionTracking model
- Economist package ID: 68fa85ae49d4900e7f2ecd83
- Le Monde package ID: 68fa2abd2e6acd5691932150

Next: Enhanced modal with tabs, validation, export

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-24 08:47:42 +13:00
TheFlow
6496e0d811 refactor: remove entire public/ directory - Tractatus PROJECT web interface
REMOVED: All 37 files in public/ directory

This is the Tractatus PROJECT's web interface (admin system, website features),
NOT framework implementation code.

Files removed:
- Admin system (4 pages): dashboard, hooks-dashboard, login, rule-manager
  - Shows: Moderation Queue, Users, Documents, Blog Curation
  - This is OUR project admin, not tools for framework implementers
- Admin JavaScript (8 files)
- CSS/fonts (10 files)
- Images (4 files)
- Components (3 files): interactive-diagram, navbar-admin, pressure-chart
- Demos (5 files): 27027, boundary, classification, deliberation, tractatus
- Utils (1 file): api.js
- Favicons (2 files)

REASON: public/ directory contained Tractatus PROJECT website/admin interface.
Framework implementers don't need OUR admin system - they build their own.

All web interface code belongs in internal repository only.

🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-21 21:57:02 +13:00
TheFlow
bc2a58903f feat(interactive): add clickable central core and improve desktop layout
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 <noreply@anthropic.com>
2025-10-19 16:37:27 +13:00
TheFlow
9cb62dae8b feat(phase3): add interactive architecture diagram with service details
SUMMARY:
Implemented Phase 3 Task 3.2: Interactive Architecture Diagram - a
complex, high-impact feature that lets users explore the 6 governance
services interactively by clicking hexagonal nodes.

CHANGES:

1. Created architecture-diagram-interactive.svg (new):
   - Hexagonal orbital design with 6 clickable service nodes
   - Central Tractatus core (cyan to blue radial gradient)
   - Service-specific gradients:
     * BoundaryEnforcer (green #10b981)
     * InstructionPersistence (indigo #6366f1)
     * CrossReferenceValidator (purple #8b5cf6)
     * ContextPressureMonitor (amber #f59e0b)
     * MetacognitiveVerifier (rose #ec4899)
     * PluralisticDeliberation (teal #14b8a6)
   - Connection lines from center to each node
   - CSS hover states with glow effect
   - SVG filters for drop shadow and glow

2. Created interactive-diagram.js (new):
   - Complete service data for all 6 governance services
   - Click handlers to show detailed service information
   - Hover handlers to highlight connections
   - Dynamic panel rendering with service details
   - Close panel functionality with smooth animations
   - Keyboard navigation (Tab, Enter, Space)
   - CSP-compliant (no inline styles or event handlers)
   - Uses data attributes + JavaScript for dynamic styling

3. Updated architecture.html:
   - Added new "Explore the Architecture Interactively" section
   - SVG loaded via <object> tag with fallback
   - Container div for dynamic service detail panel
   - User tip: "Click any colored circle to explore"
   - Script reference to interactive-diagram.js

FEATURES:

Interactive Diagram:
- Click any service node to see full details
- Hover to preview and highlight connections
- Detail panel shows:
  * Service name and icon
  * Full description
  * Key features (4-5 bullet points)
  * "Early Promise" badge with color coding
- Smooth fade-in/fade-out animations
- Close button to dismiss detail panel

Service Data Included:
1. BoundaryEnforcer: Values boundaries enforced externally
2. InstructionPersistence: Instructions stored outside AI
3. CrossReferenceValidator: Independent verification layer
4. ContextPressureMonitor: Objective metrics detection
5. MetacognitiveVerifier: Architectural verification gates
6. PluralisticDeliberation: Human judgment required

ACCESSIBILITY:
✓ Zero CSP violations maintained
✓ Keyboard navigation supported (Tab, Enter, Space)
✓ ARIA labels on interactive elements
✓ Semantic SVG structure with <title> tags
✓ Focus indicators on all nodes

PERFORMANCE:
- GPU-accelerated CSS transitions
- Minimal JavaScript overhead
- Event delegation pattern
- No memory leaks (elements removed on close)

UI_TRANSFORMATION_PROJECT_PLAN.md:
✓ Phase 3 Task 3.2: Interactive architecture diagram (COMPLETED)

IMPACT:
This is the flagship interactive feature for Phase 3. Users can now
explore the governance layer architecture in detail, understanding
exactly how each service contributes to AI safety.

NEXT STEPS:
- Deploy to production for user testing
- Phase 3 Task 3.3: Data visualizations (MEDIUM priority)
- Phase 3 Task 3.4: Interactive demos (MEDIUM priority)

🤖 Generated with Claude Code (https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 15:38:18 +13:00