π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
chore: green border/fill for all covered locations
anandbaburajanf2fbb8f7e7c1
diff --git a/web/apps/photos/src/components/TripTemplate/TimelineLocation.tsx b/web/apps/photos/src/components/TripTemplate/TimelineLocation.tsxindex 016f7ef263..9dd92b56fa 100644--- a/web/apps/photos/src/components/TripTemplate/TimelineLocation.tsx+++ b/web/apps/photos/src/components/TripTemplate/TimelineLocation.tsx@@ -50,9 +50,9 @@ export const TimelineLocation = memo<TimelineLocationProps>(const diffTime = photoDateOnly.getTime() - firstDateOnly.getTime();const dayNumber = Math.floor(diffTime / (1000 * 60 * 60 * 24)) + 1;- // Only show green for the current location (not all reached locations)+ // Show green for all covered locations (up to current position)const currentLocationIndex = Math.round(scrollProgress * Math.max(0, photoClusters.length - 1));- const isCurrent = index === currentLocationIndex;+ const isCovered = index <= currentLocationIndex;return (<LocationContainer@@ -65,7 +65,7 @@ export const TimelineLocation = memo<TimelineLocationProps>(}}><DotBackground />- <TimelineDot isReached={isCurrent} />+ <TimelineDot isReached={isCovered} />{isLeft ? (<>diff --git a/web/apps/photos/src/components/TripTemplate/TripMap.tsx b/web/apps/photos/src/components/TripTemplate/TripMap.tsxindex 440454b35d..87f1479795 100644--- a/web/apps/photos/src/components/TripTemplate/TripMap.tsx+++ b/web/apps/photos/src/components/TripTemplate/TripMap.tsx@@ -89,9 +89,9 @@ export const TripMap: React.FC<TripMapProps> = ({{/* Draw super-clusters (clickable for zoom and gallery) */}{superClusters.map((superCluster, index) => {- // Only show green for the current location (not all reached locations)+ // Show green for all covered locations (up to current position)const currentLocationIndex = Math.round(scrollProgress * Math.max(0, photoClusters.length - 1));- const isCurrent = superCluster.clustersInvolved.includes(currentLocationIndex);+ const isCovered = superCluster.clustersInvolved.some(clusterIndex => clusterIndex <= currentLocationIndex);return (<Marker@@ -101,7 +101,7 @@ export const TripMap: React.FC<TripMapProps> = ({superCluster.image, // Use representative photo (first photo of first cluster)superCluster.clusterCount,55,- isCurrent,+ isCovered,)}eventHandlers={{click: () => {@@ -137,9 +137,9 @@ export const TripMap: React.FC<TripMapProps> = ({originalCluster.length === cluster.length &&originalCluster[0]?.image === cluster[0]?.image,);- // Only show green for the current location (not all reached locations)+ // Show green for all covered locations (up to current position)const currentLocationIndex = Math.round(scrollProgress * Math.max(0, photoClusters.length - 1));- const isCurrent = originalClusterIndex === currentLocationIndex;+ const isCovered = originalClusterIndex <= currentLocationIndex;return (<Marker@@ -150,7 +150,7 @@ export const TripMap: React.FC<TripMapProps> = ({55,"#ffffff",cluster.length,- isCurrent,+ isCovered,)}eventHandlers={{click: () => {