Commit graph

1523 commits

Author SHA1 Message Date
Benoit Marty
0ac0bbb37a Create the mockked Bitmap in the constructor, to remove increased time out. 2023-05-23 12:25:07 +02:00
renovate[bot]
91f77772bc 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
587d0e7a14 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
198d6d4c56 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]
ac50d08377 Update mobile-dev-inc/action-maestro-cloud action to v1.3.2 2023-05-23 08:24:56 +00:00
Jorge Martin Espinosa
6825d8ac2b Try to fix flaky test by setting a longer timeout in runTest (#442) 2023-05-22 17:52:31 +02:00
renovate[bot]
3a1eb74d7a 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
848f1cb988 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
1885ea01eb 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]
85136f3688 Update coil to v2.4.0 2023-05-21 19:57:07 +00:00
Marco Romano
8b986b57f0 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
5c95698318 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
c54e4acd57 Restore missing OptIn annotation 2023-05-16 16:41:43 +02:00
Florian Renaud
e407b51f6b Sync strings 2023-05-16 16:36:47 +02:00
Florian Renaud
56251fedd9 Remove useless composed call 2023-05-16 16:36:47 +02:00
Florian Renaud
7a36d084e6 change wording for DM creation dialog 2023-05-16 16:36:47 +02:00
Florian Renaud
7ffe463e23 Rename preview 2023-05-16 16:36:47 +02:00
Florian Renaud
2ed8515231 restrict room name to single line 2023-05-16 16:36:47 +02:00
Florian Renaud
a3f0281525 Close keyboard when textfields lose focus 2023-05-16 16:36:47 +02:00
Florian Renaud
d903901457 Select private privacy by default 2023-05-16 16:36:47 +02:00
Florian Renaud
6d9f6664d8 Make the configure room screen scrollable 2023-05-16 16:36:46 +02:00
Florian Renaud
4846648b5c 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
2c39e8f9fc Fix test compilation 2023-05-16 15:37:22 +02:00
Florian Renaud
4d3cd0709e Update screenshots 2023-05-16 14:32:23 +02:00
Florian Renaud
f6ec8357f2 Use material3 ListItem 2023-05-16 14:29:18 +02:00
Florian Renaud
afc32f4810 Merge remote-tracking branch 'origin/develop' into
feature/fre/create_room_select_avatar
2023-05-16 14:18:29 +02:00
Benoit Marty
a0206b2b2f 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
1f4a442d8c 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]
c42154d66d Update dependency org.matrix.rustcomponents:sdk-android to v0.1.14 2023-05-15 17:32:55 +00:00
ganfra
3319f6de01 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
b3c6d64fa3 SDK - fix compilation 2023-05-15 18:17:21 +02:00
Benoit Marty
2ca3e4530d 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
b51c19af19 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
8547d5f267 Record screenshots. 2023-05-15 13:50:21 +02:00
Benoit Marty
e2f4ec3cf0 Fix more warning and replace deprecated code. Also use TextField from our components. 2023-05-15 13:43:27 +02:00
Benoit Marty
02e0216f83 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
ac515afae3 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
7f108185ac 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
457b83184a 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]
a336e5cad6 Update dependency com.google.dagger:dagger-compiler to v2.46.1 2023-05-12 21:51:50 +00:00
renovate[bot]
32d8bf0b9d Update dependency org.jetbrains.kotlinx:kotlinx-coroutines-test to v1.7.1 2023-05-12 19:15:53 +00:00
Florian Renaud
454fbe7f73 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
394ef825ef increase test timeout 2023-05-12 15:34:35 +02:00
Florian Renaud
53adb456ba Test cleanup 2023-05-12 13:30:06 +02:00
Florian Renaud
d7d1d01543 Add missing OptIn 2023-05-12 13:28:22 +02:00
renovate[bot]
04930167a3 Update dependency org.matrix.rustcomponents:sdk-android to v0.1.13 2023-05-12 10:55:58 +00:00
Chris Smith
92e9d3a127 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
719dd20555 Remove useless OptIn in tests 2023-05-12 10:05:39 +02:00
Florian Renaud
38967a2f4d Add more tests 2023-05-11 23:03:47 +02:00
renovate[bot]
f33742f609 Update kotlin to v1.7.0 2023-05-11 16:01:30 +00:00