Commit Graph

391 Commits

Author SHA1 Message Date
Benoit Marty 74a9a54719 Rename Preview to follow code convention 2024-04-19 14:30:45 +02:00
Benoit Marty 290a05439e Fix test. 2024-04-18 00:44:34 +02:00
Benoit Marty 8327ea306f Increase usage of RoomAlias 2024-04-18 00:02:22 +02:00
Benoit Marty 5b3a2d8eca Use produceState and fetch profile only if necessary. 2024-04-17 16:15:36 +02:00
Benoit Marty f9d3f947c2 Add missing test for unblock user with error. 2024-04-17 14:44:16 +02:00
Benoit Marty 3f0159d438 Format 2024-04-17 14:01:03 +02:00
Benoit Marty 4d50e43e85 Add test covering fallback to user profile. 2024-04-17 13:42:29 +02:00
Benoit Marty 0dba614c0a createRoomMemberDetailsPresenter just need a UserId. 2024-04-17 13:35:16 +02:00
Benoit Marty c9d5961684 RoomMemberDetailsPresenter: fallback to user profile data if the user is not a member of the room.
This can be displayed when the user click on a non-member user permalink.
2024-04-17 13:21:52 +02:00
Benoit Marty f2ff326938 Observe ignoredUsersFlow to have live data about blocked user.
This will also ensure that blocking a user will work even if the user is not a member of the room (preparatory work for user permalink)
2024-04-17 13:21:52 +02:00
Benoit Marty 9fcb880f1d Fix formatting issue. 2024-04-15 17:04:33 +02:00
Benoit Marty b1cb24a883 Use Node scope instead of UI scope. 2024-04-15 17:02:27 +02:00
Benoit Marty 294f1f2d96 Use SDK API to build room and event permalinks. 2024-04-15 16:05:12 +02:00
bmarty 8f6a1b410e Sync Strings from Localazy 2024-04-15 11:40:19 +00:00
Benoit Marty 810e4919bc Sync strings. 2024-04-10 12:36:41 +02:00
Jorge Martin Espinosa cf072fa1e1 Improve session recovery screens (#2657)
* Improve enter recovery key screen UI

* Add instructions to reset the encryption of the logged in account.

* Update screenshots

* Fix maestro flow

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-04-09 17:01:06 +00:00
Jorge Martin Espinosa d0f26777da Remove Room moderation feature flag (#2678)
* Remove the feature flag

* Add changelog

* Increase login timeout for Maestro
2024-04-09 17:53:07 +02:00
Jorge Martin Espinosa 63f7defb07 Display members section when there are members in the room, not admins (#2679)
* Display members section when there are members in the room, not admins

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-04-09 13:08:40 +00:00
Benoit Marty 16d289e180 Exclude fun ContentToPreview() from coverage, this is not production code. 2024-04-08 16:20:42 +02:00
Jorge Martin Espinosa 8e2f7a35cb Categorise members by role in the ChangeRoles screen (#2595)
* Categorise members by role in the ChangeRoles screen

* Fix automatic reload of member list when either the membership or power levels change

* Replace empty space with disabled checkbox

* Add 'pending' label to members who are in invited state

* Implement new designs

* Fix string issue in confirm recovery key screen

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-04-08 08:54:38 +00:00
bmarty e6bd14a1a9 Sync Strings from Localazy 2024-04-08 00:20:53 +00:00
Benoit Marty c0caa907aa Move usersWithRole() function to a dedicated file and make it a documented extension of MatrixRoom. 2024-04-05 12:43:41 +02:00
Benoit Marty fd1ff97c53 Add comment for clarity 2024-04-05 12:01:29 +02:00
Benoit Marty 3fdc281bd3 No need to use CompositionLocalProvider here. 2024-04-05 10:27:49 +02:00
Benoit Marty 0a14ed67af Add UI test on ChangeRolesView 2024-04-05 10:12:29 +02:00
Benoit Marty 2cb056711d SearchBar handle the back press when it is active, there is no need to handle the event here. 2024-04-05 09:23:36 +02:00
Benoit Marty 97491c3f3f Member role: only count and display joined members. 2024-04-04 19:17:36 +02:00
Benoit Marty 04eb59bd07 Ensure SearchBar are displayed with max width. 2024-04-04 18:45:56 +02:00
Benoit Marty 5f071daf64 Fix non-scrollable screens. 2024-04-04 18:36:14 +02:00
Benoit Marty 3ed8b0d055 Avoid using fixture method in production code. 2024-04-04 17:48:04 +02:00
Benoit Marty e18e5f1cc5 Run ./tools/localazy/downloadStrings.sh --all 2024-04-02 18:12:36 +02:00
Benoit Marty 609f636d1c Merge pull request #2639 from element-hq/feature/bma/hideCallMemberEvents
Hide call member events
2024-04-02 16:14:11 +02:00
Benoit Marty 1e5a61a49c Move PermalinkBuilder, MatrixToConverter and PermalinkParser content to the impl project in order to remove projects.appconfig dependency from matrix.api module. 2024-04-02 14:15:54 +02:00
bmarty 5809864182 Sync Strings from Localazy 2024-04-01 00:17:18 +00:00
ganfra 42004f251b Room directory : more cleanup and more tests 2024-03-28 18:10:29 +01:00
ganfra 865b8b0001 Merge pull request #2591 from element-hq/fix/jme/2590-update-room-member-list-after-changing-roles
Update member list after changing member roles
2024-03-26 12:27:42 +01:00
bmarty 3af876b953 Sync Strings from Localazy 2024-03-25 00:18:59 +00:00
Jorge Martin Espinosa 4960621277 Replace leftover hardcoded string with the right text (#2592) 2024-03-22 14:34:40 +01:00
Jorge Martín 9f2726ec4f Only retrieve active users in RoomMemberListDataSource 2024-03-22 10:14:22 +01:00
Jorge Martín 759022ec92 Update member list after changing member roles
Also do it when the user enters the room member list screen.
2024-03-22 10:13:51 +01:00
Benoit Marty fb64018110 Merge pull request #2565 from element-hq/feature/bma/userDataCache
Read user avatar from cache
2024-03-18 17:33:26 +01:00
Jorge Martin Espinosa 883d834284 Remove unnecessary Room.updateMembers() calls. (#2564)
* Remove unnecessary `updateMembers` calls.

Some of them can be directly removed since we have a way to automatically get member info updates based on membership changes.

Others can be replaced by a simpler `getUpdatedMember` method. This might still need a full member sync, but it's quite unlikely.
2024-03-18 14:57:25 +00:00
Benoit Marty a0cbe1087b Fix compilation warning. 2024-03-18 15:02:41 +01:00
Jorge Martin Espinosa 4b9507d512 Add analytic events to room moderation (#2553)
* Add analytic events to room moderation

* Fix typo and tests
2024-03-18 08:06:36 +01:00
ElementBot f089847f48 Sync Strings (#2557)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2024-03-15 13:37:11 +01:00
Jorge Martin Espinosa e3a395f15a Improve room member list loading UX (#2543)
Improve room member list UX:

- Don't display the list in chunks anymore.
- Use an indeterminate linear progress indicator to display some loading is being done (either loading the cached list or the updated one).
- Try to make sure we don't display the members loaded from timeline items as the cached room list by mistake.
* Update screenshots
* Simplify member loading logic.

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-03-14 08:05:44 +00:00
Jorge Martin Espinosa 4c14ac822e Added empty state to banned member list (#2541)
* Added empty state to banned member list

* Center both empty states in `RoomMemberListView` and `PollHistoryView`

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-03-13 15:04:43 +00:00
Benoit Marty ad17afe209 Merge pull request #2533 from element-hq/sync-localazy
Sync Strings
2024-03-12 16:08:52 +01:00
Jorge Martin Espinosa 59a682b407 Change a room's permissions power levels (#2525)
* Change a room's permissions power levels

* Make `currentPermissions` use a `MatrixRoomPowerLevels?` instance instead.

* Update strings

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-03-12 15:45:06 +01:00
bmarty c021809479 Sync Strings from Localazy 2024-03-12 13:54:03 +00:00