Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(mobile): Persist crash diagnostics before runtime fatals #4033

Openjuliusmarmingewants to merge 9 commits intomain fromrefs/pull/4033/headopened View on GitHub

Showing 7 changed files with 36 additions and 29 deletions (loading 6).

x
0 of 7 viewed, 7 left
36 additions and 29 deletionsapps/mobile/src/features/diagnostics/SettingsDiagnosticsRouteScreen.tsxModified
View file
@@ -15,7 +15,8 @@
import { SettingsSection } from "../settings/components/SettingsSection";
import {
formatStartupCrashReport,
- parseStartupCrashRecords,
+ readCrashRecords,
+ type UpdatesLogEntryLike,
type StartupCrashRecord,
} from "./crash-log-model";
​
@@ -25,8 +26,11 @@
​
type CrashLogState =
| { readonly status: "loading" }
- | { readonly status: "unavailable" }
- | { readonly status: "ready"; readonly records: ReadonlyArray<StartupCrashRecord> };
+ | {
+ readonly status: "ready";
+ readonly records: ReadonlyArray<StartupCrashRecord>;
+ readonly startupLogUnavailable: boolean;
+ };
​
function appIdentity() {
return {
@@ -39,23 +43,23 @@
​
export function SettingsDiagnosticsRouteScreen() {
const insets = useSafeAreaInsets();