mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 15:45:48 +03:00
[GH-ISSUE #729] screenshots: add missing ASC dimensions (1206x2622 and 1668x2420) with TDD coverage #196
Labels
No labels
bug
bug
documentation
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/App-Store-Connect-CLI#196
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cursor[bot] on GitHub (Feb 22, 2026).
Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/729
Summary
Add missing App Store Connect screenshot dimensions to the internal screenshot-size registry:
APP_IPHONE_67: add1206x2622(+ landscape2622x1206)APP_IPAD_PRO_3GEN_11: add1668x2420(+ landscape2420x1668)These should be accepted by local screenshot validation and visible in
asc screenshots sizesoutput.Why
Recent ASC screenshot specs include these sizes, but the current registry does not fully cover them. This causes local validation mismatch and upload friction for modern devices.
External context:
Current gap in code
internal/asc/screenshot_sizes.gocurrently includes:1260x2736,1290x2796,1320x2868,1284x27781668x2388It does not include
1206x2622(6.3") and1668x2420(11").Proposed change
Update
internal/asc/screenshot_sizes.go:iphone67Dimensionsto includeportraitLandscape(1206, 2622)ipadPro11Dimensionsto includeportraitLandscape(1668, 2420)Keep existing dimensions (do not remove legacy-supported entries).
Testing (must follow current repo testing discipline)
Follow TDD and current testing patterns from
AGENTS.md+docs/TESTING.md:ASC_BYPASS_KEYCHAIN=1, no host keychain dependence).Required test updates
Unit tests (
internal/asc/screenshot_sizes_test.go)ValidateScreenshotDimensionsaccepts:1206x2622and2622x1206forAPP_IPHONE_671668x2420and2420x1668forAPP_IPAD_PRO_3GEN_11ScreenshotSizeEntryForDisplayType(...).CLI-level tests (
internal/cli/cmdtest/assets_screenshots_sizes_test.go)screenshots sizes --output jsoncontains the new dimensions for:APP_IPHONE_67APP_IPAD_PRO_3GEN_11Validation commands (expected in PR handoff)
Run targeted tests first, then full gate:
ASC_BYPASS_KEYCHAIN=1 go test ./internal/asc -run ScreenshotSizesASC_BYPASS_KEYCHAIN=1 go test ./internal/cli/cmdtest -run AssetsScreenshotsmake formatmake lintASC_BYPASS_KEYCHAIN=1 make testAcceptance criteria
ascaccepts both new dimension pairs in local validation paths.asc screenshots sizessurfaces these dimensions for the correct display types.@rudrankriyam commented on GitHub (Feb 22, 2026):
@cursor please implement
@cursor[bot] commented on GitHub (Feb 22, 2026):
Implemented end-to-end with TDD on
cursor/asc-screenshot-dimensions-5f95and pushed to origin. I added the missing ASC screenshot dimensions in the registry and expanded coverage in both unit and CLI tests.internal/asc/screenshot_sizes.go:APP_IPHONE_67now includes1206x2622+2622x1206APP_IPAD_PRO_3GEN_11now includes1668x2420+2420x1668internal/asc/screenshot_sizes_test.go:ScreenshotSizeEntryForDisplayType(...)for both display typesinternal/cli/cmdtest/assets_screenshots_sizes_test.go:screenshots sizes --output jsonincludes the new dimensionsValidation I ran:
internal/ascandinternal/cli/cmdtestASC_BYPASS_KEYCHAIN=1 go test ./internal/asc -run 'TestValidateScreenshotDimensionsAcceptsLatestLargeIPhoneSizes|TestValidateScreenshotDimensionsAcceptsIPadPro11LatestSizes|TestScreenshotSizeEntryIncludesLatestLargeIPhoneDimensions|TestScreenshotSizeEntryIncludesIPadPro11Dimensions'ASC_BYPASS_KEYCHAIN=1 go test ./internal/cli/cmdtest -run 'TestAssetsScreenshotsSizesOutputIncludesLatestIPhone67AndIPad11Dimensions|TestAssetsScreenshotsUploadAcceptsLatestIPhone67AndIPad11Dimensions'ASC_BYPASS_KEYCHAIN=1 go test ./internal/asc -run ScreenshotSizes(passes; no matching tests)ASC_BYPASS_KEYCHAIN=1 go test ./internal/cli/cmdtest -run AssetsScreenshotsmake formatmake lintASC_BYPASS_KEYCHAIN=1 make testCommits pushed:
95f9c91— screenshots: add missing 6.7 and iPad 11 dimensionsa3c8f5a— style: apply gofumpt alignment in screenshot sizesWalkthrough artifact: