1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

DROID-3239 Participant card | UI + logic (#1992)

This commit is contained in:
Konstantin Ivanov 2025-01-17 14:05:17 +01:00 committed by GitHub
parent 28bc323b73
commit 9ded869c33
Signed by: github
GPG key ID: B5690EEEBB952194
59 changed files with 950 additions and 69 deletions

View file

@ -8,6 +8,7 @@ sealed class DateObjectCommand {
data class NavigateToEditor(val id: Id, val space: SpaceId) : DateObjectCommand()
data class NavigateToSetOrCollection(val id: Id, val space: SpaceId) : DateObjectCommand()
data class NavigateToDateObject(val objectId: Id, val space: SpaceId) : DateObjectCommand()
data class NavigateToParticipant(val objectId: Id, val space: SpaceId) : DateObjectCommand()
data object TypeSelectionScreen : DateObjectCommand()
data object ExitToSpaceWidgets : DateObjectCommand()
sealed class SendToast : DateObjectCommand() {

View file

@ -631,6 +631,15 @@ class DateObjectViewModel(
)
}
is OpenObjectNavigation.OpenParticipant -> {
effects.emit(
DateObjectCommand.NavigateToParticipant(
objectId = navigation.target,
space = SpaceId(navigation.space)
)
)
}
is OpenObjectNavigation.OpenEditor -> {
effects.emit(
DateObjectCommand.NavigateToEditor(
@ -658,7 +667,7 @@ class DateObjectViewModel(
Timber.e("Object id is missing")
}
is OpenObjectNavigation.OpenDataObject -> {
is OpenObjectNavigation.OpenDateObject -> {
effects.emit(
DateObjectCommand.NavigateToEditor(
id = navigation.target,