fix(mobile): capture a lit 6.9-inch lock screen in the agent-activity showcase (#13522)
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
1 parent
8d7b5e998c
commit
9c524d5771
4 files changed
+28
-9
No files matched your search
@@ -25,6 +25,9 @@ export async function stageShowcaseAgentActivity(
|
||||
ios: { allowAlert: true, allowBadge: true, allowSound: true },
|
||||
});
|
||||
if (!permission.granted) return `notification permission ${permission.status}`;
|
||||
// A previous appearance's pass left its alert delivered; it would stack
|
||||
// under the new one.
|
||||
await Notifications.dismissAllNotificationsAsync();
|
||||
|
||||
if (Platform.OS === "android") {
|
||||
return (
|
||||
|
||||
@@ -63,14 +63,14 @@ multiplies the run by six; only the native build is shared.
|
||||
|
||||
The default matrix is:
|
||||
|
||||
| Output folder | Capture target | Upload dimensions | Store slot |
|
||||
| ------------------------------------- | ------------------------- | ----------------- | ----------------------------------------- |
|
||||
| `apple/iphone-6.9/dark/t3-code/` | iPhone 17 Pro Max | 1320×2868 | App Store Connect iPhone 6.9-inch |
|
||||
| `apple/iphone-6.5/dark/t3-code/` | disposable iPhone 14 Plus | 1284×2778 | App Store Connect iPhone 6.5-inch |
|
||||
| `apple/ipad-13/dark/t3-code/` | iPad Pro 13-inch (M5) | 2752×2064 | App Store Connect iPad 13-inch, landscape |
|
||||
| `google-play/phone/dark/t3-code/` | Pixel AVD at 420 dpi | 1080×1920 | Google Play phone, portrait 9:16 |
|
||||
| `google-play/tablet-7/dark/t3-code/` | Pixel AVD at 600dp width | 1080×1920 | Google Play 7-inch tablet, portrait 9:16 |
|
||||
| `google-play/tablet-10/dark/t3-code/` | Pixel AVD at 800dp width | 1440×2560 | Google Play 10-inch tablet, portrait 9:16 |
|
||||
| Output folder | Capture target | Upload dimensions | Store slot |
|
||||
| ------------------------------------- | ---------------------------- | ----------------- | ----------------------------------------- |
|
||||
| `apple/iphone-6.9/dark/t3-code/` | disposable iPhone 17 Pro Max | 1320×2868 | App Store Connect iPhone 6.9-inch |
|
||||
| `apple/iphone-6.5/dark/t3-code/` | disposable iPhone 14 Plus | 1284×2778 | App Store Connect iPhone 6.5-inch |
|
||||
| `apple/ipad-13/dark/t3-code/` | iPad Pro 13-inch (M5) | 2752×2064 | App Store Connect iPad 13-inch, landscape |
|
||||
| `google-play/phone/dark/t3-code/` | Pixel AVD at 420 dpi | 1080×1920 | Google Play phone, portrait 9:16 |
|
||||
| `google-play/tablet-7/dark/t3-code/` | Pixel AVD at 600dp width | 1080×1920 | Google Play 7-inch tablet, portrait 9:16 |
|
||||
| `google-play/tablet-10/dark/t3-code/` | Pixel AVD at 800dp width | 1440×2560 | Google Play 10-inch tablet, portrait 9:16 |
|
||||
|
||||
Each target captures thread, terminal, review, thread list, and environments, and every target but
|
||||
the iPad also captures agent activity. Each palette folder's five or six screenshots satisfy the configured Apple limit of 1–10, Google
|
||||
|
||||
@@ -104,7 +104,9 @@ const config: ShowcaseConfig = {
|
||||
{
|
||||
id: "iphone-6.9",
|
||||
platform: "ios",
|
||||
simulator: "iPhone 17 Pro Max",
|
||||
// A disposable device lands on the newest runtime, whose default lock
|
||||
// screen wallpaper suits both appearances; a stock one may be older.
|
||||
simulator: "T3 Showcase iPhone 17 Pro Max",
|
||||
simulatorDeviceType: "com.apple.CoreSimulator.SimDeviceType.iPhone-17-Pro-Max",
|
||||
appearance: "dark",
|
||||
theme: DEFAULT_SHOWCASE_THEME,
|
||||
|
||||
@@ -838,6 +838,20 @@ async function suppressIosSystemFollowUps(udid: string): Promise<void> {
|
||||
|
||||
async function normalizeIosSimulator(appearance: ShowcaseAppearance, udid: string): Promise<void> {
|
||||
await runCommand("xcrun", ["simctl", "ui", udid, "appearance", appearance]);
|
||||
// Always-on displays (Pro Max) dim a locked screen instead of turning it
|
||||
// off, which the lock-screen wake cannot tell from a lit one. Without it the
|
||||
// locked display goes dark and the wake lights it fully.
|
||||
await runCommand("xcrun", [
|
||||
"simctl",
|
||||
"spawn",
|
||||
udid,
|
||||
"defaults",
|
||||
"write",
|
||||
"com.apple.springboard",
|
||||
"SBEnableAlwaysOn",
|
||||
"-bool",
|
||||
"false",
|
||||
]);
|
||||
await runCommand("xcrun", [
|
||||
"simctl",
|
||||
"status_bar",
|
||||
|
||||
Reference in new issue
Block a user