Skip to content

Snapshot

Defined in: packages/core/src/schema/snapshot.ts:4

A snapshot row.

optional a11yViolations?: string | null

Defined in: packages/core/src/schema/snapshot.ts:41

JSON array of the axe violations found on this capture (never blocking); null when none or not checked.


baselineId: string | null

Defined in: packages/core/src/schema/snapshot.ts:31

Baseline row the diff was computed against (null: no baseline, or legacy row).


baselineVersion: string | null

Defined in: packages/core/src/schema/snapshot.ts:33

That baseline’s updatedAt at diff time; compared on approval to detect drift.


optional browser?: string

Defined in: packages/core/src/schema/snapshot.ts:37

Engine the image was captured with.


buildId: string

Defined in: packages/core/src/schema/snapshot.ts:7


createdAt: string

Defined in: packages/core/src/schema/snapshot.ts:42


designUrl: string | null

Defined in: packages/core/src/schema/snapshot.ts:13

Figma URL declared by the story at capture time; null when none.


diffPassed: boolean | null

Defined in: packages/core/src/schema/snapshot.ts:21


diffPath: string | null

Defined in: packages/core/src/schema/snapshot.ts:18


diffPixels: number | null

Defined in: packages/core/src/schema/snapshot.ts:19


diffRatio: number | null

Defined in: packages/core/src/schema/snapshot.ts:20


durationMs: number | null

Defined in: packages/core/src/schema/snapshot.ts:39

Milliseconds the renderer spent on this capture; null when it reported none or nothing rendered.


envChange: string | null

Defined in: packages/core/src/schema/snapshot.ts:27

JSON EnvironmentChange when the capture environment differed from the baseline and the snapshot was accepted as a migration.


id: string

Defined in: packages/core/src/schema/snapshot.ts:5


infraHash: string | null

Defined in: packages/core/src/schema/snapshot.ts:25


inherited: boolean

Defined in: packages/core/src/schema/snapshot.ts:29

True when inherited unchanged from the baseline without rendering.


optional mode?: string | null

Defined in: packages/core/src/schema/snapshot.ts:35

Resolved mode definition (JSON) — display/capture only; identity is viewportName.


projectId: string

Defined in: packages/core/src/schema/snapshot.ts:6


reviewedAt: string | null

Defined in: packages/core/src/schema/snapshot.ts:24


reviewedBy: string | null

Defined in: packages/core/src/schema/snapshot.ts:23


screenshotPath: string

Defined in: packages/core/src/schema/snapshot.ts:17


status: "pending" | "approved" | "rejected" | "new" | "unchanged" | "changed"

Defined in: packages/core/src/schema/snapshot.ts:22


storyId: string

Defined in: packages/core/src/schema/snapshot.ts:8


storyImportPath: string | null

Defined in: packages/core/src/schema/snapshot.ts:11


storyName: string

Defined in: packages/core/src/schema/snapshot.ts:9


storyTitle: string

Defined in: packages/core/src/schema/snapshot.ts:10


updatedAt: string

Defined in: packages/core/src/schema/snapshot.ts:43


viewportHeight: number

Defined in: packages/core/src/schema/snapshot.ts:16


viewportName: string

Defined in: packages/core/src/schema/snapshot.ts:14


viewportWidth: number

Defined in: packages/core/src/schema/snapshot.ts:15