Commit Graph

1523 Commits

Author SHA1 Message Date
Benoit Marty
a9c47d63e3 Create the mockked Bitmap in the constructor, to remove increased time out. 2023-05-23 12:25:07 +02:00
renovate[bot]
3211eef1b8 Update dependency org.matrix.rustcomponents:sdk-android to v0.1.15 (#444)
Co-authored-by: Chris Smith <csmith@lunarian.uk>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-23 09:51:02 +00:00
Benoit Marty
a3f6aba15c Merge pull request #445 from vector-im/renovate/mobile-dev-inc-action-maestro-cloud-1.x
Update mobile-dev-inc/action-maestro-cloud action to v1.3.2
2023-05-23 11:44:06 +02:00
Chris Smith
463b9e0642 Invite users to existing rooms (#441)
Invite users to existing rooms

Scope:

- Allow inviting from the room detail screen and the member list
- Invite option is only shown if the user has the correct power level
- Search flow the same as creating a new room, allowing multi-select
- Existing room members/invitees are disabled with a custom caption
- Sending is asynchronous, an error dialog will appear wherever the
  user is if necessary

Closes #245
2023-05-23 09:23:24 +00:00
renovate[bot]
1ae98b8f66 Update mobile-dev-inc/action-maestro-cloud action to v1.3.2 2023-05-23 08:24:56 +00:00
Jorge Martin Espinosa
882a155f07 Try to fix flaky test by setting a longer timeout in runTest (#442) 2023-05-22 17:52:31 +02:00
renovate[bot]
ab9f58446e Update dependency org.robolectric:robolectric to v4.10.3 (#434)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-22 12:29:26 +02:00
Chris Smith
1eac67bf25 Refactor search related functionality (#436)
Refactor search related functionality

This is a prelude to adding the feature of inviting users to
a room, getting everything in the right place and reusable.

What this does:

## User search refactor

Moves the (global) user search logic (dealing with MXIDs,
minimum lengths, debounces) into a `UserRepository`.

This now sits in a `usersearch` library, which will be
used by the create room flow and the new invite flow.

## SearchBar logic pull-up

Every place we use SearchBar, we're doing the same things
to style placeholders, show back/cancel buttons, etc.

We also have a results type that is duplicated for
basically every feature that uses the search bar.

I've pushed all this common functionality into the
SearchBar itself. This makes the component a bit less
general purpose, but saves a lot of repetition.

## Remove the userlist feature

Almost all the functionality of the userlist feature
is now exclusively used by the create room feature.
Room details uses its own version because the
requirements are different.

Components useful elsewhere (SelectedUsers and
SelectedUser) have gone to matrixui, everything else
has gone to createroom.

## Other bits and pieces

I've fixed everywhere that uses Scaffold to correctly
consume the WindowInsets if the contentPadding is
applied to the contents (which it universally is).
This was a change in the last version of Material3
(I guess previously Scaffold handled the consumption
for us). This fixes weird gaps above search bars.

Added overloads for the MatrixUserRow and
CheckedMatrixUserRow that take the name/subtitle/avatar
separately, so the invites list can pass arbitrary
text like "User has already been invited".

The `blockuser` package was for some reason not
under `impl` but alongside it, I've bumped it into
the right place.
2023-05-22 09:06:54 +00:00
Benoit Marty
e2a2374c4a Merge pull request #440 from vector-im/renovate/coil
Update coil to v2.4.0
2023-05-22 09:35:36 +02:00
renovate[bot]
32cc1f2a35 Update coil to v2.4.0 2023-05-21 19:57:07 +00:00
Marco Romano
0f8b83d3ba New copy for members search results (#430)
* New copy for members search results

Context: https://matrix.to/#/!dypRwVXIkJaTAACHPd:element.io/$Obt7MbgGtHBqJHpZqcdd6OQ5XgxxNXSJofnFG1NyWWM?via=matrix.org&via=element.io&via=t2l.io

Related to: https://github.com/vector-im/element-x-android/issues/246
2023-05-17 13:21:23 +00:00
Florian Renaud
ef684e63fd Merge pull request #418 from vector-im/feature/fre/create_room_layout_improvements
Create Room - Layouts cleanup
2023-05-17 14:38:18 +02:00
Florian Renaud
b157a42f8a Restore missing OptIn annotation 2023-05-16 16:41:43 +02:00
Florian Renaud
7206894c0e Sync strings 2023-05-16 16:36:47 +02:00
Florian Renaud
0b7569c578 Remove useless composed call 2023-05-16 16:36:47 +02:00
Florian Renaud
d9d3fc3fa7 change wording for DM creation dialog 2023-05-16 16:36:47 +02:00
Florian Renaud
1f9812aaf0 Rename preview 2023-05-16 16:36:47 +02:00
Florian Renaud
adc1c37789 restrict room name to single line 2023-05-16 16:36:47 +02:00
Florian Renaud
4fa0329ccd Close keyboard when textfields lose focus 2023-05-16 16:36:47 +02:00
Florian Renaud
52f2a32bf8 Select private privacy by default 2023-05-16 16:36:47 +02:00
Florian Renaud
8c6bf1ba18 Make the configure room screen scrollable 2023-05-16 16:36:46 +02:00
Florian Renaud
ac0635421b Merge pull request #408 from vector-im/feature/fre/create_room_select_avatar
Create Room - Pick and upload avatar
2023-05-16 15:57:43 +02:00
Florian Renaud
9c3a639fec Fix test compilation 2023-05-16 15:37:22 +02:00
Florian Renaud
723e0d561c Update screenshots 2023-05-16 14:32:23 +02:00
Florian Renaud
da57e17dfb Use material3 ListItem 2023-05-16 14:29:18 +02:00
Florian Renaud
029eb876df Merge remote-tracking branch 'origin/develop' into
feature/fre/create_room_select_avatar
2023-05-16 14:18:29 +02:00
Benoit Marty
f62ea2096b Merge pull request #425 from vector-im/feature/bma/material3_update
Use default material3 version again and cleanup `@OptIn` annotations.
2023-05-16 09:51:17 +02:00
ganfra
60a2bb2591 Merge pull request #429 from vector-im/renovate/org.matrix.rustcomponents
Update dependency org.matrix.rustcomponents:sdk-android to v0.1.14
2023-05-15 19:56:26 +02:00
renovate[bot]
181852c277 Update dependency org.matrix.rustcomponents:sdk-android to v0.1.14 2023-05-15 17:32:55 +00:00
ganfra
18f1d2202b Merge pull request #428 from vector-im/feature/fga/update-rust-sdk-0.1.13
Feature/fga/update rust sdk 0.1.13
2023-05-15 19:32:04 +02:00
ganfra
9219530d4d SDK - fix compilation 2023-05-15 18:17:21 +02:00
Benoit Marty
998ac6d7a5 Merge pull request #426 from vector-im/feature/bma/renovateReview
Do not let Renovate assign a reviewer anymore
2023-05-15 14:52:14 +02:00
Marco Romano
1b84f02073 Show pending invitations in room members list (#385)
Splits a Room's member list in 2 showing pending invitees first and then the actual room member.

This simple user facing change entails a host of under the hood changes:
- It copies the logic from the `userlist` module and merges it into the `roomdetails` module removing all details not related to the member list (e.g. gets rid of multiple selection, debouncing etc.).
- Uncouples the `roomdetails` module from the `userlist` one. Now leaving only the `createroom` module to depend on the `userlist` module. Therefore the `userlist` module could be in the future completely removed and merged into the `createroom` module.
 - Changes the room members count in the room details screen to only show the members who have joined (i.e. don't count those still in the invited state).

Missed ACs:
- This change does not make the member list live update. Discussion is ongoing on how to make this technically feasible.

Parent issue:
- https://github.com/vector-im/element-x-android/issues/246
2023-05-15 14:39:27 +02:00
Benoit Marty
7e6aec173a Record screenshots. 2023-05-15 13:50:21 +02:00
Benoit Marty
22e86bdfc8 Fix more warning and replace deprecated code. Also use TextField from our components. 2023-05-15 13:43:27 +02:00
Benoit Marty
4d500c8831 Merge pull request #421 from vector-im/renovate/kotlin
Update kotlin to v1.7.1
2023-05-15 13:32:13 +02:00
Benoit Marty
9f9120f51b Now that we have a CODEOWNERS file, there is no need for Renovate to assign a reviewer. It will be done automatically by GitHub. 2023-05-15 13:24:27 +02:00
Benoit Marty
a4d31a044f Merge pull request #422 from vector-im/renovate/dagger
Update dagger to v2.46.1
2023-05-15 13:21:57 +02:00
Benoit Marty
3704564198 Use default material3 version again and cleanup @OptIn annotations.
Material3 is now 1.1.0
2023-05-15 12:28:31 +02:00
renovate[bot]
906e0dbd7e Update dependency com.google.dagger:dagger-compiler to v2.46.1 2023-05-12 21:51:50 +00:00
renovate[bot]
5568f3eda7 Update dependency org.jetbrains.kotlinx:kotlinx-coroutines-test to v1.7.1 2023-05-12 19:15:53 +00:00
Florian Renaud
bf690c70b4 Merge pull request #400 from vector-im/renovate/kotlin
Update kotlin to v1.7.0
2023-05-12 17:03:41 +02:00
Florian Renaud
d79d00fc45 increase test timeout 2023-05-12 15:34:35 +02:00
Florian Renaud
444a7533d7 Test cleanup 2023-05-12 13:30:06 +02:00
Florian Renaud
463e47c907 Add missing OptIn 2023-05-12 13:28:22 +02:00
renovate[bot]
818e6096fa Update dependency org.matrix.rustcomponents:sdk-android to v0.1.13 2023-05-12 10:55:58 +00:00
Chris Smith
ebac9ef4b4 Fix a few FFI leaks (#405)
Fix a few FFI leaks

These are instances where we obtain an FFIObject and don't call
Close on it to release the underlying reference on the Rust side.

The worst instance here was leaking an object per room member
every time we refreshed the member list
2023-05-12 10:50:39 +00:00
Florian Renaud
c22d181d8c Remove useless OptIn in tests 2023-05-12 10:05:39 +02:00
Florian Renaud
deea472001 Add more tests 2023-05-11 23:03:47 +02:00
renovate[bot]
363162e252 Update kotlin to v1.7.0 2023-05-11 16:01:30 +00:00