Commit Graph

685 Commits

Author SHA1 Message Date
ganfra 5e5737aa61 Media: add some previews in the TimelineView 2023-05-25 17:47:53 +02:00
ganfra c741b35035 Media: polish TimelineVideo item 2023-05-25 16:21:53 +02:00
ganfra 1fe14ef685 Media: update screenshots 2023-05-25 15:58:08 +02:00
ganfra f7b45d7823 Media: more cleanup 2023-05-25 15:47:08 +02:00
ganfra 48389ccd26 Media: improve BlurHashAsyncImage 2023-05-25 15:28:37 +02:00
ganfra 3e01a2f317 Media: some code clean-up 2023-05-24 22:23:38 +02:00
ganfra 92e19c3dd9 Media: improve a bit the viewers 2023-05-24 22:19:18 +02:00
ganfra fc601acd28 Merge branch 'develop' into feature/fga/image_loading 2023-05-24 17:39:27 +02:00
ganfra 75f85a97b7 Media: makes sure system ui get back to normal when leaving preview/viewer 2023-05-24 17:30:09 +02:00
ganfra ced60c672e Media: add more tests 2023-05-24 17:06:27 +02:00
ganfra 0a268dc27f Media: make existing tests passes on MessagesPresenters 2023-05-23 21:40:18 +02:00
Benoit Marty e486677cf8 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
ganfra 5c198bc279 Media: fix zoomable image with non content uri 2023-05-23 16:58:22 +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
ganfra 319f426b06 Media: align attachement source picker design with Figma 2023-05-22 21:24:43 +02:00
ganfra 63513ae2da Merge branch 'develop' into feature/fga/image_loading 2023-05-22 20:59:37 +02:00
ganfra 458cd2d4f3 Media: keep the name of the file when possible 2023-05-22 20:24:42 +02: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
Chris Smith 44a3f48306 Merge remote-tracking branch 'origin/develop' into feature/fre/invite_people_action 2023-05-22 15:35:25 +01:00
ganfra 2682d1c2b4 Media: send file without preview 2023-05-22 16:25:50 +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
Florian Renaud 9f7c48c3dd Handle "Invite people" action in the start a chat flow 2023-05-20 00:56:23 +02:00
ganfra 731e0fae33 Media: show file in timeline 2023-05-17 18:32:08 +02:00
ganfra 62b66b2111 Media : some improvements and cleaning 2023-05-17 17:48:57 +02:00
ganfra 129ad0be09 Media: some ui improvements 2023-05-17 16:20:31 +02:00
ganfra 6dedb43213 Media: use telephoto library 2023-05-17 16:20:12 +02:00
ganfra ad697bbe7b Media: use blurhash library 2023-05-17 16:19:18 +02: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
ganfra f51d6a3cfd Media : branch upload to preview screen (need improvement) 2023-05-17 08:44:35 +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 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 2c39e8f9fc Fix test compilation 2023-05-16 15:37:22 +02:00
ganfra c8ead4ab9f Media: update ui on media viewers 2023-05-16 14:51:18 +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
ganfra 5176499195 Media: fix encrypted media 2023-05-16 11:51:11 +02:00
ganfra e3ad4ee06f Media : extract an extension method to mediaupload 2023-05-16 11:24:14 +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 4b49d40801 Merge branch 'develop' into feature/fga/image_loading 2023-05-15 20:07:00 +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 e2f4ec3cf0 Fix more warning and replace deprecated code. Also use TextField from our components. 2023-05-15 13:43:27 +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
ganfra 80adbd4bd1 Media: improve media viewer 2023-05-12 18:48:24 +02: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