366 Commits

Author SHA1 Message Date
Stefan Ceriu
45d59c57d6 Bump the RustSDK to v1.0.53: adopt latest record based timeline item APIs (#3356) 2024-10-01 18:50:11 +03:00
Doug
94f5879639 Configure the AuthenticationService later now that we have 2 flows on the start screen. (#3316)
* Don't query the homeserver until confirming it (or selecting a different one).

* Setup the infrastructure to test AuthenticationService.

Implement basic tests for configuration & password login.

* Use the real AuthenticationService with a mock Client in all of the tests.

* Add tests for the ServerConfirmationScreenViewModel.

* Remove redundant view state and test for it.
2024-09-25 14:40:18 +01:00
Doug
830f8e9db7 Fix various flakey tests. 2024-09-23 16:25:49 +01:00
Doug
40567ffafa Use an environment variable to record failures. 2024-09-23 16:25:49 +01:00
Doug
7975b59659 Update UI tests for Xcode 16. 2024-09-23 16:25:49 +01:00
Stefan Ceriu
89eae00479 Switch license to AGPL (#3237)
* Switch license file to AGPL

* Update file copyright headers

* Update the default project file header
2024-09-06 16:34:30 +03:00
Stefan Ceriu
d1dc44c062 Revert "Fix timeline item highlighting UI test"
This reverts commit 721fa2b021.
2024-05-14 16:04:16 +03:00
Doug
29ca045c5f Add Forgot PIN button to AppLockSetupPINScreen. (#2833) 2024-05-13 15:41:35 +01:00
Stefan Ceriu
0548450b6b Enable room list invites by default and remove old code paths 2024-05-09 19:01:57 +03:00
Stefan Ceriu
1eb0b569d0 Seamlessly switch for the RichTextEditor based message composer to the… (#2753)
* Seemlesly switch for the RichTextEditor based message composer to the plain one depending on whether formatting options are enabled or not.

* Address PR comments

* Fixes #2803 - Add extra padding at the bottom of the composer suggestions list

* Update preview test snapshots

* Update UI test snapshots
2024-05-08 17:57:32 +03:00
Stefan Ceriu
dd811550c5 Fixes #2790 - Reorder available composer menu actions 2024-05-07 17:52:45 +03:00
Stefan Ceriu
721fa2b021 Fix timeline item highlighting UI test 2024-05-07 16:55:39 +03:00
Doug
452a4c12b8 Permalink polish (#2771)
* Fix unbalanced padding.

* Animate the scroll to an event when it is already loaded.

* Perform the timeline clearance immediately before replacing the items.
Hides the empty timeline that was briefly shown.

* Make switching timeline more resilient.
2024-05-02 17:51:38 +01:00
Doug
e90fcd4b4e Permalink Tweaks 2 (#2766)
* Missing changelog.

* Parse bare room aliases as permalinks.

Update the SDK.

* Fix tapping the same permalink twice.

Add a test.

Don't clear the focussed item when reaching the bottom of the timeline.

* Make sure sending a message returns to live.
2024-04-29 17:32:16 +01:00
Doug
51b8785fa0 Event Permalink Tweaks (#2754)
* Handle errors focussing the timeline.

* Add a test for focussing on an existing timeline item.
2024-04-29 10:00:41 +01:00
Doug
0b2bb7f056 Prepare for event focus and forward pagination (#2745)
Neither are available yet.
2024-04-25 18:32:33 +01:00
Doug
15b4cbf65d Add missing image provider to RoomChangeRolesScreenViewModel. (#2715)
* Add an assertion for a missing image provider.

* Pass an image provider to RoomChangeRolesScreenViewModel.

* Update snapshots.
2024-04-19 11:56:41 +01:00
Doug
32ab65a10f Final design for pending members when changing roles. (#2668)
* Final design for pending users when changing role.

* Remove room moderation feature flag.

* Fix tests.

* Run periphery.

* Update snapshots.
2024-04-09 12:00:11 +01:00
Doug
c4c8716da2 Update appearance of admins when changing moderators. (#2654) 2024-04-05 12:19:46 +01:00
Stefan Ceriu
cc4787b99f Various reliability tweaks for the UI and integration tests. 2024-04-01 12:27:54 +03:00
Stefan Ceriu
00f05c18ab Fix UI test snapshots 2024-03-27 17:59:40 +02:00
Stefan Ceriu
30c2796372 UI test cleanup (#2598)
* Stop running the UI tests on the double localized pseudolanguage

* Fix UI tests signalling comms problem because the json key ordering wasn't defined and the messages wouldn't match.

* Remove UI tests that are now the same as preview tests (i.e. non flow based, only screen based), fixed the rest so they run on iOS 17.2, the iPhone 15 and iPad 10th gen simulators.

* Remove unnecessary gitignore instructions, change UI test snapshot naming convention to be more similar to the unit test ones

* Enable derived data and spm checkout caching for UI tests

* Switch UI tests back to the perf-only runner, moved the integration tests to the iPhone 15 Pro simulator.

* Address PR comments
2024-03-25 17:34:11 +02:00
Doug
47fdf94f08 Fix UI test snapshots. (#2582) 2024-03-19 15:29:16 +00:00
Doug
0ccaa6180b Final changes for Room Moderation (#2576)
* Add confirmation that the user would like to discard unsaved changes.

* Update string on permissions screen.

* Fix UI tests and update snapshots.

* Fix integration tests.

* Run periphery for Moderation feature.
2024-03-15 13:41:23 +00:00
Stefan Ceriu
f1440e884a In preparation of FTUE changes... (#2556)
* Remove the welcome screen

* Allow the UserSessionFlowCoordinator to control the whole app hierarchy, not only its splitView

* Start using the new verification state listener

* Rename Onboarding to AuthenticationStart in preparation for the new OnboardingFlowCoordinator; update snapshots and tests

* Make the AuthenticationCoordinator a proper FlowCoordinator

* Add some padding around the authentication start screen report a problem button

* Bump the RustSDK to v1.1.49

* Only add bottom padding on the authentication start screen report a problem button
2024-03-13 11:24:48 +02:00
Doug
25c74a6bd6 Moderation tweaks (#2548)
* Only allow admins to see the roles and permissions screen.

* Hide the selection checkbox on Admins when changing roles.

* Show an empty state for banned users.

* Add separate actions for ban and remove.

* Implement reset permissions and demote self alerts.

* Add tests for resetting permissions and demoting self.

* Add a warning when promoting someone to administrator.
2024-03-11 14:19:53 +00:00
Doug
2efc1ce671 Add RoomRolesAndPermissionsFlowCoordinator. (#2539) 2024-03-08 12:25:43 +00:00
Mauro
459fc77557 Filters, Mark Unread/Read/Favourites FF removals + code and tests clean up (#2541) 2024-03-07 17:56:09 +01:00
Stefan Ceriu
c55dddc081 Fixes #2486 - Implement blocked users management in the app settings 2024-02-28 13:21:54 +02:00
Doug
938d3a9582 Update translations (#2499)
* Update translations

* Fix snapshots are changes to base strings.
2024-02-26 17:00:51 +00:00
Stefan Ceriu
98702d1af1 Fixes #2320 - Implement support for (un)marking rooms as favourite from the room list and room detail screens 2024-02-19 17:51:43 +02:00
Stefan Ceriu
66f0b71381 Fix UI test snapshots following the introduction of the typing indicator. 2024-02-14 17:36:25 +02:00
Doug
19a4a92c80 Use new decorative colours for avatars and displaynames. (#2438) 2024-02-09 11:15:57 +00:00
Stefan Ceriu
5cd32d4625 Fix session verification localized emoji snapshots 2024-02-08 11:13:08 +02:00
Stefan Ceriu
871471bbb0 Fixes #2414 - Move member loading to the room member detail screen, avoid blocking the whole application 2024-02-07 07:31:25 +00:00
Stefan Ceriu
f33a77b7a0 Fix flakey app lock setup pin screen pin entry typing 2024-01-26 17:59:58 +02:00
Stefan Ceriu
5e32cd2dbc Move the account migration screen to within the room list 2024-01-26 15:35:05 +02:00
Stefan Ceriu
ba179a18a3 #2380 - Add simple call screen UI test 2024-01-26 11:48:48 +02:00
Stefan Ceriu
10803c5708 Update user session test snapshots following room badge changes 2024-01-23 13:59:45 +02:00
Stefan Ceriu
fdee5acecc Fixes #734 - Add a "View logs" option to the report a problem screen
Move bug report and log viewer responsibility to a separate flow coordinator. Reuse it as a child coordinator in the authentication, userSessionFlow and settings flow coordinators.
2024-01-23 10:13:48 +02:00
Stefan Ceriu
2f9d2cf457 Allow reporting a problem from the onboarding screen 2024-01-22 14:17:36 +02:00
Stefan Ceriu
7b4626fc48 Revert previous poll UI test keyboard dismissal change as it doesn't work on iPhones. 2024-01-09 11:15:14 +02:00
Stefan Ceriu
d23ab7b921 UI test fixes (#2309)
* Fix settings screen screenshots

* Fix user session test snapshots

* Fix poll creation form UI test after moving to textViews instead of textFields

* Add missing room member details snapshot

* Update the home screen avatar snapshot as the badge is not shown anymore

* Dismiss the keyboard on the poll form when inserting a new line on a poll option
2024-01-08 16:02:29 +00:00
Stefan Ceriu
6770cf3bd2 Fixes #2269 - Wrong text color on the server confirmation screen subtitle 2024-01-08 11:48:28 +02:00
Nicolas Mauri
7a66c05319 Polls history (#2244) 2023-12-18 15:38:39 +00:00
Stefan Ceriu
4ac45fc30b Attempt fixing the UI tests 2023-12-18 15:15:43 +02:00
Mauro
a705d18ba6 Removing dead code part 2 (#2235)
Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
2023-12-15 20:16:16 +01:00
Doug
278cf06f44 Fix UI tests and Release builds. (#2248)
* Fix PollFormScreen UI tests.

* Fix compilation error on release builds.
2023-12-14 15:09:29 +00:00
Mauro
84b0f967e8 Removing Dead Code part 1 (#2234) 2023-12-13 09:51:57 +01:00
Stefan Ceriu
3e465995bd Fix UI tests for AppLock flow and Start Chat flow. Regenerate outdated screenshots (#2226) 2023-12-12 14:08:27 +00:00