Snapshot
Defined in: packages/core/src/schema/snapshot.ts:4
A snapshot row.
Properties
Section titled “Properties”a11yViolations?
Section titled “a11yViolations?”
optionala11yViolations?: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
Section titled “baselineId”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
Section titled “baselineVersion”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.
browser?
Section titled “browser?”
optionalbrowser?:string
Defined in: packages/core/src/schema/snapshot.ts:37
Engine the image was captured with.
buildId
Section titled “buildId”buildId:
string
Defined in: packages/core/src/schema/snapshot.ts:7
createdAt
Section titled “createdAt”createdAt:
string
Defined in: packages/core/src/schema/snapshot.ts:42
designUrl
Section titled “designUrl”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
Section titled “diffPassed”diffPassed:
boolean|null
Defined in: packages/core/src/schema/snapshot.ts:21
diffPath
Section titled “diffPath”diffPath:
string|null
Defined in: packages/core/src/schema/snapshot.ts:18
diffPixels
Section titled “diffPixels”diffPixels:
number|null
Defined in: packages/core/src/schema/snapshot.ts:19
diffRatio
Section titled “diffRatio”diffRatio:
number|null
Defined in: packages/core/src/schema/snapshot.ts:20
durationMs
Section titled “durationMs”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
Section titled “envChange”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
Section titled “infraHash”infraHash:
string|null
Defined in: packages/core/src/schema/snapshot.ts:25
inherited
Section titled “inherited”inherited:
boolean
Defined in: packages/core/src/schema/snapshot.ts:29
True when inherited unchanged from the baseline without rendering.
optionalmode?:string|null
Defined in: packages/core/src/schema/snapshot.ts:35
Resolved mode definition (JSON) — display/capture only; identity is viewportName.
projectId
Section titled “projectId”projectId:
string
Defined in: packages/core/src/schema/snapshot.ts:6
reviewedAt
Section titled “reviewedAt”reviewedAt:
string|null
Defined in: packages/core/src/schema/snapshot.ts:24
reviewedBy
Section titled “reviewedBy”reviewedBy:
string|null
Defined in: packages/core/src/schema/snapshot.ts:23
screenshotPath
Section titled “screenshotPath”screenshotPath:
string
Defined in: packages/core/src/schema/snapshot.ts:17
status
Section titled “status”status:
"pending"|"approved"|"rejected"|"new"|"unchanged"|"changed"
Defined in: packages/core/src/schema/snapshot.ts:22
storyId
Section titled “storyId”storyId:
string
Defined in: packages/core/src/schema/snapshot.ts:8
storyImportPath
Section titled “storyImportPath”storyImportPath:
string|null
Defined in: packages/core/src/schema/snapshot.ts:11
storyName
Section titled “storyName”storyName:
string
Defined in: packages/core/src/schema/snapshot.ts:9
storyTitle
Section titled “storyTitle”storyTitle:
string
Defined in: packages/core/src/schema/snapshot.ts:10
updatedAt
Section titled “updatedAt”updatedAt:
string
Defined in: packages/core/src/schema/snapshot.ts:43
viewportHeight
Section titled “viewportHeight”viewportHeight:
number
Defined in: packages/core/src/schema/snapshot.ts:16
viewportName
Section titled “viewportName”viewportName:
string
Defined in: packages/core/src/schema/snapshot.ts:14
viewportWidth
Section titled “viewportWidth”viewportWidth:
number
Defined in: packages/core/src/schema/snapshot.ts:15