Skip to content

[Watch] 6 - Control Board lights #489

Description

@KacperKozak

What to build

Mirror Board light state and relay individual rider switch edits through existing native iOS Board actions. Preserve optimistic pending feedback and interaction haptics.

Source: docs/watchos.md and the approved watchOS parity plan. Execution: AFK, with integrated hardware validation in slice 8.

Likely files

  • watch/wearos/src/main/java/app/vescape/wear/LightsScreen.kt — existing Wear OS behavior or wire-contract peer.
  • watch/wearos/src/main/java/app/vescape/wear/WatchBoard.kt — existing Wear OS behavior or wire-contract peer.
  • watch/wearos/src/main/java/app/vescape/wear/WatchCommand.kt — existing Wear OS behavior or wire-contract peer.
  • modules/vescape-core/android/src/main/java/expo/modules/vescapecore/watch/WatchLightsRelay.kt — existing Android phone-side parity peer.
  • modules/vescape-core/android/src/main/java/expo/modules/vescapecore/watch/WatchBoardPusher.kt — existing Android phone-side parity peer.
  • modules/vescape-core/ios/connection/BoardSessionController.swift — existing native iOS integration or test starting point.

Implementation hints

Read current Android code, not historical alert-forwarding docs. Keep native phone truth and actions in vescape-core; do not make live wrist behavior depend on JS. Add bidirectional @parity links for equivalent contracts/logic and document verified platform differences in docs/watchos.md. New durable watch source belongs under watch/watchos/, not generated ios/. The local planning document will be included in the draft watchOS feature PR; this issue includes its relevant requirements independently.

Acceptance criteria

  • LED and headlight edits target only the selected switch so a stale wrist cannot overwrite the other switch.
  • Pending UI settles from phone-owned state; failures and disconnections do not show unconfirmed success.
  • Use existing iOS write and trust gates with fresh-state interaction gating.
  • Verify simultaneous phone/watch edits, two rapid switch edits, reconnect and rejected commands.

Blocked by

Related

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:iosiOS-only work: platform port and iOS-specific native code. Not cross-platform work that touches iOSarea:nativeTouches native side (modules/vesc-ble, Swift/Kotlin)area:watchWatch Mirror: wrist telemetry + alert playback (Wear OS / watchOS companions)complexity:highCritical paths, subtle correctness, native pipelines. Use opus.enhancementNew feature or requestready-for-agentFully specified, ready for an AFK agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions