Commit graph

92 commits

Author SHA1 Message Date
Benoit Marty
0cbddd58bc Fix compilation issue after rebase. 2023-05-30 10:58:14 +02:00
Benoit Marty
25e432d24e Fix setting y offset to -12.dp can overlap a state event displayed above. Rework how the vertical offset are applied. 2023-05-30 10:50:06 +02:00
Benoit Marty
c590a32942 Move extension to a common file for code clarity. 2023-05-30 10:24:19 +02:00
Benoit Marty
929ed22cb3 Ensure GroupPosition is correct regarding Event which cannot be grouped. 2023-05-30 10:17:25 +02:00
Benoit Marty
6621163d27 Document [TimelineItemGroupPosition] and improve preview of [MessageEventBubble]. 2023-05-30 10:17:25 +02:00
Benoit Marty
6000a7ca5b Let TimelineItemsFactory group the item if necessary, so it's done on a computation dispatcher. Let the View manage the expanded/grouped state. 2023-05-30 10:16:16 +02:00
Jorge Martín
87990c425c Fix small issues, improve Result.flatMap 2023-05-29 13:58:29 +02:00
ganfra
698e08573b Media: fix test compilation 2023-05-26 19:21:12 +02:00
ganfra
b2a66ddafe Media: handle PR review remarks 2023-05-26 19:09:51 +02:00
ganfra
c72ecc4807 Media: clean a bit Timestamp rendering 2023-05-26 17:10:34 +02:00
Jorge Martín
15ff1a4d30 Timestamp improvements 2023-05-26 14:37:39 +02:00
Jorge Martín
fc464a35f9 Try to improve timestamp rendering for media 2023-05-26 14:28:37 +02:00
ganfra
462f8c138a Merge branch 'develop' into feature/fga/image_loading 2023-05-26 13:43:51 +02:00
Jorge Martin Espinosa
7aae71c2d4 Display timestamps for text messages (#465) 2023-05-26 10:51:15 +00:00
ganfra
ec4c511c66 Media : Fix small issues after merge 2023-05-26 12:16:14 +02:00
ganfra
2c0771ecc0 Merge branch 'develop' into feature/fga/image_loading 2023-05-26 11:39:34 +02:00
ganfra
2ec2c9b16f Media: continue improving VideoView 2023-05-26 11:29:49 +02:00
ganfra
e0106fe907 Media: some more improvements over MediaViewer 2023-05-25 23:02:19 +02:00
Benoit Marty
6102ffa7e4 Add test for TimelinePresenter: Collapse and expand group. 2023-05-25 18:10:32 +02:00
ganfra
5e5737aa61 Media: add some previews in the TimelineView 2023-05-25 17:47:53 +02:00
Benoit Marty
9be8112c9c Add test for TimelineItemGrouper and fix a bug: the last group if any was not added to the list. 2023-05-25 17:32:55 +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
Benoit Marty
78c99a340e Fix missing modifier parameter. 2023-05-25 14:17:09 +02:00
Benoit Marty
9efb703854 Fix test compilation 2023-05-25 14:17:09 +02:00
Benoit Marty
4c20450c2a This is default value when reverseLayout = true 2023-05-25 14:17:09 +02:00
Benoit Marty
52d35e0ac4 Better icon for this use case. 2023-05-25 14:17:09 +02:00
Benoit Marty
31ec3267db Animate collapse/expand change 2023-05-25 14:17:09 +02:00
Benoit Marty
0c95912c9c Group some state events in the timeline 2023-05-25 14:17:09 +02:00
Benoit Marty
26198140df No actions (yet) for State Event. 2023-05-25 14:16:23 +02:00
Benoit Marty
75f6c99ea9 Render State Event in the timeline. 2023-05-25 14:16:23 +02:00
Benoit Marty
b7278f3e3e Process state event in timeline - WIP 2023-05-25 14:16:23 +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
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
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