Commit Graph

657 Commits

Author SHA1 Message Date
Mauro
e3383bc393 Refactored alert info to not use the soon to be deprecated API (#1084)
* refactored alert info to not use the soon to be deprecated API

* missing files and changelog

* updated some tests

* Update ElementX/Sources/Screens/RoomMemberDetailsScreen/View/RoomMemberDetailsScreen.swift

Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>

---------

Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
2023-06-14 14:24:10 +00:00
Flescio
e6f1992896 set up map sdk and reusable map view component (#1062)
* added map sdk with basic permission and static view

* add location annotation

* create dedicate service for MapTiler URLs

* manage error for MapLibre component

* add error to new Alert item
2023-06-14 09:08:36 +00:00
Alfonso Grillo
e5213057eb Update SDK to 1.0.75-alpha (#1075)
* Update SDK to 1.0.75-alpha

* Fix mocks
2023-06-14 08:49:59 +00:00
Stefan Ceriu
dd21781336 Fix modal sheet presentations when invoked from the timeline item menu sheet 2023-06-13 17:27:45 +03:00
Stefan Ceriu
5166885322 Use $(APP_DISPLAY_NAME) in camera and microphone usage descriptions 2023-06-13 17:26:29 +03:00
Stefan Ceriu
02f916ea3d Update camera and microphone usage descriptions 2023-06-13 17:26:29 +03:00
Alfonso Grillo
249bcb881f Add search modifiers (#1070) 2023-06-13 12:02:38 +00:00
Alfonso Grillo
dd151ac585 Fix regression on direct chat details (#1071)
* Fix regression

* Fix UTs
2023-06-13 11:43:25 +00:00
Stefan Ceriu
6c7c10ebc0 Fixes #1072 - Crashes when trying to save media to the photo library 2023-06-13 11:20:04 +03:00
Alfonso Grillo
1e6f121708 Fix localisation key (#1069) 2023-06-12 16:49:41 +02:00
Mauro
aea82b1865 Disable RR extension when feature flag is off (#1068)
* disable rr extension according to ff

* fixed typos in the code
2023-06-12 10:59:01 +00:00
Nad Chishtie
5b260b3f37 Refresh app icon asset 2023-06-12 08:30:13 +03:00
Mauro
7af09b5902 SDK Bump to 1.0.74 (#1059)
* testing improvements

* code improvements and sdk bump

* improved the stencil file

* improved the build sdk function

* code improvement

* also added the tearDown
2023-06-09 16:27:08 +00:00
Alfonso Grillo
3830ee0936 Room details: improve members count UX (#1050)
* Inject user id into room’s details

* Refactor member fetch logic in RoomDetailsScreenViewModel

* Refactor DI

* Fetch members in RoomMembersListScreenViewModel

* Fetch members in InviteUsersScreen

* Use joinedMembersCount in room members list

* Cleanup

* Limit members refresh

* Cleanup binding

* Fix UT build errors

* Fix RoomDetailsScreenViewModelTests

* Fix RoomMembersListScreenViewModelTests

* Fix UTs

* Fix RoomDetailsScreenUITests

* Refine RoomDetailsScreenViewModelTests

* Add roomProxy extension

* PR comments

* Refactor room’s counter to Int

* Improve updateMembers() performances

* Fix memory leaks
2023-06-09 16:21:01 +02:00
Mauro
de3997f6c4 RTL and LTR mixed languages fix for optimal timestamp support (#1055)
* fix

* fixed RTL and LTR timestamp for all the cases! also improved the testing

* changelog

* better and less convoluted solution

* Update ElementX/Sources/Screens/RoomScreen/View/Timeline/FormattedBodyText.swift

Co-authored-by: Alfonso Grillo <alfogrillo@gmail.com>

* pr suggestion and removed prefix in reality it creates more issues than improvements, and is not really needed

---------

Co-authored-by: Alfonso Grillo <alfogrillo@gmail.com>
2023-06-09 11:49:02 +00:00
Mauro
fd53d729e2 Timestamp for media messages (#1057)
* timestamp for media messages

* changelog
2023-06-08 19:03:51 +02:00
Stefan Ceriu
f98f762ee9 Update the app icon, switch the icon set to single size 2023-06-08 18:26:34 +03:00
Mauro
46397ba6ce Read Receipts display with the user avatar (#1038)
* added the read receipt into the code

* fixed some things lost during merge

* implemented the status view to be always at the trailing side

* preview code for better testing

* removed timelineStyle modifier

* removed also the group style

* added some UI tests for the read receipts
2023-06-08 10:05:56 +00:00
Stefan Ceriu
8635fd9367 Change the bundle display name to Element X, keep the rest as ElementX 2023-06-08 12:49:09 +03:00
Stefan Ceriu
4b65475cc1 Revert "Change the bundle display name to Element X, keep the rest as ElementX"
This reverts commit 6b79204eec.
2023-06-08 12:49:09 +03:00
Stefan Ceriu
442f4f5796 Disable allowsEditing on the camera picker, stop showing weird cropping box in the resulting image UI. 2023-06-08 12:25:09 +03:00
Stefan Ceriu
74ce89e232 Prevent multiple file selection callbacks coming from the media upload pickers and generating incorrect transitions in the RoomFlowCoordinator state machine 2023-06-08 12:25:09 +03:00
Stefan Ceriu
8381c1dac3 Fixes #974 - Replace the timeline item contex menu with a bottom sheet
(+10 squashed commits)
[ba1d3160] Update timeline item action menu reaction UI
[410315ac] Move away from item bound action meus plus various tweaks following code review
[c25cd998] Add emoji reactions to the new timeline item action menu
[57001f49] Prevent timeline view layouts from dismissing the action menu
[d1e70538] Various UI tweaks
[652f4143] Switch to a long press gesture, move the header outside of the scroll view
[569a485c] Workaround timeline item action menu presentation state not being stored
[80c29567] Add currently selected item information in the TimelineItemMenu
[ff7790ec] Fixes #974 - Replace the timeline item contex menu with a bottom sheet
[ba1d3160] Rename TimelineItemContextMenu to TimelineIteMenu so that git correctly interprets it
2023-06-07 19:42:21 +03:00
Stefan Ceriu
49cc2a8c73 Settings about section (#1041)
* Fixes #1011 - Add legal information screen in settings, move all settings related screens under Source/Screen/Settings
* Fix warnings after sliding sync api change
2023-06-07 17:04:42 +03:00
Mauro
3e0e4d02cf SDK Bump to 1.0.73-alpha (#1043)
* sdk bump

* moved the bump event types to the sliding sync list builder

* removed sync growing mode from notifications even if we are not really using it anymore

* recency order is also for the all room list

* removed the local notification code entirely

* removed unused function

* fixed the code placement for the ordering
2023-06-07 15:22:54 +02:00
Stefan Ceriu
6b79204eec Change the bundle display name to Element X, keep the rest as ElementX 2023-06-07 15:08:47 +03:00
ElementRobot
c9ce18507a Translations update (#1013)
* Translations update

* fix for notification invite body

---------

Co-authored-by: Velin92 <Velin92@users.noreply.github.com>
Co-authored-by: Mauro Romito <mauro.romito@element.io>
2023-06-07 11:01:05 +00:00
Alfonso Grillo
d8ef43c258 Remove feature flags for the rooms epic (#1042)
* Delete rooms feature flags

* Rename suggestions feature flag

* Cleanup test targets
2023-06-07 12:43:24 +02:00
Alfonso Grillo
a795ba4b1c Improve UserDiscoveryService behavior (#1039)
* Refactor UserDiscoveryService

* Add UTs
2023-06-07 11:58:00 +02:00
Alfonso Grillo
2b50f4213b Update the "remove avatar" logic in edit room details (#1032)
* Refactor remove avatar logic

* Add test
2023-06-06 16:14:34 +02:00
Mauro
4e0dd5d2d9 Tapping on user avatar/name in the timeline opens the room member details (#1020)
* Implementation completed

* changelog

* code improvement

* Apply suggestions from code review

Co-authored-by: Stefan Ceriu <stefanc@matrix.org>

* pr suggestions

---------

Co-authored-by: Stefan Ceriu <stefanc@matrix.org>
2023-06-06 08:46:04 +00:00
Doug
edbef54243 Improved bug report error handling (#1018)
* Improve rageshake error handling.

* Add a max file size and exclude older files one the limit is hit.

* Zip log files as smaller chunks.
2023-06-06 11:24:01 +03:00
Alfonso Grillo
199f5248af Create & Join rooms UI/UX tweaks (#1005)
* Fix people icon size

* Disable dismiss when loading in StartChatScreen

* Reduce debounce on search

* Add padding to invite button

* Add show/hide bottom bar behaviour

* Fix bg color in StartChatScreen form

* Update localisations

* Update search users results to 10

* Fix form background in InviteUsersScreen

* Fix invites list bg color

* Add mxid in InvitesScreenCell

* Refactor InvitesScreenCell design

* Fix separator spacing

* Add more design fixes

* Refine InvitesScreenCell layout

* Refactor UserProfileCell design

* Refactor FormRowAccessory

* Update localisations

* Fix camera size and security section padding

* Change create button style

* Refine InviteUsersScreenSelectedItem

* Refine CreateRoomScreen

* Refine UserProfileCell padding

* Amend preview name

* delete test code

* Add separator in security section

* Fix spacing in InviteUsersScreenSelectedItem

* Revert confirmationAction in CreateRoomScreen

* Refine HomeScreenInvitesButton

* Add dismiss keyboard in InviteUsersScreen

* Refactor FormRowAccessory

* Remove isDisabled from FormButtonStyles

* Update localisations

* Cleanup RoomDetailsEditScreen

* UI fixes on horizontal user carousel

* Refactor InviteUsersScreenSelectedItem

* Try fix flaky tests

* Fix typo

* Update snapshot tests

* Fix flaky UTs

* Fix HomeScreen ui tests

* Fix scroll on selection

* Refactor RoomFlowCoordinatorTests
2023-06-06 08:03:38 +00:00
Doug
eb1f1baed6 Fix authentication UI tests. (#1010)
* Fix authentication flow UI tests.

* Fix analytics prompt snapshot.
2023-06-02 12:41:45 +01:00
Doug
61f870def7 Backport base Form style from Compound. (#1009)
Apply to all screens using the formBackground colour.
2023-06-02 11:39:03 +01:00
Doug
87d20702e1 Fix the background colour when replying. (#1007) 2023-06-02 09:58:28 +01:00
Doug
aa0b8110b4 Authentication Layouts (#994)
* Remove unused code in OnboardingScreen.
* Add FullscreenDialog layout and use in auth flow.

Bump minimum OS to 16.4/13.3.

* Add dynamic layout based on dynamic type size.
2023-05-31 18:39:53 +01:00
Stefan Ceriu
5a7ffa761d Bump the RustSDK, adopt latest sliding sync changes and fixes 2023-05-31 20:31:20 +03:00
Stefan Ceriu
b1a64f5611 Cleanup the stored timelineController when dismissing a room 2023-05-31 20:31:20 +03:00
Stefan Ceriu
9ec66278bb Remove duplicates from the reachability monitor 2023-05-31 20:31:20 +03:00
Alfonso Grillo
f2c1f8fdea Fix navigation back from room's details (#988)
* Fix navigation to room details

* Improve tests

* Delete unused action in RoomDetailsScreen

* Cleanup

* Try fix flaky tests
2023-05-31 16:24:12 +00:00
Stefan Ceriu
6ab78fb03b Composer mode UI updates (#984)
* Fixes #975 - Update editing message UI

* Fixes #976 - Update reply composer mode UI to include message being replied to

* Use different icon corner radii in the timeline reply view depending on its placement
2023-05-31 14:51:51 +03:00
Alfonso Grillo
90f48e9303 Add UserIndicator.disableInteractiveDismiss (#993) 2023-05-31 12:56:58 +02:00
Stefan Ceriu
b8b0d69891 Bump the RustSDK to v1.0.71-alpha, adopt latest sliding sync range API 2023-05-30 20:05:18 +03:00
Doug
e1498e895b Update OIDC presentation (#987)
* Present OIDC directly on the ServerConfirmationScreen.

Read the actual window from the view.

* Pop back to the confirmation screen when a user enters an MXID that needs OIDC.

* Remove OIDC error handling from the login screen.
2023-05-30 16:51:00 +01:00
Flescio
2ea8fe0254 Flescio/add room image (#961)
* image media upload for room creation

* fix remove duplicate logic

* use Async Image, add Focusable Fields in create room

* remove alert message which doesn't have a copy

* add remove duplicates on crete room image

* add button style for preventing undesired touches

* add changelog, add error case for file too large

* Fix iPad sheet presentation

* add error media preprocess

* dismissing focus on image picker
2023-05-30 12:55:29 +00:00
Alfonso Grillo
5df4e32fef Add indicator after leaving a room (#981)
* Refactor UserIndicatorModalView to support no progress

* Add room left indicator in HomeScreenViewModel

* Apply PR suggestion
2023-05-30 12:32:07 +02:00
Doug
7c4d0631df Server Confirmation Screen (#959)
* Add ServerConfirmationScreen.
2023-05-30 10:31:18 +01:00
Mauro
7338fc998b Generating SDK Mocks through the usage of swift run tools generate-sdk-mocks (#982)
* basic implementation, that works for now only with the local SDK

* replaced a handmade mock with a generated mock
2023-05-30 09:48:55 +02:00
Alfonso Grillo
13a0bd4ac2 Fix update on LoadableImage (#973)
* Refactor LoadableImage

* Cleanup
2023-05-29 10:53:23 +00:00