💚 End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
copy changes
laurenspriemd5a2c689b3c7
diff --git a/mobile/apps/photos/lib/services/wrapped/builders/aesthetics_candidate_builder.dart b/mobile/apps/photos/lib/services/wrapped/builders/aesthetics_candidate_builder.dartindex 000ccf3419..c5c03cd19e 100644--- a/mobile/apps/photos/lib/services/wrapped/builders/aesthetics_candidate_builder.dart+++ b/mobile/apps/photos/lib/services/wrapped/builders/aesthetics_candidate_builder.dart@@ -162,12 +162,6 @@ class AestheticsCandidateBuilder extends WrappedCandidateBuilder {...candidate.personNames,}..removeWhere((String name) => name.isEmpty);- final List<String> detailChips = <String>[- "${candidates.length} delightfully blurry shots",- if (nameSet.isNotEmpty)- "Featuring ${_formatNameList(nameSet.toList(growable: false))}",- ];-final double averageBlur = _average(selectedCandidates.map((candidate) => candidate.blurScore)@@ -181,7 +175,7 @@ class AestheticsCandidateBuilder extends WrappedCandidateBuilder {final Map<String, Object?> meta = <String, Object?>{"totalCandidates": candidates.length,- "detailChips": detailChips,+ "detailChips": const <String>[],if (nameSet.isNotEmpty) "personNames": nameSet.toList(growable: false),"averageBlur": averageBlur,"averageFaceScore": averageScore,@@ -271,13 +265,6 @@ class AestheticsCandidateBuilder extends WrappedCandidateBuilder {return null;}- final List<String> detailChips = <String>[- "${_formatCount(- chosenBucket.matches.length,- 'shot',- )} in ${chosenBucket.spec.displayName.toLowerCase()}",- ];-final Map<String, Object?> meta = <String, Object?>{"palette": <Map<String, Object?>>[<String, Object?>{@@ -289,15 +276,16 @@ class AestheticsCandidateBuilder extends WrappedCandidateBuilder {media.map((MediaRef ref) => ref.uploadedFileID).toList(),},],- "detailChips": detailChips,+ "detailChips": const <String>[],"dominantColor": chosenBucket.spec.displayName,};- final String subtitle = "Your palette: ${chosenBucket.spec.displayName}";+ final String subtitle =+ "${chosenBucket.spec.displayName} stole your palette.";return WrappedCard(type: WrappedCardType.yearInColor,- title: "2025 looked like this",+ title: "Color crush",subtitle: subtitle,media: media,meta: meta,@@ -386,9 +374,7 @@ class AestheticsCandidateBuilder extends WrappedCandidateBuilder {final Map<String, Object?> meta = <String, Object?>{"matchCount": matches.length,- "detailChips": <String>[- "${matches.length} black-and-white frames",- ],+ "detailChips": const <String>[],"uploadedFileIDs": media.map((MediaRef ref) => ref.uploadedFileID).toList(growable: false),@@ -396,9 +382,8 @@ class AestheticsCandidateBuilder extends WrappedCandidateBuilder {return WrappedCard(type: WrappedCardType.monochrome,- title: "Monochrome moments",- subtitle:- "You kept ${matches.length} ${matches.length == 1 ? "monochrome story" : "monochrome stories"}.",+ title: "Mono mood",+ subtitle: "You kept these black-and-white captures in rotation.",media: media,meta: meta,);@@ -470,7 +455,7 @@ class AestheticsCandidateBuilder extends WrappedCandidateBuilder {final Map<String, Object?> meta = <String, Object?>{"queries": AestheticsCandidateBuilder._kWowQueries,- "detailChips": <String>[],+ "detailChips": const <String>[],"uploadedFileIDs": media.map((MediaRef ref) => ref.uploadedFileID).toList(growable: false),@@ -478,8 +463,8 @@ class AestheticsCandidateBuilder extends WrappedCandidateBuilder {return WrappedCard(type: WrappedCardType.top9Wow,- title: "Wonderful captures",- subtitle: "You made some truly stunning photos this year!",+ title: "Wonderful Captures",+ subtitle: "Your showstoppers look gallery-ready.",media: media,meta: meta,);@@ -499,25 +484,6 @@ class AestheticsCandidateBuilder extends WrappedCandidateBuilder {return "Soft-focus laughs with ${sorted[0]}, ${sorted[1]} and crew.";}- static String _formatNameList(List<String> names) {- if (names.isEmpty) return "";- names.sort();- if (names.length == 1) {- return names.first;- }- if (names.length == 2) {- return "${names[0]} & ${names[1]}";- }- return "${names[0]}, ${names[1]} + ${names.length - 2} more";- }-- static String _formatCount(int count, String label) {- if (count == 1) {- return "1 $label";- }- return "$count ${label}s";- }-static double _average(List<double> values) {if (values.isEmpty) {return 0.0;diff --git a/mobile/apps/photos/lib/services/wrapped/builders/curation_candidate_builder.dart b/mobile/apps/photos/lib/services/wrapped/builders/curation_candidate_builder.dartindex bc0c24f52d..6709adeda0 100644--- a/mobile/apps/photos/lib/services/wrapped/builders/curation_candidate_builder.dart+++ b/mobile/apps/photos/lib/services/wrapped/builders/curation_candidate_builder.dart@@ -29,21 +29,19 @@ class CurationCandidateBuilder extends WrappedCandidateBuilder {return const <WrappedCard>[];}- final List<EnteFile> displayableFavorites = favoriteFiles- .where(- (EnteFile file) {- if (file.magicMetadata.visibility == archiveVisibility) {- return false;- }- final int? collectionID = file.collectionID;- if (collectionID != null &&- context.archivedCollectionIDs.contains(collectionID)) {- return false;- }- return true;- },- )- .toList(growable: false);+ final List<EnteFile> displayableFavorites = favoriteFiles.where(+ (EnteFile file) {+ if (file.magicMetadata.visibility == archiveVisibility) {+ return false;+ }+ final int? collectionID = file.collectionID;+ if (collectionID != null &&+ context.archivedCollectionIDs.contains(collectionID)) {+ return false;+ }+ return true;+ },+ ).toList(growable: false);if (displayableFavorites.length < _kMinFavoritesForCard) {return const <WrappedCard>[];}@@ -123,8 +121,8 @@ class CurationCandidateBuilder extends WrappedCandidateBuilder {totalCount <= 0 ? 0 : _percentOf(favoritesCount / totalCount);final List<String> chips = _cleanChips(<String>[- "${numberFormat.format(favoritesCount)} favorites saved",- if (sharePercent > 0) "$sharePercent% of your year",+ "Favorites: ${numberFormat.format(favoritesCount)}",+ if (sharePercent > 0) "Share: $sharePercent%",]);final Map<String, Object?> meta = <String, Object?>{@@ -140,12 +138,12 @@ class CurationCandidateBuilder extends WrappedCandidateBuilder {};final String subtitle = favoritesCount == 1- ? "One standout you couldn't resist starring."- : "${numberFormat.format(favoritesCount)} handpicked keeps.";+ ? "You kept one standout starred for safekeeping."+ : "You handpicked ${numberFormat.format(favoritesCount)} favorites to keep close.";final WrappedCard favoritesCard = WrappedCard(type: WrappedCardType.favorites,- title: "Your favorites of ${context.year}",+ title: "Your favorites",subtitle: subtitle,media: heroMedia,meta: meta,diff --git a/mobile/apps/photos/lib/services/wrapped/builders/people_candidate_builder.dart b/mobile/apps/photos/lib/services/wrapped/builders/people_candidate_builder.dartindex b0ebb88de5..4caeb1bb9f 100644--- a/mobile/apps/photos/lib/services/wrapped/builders/people_candidate_builder.dart+++ b/mobile/apps/photos/lib/services/wrapped/builders/people_candidate_builder.dart@@ -63,16 +63,26 @@ class PeopleCandidateBuilder extends WrappedCandidateBuilder {: topPerson.faceCount / dataset.totalNamedFaceCount;final int sharePercent = _percentOf(share);final List<String> chips = _cleanChips(<String>[- if (sharePercent > 0) "$sharePercent% of your shots with people",+ "Appearances: ${numberFormat.format(topPerson.faceCount)}",+ if (sharePercent > 0) "Share: $sharePercent%",if (topPerson.firstSeenYear != null &&topPerson.firstSeenYear == dataset.year)- "New in ${dataset.year}",+ "First year: ${topPerson.firstSeenYear}",]);- final String mention = topPerson.mentionForSentence;- final String subtitle = uniqueMoments > 1- ? "${numberFormat.format(uniqueMoments)} moments with $mention."- : "One unforgettable moment with $mention.";+ final String displayName = topPerson.displayNameForTitle.trim();+ final bool endsWithS =+ displayName.isNotEmpty && displayName.toLowerCase().endsWith("s");+ final String title = displayName.isEmpty+ ? "Your star"+ : endsWithS+ ? "$displayName spotlight"+ : "$displayName's spotlight";+ final String? heroName =+ displayName.isNotEmpty ? displayName : null;+ final String subtitle = heroName != null+ ? "$heroName was the star of your year!"+ : "Someone special was the star of your year!";final List<int> candidateIds = topPerson.topMediaFileIDs(6);final Map<int, double> scoreHints = topPerson.mediaScoreHints();@@ -97,7 +107,7 @@ class PeopleCandidateBuilder extends WrappedCandidateBuilder {return WrappedCard(type: WrappedCardType.topPerson,- title: "${topPerson.displayNameForTitle} starred in your ${dataset.year}",+ title: title,subtitle: subtitle,media: media,meta: meta@@ -169,8 +179,9 @@ class PeopleCandidateBuilder extends WrappedCandidateBuilder {return WrappedCard(type: WrappedCardType.topThreePeople,- title: "Your top people",- subtitle: "${_formatNameList(names)} lit up your ${dataset.year}.",+ title: "Core crew",+ subtitle:+ "${_formatNameList(names)} kept showing up in your favorite frames.",media: media,meta: meta..addAll(@@ -203,24 +214,38 @@ class PeopleCandidateBuilder extends WrappedCandidateBuilder {final int duoPercent =_percentOf(dataset.duoMoments / totalMoments.toDouble());- final List<String> subtitleParts = <String>[];- if (groupPercent > 0) {- subtitleParts.add("$groupPercent% with the group");- }- if (soloPercent > 0) {- subtitleParts.add("$soloPercent% one-on-one");- }- if (subtitleParts.isEmpty && duoPercent > 0) {- subtitleParts.add("$duoPercent% with a plus-one");+ final bool hasGroup = groupPercent > 0;+ final bool hasSolo = soloPercent > 0;+ final bool hasDuo = duoPercent > 0;+ final List<String> intimateParts = <String>[+ if (hasSolo) "$soloPercent% were one-on-one moments",+ if (hasDuo) "$duoPercent% played out in small circles",+ ];+ final String? intimateSummary = intimateParts.isEmpty+ ? null+ : intimateParts.length == 1+ ? intimateParts.first+ : "${intimateParts[0]} and ${intimateParts[1]}";++ final String subtitle;+ if (hasGroup && intimateSummary != null) {+ subtitle =+ "You made $groupPercent% of your memories in groups, while $intimateSummary.";+ } else if (hasGroup) {+ subtitle = "You made $groupPercent% of your memories in groups.";+ } else if (intimateSummary != null) {+ subtitle = "You kept things close—$intimateSummary.";+ } else {+ subtitle = "You balanced time with friends and quiet moments.";}final List<String> chips = _cleanChips(<String>[if (dataset.groupMoments > 0)- "${numberFormat.format(dataset.groupMoments)} group moments",+ "Group shots: ${numberFormat.format(dataset.groupMoments)}",if (dataset.duoMoments > 0)- "${numberFormat.format(dataset.duoMoments)} duo shots",+ "Duo shots: ${numberFormat.format(dataset.duoMoments)}",if (dataset.soloMoments > 0)- "${numberFormat.format(dataset.soloMoments)} solo portraits",+ "Solo shots: ${numberFormat.format(dataset.soloMoments)}",]);final List<int> candidateIds = <int>[@@ -250,10 +275,8 @@ class PeopleCandidateBuilder extends WrappedCandidateBuilder {return WrappedCard(type: WrappedCardType.groupVsSolo,- title: "Memories shared",- subtitle: subtitleParts.isEmpty- ? "You balanced time with friends and quiet moments."- : subtitleParts.join(" · "),+ title: "Sharing memories",+ subtitle: subtitle,media: media,meta: meta..addAll(@@ -304,9 +327,19 @@ class PeopleCandidateBuilder extends WrappedCandidateBuilder {: "${_formatNameList(highlightNames)} joined your story.";final List<String> chips = _cleanChips(<String>[- "${numberFormat.format(count)} new faces",- if (highlightNames.isNotEmpty)- "Spotlight: ${_formatNameList(highlightNames)}",+ for (int index = 0;+ index < highlights.length && index < 3;+ index += 1)+ () {+ final _PersonStats stats = highlights[index];+ final String name = stats.displayNameForTitle.trim();+ final String labelName =+ name.isNotEmpty ? name : "New friend ${index + 1}";+ final String countLabel = stats.faceCount == 1+ ? "1 memory"+ : "${numberFormat.format(stats.faceCount)} memories";+ return "$labelName: $countLabel";+ }(),]);final List<int> candidateIds = highlights@@ -342,12 +375,14 @@ class PeopleCandidateBuilder extends WrappedCandidateBuilder {"displayDurationMillis": 6500,};+ final String subtitle = subtitleNames.isEmpty+ ? "${numberFormat.format(count)} new faces joined your story."+ : subtitleNames;+return WrappedCard(type: WrappedCardType.newFaces,- title: "${numberFormat.format(count)} new faces met",- subtitle: subtitleNames.isEmpty- ? "Fresh connections defined your ${dataset.year}."- : subtitleNames,+ title: "Fresh faces",+ subtitle: subtitle,media: media,meta: meta..addAll(diff --git a/mobile/apps/photos/lib/services/wrapped/builders/places_candidate_builder.dart b/mobile/apps/photos/lib/services/wrapped/builders/places_candidate_builder.dartindex fde3ea0d68..827f5414e4 100644--- a/mobile/apps/photos/lib/services/wrapped/builders/places_candidate_builder.dart+++ b/mobile/apps/photos/lib/services/wrapped/builders/places_candidate_builder.dart@@ -57,24 +57,23 @@ class PlacesCandidateBuilder extends WrappedCandidateBuilder {}final NumberFormat numberFormat = NumberFormat.decimalPattern();- final List<String> nameHighlights = <String>[];-- for (final _PlaceClusterSummary cluster in topClusters) {- final String displayName = cluster.displayLabel;- nameHighlights.add(displayName);- }+ final List<String> nameHighlights = <String>[+ for (final _PlaceClusterSummary cluster in topClusters)+ cluster.displayLabel,+ ];- final String title = nameHighlights.isEmpty- ? "Your photo map lit up"- : "${nameHighlights.first} headlined your ${context.year}";+ final List<String> detailChips = <String>[+ for (final _PlaceClusterSummary cluster in topClusters)+ "${cluster.displayLabel}: ${numberFormat.format(cluster.totalCount)}",+ ];final String subtitle = switch (nameHighlights.length) {0 => "You kept moving and the camera tagged along.",1 =>- "${nameHighlights.first} soaked up ${numberFormat.format(topClusters.first.totalCount)} memories.",+ "${nameHighlights.first} soaked up ${numberFormat.format(topClusters.first.totalCount)} captures.",2 =>"${nameHighlights.first} and ${nameHighlights[1]} were your go-to cities.",- _ => "Top stops: ${_formatList(nameHighlights)}.",+ _ => "${_formatList(nameHighlights)} kept pulling you back.",};final List<int> mediaIds = _collectMediaIds(@@ -115,11 +114,12 @@ class PlacesCandidateBuilder extends WrappedCandidateBuilder {"lastCapture": cluster.lastCaptureIsoString,},],+ "detailChips": detailChips,};return WrappedCard(type: WrappedCardType.topCities,- title: title,+ title: "City circuit",subtitle: subtitle,media: media,meta: meta@@ -164,17 +164,13 @@ class PlacesCandidateBuilder extends WrappedCandidateBuilder {return null;}- final String subtitle;- if (cluster.distinctDays <= 0) {- subtitle =- "You made ${numberFormat.format(cluster.totalCount)} memories here.";- } else if (cluster.distinctDays == 1) {- subtitle =- "You made ${numberFormat.format(cluster.totalCount)} memories here in a single day.";- } else {- subtitle =- "You made ${numberFormat.format(cluster.totalCount)} memories here across ${numberFormat.format(cluster.distinctDays)} different days.";- }+ final String countText = numberFormat.format(cluster.totalCount);+ final int distinctDays = cluster.distinctDays;+ final String subtitle = distinctDays <= 0+ ? "You made $countText memories here."+ : distinctDays == 1+ ? "You made $countText memories here in a single day."+ : "You made $countText memories here across ${numberFormat.format(distinctDays)} days.";final List<MediaRef> media = WrappedMediaSelector.selectMediaRefs(context: context,@@ -184,6 +180,13 @@ class PlacesCandidateBuilder extends WrappedCandidateBuilder {minimumSpacing: const Duration(days: 30),);+ final int sharePercent = _percentOf(+ cluster.totalCount / dataset.totalCount.toDouble(),+ );+ final List<String> detailChips = _cleanChips(<String>[+ if (sharePercent > 0) "Share: $sharePercent%",+ ]);+final Map<String, Object?> meta = <String, Object?>{"year": context.year,"displayDurationMillis": 6500,@@ -202,11 +205,12 @@ class PlacesCandidateBuilder extends WrappedCandidateBuilder {"firstCapture": cluster.firstCaptureIsoString,"lastCapture": cluster.lastCaptureIsoString,},+ "detailChips": detailChips,};return WrappedCard(type: WrappedCardType.mostVisitedSpot,- title: "Your favorite spot",+ title: "Go-to spot",subtitle: subtitle,media: media,meta: metadiff --git a/mobile/apps/photos/lib/services/wrapped/builders/stats_candidate_builder.dart b/mobile/apps/photos/lib/services/wrapped/builders/stats_candidate_builder.dartindex bebd8bacba..e56b3859ae 100644--- a/mobile/apps/photos/lib/services/wrapped/builders/stats_candidate_builder.dart+++ b/mobile/apps/photos/lib/services/wrapped/builders/stats_candidate_builder.dart@@ -38,31 +38,22 @@ class StatsCandidateBuilder extends WrappedCandidateBuilder {final NumberFormat numberFormat = NumberFormat.decimalPattern();final DateFormat fullDateFormat = DateFormat("MMMM d");- final int stillPhotoCount =- math.max(snapshot.photoCount - snapshot.livePhotoCount, 0);- final List<String> detailChips = <String>[];- if (stillPhotoCount > 0) {- detailChips.add(- "${numberFormat.format(stillPhotoCount)} ${stillPhotoCount == 1 ? 'photo' : 'photos'}",- );- }- if (snapshot.livePhotoCount > 0) {- detailChips.add(- "${numberFormat.format(snapshot.livePhotoCount)} live ${snapshot.livePhotoCount == 1 ? 'photo' : 'photos'}",- );- }- if (snapshot.videoCount > 0) {- detailChips.add(- "${numberFormat.format(snapshot.videoCount)} ${snapshot.videoCount == 1 ? 'video' : 'videos'}",- );- }- if (snapshot.storageBytes > 0) {- detailChips.add("${formatBytes(snapshot.storageBytes, 1)} captured");- }+ final String totalMemories = numberFormat.format(snapshot.totalCount);+ final String? videosText = snapshot.videoCount > 0+ ? numberFormat.format(snapshot.videoCount)+ : null;++ final List<String> detailChips = _cleanChips(<String>[+ "Total: $totalMemories memories",+ if (snapshot.storageBytes > 0)+ "Storage: ${formatBytes(snapshot.storageBytes, 1)}",+ if (snapshot.firstCaptureDay != null)+ "First shot: ${fullDateFormat.format(snapshot.firstCaptureDay!)}",+ ]);final String title ="You bottled ${numberFormat.format(snapshot.totalCount)} memories";- final String subtitle = snapshot.videoCount > 0+ final String subtitle = videosText != null? "That’s ${numberFormat.format(snapshot.photoCount)} photos and ""${numberFormat.format(snapshot.videoCount)} videos ready to relive.": "That’s ${numberFormat.format(snapshot.photoCount)} photos you kept close this year.";@@ -84,10 +75,6 @@ class StatsCandidateBuilder extends WrappedCandidateBuilder {minimumSpacing: const Duration(days: 45),);- final String? firstCaptureLine = snapshot.firstCaptureDay != null- ? "First frame: ${fullDateFormat.format(snapshot.firstCaptureDay!)}"- : null;-final Map<String, Object?> meta = <String, Object?>{"year": snapshot.year,"totalCount": snapshot.totalCount,@@ -102,7 +89,6 @@ class StatsCandidateBuilder extends WrappedCandidateBuilder {"daysWithCaptures": snapshot.daysWithCaptures,"elapsedDays": snapshot.elapsedDays,"detailChips": detailChips,- if (firstCaptureLine != null) "firstCaptureLine": firstCaptureLine,"displayDurationMillis": 9000,};@@ -135,28 +121,30 @@ class StatsCandidateBuilder extends WrappedCandidateBuilder {final NumberFormat numberFormat = NumberFormat.decimalPattern();final DateFormat monthFormat = DateFormat("MMMM");- final String title =- "${averageFormat.format(snapshot.averagePerDay)} memories per day";- final List<String> subtitleParts = <String>[];+ final String baseSentence =+ "You averaged ${averageFormat.format(snapshot.averagePerDay)} memories a day.";String? busiestMonthName;+ String? secondSentence;if (snapshot.busiestMonth != null && snapshot.busiestMonthCount > 0) {busiestMonthName = monthFormat.format(DateTime(snapshot.year, snapshot.busiestMonth!, 1));- subtitleParts.add(- "$busiestMonthName peaked at ${numberFormat.format(snapshot.busiestMonthCount)}",- );}- subtitleParts.add(- "${numberFormat.format(snapshot.daysWithCaptures)} active days",- );+ if (busiestMonthName != null && snapshot.longestStreakDays >= 1) {+ secondSentence =+ "$busiestMonthName peaked at ${numberFormat.format(snapshot.busiestMonthCount)} memories, and your longest streak ran ${numberFormat.format(snapshot.longestStreakDays)} days.";+ } else if (busiestMonthName != null) {+ secondSentence =+ "$busiestMonthName peaked at ${numberFormat.format(snapshot.busiestMonthCount)} memories.";+ } else if (snapshot.longestStreakDays >= 1) {+ secondSentence =+ "Your longest streak ran ${numberFormat.format(snapshot.longestStreakDays)} days.";+ }- final List<String> chips = <String>[- "${numberFormat.format(snapshot.daysWithCaptures)} active days",- if (snapshot.longestStreakDays >= 3)- "Longest streak: ${numberFormat.format(snapshot.longestStreakDays)} days",+ final List<String> chips = _cleanChips(<String>[+ "Active days: ${numberFormat.format(snapshot.daysWithCaptures)}",if (snapshot.longestGapDays >= 2)"Longest breather: ${numberFormat.format(snapshot.longestGapDays)} days",- ];+ ]);final List<int> rhythmIds = _collectUniqueIds(<List<int>>[@@ -204,8 +192,10 @@ class StatsCandidateBuilder extends WrappedCandidateBuilder {return WrappedCard(type: WrappedCardType.statsVelocity,- title: title,- subtitle: subtitleParts.join(" · "),+ title: "Daily groove",+ subtitle: secondSentence != null+ ? "$baseSentence $secondSentence"+ : baseSentence,media: media,meta: meta..addAll(@@ -243,10 +233,10 @@ class StatsCandidateBuilder extends WrappedCandidateBuilder {"date": day.toIso8601String(),"weekday": weekdayFormat.format(day),"count": snapshot.busiestDayCount,- "detailChips": <String>[- "${numberFormat.format(snapshot.busiestDayCount)} memories in 24 hours",- weekdayFormat.format(day),- ],+ "detailChips": _cleanChips(<String>[+ "Captures: ${numberFormat.format(snapshot.busiestDayCount)}",+ "Weekday: ${weekdayFormat.format(day)}",+ ]),if (mediaRefs.isNotEmpty)"uploadedFileIDs": mediaRefs.map((MediaRef ref) => ref.uploadedFileID)@@ -255,9 +245,8 @@ class StatsCandidateBuilder extends WrappedCandidateBuilder {return WrappedCard(type: WrappedCardType.busiestDay,- title: "${longDateFormat.format(day)} went off",- subtitle:- "${numberFormat.format(snapshot.busiestDayCount)} memories captured in a single day.",+ title: "Your peak day",+ subtitle: "${longDateFormat.format(day)} was packed with memories!",media: mediaRefs,meta: meta,);@@ -282,15 +271,15 @@ class StatsCandidateBuilder extends WrappedCandidateBuilder {"detailChips": <String>[if (snapshot.busiestMonthName != null)"Peak month: ${snapshot.busiestMonthName}",- "${numberFormat.format(snapshot.totalCount)} captures this year",+ "Total captures: ${numberFormat.format(snapshot.totalCount)}",],};return <WrappedCard>[WrappedCard(type: WrappedCardType.statsHeatmap,- title: "Seasons of snapshots",- subtitle: "Your year, one quarter at a time.",+ title: "Season rhythm",+ subtitle: "Quarter by quarter, here's how the year flowed.",meta: meta,),];diff --git a/mobile/apps/photos/lib/ui/wrapped/cards/places_card_content.dart b/mobile/apps/photos/lib/ui/wrapped/cards/places_card_content.dartindex e912790322..e35f2bb61f 100644--- a/mobile/apps/photos/lib/ui/wrapped/cards/places_card_content.dart+++ b/mobile/apps/photos/lib/ui/wrapped/cards/places_card_content.dart@@ -231,6 +231,7 @@ class _MostVisitedSpotCardContent extends StatelessWidget {@overrideWidget build(BuildContext context) {+ final List<String> chips = _stringListFromMeta(card.meta, "detailChips");final List<MediaRef> extraMedia =card.media.skip(3).toList(growable: false);final List<MediaRef> secondRowMedia =@@ -301,6 +302,14 @@ class _MostVisitedSpotCardContent extends StatelessWidget {style: textTheme.bodyMuted,),),+ if (chips.isNotEmpty) ...[+ const SizedBox(height: 18),+ _DetailChips(+ chips: chips,+ colorScheme: colorScheme,+ textTheme: textTheme,+ ),+ ],const SizedBox(height: 12),],);diff --git a/mobile/apps/photos/lib/ui/wrapped/cards/stats_card_content.dart b/mobile/apps/photos/lib/ui/wrapped/cards/stats_card_content.dartindex 6fdce3fc7d..14f0508a32 100644--- a/mobile/apps/photos/lib/ui/wrapped/cards/stats_card_content.dart+++ b/mobile/apps/photos/lib/ui/wrapped/cards/stats_card_content.dart@@ -49,7 +49,6 @@ class _TotalsCardContent extends StatelessWidget {@overrideWidget build(BuildContext context) {final List<String> chips = _stringListFromMeta(card.meta, "detailChips");- final String? firstCaptureLine = card.meta["firstCaptureLine"] as String?;return Column(crossAxisAlignment: CrossAxisAlignment.start,@@ -79,13 +78,6 @@ class _TotalsCardContent extends StatelessWidget {textTheme: textTheme,),],- if (firstCaptureLine != null) ...[- const SizedBox(height: 16),- Text(- firstCaptureLine,- style: textTheme.smallMuted,- ),- ],const Spacer(),],);