PoiPhotoFixture
A POI's photo as a fixture states it: a dev media pack asset id plus the metadata a real row persists.
A POI’s photo as a fixture states it: a dev media pack asset id plus the metadata a real row persists.
Import from @homepages/template-kit/fixtures.
Signature
Section titled “Signature”export type PoiPhotoFixture = { photo_id: LibraryAssetId; width: number; height: number; attribution: string;};Constraints
Section titled “Constraints”photo_idis the dev-only half. In production a POI photo’s URL is signed from the row’splace_idat render time and the row carries no asset id at all; here the pack stands in for that, and the dev media resolver swapsphoto_idfor theurl/responsivepair a resolved row carries — so a renderer sees the same shape either way.width/heightare restated from the named asset and re-read from it at resolve time, so a wrong number here cannot reach a render.