Commit graph

56 commits

Author SHA1 Message Date
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
ganfra
5c198bc279 Media: fix zoomable image with non content uri 2023-05-23 16:58:22 +02: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
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
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
ganfra
f51d6a3cfd Media : branch upload to preview screen (need improvement) 2023-05-17 08:44:35 +02:00
ganfra
c8ead4ab9f Media: update ui on media viewers 2023-05-16 14:51:18 +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
ganfra
4b49d40801 Merge branch 'develop' into feature/fga/image_loading 2023-05-15 20:07:00 +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
d7d1d01543 Add missing OptIn 2023-05-12 13:28:22 +02:00
Florian Renaud
719dd20555 Remove useless OptIn in tests 2023-05-12 10:05:39 +02:00
Jorge Martin Espinosa
89b9db3be6 [Media upload] Upload image, video and files (#411)
* Add media upload

* Display media upload error messages using a Snackbar.
2023-05-11 15:56:13 +00:00
Jorge Martin Espinosa
5eaa40a14b [Media upload] Media pre-processing (#403)
* Create `mediaupload` module for media pre-processing.

* Split `mediapicker` and `mediaupload` modules.
2023-05-10 10:06:56 +02:00
bmarty
f54b4e9f7e Sync Strings from Localazy 2023-05-08 00:08:48 +00:00
ganfra
2386ce733a Introduce Attachments and LocalMedia (WIP) 2023-05-05 19:48:50 +02:00
ganfra
4236b69705 Introduce MatrixMediaSource 2023-05-05 19:47:10 +02:00
ganfra
c3a1297c18 Merge develop into feature/fga/image_loading 2023-05-05 12:51:00 +02:00
Jorge Martin Espinosa
014c0f4186 [Media upload] Add media pickers to the Room screen and the composer (#380)
* Add media pickers to the Room screen and the composer.

* Fix exclude rules for translations
2023-05-04 11:51:03 +02:00
ganfra
28770afac0 Image: play with a ZoomableBox 2023-05-02 21:13:21 +02:00
ganfra
ed10fc6651 MediaViewer: first step 2023-05-02 19:21:39 +02:00
ganfra
4b60b14550 Merge branch 'develop' into feature/fga/image_loading 2023-05-02 16:23:47 +02:00
Jorge Martin Espinosa
d4c311545d Design fixes for room detail, dm & room member detail screens (#363)
* Design fixes for room detail, dm & room member detail screens.

* Record new screenshots, improve RoomDetailsStateProvider.

* Move MainActionButton to its own component in the design system.
2023-05-02 14:02:51 +00:00
ganfra
5cd8e7c6c0 Merge branch 'develop' into feature/fga/some_room_related_fixes 2023-04-28 15:58:54 +02:00
Jorge Martin Espinosa
eeca1c9ee3 Add PickerLauncher wrapper for media/file pickers. (#361)
* Add `PickerLauncher` wrapper for media/file pickers.

* Add FileProvider path, handle Camera picker and add NoOp implementation to fix tests.

* Move media pickers to their own module.

* Add missing media pickers

* Add feature flag and some extra tests
2023-04-28 10:52:34 +02:00
ganfra
40f3f2873b Merge branch 'develop' into feature/fga/some_room_related_fixes 2023-04-27 17:25:12 +02:00
ganfra
baa7d3e592 Image: Try to handle blurhash 2023-04-27 15:35:25 +02:00
ganfra
4b5ca3acdd Media: change the API 2023-04-27 12:06:01 +02:00
Jorge Martin Espinosa
2376d32b9e [Room Details] Block & unblock user (#340) 2023-04-26 16:14:44 +02:00
ganfra
9dcc3780ac Timeline: Remove padding from parent Modifier 2023-04-26 16:12:52 +02:00
ganfra
e65adaecd1 Timeline: add ContentType instead of using introspection. 2023-04-24 10:42:27 +02:00
ganfra
90bfe97250 Room : continue improving members loading 2023-04-21 14:39:47 +02:00
ganfra
a1869a3019 Improve handling members 2023-04-20 18:21:47 +02:00
ganfra
5104fc8ac1 Fix bottomsheet not using right theme (BottomSheet is not part of material3) 2023-04-20 15:58:20 +02:00
Jorge Martin Espinosa
fae3417181 Validate several ids in constructors (#336)
* Validate ids in constructors.

* Remove redundant `.value` usage in string interpolation.

* Make a distinction between `SessionId` and `UserId` in `TestData`.
2023-04-18 16:17:13 +00:00
Jorge Martin Espinosa
d391275420 [Room List] Show offline indicator when the device is offline (#239)
* Implement the network status indicator.

* Add `networkmonitor` feature.
2023-04-17 17:01:16 +02:00
Jorge Martin Espinosa
de010545fb Update Gradle to 8.1 and AGP to v8.0 (#329)
* Update AGP to 8.0.0.

* Set JAVA_HOME to JDK17

* Update lint version.

* Use right JDK for dependency analysis, replace deprecated env var.

* Upgrade to Gradle 8.1.

* Remove `@Supress(DSL_SCOPE_VIOLATION)` as it's no longer needed.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-17 08:49:52 +00:00
Jorge Martin Espinosa
ecc73dd325 [Room Details] Implement room details screen (#256)
* Implement Room Details screen

* Add option to create permalink from room id and alias, add share room action
2023-03-29 05:16:27 +00:00
Benoit Marty
998178b70f [Strings] Use strings from localazy. 2023-03-27 14:44:24 +02:00
ganfra
ccde8adef3 [MatrixSDK] map the remaining EventContents 2023-03-14 12:28:46 +01:00