Merge branch 'main' of https://github.com/jimrandomh/faceclaw into android-wear-integration

This commit is contained in:
James Babcock committed 2026-08-24 00:23:16 -07:00
commit 92a2530e0e
66 files changed
+3731 -1433

No files matched your search

+17
View File
@@ -536,6 +536,23 @@ export class MainViewModel extends Observable {
Frame.topmost()?.navigate("phone-ui/config-page");
}
/**
* Live scan that names each nearby pair by model, colour, and serial and
* checks both arms belong together. A connected arm stops advertising, so
* drop the current link first; autoConnect picks it back up afterwards.
*/
async onPairGlassesTap(): Promise<void> {
if (!this.canRun) return;
if (this.phase === "connected" || this.phase === "charging" || this.phase === "connecting") {
try {
await dashboardController.disconnect();
} catch {
// proceed anyway; the pairing page reports what it hears
}
}
Frame.topmost()?.navigate({ moduleName: "phone-ui/pairing-page", context: { onboarding: false } });
}
async onInstallFirmwareTap(): Promise<void> {
await this.openFlashPage("install");
}