element-x-ada/libraries
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
..
androidutils [Media upload] Upload image, video and files (#411) 2023-05-11 15:56:13 +00:00
architecture Room : continue improving members loading 2023-04-21 14:39:47 +02:00
core [Media upload] Upload image, video and files (#411) 2023-05-11 15:56:13 +00:00
coroutines Update Gradle to 8.1 and AGP to v8.0 (#329) 2023-04-17 08:49:52 +00:00
dateformatter Update Gradle to 8.1 and AGP to v8.0 (#329) 2023-04-17 08:49:52 +00:00
deeplink Validate several ids in constructors (#336) 2023-04-18 16:17:13 +00:00
designsystem Refactor search related functionality (#436) 2023-05-22 09:06:54 +00:00
di Update Gradle to 8.1 and AGP to v8.0 (#329) 2023-04-17 08:49:52 +00:00
elementresources Update Gradle to 8.1 and AGP to v8.0 (#329) 2023-04-17 08:49:52 +00:00
encrypted-db Update Gradle to 8.1 and AGP to v8.0 (#329) 2023-04-17 08:49:52 +00:00
featureflag Move the button to open the Showkase browser to the developer settings screen. (#389) 2023-05-04 17:29:03 +02:00
matrix Merge remote-tracking branch 'origin/develop' into 2023-05-16 14:18:29 +02:00
matrixui Refactor search related functionality (#436) 2023-05-22 09:06:54 +00:00
mediapickers Fix tests after rebase 2023-05-11 16:30:37 +02:00
mediaupload [Media upload] Upload image, video and files (#411) 2023-05-11 15:56:13 +00:00
network Merge pull request #334 from vector-im/feature/fga/feature_flag 2023-04-18 15:24:04 +02:00
permissions Remove useless OptIn in tests 2023-05-12 10:05:39 +02:00
push Update kotlin 2023-05-03 17:40:41 +00:00
pushproviders Update kotlin 2023-05-03 17:40:41 +00:00
pushstore Remove useless OptIn in tests 2023-05-12 10:05:39 +02:00
rustsdk convert rustsdk gradle file to kts 2023-04-04 15:44:37 +02:00
session-storage Remove useless OptIn in tests 2023-05-12 10:05:39 +02:00
statemachine Upgrade ktlint to 0.48.2 2023-04-17 15:18:07 +02:00
testtags Fix: Maestro tests fail when using settings (#358) 2023-04-25 18:01:54 +02:00
textcomposer [Media upload] Add media pickers to the Room screen and the composer (#380) 2023-05-04 11:51:03 +02:00
ui-strings Refactor search related functionality (#436) 2023-05-22 09:06:54 +00:00
usersearch Refactor search related functionality (#436) 2023-05-22 09:06:54 +00:00