From a2c5ef57fe1d397799eb7a8d3825b46488fdf04c Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Sat, 29 Aug 2026 06:59:28 -0700 Subject: [PATCH] remove old logging --- e2e/specs/composer.spec.ts | 14 ------------- src/app/components/SpaceMenuRooms.svelte | 26 ------------------------ 2 files changed, 40 deletions(-) diff --git a/e2e/specs/composer.spec.ts b/e2e/specs/composer.spec.ts index 61bd83ae..6fa13f38 100644 --- a/e2e/specs/composer.spec.ts +++ b/e2e/specs/composer.spec.ts @@ -376,15 +376,6 @@ test("US-058 drafts survive navigating away", async ({seed, as}) => { // Drafts live in memory, so every move here is an in-app navigation — a reload would clear them // whether or not they were kept. const page = await as(users.alice, chatPath(users.bob.pubkey)) - - // TEMPORARY DIAGNOSTIC - page.on("console", message => { - if (message.text().startsWith("DIAG") || message.type() === "error") { - console.log("DIAG console:", message.type(), message.text().slice(0, 300)) - } - }) - page.on("pageerror", error => console.log("DIAG pageerror:", String(error).slice(0, 300))) - // END TEMPORARY DIAGNOSTIC const editor = composer(page) const rooms = page.locator(".secondary-nav") @@ -394,11 +385,6 @@ test("US-058 drafts survive navigating away", async ({seed, as}) => { await editor.pressSequentially("still thinking about this") await page.locator('.primary-nav [data-tip="space"]').click() - - // TEMPORARY DIAGNOSTIC - await page.waitForTimeout(10000) - // END TEMPORARY DIAGNOSTIC - await rooms.getByRole("link", {name: "General"}).click() await expect(timeline(page).getByText("morning all")).toBeVisible() diff --git a/src/app/components/SpaceMenuRooms.svelte b/src/app/components/SpaceMenuRooms.svelte index 6d2d4b77..da62de16 100644 --- a/src/app/components/SpaceMenuRooms.svelte +++ b/src/app/components/SpaceMenuRooms.svelte @@ -45,32 +45,6 @@ } let term = $state("") - - // TEMPORARY DIAGNOSTIC - $effect(() => { - try { - console.log( - "DIAG rooms", - url, - "userRooms", - JSON.stringify($userRooms), - "otherRooms", - JSON.stringify($otherRooms), - "listRooms", - JSON.stringify($roomLists.roomsForUrl($user.pubkey, url).get()), - "spaceRooms", - JSON.stringify( - $rooms - .forUrl(url) - .get() - .map(room => room.h), - ), - ) - } catch (error) { - console.log("DIAG rooms threw", String(error)) - } - }) - // END TEMPORARY DIAGNOSTIC {#snippet content()}