tractatus/public/js/components
TheFlow c6ea87a6a0 feat(phase3): add data visualizations for context pressure and activity timeline
SUMMARY:
Implemented Phase 3 Tasks 3.3.1 and 3.3.2: Interactive data visualizations
showing Context Pressure Monitor metrics and Framework Activity Timeline.

CHANGES:

1. Created pressure-chart.js (new):
   - Interactive SVG gauge showing pressure levels (0-100%)
   - Color-coded status: Green (NORMAL), Amber (ELEVATED), Red (HIGH), Dark Red (CRITICAL)
   - Real-time metrics: Tokens Used, Complexity, Error Rate
   - Simulate button to demonstrate pressure increases
   - Reset button to return to normal state
   - Smooth animations with requestAnimationFrame
   - Respects prefers-reduced-motion

2. Created activity-timeline.js (new):
   - Visual timeline of 6 governance services coordinating
   - Shows request processing flow (0ms-250ms)
   - Service-specific color coding
   - Hover effects on timeline events
   - Total processing time displayed

3. Updated tractatus-theme.css:
   - Added data visualization CSS section
   - .gauge-fill-path transition styles
   - .timeline-event hover effects
   - Respects reduced motion preferences

4. Updated architecture.html:
   - Added "Framework in Action" section
   - Two-column grid layout for visualizations
   - Container divs: #pressure-chart and #activity-timeline
   - Script references for both components

FEATURES:

Context Pressure Visualization:
✓ Animated gauge (0-180 degree arc)
✓ Dynamic color changes based on pressure level
✓ Three metrics tracked (tokens, complexity, errors)
✓ Interactive simulation (30% → 50% → 70% → 85%)
✓ Reset functionality

Framework Activity Timeline:
✓ 6 governance services shown in sequence
✓ Service-specific colors match brand system
✓ Hover effects for interactivity
✓ Total processing time: 250ms

UI_TRANSFORMATION_PROJECT_PLAN.md:
✓ Phase 3 Task 3.3.1: Context Pressure Visualization (COMPLETED)
✓ Phase 3 Task 3.3.2: Framework Activity Timeline (COMPLETED)

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 20:49:26 +13:00
..
activity-timeline.js feat(phase3): add data visualizations for context pressure and activity timeline 2025-10-19 20:49:26 +13:00
code-copy-button.js feat(phase3): add code snippet copy buttons and collapsible TOC 2025-10-19 15:27:33 +13:00
coming-soon-overlay.js fix(csp): clean all public-facing pages - 75 violations fixed (66%) 2025-10-19 13:17:50 +13:00
currency-selector.js feat: add multi-currency support and privacy policy to Koha system 2025-10-08 15:17:23 +13:00
document-cards.js feat: comprehensive accessibility improvements (WCAG 2.1 AA) 2025-10-12 07:08:40 +13:00
document-viewer.js style(ui): update theme, branding, and GitHub repository links 2025-10-19 12:48:29 +13:00
footer.js feat(i18n): add footer and privacy page translations (en/de/fr) 2025-10-19 14:44:14 +13:00
interactive-diagram.js fix(interactive): fix diagram sizing (75% reduction) and improve SVG detection 2025-10-19 18:35:13 +13:00
language-selector.js refactor(i18n): simplify language selector to icons-only for all devices 2025-10-17 09:07:42 +13:00
navbar.js style(ui): update theme, branding, and GitHub repository links 2025-10-19 12:48:29 +13:00
pressure-chart.js feat(phase3): add data visualizations for context pressure and activity timeline 2025-10-19 20:49:26 +13:00
toc.js feat(phase3): add code snippet copy buttons and collapsible TOC 2025-10-19 15:27:33 +13:00