π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix: remove progress lines
anandbaburajanfde5450d2e19
diff --git a/web/apps/photos/src/components/TripTemplate/TimelineLocation.tsx b/web/apps/photos/src/components/TripTemplate/TimelineLocation.tsxindex 6627081e1c..ee8666581d 100644--- a/web/apps/photos/src/components/TripTemplate/TimelineLocation.tsx+++ b/web/apps/photos/src/components/TripTemplate/TimelineLocation.tsx@@ -50,8 +50,9 @@ export const TimelineLocation = memo<TimelineLocationProps>(const diffTime = photoDateOnly.getTime() - firstDateOnly.getTime();const dayNumber = Math.floor(diffTime / (1000 * 60 * 60 * 24)) + 1;- const isReached =- scrollProgress >= index / Math.max(1, photoClusters.length - 1);+ // Only show green for the current location (not all reached locations)+ const currentLocationIndex = Math.round(scrollProgress * Math.max(0, photoClusters.length - 1));+ const isCurrent = index === currentLocationIndex;return (<LocationContainer@@ -64,7 +65,7 @@ export const TimelineLocation = memo<TimelineLocationProps>(}}><DotBackground />- <TimelineDot isReached={isReached} />+ <TimelineDot isReached={isCurrent} />{isLeft ? (<>diff --git a/web/apps/photos/src/components/TripTemplate/TimelineProgressLine.tsx b/web/apps/photos/src/components/TripTemplate/TimelineProgressLine.tsxindex b56fa1f257..08bc2213df 100644--- a/web/apps/photos/src/components/TripTemplate/TimelineProgressLine.tsx+++ b/web/apps/photos/src/components/TripTemplate/TimelineProgressLine.tsx@@ -1,4 +1,3 @@-import { Box, styled } from "@mui/material";import { memo } from "react";import type { JourneyPoint } from "./types";@@ -10,42 +9,8 @@ interface TimelineProgressLineProps {}export const TimelineProgressLine = memo<TimelineProgressLineProps>(- ({ locationPositions, scrollProgress, hasUserScrolled, photoClusters }) => {- if (photoClusters.length === 0 || locationPositions.length === 0) {- return null;- }-- const firstPosition = locationPositions[0];- const lastPosition = locationPositions[locationPositions.length - 1];- if (!firstPosition || !lastPosition) {- return null;- }- const firstLocationCenter = firstPosition.center;- const lastLocationCenter = lastPosition.center;-- if (scrollProgress <= 0 || !hasUserScrolled) {- return null;- }-- return (- <ProgressLine- sx={{- top: `${firstLocationCenter}px`,- height: `${- (lastLocationCenter - firstLocationCenter) *- scrollProgress- }px`,- }}- />- );+ () => {+ // No longer showing progressive green line - green indicators only for current location+ return null;},);--// Styled components-const ProgressLine = styled(Box)(({ theme }) => ({- position: "absolute",- left: "50%",- transform: "translateX(-1.5px)",- width: "3px",- backgroundColor: theme.palette.success.main,-}));diff --git a/web/apps/photos/src/components/TripTemplate/TripMap.tsx b/web/apps/photos/src/components/TripTemplate/TripMap.tsxindex d40fb07534..6c78245c99 100644--- a/web/apps/photos/src/components/TripTemplate/TripMap.tsx+++ b/web/apps/photos/src/components/TripTemplate/TripMap.tsx@@ -89,14 +89,13 @@ export const TripMap: React.FC<TripMapProps> = ({{/* Draw super-clusters (clickable for zoom and gallery) */}{superClusters.map((superCluster, index) => {- // Check if this super-cluster has been reached+ // Only show green for the current location (not all reached locations)const firstClusterIndex =superCluster.clustersInvolved[0];- const isReached =+ const currentLocationIndex = Math.round(scrollProgress * Math.max(0, photoClusters.length - 1));+ const isCurrent =firstClusterIndex !== undefined &&- scrollProgress >=- firstClusterIndex /- Math.max(1, photoClusters.length - 1);+ firstClusterIndex === currentLocationIndex;return (<Marker@@ -106,7 +105,7 @@ export const TripMap: React.FC<TripMapProps> = ({superCluster.image, // Use representative photo (first photo of first cluster)superCluster.clusterCount,55,- isReached,+ isCurrent,)}eventHandlers={{click: () => {@@ -142,11 +141,9 @@ export const TripMap: React.FC<TripMapProps> = ({originalCluster.length === cluster.length &&originalCluster[0]?.image === cluster[0]?.image,);- // Check if this location has been reached based on progress- const isReached =- scrollProgress >=- originalClusterIndex /- Math.max(1, photoClusters.length - 1);+ // Only show green for the current location (not all reached locations)+ const currentLocationIndex = Math.round(scrollProgress * Math.max(0, photoClusters.length - 1));+ const isCurrent = originalClusterIndex === currentLocationIndex;return (<Marker@@ -157,7 +154,7 @@ export const TripMap: React.FC<TripMapProps> = ({55,"#ffffff",cluster.length,- isReached,+ isCurrent,)}eventHandlers={{click: () => {