chore(build): rebuild bundle for v2 crop fix + tighten Device.model
CI / test (push) Has been cancelled

The crop-aspect fix didn't reach production on the prior deploy because
public/build/ was 5 days stale. Rebuilds the SPA bundle so the
panelDims-driven CropEditor / StickerCanvas / FrameCard ship.

Also makes Device.model required in the TS type (was optional in this
session's first cut to placate test fixtures) and adds `model: 'v1'` to
every test Device fixture. A new device row from the API always has a
model, so the type should reflect that — leaving it optional was a trap
for production code that defensively assumed undefined.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-14 12:29:12 -04:00
parent 081ca83613
commit e57e711fcc
20 changed files with 17 additions and 9 deletions
@@ -37,6 +37,7 @@ const makeDevice = (overrides: Partial<Device> = {}): Device => ({
mac: 'AA', mac: 'AA',
name: 'Living Room', name: 'Living Room',
orientation: 'landscape', orientation: 'landscape',
model: 'v1',
rotationIntervalMinutes: 60, rotationIntervalMinutes: 60,
wakeTimes: [], wakeTimes: [],
timezone: 'UTC', timezone: 'UTC',
@@ -26,6 +26,7 @@ const makeDevice = (overrides: Partial<Device> = {}): Device => ({
mac: 'AA:BB:CC:DD:EE:FF', mac: 'AA:BB:CC:DD:EE:FF',
name: 'Living Room', name: 'Living Room',
orientation: 'landscape', orientation: 'landscape',
model: 'v1',
rotationIntervalMinutes: 60, rotationIntervalMinutes: 60,
wakeTimes: [], wakeTimes: [],
timezone: 'America/Chicago', timezone: 'America/Chicago',
@@ -41,6 +41,7 @@ const makeDevice = (overrides: Partial<Device> = {}): Device => ({
mac: 'AA', mac: 'AA',
name: 'Den', name: 'Den',
orientation: 'landscape', orientation: 'landscape',
model: 'v1',
rotationIntervalMinutes: 60, rotationIntervalMinutes: 60,
wakeTimes: [], wakeTimes: [],
timezone: 'UTC', timezone: 'UTC',
+1
View File
@@ -8,6 +8,7 @@ const makeDevice = (overrides: Partial<Device> = {}): Device => ({
mac: 'AA:BB:CC:DD:EE:FF', mac: 'AA:BB:CC:DD:EE:FF',
name: 'Living Room', name: 'Living Room',
orientation: 'landscape', orientation: 'landscape',
model: 'v1',
rotationIntervalMinutes: 60, rotationIntervalMinutes: 60,
wakeTimes: [], wakeTimes: [],
timezone: 'America/Chicago', timezone: 'America/Chicago',
+1
View File
@@ -69,6 +69,7 @@ const makeDevice = (overrides: Partial<Device> = {}): Device => ({
mac: 'AA:BB:CC:DD:EE:FF', mac: 'AA:BB:CC:DD:EE:FF',
name: 'Living Room', name: 'Living Room',
orientation: 'landscape', orientation: 'landscape',
model: 'v1',
rotationIntervalMinutes: 60, rotationIntervalMinutes: 60,
wakeTimes: [], wakeTimes: [],
timezone: 'America/Chicago', timezone: 'America/Chicago',
@@ -79,6 +79,7 @@ const makeDevice = (overrides: Partial<Device> = {}): Device => ({
mac: 'AA:BB:CC:DD:EE:FF', mac: 'AA:BB:CC:DD:EE:FF',
name: 'Living Room', name: 'Living Room',
orientation: 'landscape', orientation: 'landscape',
model: 'v1',
rotationIntervalMinutes: 60, rotationIntervalMinutes: 60,
wakeTimes: [], wakeTimes: [],
timezone: 'America/Chicago', timezone: 'America/Chicago',
@@ -55,6 +55,7 @@ const makeDevice = (overrides: Partial<Device> = {}): Device => ({
mac: 'AA', mac: 'AA',
name: 'Living Room', name: 'Living Room',
orientation: 'landscape', orientation: 'landscape',
model: 'v1',
rotationIntervalMinutes: 60, rotationIntervalMinutes: 60,
wakeTimes: [], wakeTimes: [],
timezone: 'UTC', timezone: 'UTC',
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
function e(e,t){return e===`v1`?t===`landscape`?{width:1600,height:960}:{width:960,height:1600}:t===`landscape`?{width:1600,height:1200}:{width:1200,height:1600}}export{e as t};
+1 -1
View File
@@ -14,7 +14,7 @@
<meta name="mobile-web-app-capable" content="yes" /> <meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="default" /> <meta name="apple-mobile-web-app-status-bar-style" content="default" />
<meta name="apple-mobile-web-app-title" content="pictureFrame" /> <meta name="apple-mobile-web-app-title" content="pictureFrame" />
<script type="module" crossorigin src="/build/assets/index-BA_yAOa7.js"></script> <script type="module" crossorigin src="/build/assets/index-vGi2xK-_.js"></script>
<link rel="modulepreload" crossorigin href="/build/assets/_plugin-vue_export-helper-BNDVmFr7.js"> <link rel="modulepreload" crossorigin href="/build/assets/_plugin-vue_export-helper-BNDVmFr7.js">
<link rel="stylesheet" crossorigin href="/build/assets/index-BlLBHR1q.css"> <link rel="stylesheet" crossorigin href="/build/assets/index-BlLBHR1q.css">
</head> </head>