|
| 1 | +export type QaEvidenceGalleryStatus = "pass" | "fail" | "blocked" | "skipped"; |
| 2 | + |
| 3 | +export type QaEvidenceCoverageView = { |
| 4 | +id: string; |
| 5 | +role: string; |
| 6 | +}; |
| 7 | + |
| 8 | +export type QaEvidenceProducerContextFile = { |
| 9 | +href: string; |
| 10 | +path: string; |
| 11 | +preview: string | null; |
| 12 | +}; |
| 13 | + |
| 14 | +export type QaEvidenceMatrixCellView = { |
| 15 | +artifactKinds: string[]; |
| 16 | +artifactPaths: string[]; |
| 17 | +coverageIds: string[]; |
| 18 | +runner: { |
| 19 | +availability: string | null; |
| 20 | +command: string | null; |
| 21 | +lane: string | null; |
| 22 | +workflow: string | null; |
| 23 | +} | null; |
| 24 | +stage: string; |
| 25 | +status: string; |
| 26 | +surface: string; |
| 27 | +testId: string | null; |
| 28 | +title: string | null; |
| 29 | +}; |
| 30 | + |
| 31 | +export type QaEvidenceArtifactView = { |
| 32 | +exists: boolean; |
| 33 | +error: string | null; |
| 34 | +href: string | null; |
| 35 | +kind: string; |
| 36 | +mediaKind: "image" | "video" | "json" | "text" | "file"; |
| 37 | +path: string; |
| 38 | +preview: string | null; |
| 39 | +source: string; |
| 40 | +}; |
| 41 | + |
| 42 | +export type QaEvidenceGalleryEntryView = { |
| 43 | +artifacts: QaEvidenceArtifactView[]; |
| 44 | +coverage: QaEvidenceCoverageView[]; |
| 45 | +failureReason: string | null; |
| 46 | +id: string; |
| 47 | +kind: string; |
| 48 | +sourcePath: string | null; |
| 49 | +status: QaEvidenceGalleryStatus; |
| 50 | +title: string; |
| 51 | +}; |
| 52 | + |
| 53 | +export type QaEvidenceProducerContext = { |
| 54 | +commands: QaEvidenceProducerContextFile | null; |
| 55 | +kind: "ux-matrix"; |
| 56 | +manifest: |
| 57 | +| (QaEvidenceProducerContextFile & { |
| 58 | +path: string; |
| 59 | +runStatus: string | null; |
| 60 | +runId: string | null; |
| 61 | +}) |
| 62 | +| null; |
| 63 | +matrix: { |
| 64 | +cells: QaEvidenceMatrixCellView[]; |
| 65 | +counts: Record<string, number>; |
| 66 | +path: string; |
| 67 | +stages: string[]; |
| 68 | +surfaces: string[]; |
| 69 | +} | null; |
| 70 | +preflight: { |
| 71 | +adbDevices: QaEvidenceProducerContextFile | null; |
| 72 | +memory: QaEvidenceProducerContextFile | null; |
| 73 | +}; |
| 74 | +releaseLedger: (QaEvidenceProducerContextFile & { counts: Record<string, number> }) | null; |
| 75 | +rootPath: string; |
| 76 | +scorecard: QaEvidenceProducerContextFile | null; |
| 77 | +}; |
| 78 | + |
| 79 | +export type QaEvidenceGalleryModel = { |
| 80 | +counts: Record<QaEvidenceGalleryStatus, number>; |
| 81 | +entries: QaEvidenceGalleryEntryView[]; |
| 82 | +evidenceMode: string; |
| 83 | +evidencePath: string; |
| 84 | +generatedAt: string; |
| 85 | +profile: string | null; |
| 86 | +producerContext: QaEvidenceProducerContext | null; |
| 87 | +schemaVersion: number; |
| 88 | +}; |