Add an empty state for the space screen if the user can modify its graph (#6064)
* Add an empty state for the space screen if the user can modify its graph. It adds a new 'create room' button that allows you to open the create room screen with some preset values. * When computing the editable spaces in `ConfigureRoomPresenter`, also set up the initial selected parent space if possible * Use `Builder` pattern for `CreateRoomEntryPoint` * Update screenshots --------- Co-authored-by: ElementBot <android@element.io>
This commit is contained in:
parent
fc8afab1bb
commit
6a9d084a50
31 changed files with 248 additions and 111 deletions
|
|
@ -15,12 +15,13 @@ import io.element.android.libraries.architecture.FeatureEntryPoint
|
|||
import io.element.android.libraries.matrix.api.core.RoomId
|
||||
|
||||
interface CreateRoomEntryPoint : FeatureEntryPoint {
|
||||
fun createNode(
|
||||
isSpace: Boolean,
|
||||
parentNode: Node,
|
||||
buildContext: BuildContext,
|
||||
callback: Callback,
|
||||
): Node
|
||||
interface Builder {
|
||||
fun setIsSpace(isSpace: Boolean): Builder
|
||||
fun setParentSpace(parentSpaceId: RoomId): Builder
|
||||
fun build(): Node
|
||||
}
|
||||
|
||||
fun builder(parentNode: Node, buildContext: BuildContext, callback: Callback): Builder
|
||||
|
||||
interface Callback : Plugin {
|
||||
fun onRoomCreated(roomId: RoomId)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue