π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Merge branch 'internal-15_06_2025' into usearch_again
laurenspriem82a8e504afd5
diff --cc mobile/ios/Podfile.lockindex 9d91a4c09e,9196b657ee..3659a25b77--- a/mobile/ios/Podfile.lock+++ b/mobile/ios/Podfile.lock@@@ -458,48 -458,48 +463,49 @@@ SPEC CHECKSUMSFirebaseInstallations: 6c963bd2a86aca0481eef4f48f5a4df783ae5917FirebaseMessaging: 487b634ccdf6f7b7ff180fdcb2a9935490f764e8Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7- flutter_email_sender: aa1e9772696691d02cd91fea829856c11efb8e58- flutter_image_compress_common: 1697a328fd72bfb335507c6bca1a65fa5ad87df1- flutter_inappwebview_ios: b89ba3482b96fb25e00c967aae065701b66e9b99- flutter_local_notifications: ad39620c743ea4c15127860f4b5641649a988100- flutter_native_splash: 6cad9122ea0fad137d23137dd14b937f3e90b145- flutter_secure_storage: 2c2ff13db9e0a5647389bff88b0ecac56e3f3418- flutter_sodium: 7e4621538491834eba53bd524547854bcbbd6987- fluttertoast: 2c67e14dce98bbdb200df9e1acf610d7a6264ea1+ flutter_email_sender: e03bdda7637bcd3539bfe718fddd980e9508efaa+ flutter_image_compress_common: ec1d45c362c9d30a3f6a0426c297f47c52007e3e+ flutter_inappwebview_ios: 6f63631e2c62a7c350263b13fa5427aedefe81d4+ flutter_local_notifications: ff50f8405aaa0ccdc7dcfb9022ca192e8ad9688f+ flutter_native_splash: f71420956eb811e6d310720fee915f1d42852e7a+ flutter_secure_storage: 23fc622d89d073675f2eaa109381aefbcf5a49be+ flutter_sodium: a00383520fc689c688b66fd3092984174712493e+ flutter_timezone: ac3da59ac941ff1c98a2e1f0293420e020120282+ fluttertoast: 21eecd6935e7064cc1fcb733a4c5a428f3f24f0fGoogleDataTransport: aae35b7ea0c09004c3797d53c8c41f66f219d6a7GoogleUtilities: 26a3abef001b6533cf678d3eb38fd3f614b7872d- home_widget: f169fc41fd807b4d46ab6615dc44d62adbf9f64f- image_editor_common: 3de87e7c4804f4ae24c8f8a998362b98c105cac1- in_app_purchase_storekit: d1a48cb0f8b29dbf5f85f782f5dd79b21b90a5e6- integration_test: 4a889634ef21a45d28d50d622cf412dc6d9f586e- launcher_icon_switcher: 84c218d233505aa7d8655d8fa61a3ba802c022da+ home_widget: 0434835a4c9a75704264feff6be17ea40e0f0d57+ image_editor_common: d6f6644ae4a6de80481e89fe6d0a8c49e30b4b43+ in_app_purchase_storekit: a1ce04056e23eecc666b086040239da7619cd783+ integration_test: 252f60fa39af5e17c3aa9899d35d908a0721b573+ launcher_icon_switcher: 8e0ad2131a20c51c1dd939896ee32e70cd845b37libwebp: 02b23773aedb6ff1fd38cec7a77b81414c6842a8- local_auth_darwin: 553ce4f9b16d3fdfeafce9cf042e7c9f77c1c391- local_auth_ios: f7a1841beef3151d140a967c2e46f30637cdf451+ local_auth_darwin: 66e40372f1c29f383a314c738c7446e2f7fdadc3+ local_auth_ios: 5046a18c018dd973247a0564496c8898dbb5adf9Mantle: c5aa8794a29a022dfbbfc9799af95f477a69b62d- maps_launcher: edf829809ba9e894d70e569bab11c16352dedb45- media_extension: 671e2567880d96c95c65c9a82ccceed8f2e309fd- media_kit_libs_ios_video: 5a18affdb97d1f5d466dc79988b13eff6c5e2854- media_kit_video: 1746e198cb697d1ffb734b1d05ec429d1fcd1474- motion_sensors: 741e702c17467b9569a92165dda8d4d88c6167f1- motionphoto: 23e2aeb5c6380112f69468d71f970fa7438e5ed1- move_to_background: 7e3467dd2a1d1013e98c9c1cb93fd53cd7ef9d84+ maps_launcher: 2e5b6a2d664ec6c27f82ffa81b74228d770ab203+ media_extension: 6618f07abd762cdbfaadf1b0c56a287e820f0c84+ media_kit_libs_ios_video: a5fe24bc7875ccd6378a0978c13185e1344651c1+ media_kit_video: 5da63f157170e5bf303bf85453b7ef6971218a2e+ motion_sensors: 03f55b7c637a7e365a0b5f9697a449f9059d5d91+ motionphoto: 8b65ce50c7d7ff3c767534fc3768b2eed9ac24e4+ move_to_background: cd3091014529ec7829e342ad2d75c0a11f4378a5nanopb: fad817b59e0457d11a5dfbde799381cd727c1275- native_video_player: e363dd14f6a498ad8a8f7e6486a0db046ad19f13- objective_c: 89e720c30d716b036faf9c9684022048eee1eee2- onnxruntime: f9b296392c96c42882be020a59dbeac6310d81b2+ native_video_player: 5d36066807b680e181473e6890dde643ac85380d+ objective_c: 77e887b5ba1827970907e10e832eec1683f3431d+ onnxruntime: e7c2ae44385191eaad5ae64c935a72debaddc997onnxruntime-c: a909204639a1f035f575127ac406f781ac797c9connxruntime-objc: b6fab0f1787aa6f7190c2013f03037df4718bd8b- open_mail_app: 7314a609e88eed22d53671279e189af7a0ab0f11+ open_mail_app: 70273c53f768beefdafbe310c3d9086e4da3cb02OrderedSet: e539b66b644ff081c73a262d24ad552a69be3a94- package_info_plus: af8e2ca6888548050f16fa2f1938db7b5a5df499- path_provider_foundation: 080d55be775b7414fd5a5ef3ac137b97b097e564- permission_handler_apple: 4ed2196e43d0651e8ff7ca3483a069d469701f2d- photo_manager: d2fbcc0f2d82458700ee6256a15018210a81d413- privacy_screen: 3159a541f5d3a31bea916cfd4e58f9dc722b3fd4+ package_info_plus: c0502532a26c7662a62a356cebe2692ec5fe4ec4+ path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46+ permission_handler_apple: 9878588469a2b0d0fc1e048d9f43605f92e6cec2+ photo_manager: ff695c7a1dd5bc379974953a2b5c0a293f7c4c8a+ privacy_screen: 1a131c052ceb3c3659934b003b0d397c2381a24ePromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47- receive_sharing_intent: 222384f00ffe7e952bbfabaa9e3967cb87e5fe00+ rust_lib_photos: 04d3901908d2972192944083310b65abf410774c+ receive_sharing_intent: 79c848f5b045674ad60b9fea3bafea59962ad2c1SDWebImage: f84b0feeb08d2d11e6a9b843cb06d75ebf5b8868SDWebImageWebPCoder: e38c0a70396191361d60c092933e22c20d5b1380Sentry: da60d980b197a46db0b35ea12cb8f39af48d8854diff --cc mobile/lib/ui/settings/debug/ml_debug_section_widget.dartindex 7010860b97,b63944fa72..a597b94158--- a/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart+++ b/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart@@@ -21,8 -12,7 +21,9 @@@ import "package:photos/services/machineimport 'package:photos/services/machine_learning/ml_service.dart';import "package:photos/services/machine_learning/semantic_search/semantic_search_service.dart";import "package:photos/services/memory_home_widget_service.dart";+ import "package:photos/services/notification_service.dart";+import "package:photos/src/rust/api/simple.dart";+import "package:photos/src/rust/api/usearch_api.dart";import 'package:photos/theme/ente_theme.dart';import 'package:photos/ui/components/captioned_text_widget.dart';import 'package:photos/ui/components/expandable_menu_item_widget.dart';@@@ -77,381 -67,121 +78,495 @@@ class _MLDebugSectionWidgetState extendlogger.info("Building ML Debug section options");return Column(children: [+ sectionOptionSpacing,+ MenuItemWidget(+ captionedTextWidget: const CaptionedTextWidget(+ title: "Show pending notifications",+ ),+ pressedColor: getEnteColorScheme(context).fillFaint,+ trailingIcon: Icons.chevron_right_outlined,+ trailingIconIsMuted: true,+ onTap: () async {+ try {+ final amount =+ await NotificationService.instance.pendingNotifications();+ showShortToast(context, '$amount pending notifications');+ } catch (e, s) {+ logger.severe('pendingNotifications failed ', e, s);+ await showGenericErrorDialog(context: context, error: e);+ }+ },+ ),+ sectionOptionSpacing,+ MenuItemWidget(+ captionedTextWidget: const CaptionedTextWidget(+ title: "Clear pending notifications",+ ),+ pressedColor: getEnteColorScheme(context).fillFaint,+ trailingIcon: Icons.chevron_right_outlined,+ trailingIconIsMuted: true,+ onTap: () async {+ try {+ await NotificationService.instance.clearAllScheduledNotifications(+ containingPayload: "onThisDay",+ );+ showShortToast(context, 'Done');+ } catch (e, s) {+ logger.severe('clearAllScheduledNotifications failed ', e, s);+ await showGenericErrorDialog(context: context, error: e);+ }+ },+ ),+ sectionOptionSpacing,+ MenuItemWidget(+ captionedTextWidget: const CaptionedTextWidget(+ title: "Schedule notification 10 seconds",+ ),+ pressedColor: getEnteColorScheme(context).fillFaint,+ trailingIcon: Icons.chevron_right_outlined,+ trailingIconIsMuted: true,+ onTap: () async {+ try {+ await NotificationService.instance.scheduleNotification(+ "test",+ "test",+ id: 10,+ dateTime: DateTime.now().add(+ const Duration(seconds: 10),+ ),+ );+ showShortToast(context, 'done');+ } catch (e, s) {+ logger.severe('schedule notification failed ', e, s);+ await showGenericErrorDialog(context: context, error: e);+ }+ },+ ),+ sectionOptionSpacing,+ MenuItemWidget(+ captionedTextWidget: const CaptionedTextWidget(+ title: "Schedule notification 1 hour",+ ),+ pressedColor: getEnteColorScheme(context).fillFaint,+ trailingIcon: Icons.chevron_right_outlined,+ trailingIconIsMuted: true,+ onTap: () async {+ try {+ await NotificationService.instance.scheduleNotification(+ "test",+ "test",+ id: 11,+ dateTime: DateTime.now().add(+ const Duration(hours: 1),+ ),+ );+ showShortToast(context, 'done');+ } catch (e, s) {+ logger.severe('schedule notification failed ', e, s);+ await showGenericErrorDialog(context: context, error: e);+ }+ },+ ),+ sectionOptionSpacing,+ MenuItemWidget(+ captionedTextWidget: const CaptionedTextWidget(+ title: "Schedule notification 12 hours",+ ),+ pressedColor: getEnteColorScheme(context).fillFaint,+ trailingIcon: Icons.chevron_right_outlined,+ trailingIconIsMuted: true,+ onTap: () async {+ try {+ await NotificationService.instance.scheduleNotification(+ "test",+ "test",+ id: 12,+ dateTime: DateTime.now().add(+ const Duration(hours: 12),+ ),+ );+ showShortToast(context, 'done');+ } catch (e, s) {+ logger.severe('schedule notification failed ', e, s);+ await showGenericErrorDialog(context: context, error: e);+ }+ },+ ),sectionOptionSpacing,+ MenuItemWidget(+ captionedTextWidget: const CaptionedTextWidget(+ title: "Do some basic usearch",+ ),+ pressedColor: getEnteColorScheme(context).fillFaint,+ trailingIcon: Icons.chevron_right_outlined,+ trailingIconIsMuted: true,+ onTap: () async {+ try {+ // randomly generate some vectors and keys+ final random = Random();+ final tenEmbeddings = List.generate(+ 10,+ (index) {+ final randomList = List<double>.generate(+ 192,+ (_) => random.nextDouble(), // Values between 0 and 1+ );+ final randomVector = Vector.fromList(randomList).normalize();+ return Float32List.fromList(randomVector.toList());+ },+ );+ final tenKeys = Uint64List.fromList(+ List.generate(+ tenEmbeddings.length,+ (index) => BigInt.from(index + 1),+ ),+ );+ final embedDimensions = BigInt.from(tenEmbeddings.first.length);+ final indexPath = (await getApplicationSupportDirectory()).path ++ "/ml/test/vector_db_index.usearch";+ final rustVectorDB = VectorDb(+ filePath: indexPath,+ dimensions: embedDimensions,+ );+ await rustVectorDB.resetIndex();+ final stats = await rustVectorDB.getIndexStats();+ logger.info("vector_db stats: $stats");+ await rustVectorDB.bulkAddVectors(+ keys: tenKeys,+ vectors: tenEmbeddings,+ );+ final statsAgain = await rustVectorDB.getIndexStats();+ logger.info("vector_db stats again: $statsAgain");+ final size = statsAgain.$1;+ final capacity = statsAgain.$2;+ final dimensions = statsAgain.$3;+ showShortToast(+ context,+ "Size: $size, Capacity: $capacity, Dimensions: $dimensions",+ );+ await rustVectorDB.deleteIndex();+ } catch (e, s) {+ logger.warning('Rust bridge failed ', e, s);+ await showGenericErrorDialog(context: context, error: e);+ }+ },+ ),+ sectionOptionSpacing,+ MenuItemWidget(+ captionedTextWidget: const CaptionedTextWidget(+ title: "Fill ClipVectorDB",+ ),+ pressedColor: getEnteColorScheme(context).fillFaint,+ trailingIcon: Icons.chevron_right_outlined,+ trailingIconIsMuted: true,+ onTap: () async {+ try {+ final allClip = await MLDataDB.instance.getAllClipVectors();+ final allClipSmall = allClip.sublist(0, 15000);+ showShortToast(context, "Got all embeddings");+ logger.info("Got all embeddings");++ final clipVectorDB = ClipVectorDB.instance;+ await clipVectorDB.deleteAllEmbeddings();+ logger.info("Clean vector DB");+ final stats = await clipVectorDB.getIndexStats();+ logger.info(stats.toString());+ showShortToast(context, stats.toString());++ final fileIDs = allClipSmall.map((e) => e.fileID).toList();+ final embeddings = allClipSmall+ .map((e) => Float32List.fromList(e.vector.toList()))+ .toList();+ showShortToast(context, "Reshaped embeddings data");+ logger.info("Reshaped embeddings data");++ final now = DateTime.now();+ await clipVectorDB.bulkInsertEmbeddings(+ fileIDs: fileIDs,+ embeddings: embeddings,+ );+ final duration = DateTime.now().difference(now);+ logger.info(+ "ClipVectorDB bulk insert took ${duration.inMilliseconds} ms for ${fileIDs.length} embeddings",+ );+ final statsAfter = await clipVectorDB.getIndexStats();+ logger.info(statsAfter.toString());+ showShortToast(context, statsAfter.toString());+ } catch (e, s) {+ logger.warning('ClipVectorDB migration failed ', e, s);+ await showGenericErrorDialog(context: context, error: e);+ }+ },+ ),+ sectionOptionSpacing,+ MenuItemWidget(+ captionedTextWidget: const CaptionedTextWidget(+ title: "Migrate to ClipVectorDB",+ ),+ pressedColor: getEnteColorScheme(context).fillFaint,+ trailingIcon: Icons.chevron_right_outlined,+ trailingIconIsMuted: true,+ onTap: () async {+ try {+ await MLDataDB.instance.checkMigrateFillClipVectorDB();+ showShortToast(context, "Migration done!");+ } catch (e, s) {+ logger.warning('ClipVectorDB migration failed ', e, s);+ await showGenericErrorDialog(context: context, error: e);+ }+ },+ ),+ sectionOptionSpacing,+ MenuItemWidget(+ captionedTextWidget: const CaptionedTextWidget(+ title: "Show ClipVectorDB stats",+ ),+ pressedColor: getEnteColorScheme(context).fillFaint,+ trailingIcon: Icons.chevron_right_outlined,+ trailingIconIsMuted: true,+ onTap: () async {+ try {+ final clipVectorDB = ClipVectorDB.instance;+ final stats = await clipVectorDB.getIndexStats();+ logger.info(stats.toString());+ showShortToast(context, stats.toString());+ } catch (e, s) {+ logger.warning('ClipVectorDB stats failed ', e, s);+ await showGenericErrorDialog(context: context, error: e);+ }+ },+ ),+ sectionOptionSpacing,+ MenuItemWidget(+ captionedTextWidget: const CaptionedTextWidget(+ title: "Delete/Empty ClipVectorDB",+ ),+ pressedColor: getEnteColorScheme(context).fillFaint,+ trailingIcon: Icons.chevron_right_outlined,+ trailingIconIsMuted: true,+ onTap: () async {+ try {+ final clipVectorDB = ClipVectorDB.instance;+ await clipVectorDB.deleteIndex();+ } catch (e, s) {+ logger.warning('ClipVectorDB cleanup failed ', e, s);+ await showGenericErrorDialog(context: context, error: e);+ }+ },+ ),+ sectionOptionSpacing,+ MenuItemWidget(+ captionedTextWidget: const CaptionedTextWidget(+ title: "Benchmark Vector DB Face",+ ),+ pressedColor: getEnteColorScheme(context).fillFaint,+ trailingIcon: Icons.chevron_right_outlined,+ trailingIconIsMuted: true,+ onTap: () async {+ try {+ final w = (kDebugMode ? EnteWatch('MLDebugSectionWidget') : null)+ ?..start();+ final persons = await PersonService.instance.getPersons();+ w?.log('get all persons for ${persons.length} persons');+ String laurensID = '';+ for (final person in persons) {+ if (person.data.name.toLowerCase().contains('laurens')) {+ laurensID = person.remoteID;+ }+ }+ if (laurensID.isEmpty) {+ throw Exception('Laurens not found');+ }+ final laurensFaceIDs =+ await MLDataDB.instance.getFaceIDsForPerson(laurensID);+ w?.log(+ 'getting all face ids for laurens (${laurensFaceIDs.length} faces)',+ );+ final laurensFaceIdToEmbeddingData = await MLDataDB.instance+ .getFaceEmbeddingMapForFaces(laurensFaceIDs);++ // Fill the vector DB with all embeddings+ final laurensFaceIdToFloat32 = laurensFaceIdToEmbeddingData.map(+ (key, value) => MapEntry(+ key,+ Float32List.fromList(EVector.fromBuffer(value).values),+ ),+ );+ final keys = Uint64List.fromList(+ List.generate(+ laurensFaceIdToFloat32.length,+ (index) => BigInt.from(index + 1),+ ),+ );+ final vectorDB = VectorDb(+ filePath: (await getApplicationSupportDirectory()).path ++ "/ml/test/vector_db_face_index.usearch",+ dimensions: BigInt.from(+ laurensFaceIdToFloat32.values.first.length,+ ),+ );+ await vectorDB.resetIndex();+ await vectorDB.bulkAddVectors(+ keys: keys,+ vectors: laurensFaceIdToFloat32.values.toList(),+ );++ // Benchmarking the vector DB+ final queries = laurensFaceIdToFloat32.values.toList();+ final count = BigInt.from(10);+ w?.reset();+ final (vectorKeys, distances) = await vectorDB.bulkSearchVectors(+ queries: queries,+ count: count,+ );++ w?.log(+ 'Done with ${queries.length * queries.length} (${queries.length} x ${queries.length}}) embeddings comparisons in vector DB',+ );+ logger.info(+ 'vector db results: ${vectorKeys.length} results, first: ${vectorKeys.first}, hundredth: ${vectorKeys[99]}',+ );++ // Benchmarking our own vector comparisons+ final laurensFaceIdToEmbeddingVectors =+ laurensFaceIdToEmbeddingData.map(+ (key, value) => MapEntry(+ key,+ Vector.fromList(EVector.fromBuffer(value).values),+ ),+ );+ final faceVectors = laurensFaceIdToEmbeddingVectors.values;+ w?.reset();+ for (final faceVector in faceVectors) {+ for (final otherFaceVector in faceVectors) {+ final _ = 1 - faceVector.dot(otherFaceVector);+ }+ }++ w?.log(+ 'Done with ${faceVectors.length * faceVectors.length} (${faceVectors.length} x ${faceVectors.length}}) embeddings comparisons in own method',+ );+ await vectorDB.deleteIndex();+ } catch (e, s) {+ logger.warning('vector DB search failed ', e, s);++ await showGenericErrorDialog(context: context, error: e);+ }+ },+ ),+ sectionOptionSpacing,+ MenuItemWidget(+ captionedTextWidget: const CaptionedTextWidget(+ title: "Benchmark Vector DB CLIP",+ ),+ pressedColor: getEnteColorScheme(context).fillFaint,+ trailingIcon: Icons.chevron_right_outlined,+ trailingIconIsMuted: true,+ onTap: () async {+ try {+ final w = (kDebugMode ? EnteWatch('MLDebugSectionWidget') : null)+ ?..start();+ final clipEmbeddings = await mlDataDB.getAllClipVectors();+ w?.log(+ 'getting all clip embeddings (${clipEmbeddings.length} embeddings)',+ );++ // Fill the vector DB with all embeddings+ final clipFloat32 = clipEmbeddings+ .map(+ (value) => Float32List.fromList(value.vector.toList()),+ )+ .toList();+ final keys = Uint64List.fromList(+ List.generate(+ clipFloat32.length,+ (index) => BigInt.from(index + 1),+ ),+ );+ final vectorDB = VectorDb(+ filePath: (await getApplicationSupportDirectory()).path ++ "/ml/test/vector_db_clip_index.usearch",+ dimensions: BigInt.from(+ clipFloat32.first.length,+ ),+ );+ await vectorDB.resetIndex();+ await vectorDB.bulkAddVectors(+ keys: keys,+ vectors: clipFloat32,+ );++ // Benchmarking the vector DB+ final count = BigInt.from(10);+ w?.reset();+ final (vectorKeys, distances) = await vectorDB.bulkSearchVectors(+ queries: clipFloat32,+ count: count,+ );++ w?.log(+ 'Done with ${clipFloat32.length * clipFloat32.length} (${clipFloat32.length} x ${clipFloat32.length}}) embeddings comparisons in vector DB',+ );+ logger.info(+ 'vector db results: ${vectorKeys.length} results, first: ${vectorKeys.first} with distances ${distances.first}, hundredth: ${vectorKeys[99]} with distances ${distances[99]}',+ );++ // // Benchmarking our own vector comparisons+ // final clipVectors = clipEmbeddings+ // .map(+ // (value) => value.vector,+ // )+ // .toList();+ // w?.reset();+ // int compared = 0;+ // int ms = DateTime.now().millisecondsSinceEpoch;+ // for (final faceVector in clipVectors) {+ // for (final otherFaceVector in clipVectors) {+ // final _ = 1 - faceVector.dot(otherFaceVector);+ // }+ // compared++;+ // if (compared % 100 == 0) {+ // final now = DateTime.now().millisecondsSinceEpoch;+ // logger.info(+ // 'Compared next 100 in ${now - ms} ms, progress: ($compared / ${clipVectors.length})',+ // );+ // ms = now;+ // }+ // }+ // w?.log(+ // 'Done with ${clipVectors.length * clipVectors.length} (${clipVectors.length} x ${clipVectors.length}}) embeddings comparisons in own method',+ // );++ await vectorDB.deleteIndex();+ } catch (e, s) {+ logger.warning('vector DB search failed ', e, s);++ await showGenericErrorDialog(context: context, error: e);+ }+ },+ ),+ sectionOptionSpacing,+ MenuItemWidget(+ captionedTextWidget: const CaptionedTextWidget(+ title: "Test rust bridge",+ ),+ pressedColor: getEnteColorScheme(context).fillFaint,+ trailingIcon: Icons.chevron_right_outlined,+ trailingIconIsMuted: true,+ onTap: () async {+ try {+ final String greetings = greet(name: "Tom");+ const String expected = "Hello, Tom!";+ assert(greetings == expected);+ debugPrint("String from rust: $greetings");+ showShortToast(context, greetings);+ } catch (e, s) {+ logger.warning('Rust bridge failed ', e, s);+ await showGenericErrorDialog(context: context, error: e);+ }+ },+ ),+ sectionOptionSpacing,MenuItemWidget(captionedTextWidget: FutureBuilder<IndexStatus>(future: getIndexStatus(),