Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Remove internal feature flag for jump to date feature

ashilknd11ae4cd80a7
diff --git a/mobile/apps/photos/lib/ui/home/memories/full_screen_memory.dart b/mobile/apps/photos/lib/ui/home/memories/full_screen_memory.dart
index e2bb1b3a06..352916cde0 100644
--- a/mobile/apps/photos/lib/ui/home/memories/full_screen_memory.dart
+++ b/mobile/apps/photos/lib/ui/home/memories/full_screen_memory.dart
@@ -329,12 +329,12 @@ class _FullScreenMemoryState extends State<FullScreenMemory> {
valueListenable: inheritedData.indexNotifier,
child: GestureDetector(
onTap: () => Navigator.pop(context),
- child: Padding(
- padding: const EdgeInsets.fromLTRB(4, 8, 8, 8),
+ child: const Padding(
+ padding: EdgeInsets.fromLTRB(4, 8, 8, 8),
child: Icon(
Icons.close,
color: Colors.white,
- size: flagService.internalUser ? 20 : null,
+ size: 20,
),
),
),
@@ -368,79 +368,63 @@ class _FullScreenMemoryState extends State<FullScreenMemory> {
Row(
children: [
child!,
- if (flagService.internalUser)
- GestureDetector(
- onTap: () async {
- final fullScreenState =
- context.findAncestorStateOfType<
- _FullScreenMemoryState>();
- fullScreenState?._toggleAnimation(
- pause: true,
- );
- await routeToPage(
- context,
- JumpToDateGallery(
- fileToJumpTo:
- inheritedData.memories[value].file,
- ),
- );
- fullScreenState?._toggleAnimation(
- pause: false,
- );
- },
- child: Container(
- decoration: BoxDecoration(
- borderRadius: BorderRadius.circular(4),
- // color: fillFaintDark,
- color: blurStrokeFaintDark,
- border: Border.all(
- color: strokeFaintDark,
- width: 1,
- ),
+ GestureDetector(
+ onTap: () async {
+ final fullScreenState =
+ context.findAncestorStateOfType<
+ _FullScreenMemoryState>();
+ fullScreenState?._toggleAnimation(
+ pause: true,
+ );
+ await routeToPage(
+ context,
+ JumpToDateGallery(
+ fileToJumpTo:
+ inheritedData.memories[value].file,
),
- child: Row(
- children: [
- const SizedBox(width: 2),
- Padding(
- padding: const EdgeInsets.all(2.0),
- child: Text(
- SmartMemoriesService.getDateFormatted(
- creationTime: inheritedData
- .memories[value]
- .file
- .creationTime!,
- context: context,
- ),
- style: getEnteTextTheme(context)
- .miniMuted
- .copyWith(color: textBaseDark),
- ),
- ),
- const SizedBox(width: 4),
- const Icon(
- Icons.keyboard_arrow_right_outlined,
- size: 14,
- color: blurStrokeBaseDark,
- ),
- ],
+ );
+ fullScreenState?._toggleAnimation(
+ pause: false,
+ );
+ },
+ child: Container(
+ decoration: BoxDecoration(
+ borderRadius: BorderRadius.circular(4),
+ // color: fillFaintDark,
+ color: blurStrokeFaintDark,
+ border: Border.all(
+ color: strokeFaintDark,
+ width: 1,
),
),
- )
- else
- Text(
- SmartMemoriesService.getDateFormatted(
- creationTime: inheritedData
- .memories[value].file.creationTime!,
- context: context,
- ),
- style: Theme.of(context)
- .textTheme
- .titleMedium!
- .copyWith(
- fontSize: 14,
- color: Colors.white,
+ child: Row(
+ children: [
+ const SizedBox(width: 2),
+ Padding(
+ padding: const EdgeInsets.all(2.0),
+ child: Text(
+ SmartMemoriesService.getDateFormatted(
+ creationTime: inheritedData
+ .memories[value]
+ .file
+ .creationTime!,
+ context: context,
+ ),
+ style: getEnteTextTheme(context)
+ .miniMuted
+ .copyWith(color: textBaseDark),
+ ),
),
+ const SizedBox(width: 4),
+ const Icon(
+ Icons.keyboard_arrow_right_outlined,
+ size: 14,
+ color: blurStrokeBaseDark,
+ ),
+ ],
+ ),
),
+ ),
],
),
],
diff --git a/mobile/apps/photos/lib/ui/viewer/file_details/creation_time_item_widget.dart b/mobile/apps/photos/lib/ui/viewer/file_details/creation_time_item_widget.dart
index 031cc5f2a4..afde22db7d 100644
--- a/mobile/apps/photos/lib/ui/viewer/file_details/creation_time_item_widget.dart
+++ b/mobile/apps/photos/lib/ui/viewer/file_details/creation_time_item_widget.dart
@@ -1,7 +1,6 @@
import "package:flutter/material.dart";
import "package:intl/intl.dart";
import 'package:photos/models/file/file.dart';
-import "package:photos/service_locator.dart";
import "package:photos/theme/ente_theme.dart";
import "package:photos/ui/components/info_item_widget.dart";
import "package:photos/ui/viewer/date/edit_date_sheet.dart";
@@ -25,37 +24,31 @@ class _CreationTimeItemState extends State<CreationTimeItem> {
widget.file.creationTime!,
isUtc: true,
).toLocal();
- final infoWidget = InfoItemWidget(
- key: const ValueKey("Creation time"),
- leadingIcon: Icons.calendar_today_outlined,
- title: DateFormat.yMMMEd(Localizations.localeOf(context).languageCode)
- .format(dateTime),
- subtitleSection: Future.value([
- Text(
- getTimeIn12hrFormat(dateTime) + " " + dateTime.timeZoneName,
- style: getEnteTextTheme(context).miniMuted,
- ),
- ]),
- editOnTap: ((widget.file.ownerID == null ||
- widget.file.ownerID == widget.currentUserID) &&
- widget.file.uploadedFileID != null)
- ? () {
- _showDateTimePicker(widget.file);
- }
- : null,
+ return GestureDetector(
+ behavior: HitTestBehavior.translucent,
+ onTap: () {
+ routeToPage(context, JumpToDateGallery(fileToJumpTo: widget.file));
+ },
+ child: InfoItemWidget(
+ key: const ValueKey("Creation time"),
+ leadingIcon: Icons.calendar_today_outlined,
+ title: DateFormat.yMMMEd(Localizations.localeOf(context).languageCode)
+ .format(dateTime),
+ subtitleSection: Future.value([
+ Text(
+ getTimeIn12hrFormat(dateTime) + " " + dateTime.timeZoneName,
+ style: getEnteTextTheme(context).miniMuted,
+ ),
+ ]),
+ editOnTap: ((widget.file.ownerID == null ||
+ widget.file.ownerID == widget.currentUserID) &&
+ widget.file.uploadedFileID != null)
+ ? () {
+ _showDateTimePicker(widget.file);
+ }
+ : null,
+ ),
);
-
- if (flagService.internalUser) {
- return GestureDetector(
- behavior: HitTestBehavior.translucent,
- onTap: () {
- routeToPage(context, JumpToDateGallery(fileToJumpTo: widget.file));
- },
- child: infoWidget,
- );
- }
-
- return infoWidget;
}
void _showDateTimePicker(EnteFile file) async {
diff --git a/mobile/apps/photos/scripts/internal_changes.txt b/mobile/apps/photos/scripts/internal_changes.txt
index 60f52aee8c..1b0efb5383 100644
--- a/mobile/apps/photos/scripts/internal_changes.txt
+++ b/mobile/apps/photos/scripts/internal_changes.txt
@@ -1,4 +1,4 @@
-- Ashil: (i) Jump to date
+- Ashil: Jump to date
- Prateek: Add native video editor to boost performance
- Neeraj: Report stacktraces to Sentry & skip noisy TaskQueue exception
- Neeraj: Prevent concurrent modification when trashing multiple albums