Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Resolve merge conflicts and merge main

ashilkn0c185d34462a
diff --cc mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dart
index 497eed3d73,8f4f3771a6..f220afee47
--- a/mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dart
+++ b/mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dart
@@@ -23,11 -23,7 +23,10 @@@ import "package:photos/models/metadata/
import 'package:photos/models/selected_files.dart';
import 'package:photos/service_locator.dart';
import 'package:photos/services/collections_service.dart';
+import "package:photos/services/location_service.dart";
import 'package:photos/services/sync_service.dart';
- import 'package:photos/services/update_service.dart';
+import "package:photos/states/location_screen_state.dart";
+import "package:photos/theme/colors.dart";
import 'package:photos/ui/actions/collection/collection_sharing_actions.dart';
import "package:photos/ui/cast/auto.dart";
import "package:photos/ui/cast/choose.dart";
diff --cc mobile/lib/ui/viewer/people/cluster_page.dart
index 308b34a975,8185228c64..51062e69e2
--- a/mobile/lib/ui/viewer/people/cluster_page.dart
+++ b/mobile/lib/ui/viewer/people/cluster_page.dart
@@@ -153,6 -153,50 +153,56 @@@ class _ClusterPageState extends State<C
),
body: Column(
children: [
+ showNamingBanner
+ ? Dismissible(
+ key: const Key("namingBanner"),
+ direction: DismissDirection.horizontal,
+ onDismissed: (direction) {
+ setState(() {
+ userDismissedNamingBanner = true;
+ });
+ },
+ child: PeopleBanner(
+ type: PeopleBannerType.addName,
+ faceWidget: PersonFaceWidget(
+ files.first,
+ clusterID: widget.clusterID,
+ ),
+ actionIcon: Icons.add_outlined,
+ text: S.of(context).addAName,
+ subText: S.of(context).findPeopleByName,
+ onTap: () async {
+ if (widget.personID == null) {
+ final result = await showAssignPersonAction(
+ context,
+ clusterID: widget.clusterID,
+ );
+ if (result != null &&
+ result is (PersonEntity, EnteFile)) {
+ Navigator.pop(context);
+ // ignore: unawaited_futures
+ routeToPage(
+ context,
- PeoplePage(person: result.$1),
++ PeoplePage(person: result.$1, searchResult: null),
+ );
+ } else if (result != null && result is PersonEntity) {
+ Navigator.pop(context);
+ // ignore: unawaited_futures
- routeToPage(context, PeoplePage(person: result));
++ routeToPage(
++ context,
++ PeoplePage(
++ person: result,
++ searchResult: null,
++ ),
++ );
+ }
+ } else {
+ showShortToast(context, "No personID or clusterID");
+ }
+ },
+ ),
+ )
+ : const SizedBox.shrink(),
Expanded(
child: SelectionState(
selectedFiles: _selectedFiles,