diff --git a/gui/app-next/src/app/app.tsx b/gui/app-next/src/app/app.tsx
index e3f938e70..29011b8e2 100644
--- a/gui/app-next/src/app/app.tsx
+++ b/gui/app-next/src/app/app.tsx
@@ -1,7 +1,5 @@
import { DesignPage } from '@/pages/design/design-page';
export function App() {
- return (
-
- );
+ return ;
}
diff --git a/gui/app-next/src/domain/error-reporting/consent.ts b/gui/app-next/src/domain/error-reporting/consent.ts
index 760fea41d..44a700cc4 100644
--- a/gui/app-next/src/domain/error-reporting/consent.ts
+++ b/gui/app-next/src/domain/error-reporting/consent.ts
@@ -15,7 +15,8 @@ export const errorReportingSettings = defineSettings({
change: ChangeErrorReportingSettingsRequestT,
});
-export type ConsentAnswer = ErrorReportingConsent.ALLOWED | ErrorReportingConsent.DENIED;
+export type ConsentAnswer =
+ ErrorReportingConsent.ALLOWED | ErrorReportingConsent.DENIED;
export interface ReportingIdentity {
userId: string;
diff --git a/gui/app-next/src/domain/error-reporting/error-reporting.test.ts b/gui/app-next/src/domain/error-reporting/error-reporting.test.ts
index 95177fe89..3b4e6f19c 100644
--- a/gui/app-next/src/domain/error-reporting/error-reporting.test.ts
+++ b/gui/app-next/src/domain/error-reporting/error-reporting.test.ts
@@ -33,7 +33,9 @@ let sink: FakeSink;
const setState = vi.fn();
beforeAll(async () => {
- setPlatform(fakePlatform({ errorReporting: { setState, sendCrash: async () => true } }));
+ setPlatform(
+ fakePlatform({ errorReporting: { setState, sendCrash: async () => true } })
+ );
fake = createFakeClient();
setClient(fake);
await initErrorReporting();
@@ -178,7 +180,9 @@ describe('reportError', () => {
describe('defineMetric', () => {
it('counts once per distinct attrs per session', () => {
- const used = defineMetric<{ method: string }>('test_method_used', { once: 'session' });
+ const used = defineMetric<{ method: string }>('test_method_used', {
+ once: 'session',
+ });
used({ method: 'manual' });
used({ method: 'manual' });
used({ method: 'auto' });
diff --git a/gui/app-next/src/domain/error-reporting/sentry.ts b/gui/app-next/src/domain/error-reporting/sentry.ts
index 11ecb67e5..29746c51d 100644
--- a/gui/app-next/src/domain/error-reporting/sentry.ts
+++ b/gui/app-next/src/domain/error-reporting/sentry.ts
@@ -114,7 +114,11 @@ function startReplay() {
return;
}
Sentry.addIntegration(
- Sentry.replayIntegration({ maskAllText: false, maskAllInputs: true, blockAllMedia: false })
+ Sentry.replayIntegration({
+ maskAllText: false,
+ maskAllInputs: true,
+ blockAllMedia: false,
+ })
);
}
@@ -140,7 +144,10 @@ function applyIdentity({ userId, sessionId }: ReportingIdentity) {
let appliedConsent = ErrorReportingConsent.UNDECIDED;
-function applyErrorReporting(next: ErrorReportingConsent, id: ReportingIdentity | null) {
+function applyErrorReporting(
+ next: ErrorReportingConsent,
+ id: ReportingIdentity | null
+) {
platform.errorReporting?.setState({
consent: next,
userId: id?.userId ?? '',
@@ -161,14 +168,18 @@ function watchLayers() {
sink().breadcrumb({
category: 'solarxr',
message: `connection ${event.status}`,
- data: event.closeCode === undefined ? undefined : { closeCode: event.closeCode },
+ data:
+ event.closeCode === undefined ? undefined : { closeCode: event.closeCode },
});
return;
case 'handler-error':
reportError(event.error, { tags: { rpc: event.name } });
return;
default:
- sink().breadcrumb({ category: 'solarxr.rpc', message: `${event.kind} ${event.name}` });
+ sink().breadcrumb({
+ category: 'solarxr.rpc',
+ message: `${event.kind} ${event.name}`,
+ });
}
});
diff --git a/gui/app-next/src/domain/error-reporting/testing.ts b/gui/app-next/src/domain/error-reporting/testing.ts
index fad196cfd..5504c944f 100644
--- a/gui/app-next/src/domain/error-reporting/testing.ts
+++ b/gui/app-next/src/domain/error-reporting/testing.ts
@@ -1,4 +1,10 @@
-import type { Breadcrumb, ErrorContext, MetricAttrs, ReportLevel, ReportSink } from './sink';
+import type {
+ Breadcrumb,
+ ErrorContext,
+ MetricAttrs,
+ ReportLevel,
+ ReportSink,
+} from './sink';
export interface FakeSink extends ReportSink {
errors: { error: unknown; context: ErrorContext }[];
diff --git a/gui/app-next/src/pages/design/design-page.tsx b/gui/app-next/src/pages/design/design-page.tsx
index d489f2364..bf5eb3fb3 100644
--- a/gui/app-next/src/pages/design/design-page.tsx
+++ b/gui/app-next/src/pages/design/design-page.tsx
@@ -63,7 +63,9 @@ export function DesignPage() {