Refactor and redesign Location Sharing Screen (#5155)

* refactored the static location screen to the location sharing screen

# Conflicts:
#	UnitTests/Sources/LocationSharingScreenViewModelTests.swift

# Conflicts:
#	ElementX.xcodeproj/project.pbxproj

* implemented a custom pin with an overlayable view

* implemented the render of the user when the location is sender instead of the pin type

* removed description and body they are not used at all.

* reimplemented single button for sharing this or user location + implemented an experimental way to update annotations

* removed unnecessary @Suite description

* implemented a way to display the alert on top of the sheet and added a spinner to the center user location button

* fixed alerts strings

* fixed a failing test

* improved preview tests
This commit is contained in:
Mauro
2026-03-06 12:51:16 +01:00
committed by GitHub
parent 7a6ea01a23
commit 2b0771c43c
85 changed files with 917 additions and 626 deletions

View File

@@ -36,6 +36,7 @@
"a11y_session_verification_time_limited_action_required" = "Time limited action required, you have one minute to verify";
"a11y_show_password" = "Show password";
"a11y_start_call" = "Start a call";
"a11y_start_voice_call" = "Start a voice call";
"a11y_tombstoned_room" = "Tombstoned room";
"a11y_user_menu" = "User menu";
"a11y_view_avatar" = "View avatar";
@@ -262,6 +263,7 @@
"common_open_source_licenses" = "Open source licenses";
"common_optic_id_ios" = "Optic ID";
"common_or" = "or";
"common_other_options" = "Other options";
"common_password" = "Password";
"common_people" = "People";
"common_permalink" = "Permalink";
@@ -396,7 +398,7 @@
"dialog_file_too_large_to_upload_title" = "The file size is too large to upload";
"dialog_permission_camera" = "In order to let the application use the camera, please grant the permission in the system settings.";
"dialog_permission_generic" = "Please grant the permission in the system settings.";
"dialog_permission_location_description_ios" = "To share your current location, Element needs location access. Go to Settings > Location.";
"dialog_permission_location_description_ios" = "To share your current location, %1$@ needs location access. Go to Settings > Location.";
"dialog_permission_location_title_ios" = "%1$@ does not have access to your location.";
"dialog_permission_microphone" = "In order to let the application use the microphone, please grant the permission in the system settings.";
"dialog_permission_microphone_description_ios" = "Grant access so you can record and send messages with audio.";
@@ -458,6 +460,7 @@
"notification_channel_ringing_calls" = "Ringing calls";
"notification_channel_silent" = "Silent notifications";
"notification_fallback_content" = "You have new messages.";
"notification_incoming_audio_call" = "📞 Incoming call";
"notification_incoming_call" = "📹 Incoming call";
"notification_inline_reply_failed" = "** Failed to send - please open room";
"notification_invite_body" = "Invited you to chat";
@@ -665,6 +668,7 @@
"screen_media_upload_preview_item_count" = "Item %1$d of %2$d";
"screen_media_upload_preview_optimize_image_quality_title" = "Optimise image quality";
"screen_media_upload_preview_processing" = "Processing...";
"screen_onboarding_welcome_back" = "Welcome back";
"screen_pinned_timeline_empty_state_description" = "Press on a message and choose “%1$@” to include here.";
"screen_pinned_timeline_empty_state_headline" = "Pin important messages so that they can be easily discovered";
"screen_push_history_title" = "Push history";
@@ -1267,7 +1271,7 @@
"screen_share_open_apple_maps" = "Open in Apple Maps";
"screen_share_open_google_maps" = "Open in Google Maps";
"screen_share_open_osm_maps" = "Open in OpenStreetMap";
"screen_share_this_location_action" = "Share this location";
"screen_share_this_location_action" = "Share pinned location";
"screen_signed_out_reason_1" = "Youve changed your password on another session";
"screen_signed_out_reason_2" = "You have deleted the session from another session";
"screen_signed_out_reason_3" = "Your servers administrator has invalidated your access";