M9 — Device diagnostics & debug reporting (connectivity + UPnP desync) #104

Merged
bvandeusen merged 5 commits from dev into main 2026-06-29 19:24:16 -04:00
2 changed files with 5 additions and 1 deletions
Showing only changes of commit bffa5b28bd - Show all commits
@@ -127,7 +127,9 @@ class DiagnosticsReporter @Inject constructor(
}
private suspend fun collectServerHealth() {
networkStatus.state.distinctUntilChanged().collect { s ->
// state is a StateFlow — already conflated/distinct, so no
// distinctUntilChanged (it's a deprecation warning = build error).
networkStatus.state.collect { s ->
record("connectivity", buildJsonObject {
put("event", "server_health")
put("state", s.name)
+2
View File
@@ -38,6 +38,7 @@ const alice: AdminUser = {
display_name: null,
is_admin: true,
auto_approve_requests: false,
debug_mode_enabled: false,
created_at: '2026-05-01T00:00:00Z'
};
@@ -47,6 +48,7 @@ const bob: AdminUser = {
display_name: 'Bob B',
is_admin: false,
auto_approve_requests: false,
debug_mode_enabled: false,
created_at: '2026-05-02T00:00:00Z'
};