Repository navigation
Add iPhone Duo support and Duo App Store screenshots - #24
Conversation
- Introduce CertificateRevocationSummary to consolidate revocation display logic - Add .crlOnly case to RevocationStatus for certificates without OCSP responders - Add hasOCSPResponder and hasCRLDistributionPoints helpers to CertificateDetails - Extract fallbackStatus method in RevocationChecker for clearer error handling - Simplify RevocationStatusView by delegating to revocation summary - Add tests for RevocationChecker fallback logic and CertificateRevocationSummary - Update project.yml and testflight.sh configuration
Adapt layout decisions to the live container instead of the device, adopt Duo-only APIs where they improve the experience, and capture the screenshots App Store Connect requires for iOS 27.1 submissions from April 2027. App changes: - Gate regular-width layouts on container width as well as size class. The Duo inner display is regular width in portrait but too narrow for the fixed side rail, so those views now fall back to the compact layout. - Add InspectFoldMetrics, which reads reservedRegions(kind: .division) to keep content clear of the hinge when the device is partially folded, and stack the input card controls so the field never separates from its buttons. - Show the certificate chain beside the certificate rows via ArrangementView on iOS 27.1 and later, falling back to the existing single-column list elsewhere. - Allow Monitor to open in a second window, which Duo can show next to Inspect on its inner display. Requires UIApplicationSupportsMultipleScenes. Screenshot pipeline: - Add duo-outer and duo-inner sets uploaded as APP_IPHONE_DUO. - Resolve a runtime per device type. iOS 27.1 only runs iPhone Duo while the iPhone 6.5" and iPad 12.9" types only exist on iOS 27.0, so the previously pinned single runtime could not provision every set. - Verify Duo captures instead of trusting them. The device presents one display at a time, so a capture taken in the wrong pose returns an identical black frame for every scenario. - Replace each display type's set on upload rather than appending, and default to the Duo set since only it changed. Output survives rebuilds except for the set being captured, because inner captures need a manual unfold in Device Hub.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d314600032
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
The app now uses iOS 27.1 APIs (ArrangementView, reservedRegions). Those symbols only exist in the iOS 27 SDK, and an @available annotation cannot guard a missing declaration, so the build fails against an older SDK. The macos-26 image ships Xcode 26.6 only; xcode-27 provides Xcode 27.1 as its default, matching local development.
Addresses three review findings: - Capturing the inner Duo display was unreachable. capture_all always ran the outer set first, whose blank-display check exits when the device is unfolded, so the documented inner command could never complete. Which display to capture is now explicit via SCREENSHOTS_DUO_DISPLAY (outer, inner, both). "both" pauses for the pose change; without a terminal it fails with instructions to run the two passes separately. - Environment values were clobbered by .env. load_env_file sourced the file unconditionally, so `just app-store-screenshots-all` silently ran the Duo set and CAPTURE_DUO_INNER=YES never took effect. Preset values are now snapshotted and restored around the file load. - The live monitor toggle went inert when only the monitor window remained. The toggle handler was configured in a scene's task and cleared in onDisappear, so closing the main window left it nil and toggling only updated persisted state without starting or stopping the VPN. Ownership moves to InspectApp.init, which is MainActor-isolated and lives for the process. Also clear only the Duo display being captured, so a set produced in the other posture survives a rebuild.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bece2acff6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
SET_DEVICE_TYPES used a multiline literal whose iPad entries carried eight leading spaces. `IFS= read -r` preserves that indentation, so the padded identifier reached `simctl create` and failed. The existing Inspect App Store iPad simulator masked this; any machine creating it fresh could not provision the ipad or all sets. Split on whitespace instead, which also tolerates the value being written on one line or several.
Keep only comments that explain a constraint or trap the code cannot show: the bash 3.2 array limitation, why runtimes are probed per device type, why the arrangement split omits .axes(.horizontal), why the toggle handler is app-scoped rather than scene-scoped, and the Duo's one-display-at-a-time capture behaviour. Drop the ones that restated a name or signature. No behaviour changes.
The unfolded Duo measured 867pt wide, under the 900pt dashboard threshold, so it fell back to the single-column layout even though its size class is regular. That read as "unfold does nothing". The threshold was too aggressive for a second reason: at 900pt it also pushed iPad mini (744pt) and iPad 11" (834pt) out of the dashboard, which they had before this branch. Lowered to 700pt so every real regular-width device that was two-column before stays two-column, while the unfolded portrait pose (~585pt) correctly stays single. Lowering the threshold exposed the fixed 360pt side rail starving the main column, so the rail now scales with the container and a test pins the main column above 340pt at every width that permits a dashboard. Verified on the iPhone Duo simulator: unfolded landscape renders the two-column dashboard with side rail. Widths in the tests are measured, not assumed.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c43009f6a4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
The regular input card hard-coded its sample column to 300pt, so its two columns needed a 698pt container. The gate admitted regular layout from 680pt, leaving an 18pt window where the card rendered wider than its container and clipped symmetrically on both edges. The sample column now has a 240pt floor and keeps 300pt as its ideal, so the columns compress instead of overflowing. With that floor the layout's true minimum is 638pt: 64pt root padding + 36pt card padding + 278pt of buttons + 20pt gap + 240pt sample column. The gate is set to that measured minimum, which also brings the unfolded portrait pose (669pt) into the two-column layout it was previously denied. Verified on the iPhone Duo simulator in portrait: two columns, no clipping, and the heading renders in full.
The compact layout rendered only the input card, leaving 181pt of blank space below it on the Duo outer display (466x678pt). The regular layout has shown an InspectionWorkspaceCard in this state all along; the compact one never did. Measured before and after on the folded outer display: the card block grew from 98..497pt to 98..677pt, so the screen is filled instead of ending two thirds up. The remaining 105pt of right-hand space is the system vertical tab bar's safe area on the Duo outer display, not app padding: the card is symmetric (20pt each side) inside the 381pt safe content area.
Adds iPhone Duo layouts with container-width gates, fold-aware content placement, certificate chain arrangements, and a separate monitor window backed by an app-scoped manager.
Certificate revocation checks run automatically for the server certificate. Security error codes distinguish revoked certificates and missing positive revocation responses; expired certificates, CRL download failures, and other evaluation errors retain their diagnostics. Redundant comments and unused screenshot helpers are removed.
The screenshot script supports selected device sets, separate outer/inner captures, per-device runtime selection, environment overrides, and replacement uploads to APP_IPHONE_DUO.
Validation:
Screenshot assets still need recapturing before App Store submission. Four outer PNGs exist locally and pass dimension validation, but Inspect and host-detail captures are blank and Monitor shows an IPC error. The inner folder is empty. The live iOS 2.5.3 version has iPhone/iPad screenshots and no Duo set. No screenshot upload is included in this PR.