Commit Graph

1560 Commits

Author SHA1 Message Date
Benoit Marty
e81d20ec2e Render State Event in the timeline. 2023-05-25 14:16:23 +02:00
Benoit Marty
be478cadaa Extract to sub classes 2023-05-25 14:16:23 +02:00
Benoit Marty
bbe4b7d26a Process state event in timeline - WIP 2023-05-25 14:16:23 +02:00
Benoit Marty
69ae145467 Rename processMessageItem to simple format 2023-05-25 14:16:23 +02:00
Benoit Marty
ac636d9737 Inject StringProvider instead of context. 2023-05-25 14:16:23 +02:00
Benoit Marty
70df081840 Move RoomLastMessageFormatter and related class and resource to the new module eventformatter, in order to prepare rendering of state event in the timeline. 2023-05-25 14:15:35 +02:00
Benoit Marty
7537c3de7c Merge pull request #448 from vector-im/feature/bma/testTimeout
Create the mockked Bitmap outside the test, to remove increased time out
2023-05-25 11:35:31 +02:00
Benoit Marty
a3d25f3096 Merge pull request #455 from vector-im/misc/cjs/preview-names
Fix bad preview name for invite list
2023-05-25 11:35:06 +02:00
Benoit Marty
ac9fe31673 Merge pull request #453 from vector-im/renovate/io.element.android
Update dependency io.element.android:wysiwyg to v2.2.1
2023-05-25 11:34:30 +02:00
Benoit Marty
76d368f171 Merge pull request #459 from vector-im/renovate/activity
Update activity to v1.7.2
2023-05-25 11:33:57 +02:00
Marco Romano
67a8802766 Room list contextual menu (#427)
- Adds `ModalBottomSheet` to our design components (it wraps the homonimous Material3 one).
- Adds  a bottom sheet to the Room list using the aforementioned design component.
- Adds navigation from the room list to a room detail (context menu "Settings" action).
- Consolidates the "leave room flow" into a new `leaveroom` module used by both the room list and the room details.
  - Adds progress indicator to the leave room flow
- Uses new `leaveroom` module in `roomdetails` module too. 

Parent issue:
- https://github.com/vector-im/element-x-android/issues/261
2023-05-25 06:42:44 +00:00
renovate[bot]
4d9136da2c Update activity to v1.7.2 2023-05-24 20:29:04 +00:00
renovate[bot]
741137dd5e Update dependency io.element.android:wysiwyg to v2.2.1 2023-05-24 17:09:00 +00:00
Benoit Marty
a1038cd49c Merge pull request #447 from vector-im/feature/bma/wysiwyg2.2.0
Wysiwyg 2.2.0
2023-05-24 19:07:35 +02:00
renovate[bot]
d3987b800c Update dependency com.google.auto.service:auto-service-annotations to v1.1.0 (#452)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-24 12:13:53 +02:00
Chris Smith
c74d0a5d6b Fix bad preview name for invite list 2023-05-24 11:12:14 +01:00
ganfra
68841eb142 Merge pull request #451 from vector-im/renovate/com.google.auto.service-auto-service-1.x
Update dependency com.google.auto.service:auto-service to v1.1.0
2023-05-24 11:51:25 +02:00
Benoit Marty
1b967755d3 Merge pull request #449 from vector-im/feature/bma/fasterTest
Reduce time to run test from 15 minutes to about 8
2023-05-24 09:28:13 +02:00
renovate[bot]
046f035fab Update dependency com.google.auto.service:auto-service to v1.1.0 2023-05-23 19:08:17 +00:00
Benoit Marty
91a7c63531 Merge pull request #450 from vector-im/renovate/io.nlopez.compose.rules-detekt-0.x
Update dependency io.nlopez.compose.rules:detekt to v0.1.6
2023-05-23 17:07:10 +02:00
Benoit Marty
f888225d6c Merge pull request #420 from gsouquet/gsouquet/compound-docs
Update compound references
2023-05-23 17:05:05 +02:00
Benoit Marty
ed133c8a33 Merge pull request #438 from vector-im/feature/fre/invite_people_action
Handle "Invite people" action in the start a chat flow
2023-05-23 17:03:39 +02:00
renovate[bot]
d552f5b4b3 Update dependency io.nlopez.compose.rules:detekt to v0.1.6 2023-05-23 14:46:56 +00:00
Benoit Marty
a7339cb9c4 Reduce time to run test from 15 minutes to about 8 by disabling creating artifact and uploading to sonar.
Instead those 2 steps are now run once a day in a separate GitHub action.
2023-05-23 14:59:28 +02:00
Benoit Marty
54489f6b93 Init the mockked Bitmap only once. 2023-05-23 12:46:05 +02:00
ganfra
4c374b52a5 Merge pull request #446 from vector-im/renovate/com.google.testparameterinjector
Update dependency com.google.testparameterinjector:test-parameter-injector to v1.12
2023-05-23 12:30:47 +02:00
Benoit Marty
a9c47d63e3 Create the mockked Bitmap in the constructor, to remove increased time out. 2023-05-23 12:25:07 +02:00
Benoit Marty
a2f2cd28f9 Fix compilation warnings. 2023-05-23 12:00:36 +02:00
Benoit Marty
d6e60de4ec Fix compilation issue with Wysiwyg 2.2.0 2023-05-23 11:55:23 +02:00
renovate[bot]
52b8dd7d16 Update dependency com.google.testparameterinjector:test-parameter-injector to v1.12 2023-05-23 09:51:41 +00:00
renovate[bot]
6745887488 Update dependency io.element.android:wysiwyg to v2.2.0 2023-05-23 11:51:14 +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
Chris Smith
25eee69bb5 Merge remote-tracking branch 'origin/develop' into feature/fre/invite_people_action 2023-05-22 15:35:25 +01: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
Florian Renaud
aaa5c636ee Handle "Invite people" action in the start a chat flow 2023-05-20 00:56:23 +02: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