feat(web): use timeline in geolocation manager (#21492)

This commit is contained in:
Johann 2025-09-10 03:26:26 +02:00 committed by GitHub
parent 5acd6b70d0
commit 7a1c45c364
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 277 additions and 496 deletions

View file

@ -187,6 +187,11 @@ export class MonthGroup {
thumbhash: bucketAssets.thumbhash[i],
people: null, // People are not included in the bucket assets
};
if (bucketAssets.latitude?.[i] && bucketAssets.longitude?.[i]) {
timelineAsset.latitude = bucketAssets.latitude?.[i];
timelineAsset.longitude = bucketAssets.longitude?.[i];
}
this.addTimelineAsset(timelineAsset, addContext);
}

View file

@ -31,6 +31,8 @@ export type TimelineAsset = {
city: string | null;
country: string | null;
people: string[] | null;
latitude?: number | null;
longitude?: number | null;
};
export type AssetOperation = (asset: TimelineAsset) => { remove: boolean };