feat: 完善机巢任务实时状态、双路图传与继续查看入口

This commit is contained in:
2026-11-03 13:37:06 +08:00
parent 5d48e37cd7
commit 0ed0077ec4
28 changed files with 1326 additions and 213 deletions
@@ -8,7 +8,7 @@ final class DroneDockTaskFixedLayoutTests: XCTestCase {
private let compactSize = CGSize(width: 375, height: 146)
private let regularSize = CGSize(width: 402, height: 220)
private let phases: [DroneDockTaskDisplayPhase] = [
.loading, .navigating, .ready, .shooting, .paused, .returning,
.loading, .navigating, .ready, .shooting, .postShootUploading, .paused, .returning,
.completed, .failed, .blocked, .unknown, .readError
]
@@ -237,6 +237,7 @@ final class DroneDockTaskFixedLayoutTests: XCTestCase {
case .navigating: (title, action, actionTitle, enabled) = ("无人机正在前往点位", .refresh, "刷新任务状态", true)
case .ready: (title, action, actionTitle, enabled) = ("无人机已到达", .start, "开始拍摄", false)
case .shooting: (title, action, actionTitle, enabled) = ("正在拍摄", .refresh, "刷新任务状态", true)
case .postShootUploading: (title, action, actionTitle, enabled) = ("拍摄完毕上传中", .refresh, "刷新任务状态", true)
case .paused: (title, action, actionTitle, enabled) = ("拍摄已暂停", .resume, "继续拍摄", false)
case .returning: (title, action, actionTitle, enabled) = ("无人机正在返航", .refresh, "刷新任务状态", true)
case .completed: (title, action, actionTitle, enabled) = ("本次拍摄已完成", .materials, "查看素材", true)