Skip to content

armgit / ente

Public Imported from GitHub
0

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

Merge branch 'main' into mobile_face

Neeraj Gupta089aa16bc6cd
diff --cc mobile/lib/generated/intl/messages_en.dart
index cd28878530,aab7f47bd8..82019277d0
--- a/mobile/lib/generated/intl/messages_en.dart
+++ b/mobile/lib/generated/intl/messages_en.dart
@@@ -724,8 -734,8 +737,10 @@@ class MessageLookup extends MessageLook
"filesBackedUpFromDevice": m22,
"filesBackedUpInAlbum": m23,
"filesDeleted": MessageLookupByLibrary.simpleMessage("Files deleted"),
+ "filesSavedToGallery":
+ MessageLookupByLibrary.simpleMessage("Files saved to gallery"),
+ "findPeopleByName": MessageLookupByLibrary.simpleMessage(
+ "Find people quickly by searching by name"),
"flip": MessageLookupByLibrary.simpleMessage("Flip"),
"forYourMemories":
MessageLookupByLibrary.simpleMessage("for your memories"),
diff --cc mobile/lib/generated/l10n.dart
index f7a5295e07,4c7679154f..4b86a18103
--- a/mobile/lib/generated/l10n.dart
+++ b/mobile/lib/generated/l10n.dart
@@@ -8594,25 -8594,115 +8604,155 @@@ class S
);
}
+ /// `Enter person name`
+ String get enterPersonName {
+ return Intl.message(
+ 'Enter person name',
+ name: 'enterPersonName',
+ desc: '',
+ args: [],
+ );
+ }
+
+ /// `Remove person label`
+ String get removePersonLabel {
+ return Intl.message(
+ 'Remove person label',
+ name: 'removePersonLabel',
+ desc: '',
+ args: [],
+ );
+ }
++
+ /// `Auto pair works only with devices that support Chromecast.`
+ String get autoPairDesc {
+ return Intl.message(
+ 'Auto pair works only with devices that support Chromecast.',
+ name: 'autoPairDesc',
+ desc: '',
+ args: [],
+ );
+ }
+
+ /// `Pair with PIN works with any screen you wish to view your album on.`
+ String get manualPairDesc {
+ return Intl.message(
+ 'Pair with PIN works with any screen you wish to view your album on.',
+ name: 'manualPairDesc',
+ desc: '',
+ args: [],
+ );
+ }
+
+ /// `Connect to device`
+ String get connectToDevice {
+ return Intl.message(
+ 'Connect to device',
+ name: 'connectToDevice',
+ desc: '',
+ args: [],
+ );
+ }
+
+ /// `You'll see available Cast devices here.`
+ String get autoCastDialogBody {
+ return Intl.message(
+ 'You\'ll see available Cast devices here.',
+ name: 'autoCastDialogBody',
+ desc: '',
+ args: [],
+ );
+ }
+
+ /// `Make sure Local Network permissions are turned on for the Ente Photos app, in Settings.`
+ String get autoCastiOSPermission {
+ return Intl.message(
+ 'Make sure Local Network permissions are turned on for the Ente Photos app, in Settings.',
+ name: 'autoCastiOSPermission',
+ desc: '',
+ args: [],
+ );
+ }
+
+ /// `No device found`
+ String get noDeviceFound {
+ return Intl.message(
+ 'No device found',
+ name: 'noDeviceFound',
+ desc: '',
+ args: [],
+ );
+ }
+
+ /// `Stop casting`
+ String get stopCastingTitle {
+ return Intl.message(
+ 'Stop casting',
+ name: 'stopCastingTitle',
+ desc: '',
+ args: [],
+ );
+ }
+
+ /// `Do you want to stop casting?`
+ String get stopCastingBody {
+ return Intl.message(
+ 'Do you want to stop casting?',
+ name: 'stopCastingBody',
+ desc: '',
+ args: [],
+ );
+ }
+
+ /// `Failed to cast album`
+ String get castIPMismatchTitle {
+ return Intl.message(
+ 'Failed to cast album',
+ name: 'castIPMismatchTitle',
+ desc: '',
+ args: [],
+ );
+ }
+
+ /// `Please make sure you are on the same network as the TV.`
+ String get castIPMismatchBody {
+ return Intl.message(
+ 'Please make sure you are on the same network as the TV.',
+ name: 'castIPMismatchBody',
+ desc: '',
+ args: [],
+ );
+ }
+
+ /// `Pairing complete`
+ String get pairingComplete {
+ return Intl.message(
+ 'Pairing complete',
+ name: 'pairingComplete',
+ desc: '',
+ args: [],
+ );
+ }
++
++ /// `Auto pair`
++ String get autoPair {
++ return Intl.message(
++ 'Auto pair',
++ name: 'autoPair',
++ desc: '',
++ args: [],
++ );
++ }
++
++ /// `Pair with PIN`
++ String get pairWithPin {
++ return Intl.message(
++ 'Pair with PIN',
++ name: 'pairWithPin',
++ desc: '',
++ args: [],
++ );
++ }
}
class AppLocalizationDelegate extends LocalizationsDelegate<S> {
diff --cc mobile/lib/l10n/intl_en.arb
index 5689682c3f,6bc8b59269..498c6cf3f1
--- a/mobile/lib/l10n/intl_en.arb
+++ b/mobile/lib/l10n/intl_en.arb
@@@ -1216,6 -1216,15 +1217,19 @@@
"customEndpoint": "Connected to {endpoint}",
"createCollaborativeLink": "Create collaborative link",
"search": "Search",
+ "enterPersonName": "Enter person name",
- "removePersonLabel": "Remove person label"
++ "removePersonLabel": "Remove person label",
+ "autoPairDesc": "Auto pair works only with devices that support Chromecast.",
+ "manualPairDesc": "Pair with PIN works with any screen you wish to view your album on.",
+ "connectToDevice": "Connect to device",
+ "autoCastDialogBody": "You'll see available Cast devices here.",
+ "autoCastiOSPermission": "Make sure Local Network permissions are turned on for the Ente Photos app, in Settings.",
+ "noDeviceFound": "No device found",
+ "stopCastingTitle": "Stop casting",
+ "stopCastingBody": "Do you want to stop casting?",
+ "castIPMismatchTitle": "Failed to cast album",
+ "castIPMismatchBody": "Please make sure you are on the same network as the TV.",
- "pairingComplete": "Pairing complete"
++ "pairingComplete": "Pairing complete",
++ "autoPair": "Auto pair",
++ "pairWithPin": "Pair with PIN"
}
diff --cc mobile/lib/models/gallery_type.dart
index b711e0f74a,40426f7015..bb02f1bbca
--- a/mobile/lib/models/gallery_type.dart
+++ b/mobile/lib/models/gallery_type.dart
@@@ -34,14 -32,12 +34,14 @@@ extension GalleyTypeExtension on Galler
case GalleryType.locationTag:
case GalleryType.quickLink:
case GalleryType.uncategorized:
+ case GalleryType.peopleTag:
+ case GalleryType.sharedCollection:
return true;
case GalleryType.hiddenSection:
case GalleryType.hiddenOwnedCollection:
case GalleryType.trash:
- case GalleryType.sharedCollection:
+ case GalleryType.cluster:
return false;
}
}
diff --cc mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart
index 46d817548b,e805927a64..beeb9164d5
--- a/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart
+++ b/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart
@@@ -1,14 -1,11 +1,15 @@@
import "dart:async";
import 'package:fast_base58/fast_base58.dart';
+import "package:flutter/cupertino.dart";
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
+ import "package:logging/logging.dart";
import "package:modal_bottom_sheet/modal_bottom_sheet.dart";
import 'package:photos/core/configuration.dart';
+import "package:photos/core/event_bus.dart";
+import "package:photos/events/people_changed_event.dart";
+import "package:photos/face/model/person.dart";
import "package:photos/generated/l10n.dart";
import 'package:photos/models/collection/collection.dart';
import 'package:photos/models/device_collection.dart';
@@@ -18,11 -15,8 +19,10 @@@ import 'package:photos/models/files_spl
import 'package:photos/models/gallery_type.dart';
import "package:photos/models/metadata/common_keys.dart";
import 'package:photos/models/selected_files.dart';
- import "package:photos/service_locator.dart";
import 'package:photos/services/collections_service.dart';
import 'package:photos/services/hidden_service.dart';
+import 'package:photos/services/machine_learning/face_ml/feedback/cluster_feedback.dart';
+import "package:photos/services/machine_learning/face_ml/person/person_service.dart";
import "package:photos/theme/colors.dart";
import "package:photos/theme/ente_theme.dart";
import 'package:photos/ui/actions/collection/collection_file_actions.dart';
@@@ -447,11 -418,8 +458,9 @@@ class _FileSelectionActionsWidgetStat
),
),
),
- ),
- );
+ );
- } else {
- // TODO: Return "Select All" here
- return const SizedBox.shrink();
+ }
++ return const SizedBox();
}
Future<void> _moveFiles() async {
diff --cc mobile/pubspec.lock
index 7ac3445c56,ae74068eb8..1d1082bfd3
--- a/mobile/pubspec.lock
+++ b/mobile/pubspec.lock
@@@ -354,22 -363,6 +363,14 @@@ packages
url: "https://pub.dev"
source: hosted
version: "2.3.2"
+ dart_ui_isolate:
+ dependency: "direct main"
+ description:
+ name: dart_ui_isolate
+ sha256: bd531558002a00de0ac7dd73c84887dd01e652bd254d3098d7763881535196d7
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.1.1"
- dartx:
- dependency: transitive
- description:
- name: dartx
- sha256: "8b25435617027257d43e6508b5fe061012880ddfdaa75a71d607c3de2a13d244"
- url: "https://pub.dev"
- source: hosted
- version: "1.2.0"
dbus:
dependency: transitive
description: