The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 24, 09:00 UTC
test(web): keep settings viewport comparison private (#10307)
Julius Marminge committed
Sep 5, 2026 at 22:33 UTC
f1e84c28fe5982ecb507f4c934acf7a1a7b253b7
2 files changed
+1
-24
apps/web/src/components/settings/SettingsPanels.logic.test.ts
-23
@@ -14,7 +14,6 @@ import {
14
formatDiagnosticsDescription,
15
getChangedBrowserSettingLabels,
16
getChangedTypographySettingLabels,
17
- isSamePreviewViewport,
17
hasChangedBackgroundActivitySettings,
18
isProjectGroupingEnabled,
19
projectGroupingModeFromToggle,
@@ -282,25 +281,3 @@ describe("getChangedBrowserSettingLabels", () => {
281
]);
282
});
283
});
285
-
286
-describe("isSamePreviewViewport", () => {
287
- it("separates presets that share a size", () => {
288
- // Two presets can agree on width and height and still be different
289
- // entries in the picker, so the id has to take part in the comparison.
290
- expect(
291
- isSamePreviewViewport(
292
- { _tag: "preset", width: 390, height: 844, presetId: "iphone-12-pro" },
293
- { _tag: "preset", width: 390, height: 844, presetId: "ipad-mini" },
294
- ),
295
- ).toBe(false);
296
- });
297
-
298
- it("separates a freeform viewport from a preset of the same size", () => {
299
- expect(
300
- isSamePreviewViewport(
301
- { _tag: "freeform", width: 390, height: 844 },
302
- { _tag: "preset", width: 390, height: 844, presetId: "iphone-12-pro" },
303
- ),
304
- ).toBe(false);
305
- });
306
-});
apps/web/src/components/settings/SettingsPanels.logic.ts
+1
-1
@@ -126,7 +126,7 @@ export type BrowserDefaultSettings = Pick<
126
* reports every stored viewport as changed — including one that matches the
127
* default.
128
*/
129
-export function isSamePreviewViewport(
129
+function isSamePreviewViewport(
130
left: PreviewViewportSetting,
131
right: PreviewViewportSetting,
132
): boolean {