end to end app store screenshot creation using AI
TypeScript agentic-aiappleappstoreautomateclaudecursordesigngenerateiosios-appmarketingscreenshotskillsskills-shswiftswiftuiui
fix: keep the 3 % fit tolerance for non-Duo devices
Parth Jadhav666ee80b1a02
diff --git a/skills/app-store-screenshots/template/docs/testing/e2e.md b/skills/app-store-screenshots/template/docs/testing/e2e.mdindex e2d4c60..c03e0ad 100644--- a/skills/app-store-screenshots/template/docs/testing/e2e.md+++ b/skills/app-store-screenshots/template/docs/testing/e2e.md@@ -175,7 +175,7 @@ Two fixes came out of this:Fixes from the review of PR #44.-- **Duo captures are matched within 0.5 %.** The two displays differ by 2.35 %, and the earlier 3 % tolerance let an outer capture pass as inner, so it was cropped without a warning. Other devices use 1 %, since every current iPhone capture size is within 0.4 %.+- **Duo captures are matched within 0.5 %.** The two displays differ by 2.35 %, and the earlier 3 % tolerance let an outer capture pass as inner, so it was cropped without a warning. Other devices keep 3 %, which covers every Apple Watch size: they differ from the Ultra's screen by up to 2.6 %.- **Inline (data URI) captures are decoded on load,** so their size is known after a reload.- **Bezels are measured with a scanline flood fill over the alpha channel only.** All nine bundled bezels now measure in 250 ms instead of 2,065 ms (Node 24), with peak memory at 258 MB instead of 561 MB. The results are identical.diff --git a/skills/app-store-screenshots/template/src/components/editor/device-frames.tsx b/skills/app-store-screenshots/template/src/components/editor/device-frames.tsxindex 63fd750..66930a0 100644--- a/skills/app-store-screenshots/template/src/components/editor/device-frames.tsx+++ b/skills/app-store-screenshots/template/src/components/editor/device-frames.tsx@@ -354,8 +354,9 @@ export function IPad({ src, alt = "", style, hideEmpty }: FrameProps) {// A capture whose aspect is off by more than this is letterboxed rather than// cropped: cropping would cut real UI, which is worse than a visible bar.-// iPhone captures of every current size are within 0.4 % of the bezel's screen.-const FIT_TOLERANCE = 0.01;+// Loose enough for every size a device accepts: Apple Watch slots differ from+// the Ultra's 422 × 514 screen by up to 2.6 %.+const FIT_TOLERANCE = 0.03;// The two iPhone Duo displays differ by only 2.35 % (1398 × 2034 against// 2007 × 2853), so Duo captures must match far more closely to tell an outer// capture from an inner one. Scaled-down captures of the right display pass.