Commit 4ac44650
4ac446506539Merged
Scott Nixon <[email protected]> ยท 9 months ago ยท 7 files ยท ~7 modified
Description
Implement Phase 5: Resume and polish (attractor-d14)
Adds session resilience, professional UI polish, and production-ready error handling to the Attractor Web Interface.
Implementation Summary:
- Session resume on browser reconnect with state restoration
- Checkpoint infrastructure for server restart recovery
- Responsive design with mobile/tablet/desktop breakpoints
- Professional styling with animations and loading states
- Comprehensive error handling with user feedback
Files Modified (7):
- style/main.scss (+485 lines) - Responsive design system with animations
- pages/execution.rs (+140 lines) - Session resume + reconnection notification
- server/stream.rs (+121 lines) - State cache + state_sync SSE event
- server/pipeline.rs (+46 lines) - Checkpoint saves after node completion
- pages/editor.rs (+12 lines) - Streaming indicator with spinner
- Cargo.toml (+2 lines) - gloo-timers dependency
- Cargo.lock (dependency updates)
Total: 729 insertions, 90 deletions
Key Features: โ SESSION_STATE cache stores last 100 events for reconnection โ state_sync SSE event restores UI without re-execution โ Reconnection notification with 3-second auto-dismiss โ Checkpoint saves to {workdir}/.attractor_checkpoint.json โ SCSS design system with responsive breakpoints โ Smooth animations: pulse, slide-in, spin, blink โ Status-based colors: blue (in-progress), green (success), red (error) โ Loading states with spinners and skeletons โ Error handling: SSE connection, invalid session, pipeline errors
Code Quality: โ 119 tests passing โ 0 clippy warnings in attractor-web โ Workspace compiles successfully โ SSR feature compiles
Architecture:
- Session resume: Browser reconnect โ state_sync event โ restore UI
- Checkpoint save: Node complete โ save to disk โ cleanup on finish
- Responsive design: Mobile-first with 480px/768px/1024px breakpoints
Known Limitations (Non-Blocking):
- resume_pipeline() function not implemented (infrastructure ready)
- Hydrate feature (pre-existing limitation from Phase 3/4)
Phase 5 (attractor-d14) completes the Attractor Web Interface epic (attractor-kbu). All 5 phases complete: scaffold, PRD generation, streaming, execution, and polish. Production-ready for manual QA.
Related: attractor-kbu, attractor-krz, attractor-n57, attractor-2od
Details
- Commit
- 4ac446506539
- Parent
- 3afeb24c320d
Cargo.lockmodifiedView file
"console_error_panic_hook", "futures", "gloo-net", "gloo-timers", "lazy_static", "leptos", "leptos_axum",][[package]]name = "gloo-timers"version = "0.3.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "bbb143cf96099802033e0d4f4963b19fd2e0b728bcf076cd9cf7f6634f092994"dependencies = [ "futures-channel", "futures-core", "js-sys", "wasm-bindgen",][[package]]name = "gloo-utils"version = "0.2.0"source = "registry+https://github.com/rust-lang/crates.io-index"crates/attractor-web/Cargo.tomlmodifiedView file
Loading diffโฆ
crates/attractor-web/src/pages/editor.rsmodifiedView file
Loading diffโฆ
crates/attractor-web/src/pages/execution.rsmodifiedView file
Loading diffโฆ
crates/attractor-web/src/server/pipeline.rsmodifiedView file
Loading diffโฆ
crates/attractor-web/src/server/stream.rsmodifiedView file
Loading diffโฆ
crates/attractor-web/style/main.scssmodifiedView file
Loading diffโฆ