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

DROID-1030 Collection | Enhancement | Order of objects (#3036)

* DROID-1030 objectOrders model, added to data view content

* DROID-1030 grid order

* DROID-1030 gallery order

* DROID-1030 list order

* DROID-1030 get object order by view id

* DROID-1030 refactoring

* DROID-1030 update old tests

* DROID-1030 object order tests by view
This commit is contained in:
Konstantin Ivanov 2023-03-23 13:38:30 +01:00 committed by GitHub
parent b575ae9264
commit 326599d065
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 626 additions and 108 deletions

View file

@ -7,14 +7,16 @@ fun StubDataView(
views: List<DVViewer> = emptyList(),
relationLinks: List<RelationLink> = emptyList(),
targetObjectId: Id = MockDataFactory.randomUuid(),
isCollection: Boolean = false
isCollection: Boolean = false,
objectOrder: List<ObjectOrder> = emptyList()
): Block = Block(
id = id,
content = DV(
relationLinks = relationLinks,
viewers = views,
targetObjectId = targetObjectId,
isCollection = isCollection
isCollection = isCollection,
objectOrders = objectOrder
),
children = emptyList(),
fields = Block.Fields.empty()