Skip to content

feat(devices): add light and screen indicators - #230

Merged
i098 merged 3 commits into
fm/sanctum-any-devicefrom
fm/sanctum-anydev-s4
Nov 23, 2026
Merged

i098 merged 3 commits into
fm/sanctum-any-devicefrom
fm/sanctum-anydev-s4

Conversation

@i098

@i098 i098 commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Closes #227

Summary

Add visible recording status for the hardware listener through a Linux LED, a terminal, or a loopback kiosk screen.

What changed and why

  • Apply the fixed blink patterns and wait for the first output write before the listener can open the microphone.
  • Send kiosk status and owner details on /events. Report a fault after two seconds without a kiosk viewer during recording.
  • Test the shared timing fixture, all sampled state transitions, LED writes, terminal output, and loopback HTTP.

Related task

Any-device S4. The listener, kiosk page, and device workspace CI job belong to other slices.

Test evidence

  • Passed: npm run check, npm run docs:build, Fallow, Sentrux, commitlint, cargo fmt --check, and blaze check.
  • The host Cargo build slots blocked cargo test and Clippy. The S7 workspace CI job must run both for this crate. This branch does not have that job yet.
  • npm run check:app passed workspace typechecks. Playwright failed after the Vite proxy could not connect to 127.0.0.1:7102.
  • No physical LED, deployment, or live recording test.

Review keeps

  • Keep the first kiosk event flush acknowledgement. Setting status in memory alone does not tell people in the room that the microphone can start.
  • Keep the four-viewer limit. Each open event stream holds one thread and one socket.

i098 added 3 commits November 23, 2026 09:51
Add Linux LED, terminal and loopback kiosk outputs.
Check the shared light patterns and report output faults to the listener.
- Stop the indicator worker by closing its sender before joining it.
- Keep the kiosk fixture filesystem import in tests.
@i098
i098 merged commit d9eab75 into fm/sanctum-any-device Nov 23, 2026
11 checks passed
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