Skip to content

fix: complete sensing server API, WebSocket connectivity, and mobile tests #126

@ruvnet

Description

@ruvnet

Problem

The web UI at http://localhost:3000/ui/ had multiple issues:

  1. 404 errors on 4 API endpoint groups: /api/v1/models, /api/v1/models/active, /api/v1/recording/list, /api/v1/train/status
  2. WebSocket "RECONNECTING" on Dashboard and Live Demo tabs — sensingService.start() was only called lazily on Sensing tab visit
  3. Mobile WebSocket hardcoded to port 3001 instead of same-origin
  4. Jest config silently skipped all 25 mobile tests
  5. All 25 mobile tests were it.todo() placeholders

Solution

  • 14 new Axum handler functions in main.rs (model 7, recording 4, training 3)
  • sensingService.start() called on app init in app.js
  • Mobile ws.service.ts uses parsed.host for same-origin port
  • Jest testPathIgnorePatterns fixed
  • 25 real test implementations replacing placeholders
  • ADR-043 documents all changes

PR

#125

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions