Skip to content

Commit c82b2de

Browse files
BunsDevclaude
andcommitted
chore(fmt): fix formatting for release v0.16.0
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3db2e12 commit c82b2de

4 files changed

Lines changed: 7 additions & 15 deletions

File tree

apps/web/src/components/ConnectionIndicator.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ export const ConnectionIndicator = memo(function ConnectionIndicator() {
5050
{config.spin ? (
5151
<RefreshCwIcon className={`h-2.5 w-2.5 animate-spin ${config.iconColor}`} />
5252
) : (
53-
<span
54-
className={`relative inline-flex h-2 w-2 rounded-full ${config.dotColor}`}
55-
/>
53+
<span className={`relative inline-flex h-2 w-2 rounded-full ${config.dotColor}`} />
5654
)}
5755
</span>
5856
</TooltipTrigger>
@@ -62,9 +60,7 @@ export const ConnectionIndicator = memo(function ConnectionIndicator() {
6260
<div className="flex flex-col gap-0.5 text-[10px] text-muted-foreground">
6361
<span>Latency: {formatLatency(metrics.latencyMs)}</span>
6462
<span>Uptime: {formatUptime(metrics.uptimeMs)}</span>
65-
{metrics.reconnectCount > 0 && (
66-
<span>Reconnects: {metrics.reconnectCount}</span>
67-
)}
63+
{metrics.reconnectCount > 0 && <span>Reconnects: {metrics.reconnectCount}</span>}
6864
</div>
6965
</div>
7066
</TooltipPopup>

apps/web/src/hooks/useConnectionHealth.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import { useEffect, useRef, useState, useSyncExternalStore } from "react";
22

3-
import {
4-
createWsNativeApi,
5-
getTransportMetrics,
6-
onTransportStateChange,
7-
} from "../wsNativeApi";
3+
import { createWsNativeApi, getTransportMetrics, onTransportStateChange } from "../wsNativeApi";
84
import type { ConnectionMetrics, TransportState } from "../wsTransport";
95

106
export interface ConnectionHealth {

apps/web/src/lib/connectionSync.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ export interface ConnectionSyncManagerOptions {
3131
* Sets up a listener on the transport's `onReconnected` event.
3232
* Returns an unsubscribe function for cleanup.
3333
*/
34-
export function createConnectionSyncManager(
35-
options: ConnectionSyncManagerOptions,
36-
): () => void {
34+
export function createConnectionSyncManager(options: ConnectionSyncManagerOptions): () => void {
3735
const { transport, queryClient, onResync } = options;
3836

3937
const unsubscribe = transport.onReconnected(() => {

apps/web/src/wsTransport.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,9 @@ export class WsTransport {
213213
*/
214214
getMetrics(): ConnectionMetrics {
215215
const liveUptime =
216-
this._uptimeAnchor !== null ? this._uptimeMs + (Date.now() - this._uptimeAnchor) : this._uptimeMs;
216+
this._uptimeAnchor !== null
217+
? this._uptimeMs + (Date.now() - this._uptimeAnchor)
218+
: this._uptimeMs;
217219

218220
return {
219221
reconnectCount: this._reconnectCount,

0 commit comments

Comments
 (0)