Add long-press and mic buttons to preview form; fix canula-age display in Nightscout when outside 4-day window

This commit is contained in:
James Babcock committed 2026-07-26 17:31:55 -07:00
1 parent 93d98965de
commit 57d8d2fc79
4 files changed
+70 -11

No files matched your search

+8
View File
@@ -437,6 +437,14 @@ export class MainViewModel extends Observable {
await dashboardController.injectSyntheticRingInput("click");
}
async onSyntheticLongPressTap(): Promise<void> {
await dashboardController.injectSyntheticRingInput("long-press");
}
async onSyntheticMicTap(): Promise<void> {
await dashboardController.injectSyntheticRingInput("wakeword");
}
private appendLog(line: string): void {
const stamp = new Date().toISOString().slice(11, 19);
this.log = this.log ? `${this.log}\n[${stamp}] ${line}` : `[${stamp}] ${line}`;