fix: complete sensing server API, WebSocket connectivity, and mobile tests#125
Merged
fix: complete sensing server API, WebSocket connectivity, and mobile tests#125
Conversation
…and replace 25 placeholder mobile tests The web UI had persistent 404 errors on model, recording, and training endpoints, and the sensing WebSocket never connected on Dashboard/Live Demo tabs because sensingService.start() was only called lazily on Sensing tab visit. Server (main.rs): - Add 14 fully-functional Axum handlers: model CRUD (7), recording lifecycle (4), training control (3) - Scan data/models/ and data/recordings/ at startup - Recording writes CSI frames to .jsonl via tokio background task - Model load/unload lifecycle with state tracking Web UI (app.js): - Import and start sensingService early in initializeServices() so Dashboard and Live Demo tabs connect to /ws/sensing immediately Mobile (ws.service.ts): - Fix WebSocket URL builder to use same-origin port instead of hardcoded port 3001 Mobile (jest.config.js): - Fix testPathIgnorePatterns that was ignoring the entire test directory Mobile (25 test files): - Replace all it.todo() placeholder tests with real implementations covering components, services, stores, hooks, screens, and utils ADR-043 documents all changes. Co-Authored-By: claude-flow <ruv@ruv.net>
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
main.rs): model management (7), CSI recording (4), training control (3) — eliminates all 404 console errors in the web UIsensingService.start()now called on app init inapp.jsso Dashboard and Live Demo tabs connect immediately instead of waiting for Sensing tab visitws.service.tsuses same-origin port instead of hardcoded port 3001it.todo()placeholder tests replaced with actual assertions covering components, services, stores, hooks, screens, and utilstestPathIgnorePatternsno longer ignores the entire test directoryTest plan
cargo run -p wifi-densepose-sensing-server -- --http-port 3000 --source autohttp://localhost:3000/ui/— verify zero 404 errors in consolecurl http://localhost:3000/api/v1/modelsreturns JSONcurl http://localhost:3000/api/v1/train/statusreturns{"phase":"idle"}cargo test --workspace --no-default-features(1,031+ tests pass)🤖 Generated with claude-flow