Commit Graph

545 Commits

Author SHA1 Message Date
Mauro
b0de00a5b5 Run single Test on CI for faster debugging (#896)
* let's disable autocorrection

* waiting some more time in flaky tests and updated the content of a test that was failing

* controlled delay waited a bit moe for the timeline to settle

* try await

* trying with a bit more waiting time after the tap and a slow velocity for the swipe

* let's try waiting more time

* workflow for a single ui test

* las try

* slow swiping tests

* commenting out flaky CI tests, for now we'll just disable them

* better description

* flaky test improvement

* disabling animations that are not needed in UITests

* code that already prevents animations in UI tests

* code improv
2023-05-17 16:15:43 +00:00
Stefan Ceriu
1ff3dfe6ea Fix background app refresh crashes. Make the user session an optional instead of it randomly crashing 2023-05-17 17:58:56 +03:00
Stefan Ceriu
df9c94c3b0 Adopt latest rust side sliding sync fixes. Relates to https://github.com/matrix-org/matrix-rust-sdk/pull/1936 2023-05-17 16:20:13 +03:00
Stefan Ceriu
22e0656633 Fix styling post code review 2023-05-17 16:17:48 +03:00
Stefan Ceriu
25f36c6d23 Update blockquote styling to latest designs 2023-05-17 16:17:48 +03:00
Stefan Ceriu
ada4fb81a4 Start fetching timeline item details directly on creation 2023-05-17 16:17:48 +03:00
Stefan Ceriu
7ec618b7ff Added custom reply views for all message types as well as a loading state 2023-05-17 16:17:48 +03:00
Flavio Alescio
920dcf419f UI section title fix 2023-05-16 18:23:23 +02:00
Flavio Alescio
f8543701b6 remove keyboard from screenshots 2023-05-16 18:23:23 +02:00
Flescio
ab9c687448 Update ElementX/Sources/Screens/CreateRoom/View/CreateRoomScreen.swift
Co-authored-by: Alfonso Grillo <alfogrillo@gmail.com>
2023-05-16 18:23:23 +02:00
Flescio
94c632d81b Update ElementX/Sources/Screens/CreateRoom/CreateRoomViewModel.swift
Co-authored-by: Alfonso Grillo <alfogrillo@gmail.com>
2023-05-16 18:23:23 +02:00
Flavio Alescio
ae6af5a987 fix compile error, Task not throwing 2023-05-16 18:23:23 +02:00
Flavio Alescio
b7c51d9df1 remove create room parameters by reference and use coordinator flow instead 2023-05-16 18:23:23 +02:00
Flavio Alescio
e8d31a8368 change accesibility identifiers, remove single selection button style, use Picker instead, 2023-05-16 18:23:23 +02:00
Flavio Alescio
60d2de46fa fix throwing task compile error 2023-05-16 18:23:23 +02:00
Flavio Alescio
ebb1901d00 add screenshots for UI test 2023-05-16 18:23:23 +02:00
Flavio Alescio
29acc06bca add UI test, separate model class in Services, UI fix for button with single selection style 2023-05-16 18:23:23 +02:00
Flavio Alescio
c8df835a9d UI on create room screen 2023-05-16 18:23:23 +02:00
Flavio Alescio
0be12eb2e0 persisting create room parameter in volatile memory 2023-05-16 18:23:23 +02:00
Flavio Alescio
aa7f446536 Create room: add selectable state for security, add navigation to screen 2023-05-16 18:23:23 +02:00
Flavio Alescio
9a56dae3a3 work on text input for room creation 2023-05-16 18:23:23 +02:00
Flavio Alescio
7e162bf604 add files for create room screen, add selected users section with test 2023-05-16 18:23:23 +02:00
Stefan Ceriu
3a9b477e1b Add list name to room summary provider logs to avoid confusion between multiple instances 2023-05-16 12:46:06 +03:00
Stefan Ceriu
0afaa0a300 Switch the RustSDK to v0.0.1-paginate-only-with-token in order to test out a timeline ordering fix 2023-05-15 19:19:44 +03:00
Stefan Ceriu
7b7b1fd4b3 Disabled the cold cache entirely so we can test out startup performance without it 2023-05-15 17:05:56 +03:00
Mauro
79b9f54a66 Fixing Tests for Xcode 14.3 (#888)
* settting macOS to 13, and let's runa test of... the tests

* I want the artifacts of the test, might give me some more insight in Xcode

* archive artifact

* trying a thing with the xcode version

* push notifications alert makes this test fail

* test improvement

* let's try with a very long time

* let's disable autocorrection

* sleep

* 1 seconds fixed 90% of the issue, 2 should fix 100%

* waiting some more time in flaky tests and updated the content of a test that was failing

* updated a screenshot test that had a notification

* this integration test is a bit so flaky increased the timing

* controlled delay waited a bit moe for the timeline to settle

* try await

* MainActor everywhere

* milliseconds fix

* trying with a bit more waiting time after the tap and a slow velocity for the swipe

* let's try waiting more time
2023-05-15 13:42:40 +00:00
Stefan Ceriu
c3b029f1a0 Add background app refresh support (#892)
* Add background app refresh support

* Cleanup: move methods around so delegates are implemented above privates and privates are ordered better

* Add discardableResult on the userSessionStore's refreshRestorationToken
2023-05-15 13:06:25 +03:00
Velin92
230ce8286f Translations update 2023-05-15 10:55:30 +03:00
Stefan Ceriu
75a48eda60 Fixes cache cleaning behavior after sdk change 2023-05-12 18:47:53 +03:00
Alfonso Grillo
d691878ba0 Invited members in room's members list (#880)
* Add invited people in RoomMembersListScreen

* Optimize main thread perfomance in RoomDetailsScreenViewModel

* Fix member count in RoomDetailsScreenViewModel

* Add warning

* Add performance warnings

* Build members in RoomMembersListScreenViewModel in global queue

* Refactor RoomDetailsScreenViewModel build members process

* Localize strings

* Cleanup

* Fix RoomDetailsScreenViewModelTests UTs

* Fix UI tests

* Add RoomMembersListScreenViewModel UTs

* Add UI tests

* Amend UI tests

* Use clearAndTypeText
2023-05-12 13:12:59 +00:00
Doug
06b7728f5b Use the existing quote bubble layout with TimelineReplyView. 2023-05-12 14:44:05 +03:00
Stefan Ceriu
64bcbd4265 The simmer modifier stopped animating on Xcode 14.3 iOS 16.4. Not entirely sure why but switching onAppear to task fixes it 2023-05-12 14:24:01 +03:00
Mauro
de4d065e60 Disable Local Push Notifications + Start Handling invite notifications (#882)
* disabled local pushes and fixed the issue with the image rendering

* disabled local notifications for now and started implementing invite notificatons

* disabled local notifications for now and started implementing invite notificatons

* removed code that should not have changed

* removed useless comment

* refactored name for category

* fixed a test

* fix

* fix for missing try await

* pr comments
2023-05-12 10:45:59 +00:00
Doug
133fccc812 Remove AppAuth and prepare for Rust OIDC. (#870) 2023-05-11 16:46:36 +01:00
Stefan Ceriu
ff4f5648c3 Add initial sync loading toast indicator 2023-05-11 17:31:44 +03:00
Stefan Ceriu
91411d5aff Tweak toast indicator so that it's a bit more proeminent 2023-05-11 17:31:44 +03:00
Stefan Ceriu
a3a1073686 Promote last message room list fetching to .userInitiated 2023-05-11 17:31:44 +03:00
Stefan Ceriu
7ca15e8c7a Fix the LoadableImage not using the already loaded image from the in-memory cache 2023-05-11 17:31:44 +03:00
Stefan Ceriu
8f5053df77 Force room list updates to not animate 2023-05-11 17:31:44 +03:00
Stefan Ceriu
3fcb7bc501 Show more descriptive errors when failing to retrieve a room tuple 2023-05-11 16:29:06 +03:00
Stefan Ceriu
25690158ca Correct the state machine current state after failing to retrieve a particular room 2023-05-11 16:29:06 +03:00
Stefan Ceriu
fcdb71dac5 Overhaul room list updates logging 2023-05-11 16:29:06 +03:00
Stefan Ceriu
5620e32f8e Various test fixes (#873)
* Switch back to macos-12 and see if the tests work

* Fix unit tests, add default invited, joined and active member counts to the mock room proxy

* Try running UI tests on 14.3 but on an existing iPad simulator

* Revert "Try running UI tests on 14.3 but on an existing iPad simulator"

This reverts commit b075e7fa384330a9070dc35ed4dded57e0af26e1.
2023-05-11 16:28:35 +03:00
Stefan Ceriu
842044ea1b Bump the SDK to 1.0.64-alpha 2023-05-11 14:07:09 +03:00
Mauro
cbf68eccf6 Update SDK to 1.0.63 (#869)
* bump sdk to 1.0.63

* code improvement
2023-05-10 14:36:40 +03:00
Stefan Ceriu
7aa5078535 Collect timeline diffs for a bit longer 2023-05-09 18:19:33 +03:00
Stefan Ceriu
bc62f230d6 Low effort fix for timeline date separator glitches 2023-05-09 18:19:33 +03:00
Alfonso Grillo
fedf50e047 Optimize leaving a room from home screen (#868)
* Use joinedMembersCount in HomeScreenViewModel

* Update matrix-rust-sdk to 1.0.62-alpha
2023-05-09 17:06:19 +02:00
Stefan Ceriu
b8ad1af172 Reply rendering (#861)
* Cleanup how we use message timeline items in preparation for rich reply rendering

* Expose reply details up to the UI level

* Render replies in the timeline (textual for now). Remove now unused AttributedStringBuilderComponent isReply flag.

* Move reply detail loading to when the item appears instead of when it's created.

* Fix unit tests

* Fetch event details also when the reply details are in the error state

* Tweaks following code review

* Localise emote bodies

* Fix replies not loading sometimes, use the current event identifier instead of the one being replied to
2023-05-09 16:09:38 +03:00
Stefan Ceriu
e9af6ec541 Improve media uploading content type selection. Fix pasting in screenshots not working 2023-05-09 12:45:09 +03:00