feat sync live analysis viewer state

这个提交包含在:
cryptocommuniums-afk
2026-03-16 19:19:46 +08:00
父节点 31bead3452
当前提交 922a9fb63f
修改 3 个文件,包含 142 行新增23 行删除

查看文件

@@ -75,6 +75,10 @@ test("live camera switches into viewer mode when another device already owns ana
await expect(page.getByText("同步观看模式")).toBeVisible();
await expect(page.getByText(/同步观看|重新同步/).first()).toBeVisible();
await expect(page.getByText("当前设备已锁定为观看模式")).toBeVisible();
await expect(page.getByTestId("live-camera-viewer-sync-card")).toContainText("其他设备实时分析");
await expect(page.getByTestId("live-camera-viewer-sync-card")).toContainText("移动端");
await expect(page.getByTestId("live-camera-viewer-sync-card")).toContainText("均衡模式");
await expect(page.getByTestId("live-camera-viewer-sync-card")).toContainText("猩猩");
await expect(page.getByTestId("live-camera-score-overall")).toBeVisible();
});

查看文件

@@ -776,6 +776,15 @@ export async function installAppMocks(
lastHeartbeatAt: nowIso(),
snapshot: {
phase: "analyzing",
title: "其他设备实时分析",
sessionMode: "practice",
qualityPreset: "balanced",
facingMode: "environment",
deviceKind: "mobile",
avatarEnabled: true,
avatarKey: "gorilla",
avatarLabel: "猩猩",
updatedAt: Date.parse(nowIso()),
currentAction: "forehand",
rawAction: "forehand",
durationMs: 3200,