Add a global search screen, which reads from both the RoomListSearchDataSource for the rooms search and MessageSearchService for the message search

Note the designs and texts of this screen are temporary.
This commit is contained in:
Jorge Martín
2026-08-20 13:55:15 +02:00
parent 9d36c8c4ed
commit be2909bca2
8 changed files with 1221 additions and 0 deletions
@@ -8,9 +8,11 @@
package io.element.android.libraries.designsystem.components.avatar
import androidx.compose.runtime.Immutable
import io.element.android.libraries.core.data.tryOrNull
import java.text.BreakIterator
@Immutable
data class AvatarData(
val id: String,
val name: String?,
@@ -8,9 +8,11 @@
package io.element.android.libraries.designsystem.components.avatar
import androidx.compose.runtime.Immutable
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
@Immutable
enum class AvatarSize(val dp: Dp) {
CurrentUserTopBar(32.dp),
CurrentRoomTopBar(32.dp),
@@ -18,6 +20,7 @@ enum class AvatarSize(val dp: Dp) {
IncomingCall(140.dp),
RoomDetailsHeader(96.dp),
RoomListItem(52.dp),
SearchRoomListItem(32.dp),
ThreadsListItem(52.dp),
SpaceListItem(52.dp),