fix: remove unused variables and apply prettier formatting

- Remove unused connectedCount and relayStatesForReq variables
- Fix prettier formatting in ReqViewer.tsx
- All tests passing (634/634)
- Build successful
This commit is contained in:
Claude
2025-12-22 16:25:42 +00:00
parent c60abe6df4
commit 1bb2727930
3 changed files with 53 additions and 39 deletions

View File

@@ -405,12 +405,12 @@ describe("getStatusText", () => {
};
it("should return correct text for each status", () => {
expect(
getStatusText({ ...baseState, status: "discovering" }),
).toBe("DISCOVERING");
expect(
getStatusText({ ...baseState, status: "connecting" }),
).toBe("CONNECTING");
expect(getStatusText({ ...baseState, status: "discovering" })).toBe(
"DISCOVERING",
);
expect(getStatusText({ ...baseState, status: "connecting" })).toBe(
"CONNECTING",
);
expect(getStatusText({ ...baseState, status: "loading" })).toBe("LOADING");
expect(getStatusText({ ...baseState, status: "live" })).toBe("LIVE");
expect(getStatusText({ ...baseState, status: "partial" })).toBe("PARTIAL");

View File

@@ -34,12 +34,8 @@ export function deriveOverallState(
const receivingCount = states.filter(
(s) => s.subscriptionState === "receiving",
).length;
const eoseCount = states.filter(
(s) => s.subscriptionState === "eose",
).length;
const errorCount = states.filter(
(s) => s.connectionState === "error",
).length;
const eoseCount = states.filter((s) => s.subscriptionState === "eose").length;
const errorCount = states.filter((s) => s.connectionState === "error").length;
const disconnectedCount = states.filter(
(s) => s.connectionState === "disconnected",
).length;