Skip to content
Source
Sign inSign up
Open History to see the last commit

poses.ts

117 lines2.8 KB

1export interface Pose {
2 readonly id: string;
3 readonly platform: "ios" | "android";
4 /** A model name from the pool's catalog (`GET /v1/catalog`). */
5 readonly device: string;
6 readonly form: "phone" | "tablet";
7 readonly appearance: "light" | "dark";
8 /** Phones are portrait-locked; tablets and an unfolded Fold can start rotated. */
9 readonly landscape?: boolean;
10 readonly fold?: "closed" | "open";
11 readonly textSize?: "accessibility-large";
12 /** Why the pose is skipped unless named with --pose. */
13 readonly pending?: string;
15​
16const pose = (value: Pose) => value;
17​
18export const POSES: ReadonlyArray<Pose> = [
19 pose({
20 id: "iphone-se",
21 platform: "ios",
22 device: "iPhone SE (3rd generation)",
23 form: "phone",
24 appearance: "light",
25 }),
26 pose({
27 id: "iphone-18-pro-dark",
28 platform: "ios",
29 device: "iPhone 18 Pro",
30 form: "phone",
31 appearance: "dark",
32 }),
33 pose({
34 id: "iphone-duo-folded",
35 platform: "ios",
36 device: "iPhone Duo",
37 form: "phone",
38 appearance: "light",
39 fold: "closed",
40 pending:
41 "agent-device alert accept cannot see the iOS open-link prompt on the iPhone Duo, so the app never launches",
42 }),
43 pose({
44 id: "iphone-duo-unfolded",
45 platform: "ios",
46 device: "iPhone Duo",
47 form: "tablet",
48 appearance: "dark",
49 fold: "open",
50 pending:
51 "agent-device alert accept cannot see the iOS open-link prompt on the iPhone Duo, so the app never launches",
52 }),
53 pose({
54 id: "ipad-13-portrait",
55 platform: "ios",
56 device: "iPad Pro 13-inch (M5)",
57 form: "tablet",
58 appearance: "light",
59 }),
60 pose({
61 id: "ipad-13-landscape-large-text",
62 platform: "ios",
63 device: "iPad Pro 13-inch (M5)",
64 form: "tablet",
65 appearance: "dark",
66 landscape: true,
67 textSize: "accessibility-large",
68 }),
69 pose({
70 id: "pixel-10-pro-large-text",
71 platform: "android",
72 device: "Pixel 10 Pro",
73 form: "phone",
74 appearance: "light",
75 textSize: "accessibility-large",
76 }),
77 pose({
78 id: "pixel-fold-folded-dark",
79 platform: "android",
80 device: "Pixel 10 Pro Fold",
81 form: "phone",
82 appearance: "dark",
83 fold: "closed",
84 }),
85 pose({
86 id: "pixel-fold-unfolded",
87 platform: "android",
88 device: "Pixel 10 Pro Fold",
89 form: "tablet",
90 appearance: "light",
91 fold: "open",
92 }),
93 pose({
94 id: "pixel-fold-unfolded-landscape",
95 platform: "android",
96 device: "Pixel 10 Pro Fold",
97 form: "tablet",
98 appearance: "dark",
99 fold: "open",
100 landscape: true,
101 }),
102 pose({
103 id: "pixel-tablet-portrait",
104 platform: "android",
105 device: "Pixel Tablet",
106 form: "tablet",
107 appearance: "dark",
108 }),
109 pose({
110 id: "pixel-tablet-landscape",
111 platform: "android",
112 device: "Pixel Tablet",
113 form: "tablet",
114 appearance: "light",
115 landscape: true,
116 }),
117];