From 00750721f41e856909f21818bafb4aaa722c5da9 Mon Sep 17 00:00:00 2001 From: Ben Vinegar Date: Fri, 3 Jul 2026 14:13:28 -0400 Subject: [PATCH] chore: clean up easy maintenance tasks --- .changeset/orange-onions-roll.md | 2 ++ package.json | 6 +++--- test/storageStress.test.ts | 4 ++-- viewer/src/styles.css | 8 ++++---- 4 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 .changeset/orange-onions-roll.md diff --git a/.changeset/orange-onions-roll.md b/.changeset/orange-onions-roll.md new file mode 100644 index 0000000..a845151 --- /dev/null +++ b/.changeset/orange-onions-roll.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/package.json b/package.json index 4fb53ef..5486a55 100644 --- a/package.json +++ b/package.json @@ -65,8 +65,8 @@ "access": "public" }, "scripts": { - "dev": "vite build && (vite build --watch & node --watch server/index.ts)", - "start": "vite build && node server/index.ts", + "dev": "npm run build:viewer && (npm run build:viewer -- --watch & node --watch server/index.ts)", + "start": "npm run build:viewer && node server/index.ts", "build:viewer": "vite build", "build:embed": "vite build -c viewer/vite.embed.config.ts", "mcp": "node mcp/server.ts", @@ -81,7 +81,7 @@ "changeset:status": "changeset status", "release:version": "changeset version", "typecheck": "tsc --noEmit && tsc -p tsconfig.workers.json --noEmit && tsc -p tsconfig.viewer.json --noEmit", - "build": "tsc -p tsconfig.build.json && vite build && npm run build:embed", + "build": "tsc -p tsconfig.build.json && npm run build:viewer && npm run build:embed", "deploy": "npm run build:viewer && wrangler deploy", "dev:cloud": "npm run build:viewer && wrangler dev", "prepack": "npm run build", diff --git a/test/storageStress.test.ts b/test/storageStress.test.ts index 607167c..96f736a 100644 --- a/test/storageStress.test.ts +++ b/test/storageStress.test.ts @@ -53,9 +53,9 @@ function randomParts(r: () => number): unknown[] { case 2: return { kind: "code", code: text(r), language: pick(r, ["ts", "py", "text"]) }; case 3: - return { kind: "json", json: { v: int(r, 1000), s: text(r) } }; + return { kind: "json", data: { v: int(r, 1000), s: text(r) } }; default: - return { kind: "terminal", terminal: text(r) }; + return { kind: "terminal", text: text(r) }; } }); } diff --git a/viewer/src/styles.css b/viewer/src/styles.css index a003365..4152c64 100644 --- a/viewer/src/styles.css +++ b/viewer/src/styles.css @@ -1594,10 +1594,10 @@ iframe { /* phone native surfaces: prevent each built-in renderer from forcing page overflow */ @media (max-width: 700px) { - .imagepart, - .tracepart, - .jsonpart, - .part-unsupported, + .image-surface, + .trace-surface, + .json-surface, + .surface-unsupported, .cmts { padding-left: 10px; padding-right: 10px;