Commit Graph

62 Commits

Author SHA1 Message Date
ganfra
375383c061 Media: polish TimelineVideo item 2023-05-25 16:21:53 +02:00
ganfra
8533cb53ca Media: update screenshots 2023-05-25 15:58:08 +02:00
ganfra
dcae29d35e Media: more cleanup 2023-05-25 15:47:08 +02:00
ganfra
aeffc0663e Media: improve BlurHashAsyncImage 2023-05-25 15:28:37 +02:00
ganfra
c31901bd67 Media: some code clean-up 2023-05-24 22:23:38 +02:00
ganfra
1c48f0afac Media: improve a bit the viewers 2023-05-24 22:19:18 +02:00
ganfra
1e7fcaf8bf Media: makes sure system ui get back to normal when leaving preview/viewer 2023-05-24 17:30:09 +02:00
ganfra
db90b5051c Media: add more tests 2023-05-24 17:06:27 +02:00
ganfra
6fd16e9414 Media: make existing tests passes on MessagesPresenters 2023-05-23 21:40:18 +02:00
ganfra
1086aedb0c Media: fix zoomable image with non content uri 2023-05-23 16:58:22 +02:00
ganfra
7c7f167692 Media: align attachement source picker design with Figma 2023-05-22 21:24:43 +02:00
ganfra
2c3fb8a549 Merge branch 'develop' into feature/fga/image_loading 2023-05-22 20:59:37 +02:00
ganfra
4c19bd3644 Media: keep the name of the file when possible 2023-05-22 20:24:42 +02:00
ganfra
c8c2cb8ff3 Media: send file without preview 2023-05-22 16:25:50 +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
ganfra
727cf69a39 Media: show file in timeline 2023-05-17 18:32:08 +02:00
ganfra
1d00120b6a Media : some improvements and cleaning 2023-05-17 17:48:57 +02:00
ganfra
07cb3854f8 Media: some ui improvements 2023-05-17 16:20:31 +02:00
ganfra
d36bc58e60 Media: use telephoto library 2023-05-17 16:20:12 +02:00
ganfra
81a80a1a8a Media: use blurhash library 2023-05-17 16:19:18 +02:00
ganfra
cc7d71af80 Media : branch upload to preview screen (need improvement) 2023-05-17 08:44:35 +02:00
ganfra
2108c2bc21 Media: update ui on media viewers 2023-05-16 14:51:18 +02:00
ganfra
ac1531390e Media: fix encrypted media 2023-05-16 11:51:11 +02:00
ganfra
801e99a4db Media : extract an extension method to mediaupload 2023-05-16 11:24:14 +02:00
ganfra
9318d27ba1 Merge branch 'develop' into feature/fga/image_loading 2023-05-15 20:07:00 +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
ganfra
c191d5991d Media: improve media viewer 2023-05-12 18:48:24 +02:00
Florian Renaud
463e47c907 Add missing OptIn 2023-05-12 13:28:22 +02:00
Florian Renaud
c22d181d8c Remove useless OptIn in tests 2023-05-12 10:05:39 +02:00
Jorge Martin Espinosa
ed16ea5e48 [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
cd298b9359 [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
367b659edc Sync Strings from Localazy 2023-05-08 00:08:48 +00:00
ganfra
266d48b48b Introduce Attachments and LocalMedia (WIP) 2023-05-05 19:48:50 +02:00
ganfra
72dea2f817 Introduce MatrixMediaSource 2023-05-05 19:47:10 +02:00
ganfra
affb928801 Merge develop into feature/fga/image_loading 2023-05-05 12:51:00 +02:00
Jorge Martin Espinosa
31ac97d17a [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
d6d693ff1f Image: play with a ZoomableBox 2023-05-02 21:13:21 +02:00
ganfra
c4226c25d8 MediaViewer: first step 2023-05-02 19:21:39 +02:00
ganfra
d55d5a801b Merge branch 'develop' into feature/fga/image_loading 2023-05-02 16:23:47 +02:00
Jorge Martin Espinosa
e5a8548ab9 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
ed3f0f1430 Merge branch 'develop' into feature/fga/some_room_related_fixes 2023-04-28 15:58:54 +02:00
Jorge Martin Espinosa
8e451c934e 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
f4c98aeef5 Merge branch 'develop' into feature/fga/some_room_related_fixes 2023-04-27 17:25:12 +02:00
ganfra
ad06b5945d Image: Try to handle blurhash 2023-04-27 15:35:25 +02:00
ganfra
d64660237a Media: change the API 2023-04-27 12:06:01 +02:00
Jorge Martin Espinosa
aef2b38983 [Room Details] Block & unblock user (#340) 2023-04-26 16:14:44 +02:00
ganfra
34c45eb6e0 Timeline: Remove padding from parent Modifier 2023-04-26 16:12:52 +02:00
ganfra
7eddf1201a Timeline: add ContentType instead of using introspection. 2023-04-24 10:42:27 +02:00
ganfra
b0152059ff Room : continue improving members loading 2023-04-21 14:39:47 +02:00
ganfra
f02ee307cc Improve handling members 2023-04-20 18:21:47 +02:00