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

DROID-1043 Editor | Enhancement | Inline collection block (#3020)

* DROID-1043 data view block, isCollection param + mapping to views

* DROID-1043 data view holders + design

* DROID-1043 dv collection change, diff

* DROID-1043 collection block icon

* DROID-1043 inline block click

* DROID-1043 update fun name

* DROID-1043 blockDataviewIsCollectionSet event
This commit is contained in:
Konstantin Ivanov 2023-03-20 10:32:06 +01:00 committed by GitHub
parent 5ee6443ebb
commit feab2d0a3e
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 125 additions and 33 deletions

View file

@ -327,12 +327,14 @@ fun StubDataViewBlock(
targetObjectId: Id = "",
viewers: List<Block.Content.DataView.Viewer> = emptyList(),
relationsIndex: List<RelationLink> = emptyList(),
isCollection : Boolean = false
): Block = Block(
id = id,
content = Block.Content.DataView(
viewers = viewers,
relationLinks = relationsIndex,
targetObjectId = targetObjectId
targetObjectId = targetObjectId,
isCollection = isCollection
),
children = children,
fields = fields,

View file

@ -6,13 +6,15 @@ fun StubDataView(
id: Id = MockDataFactory.randomUuid(),
views: List<DVViewer> = emptyList(),
relationLinks: List<RelationLink> = emptyList(),
targetObjectId: Id = MockDataFactory.randomUuid()
targetObjectId: Id = MockDataFactory.randomUuid(),
isCollection: Boolean = false
): Block = Block(
id = id,
content = DV(
relationLinks = relationLinks,
viewers = views,
targetObjectId = targetObjectId
targetObjectId = targetObjectId,
isCollection = isCollection
),
children = emptyList(),
fields = Block.Fields.empty()