@@ -142,28 +142,42 @@ struct OpenClawWatchApp: App {
|
142 | 142 | @MainActor |
143 | 143 | extension WatchInboxStore { |
144 | 144 | fileprivate func configureScreenshotFixture() { |
| 145 | +let sentAtMs = Int(Date().timeIntervalSince1970 * 1000) |
| 146 | +self.greetingTextOverride = "Good morning" |
145 | 147 | self.consume( |
146 | 148 | execApprovalSnapshot: WatchExecApprovalSnapshotMessage( |
147 | 149 | approvals: [], |
148 | | - sentAtMs: Int(Date().timeIntervalSince1970 * 1000), |
| 150 | + sentAtMs: sentAtMs, |
149 | 151 | snapshotId: nil), |
150 | 152 | transport: "screenshot") |
151 | 153 | self.consume( |
152 | | -message: WatchNotifyMessage( |
153 | | -id: "watch-screenshot-quick-reply", |
154 | | -title: "Molty request", |
155 | | -body: "Molty Gateway checklist ready.", |
156 | | -sentAtMs: Int(Date().timeIntervalSince1970 * 1000), |
157 | | -promptId: "watch-screenshot-prompt", |
| 154 | +appSnapshot: WatchAppSnapshotMessage( |
| 155 | +gatewayStatusText: "Connected", |
| 156 | +gatewayConnected: true, |
| 157 | +agentName: "Molty", |
| 158 | +agentAvatarURL: nil, |
| 159 | +agentAvatarText: "M", |
158 | 160 | sessionKey: "watch-screenshot-session", |
159 | | - kind: "release-checklist", |
160 | | - details: nil, |
161 | | - expiresAtMs: nil, |
162 | | - risk: "medium", |
163 | | - actions: [ |
164 | | -WatchPromptAction(id: "approve", label: "Approve", style: nil), |
165 | | -WatchPromptAction(id: "later", label: "Later", style: "cancel"), |
166 | | -]), |
167 | | - transport: "screenshot") |
| 161 | + gatewayStableID: "watch-screenshot-gateway", |
| 162 | + talkStatusText: "Ready", |
| 163 | + talkEnabled: true, |
| 164 | + talkListening: false, |
| 165 | + talkSpeaking: false, |
| 166 | + pendingApprovalCount: 0, |
| 167 | + chatItems: [ |
| 168 | +WatchChatItem( |
| 169 | + id: "watch-screenshot-user-chat", |
| 170 | + role: "user", |
| 171 | + text: "What's on deck?", |
| 172 | + timestampMs: sentAtMs - 90_000), |
| 173 | +WatchChatItem( |
| 174 | + id: "watch-screenshot-molty-chat", |
| 175 | + role: "assistant", |
| 176 | + text: "Gateway is online and ready.", |
| 177 | + timestampMs: sentAtMs - 30_000), |
| 178 | +], |
| 179 | + chatStatusText: "Live gateway conversation", |
| 180 | + sentAtMs: sentAtMs, |
| 181 | + snapshotId: "watch-screenshot-now-face")) |
168 | 182 | } |
169 | 183 | } |