Skip to content

Add interactive browser demo, compact panels, and safe motor auto-connect - #68

Merged
mcroomp merged 1 commit into
mainfrom
feat/browser-demo-compact-panels-motor-autoconnect
Dec 3, 2026
Merged

mcroomp merged 1 commit into
mainfrom
feat/browser-demo-compact-panels-motor-autoconnect

Conversation

@mcroomp

@mcroomp mcroomp commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add an isolated, stateful browser-only bench simulator for GitHub Pages, including complete fake experiments without saving data; retain recorded replay via ?replay.
  • Replace panel toggles with independently expandable, always-active compact summaries; retain motor controls while collapsed and move compact instruments above the terminal.
  • Automatically discover/connect a single matching Bluetooth motor and remove manual scan/connect UI and endpoints. Ambiguous discovery is rejected; connection/reconnection always initializes off.
  • Require explicit motor Start clicks, preserve the two-second browser lease and controlled shutdown, and reject stale commands after stop, lease expiry, or reconnection using control-session IDs.
  • Update owner documentation and add a prominent live-demo link to the root README.

Validation

  • 387 UI tests pass.
  • 21 Rust motor tests pass, covering automatic discovery/reconnection, ambiguous or missing devices, lease expiry, shutdown, and stale-command rejection.
  • Production and standalone demo builds pass; production bundle excludes demo backend markers.
  • Browser checks cover compact desktop/mobile layouts, independent expansion, automatic connection remaining off until Start, motor operation while collapsed, and complete simulated experiment shutdown.
  • git diff --check passes.

Physical Bluetooth hardware was not tested. Backend changes require restarting LinkHub. The synthetic bench model is not a flight-physics or ArduPilot simulation.

Introduce an isolated client-side bench simulator, always-active summary panels, and streamlined telemetry instruments. Automatically connect a single matching Bluetooth motor while requiring explicit starts and invalidating stale control sessions on stop, lease expiry, and reconnection.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mcroomp
mcroomp merged commit 2555b92 into main Dec 3, 2026
4 checks passed
@mcroomp
mcroomp deleted the feat/browser-demo-compact-panels-motor-autoconnect branch December 3, 2026 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant