Kind: Function
Source: atloria-monorepo/libs/parser-core/src/utils/screenshot-metadata-enricher.ts
Enrich screenshot metadata with state machine context
Takes a screenshot URL and parsed entities, finds the matching component, and adds state machine and UI interaction information.
Signature
tsfunction enrichScreenshotMetadata(screenshotUrl: string, route: string, entities: Entity[], options: {
title?: string;
viewport?: { width: number; height: number };
capturedAt?: Date;
isModal?: boolean;
parentUrl?: string;
}): EnhancedScreenshotMetadata
Parameters
| Name | Type |
|---|---|
screenshotUrl | string |
route | string |
entities | Entity[] |
options | `{ |
title?: string; viewport?: { width: number; height: number }; capturedAt?: Date; isModal?: boolean; parentUrl?: string;
}` |
Returns: EnhancedScreenshotMetadata
Was this page helpful?