mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-986 | Collections | Enhancement | Main tasks (#2978)
* DROID-986 Tech | Integrate MW New Infrastructure (#2941) * DROID-986 proto + version * DROID-986 proto * DROID-986 version * DROID-986 add collection * DROID-986 Collections | Enhancement | New object state integration (#2940) * DROID-962 P2P | Add mdns and update protobufs for new infra * DROID-869 protos from branch feature/collections * DROID-986 proto fix * DROID-986 proto + version * DROID-986 proto * DROID-986 version * DROID-986 add collection * DROID-986 migrate from set to collection * DROID-986 integrate collections * DROID-986 legacy * DROID-986 update extension * DROID-986 legacy * DROID-986 remove legacy relations from dv, update logic with storeOfRelations * DROID-986 new collections and sets reducer + state model * DROID-986 code style * DROID-986 removed relations param from dataView model * DROID-986 refactoring * DROID-986 legacy * DROID-986 add new reducer to viewModel * DROID-986 rename relationsIndex to relationLinks * DROID-986 rename param * DROID-986 collection di * DROID-986 data view subscription * DROID-986 object state model * DROID-986 convertToCollection useCase * DROID-986 integrate convertToCollection * DROID-986 subscription, collection id * DROID-986 viewmodel, refactoring with new reducer * DROID-986 legacy reducer * DROID-986 objectState model * DROID-986 extencions * DROID-986 view model update * DROID-986 fixes * DROID-986 tests fix * DROID-986 pr fix * DROID-986 Revert "DROID-962 P2P | Add mdns and update protobufs for new infra" This reverts commit c91d5ec30bee2564c440d1ee1978e29b9cd1e01e. * DROID-986 move reduce function to the next pr * DROID-986 Revert "DROID-986 migrate from set to collection" This reverts commit 015fac32763071a3ee1004b0b49e9453ad1a4dcb. * Revert "DROID-986 Revert "DROID-986 migrate from set to collection"" This reverts commit 4ed4ccb0721be6dfa8bae86f2486e629cd7e4992. * DROID-986 Revert "DROID-986 integrate collections" This reverts commit b5d6dad25f72f65a3b4981e8aac15f7458a05b73. # Conflicts: # app/src/main/java/com/anytypeio/anytype/ui/widgets/collection/CollectionViewModel.kt * DROID-986 pr fix * DROID-986 pr fix * DROID-986 pr fix --------- Co-authored-by: mcrakhman <rakhmanov.m@gmail.com> * DROID-986 Collections | Event reducer (#2945) * DROID-923 Collections | Enhancement | Empty states (#2954) * DROID-923 update design * DROID-923 legacy * DROID-923 set view + tests * DROID-923 set + collections view state, tests * DROID-923 reducer update * DROID-923 update collection/set design * DROID-923 design fix * DROID-923 addToCollection mw event * DROID-923 add object to collection * DROID-923 dataViewInfo * DROID-923 remove legacy param * DROID-923 collection integrate * DROID-923 move tests to another pr * DROID-923 pr fix * DROID-923 fixes * DROID-923 Collections | Empty states, tests (#2956) * DROID-208 Collections | Loading state (#2958) * DROID-208 loading state * DROID-208 fix binding * DROID-983 Collections | Integrate ObjectState model (#2966) * DROID-983 migrate to objectState * DROID-983 moving to object state model * DROID-983 di fix * DROID-983 legacy * DROID-983 don't merge * DROID-983 fixes * DROID-983 di + clean viewer * DROID-983 refactoring * DROID-962 P2P | Add mdns and update protobufs for new infra (#2918) * DROID-984 Collections | Enhancement | Ability to Change SET Type to COLLECTION Type (#2977) * DROID-984 set type menu * DROID-984 setQueryToSet useCase * DROID-984 fabric * DROID-984 don't start subscription, when context is empty * DROID-984 convertToCollection + fix navigation * DROID-984 set menu * DROID-984 object relations refactoring * DROID-984 refactoring * DROID-984 code style * DROID-923 Collections | COLLECTION and SET types in object type lists (#2983) * DROID-923 disable view and settings in case no objects * DROID-923 button design * DROID-923 wrong filter * DROID-923 collections and sets on types list * DROID-923 set back * DROID-1049 MW | New infrastructure latest (#2985) * DROID-1049 MW | New infrastructure latest (#2994) * DROID-1057 MW | Integrate 0.26.0-rc1 (#2996) * DROID-1057 proto * DROID-1057 mw version * DROID-1057 MW | Integrate 0.26.0-rc1 (#2997) * DROID-984 Collections | Enhancement | Ability to Change SET Type to COLLECTION Type + TESTS (#2999) * DROID-984 catch subscribtion errors * DROID-984 add possibility to open collections from widgets * DROID-984 legacy * DROID-984 fix tests * DROID-984 fix view title design * DROID-984 tests, rename * DROID-984 subscription refactoring * DROID-984 rename param in test * DROID-984 collection test * DROID-984 test fixes * DROID-984 fix dataViewKeys * DROID-984 update tests * DROID-984 collection state fixes * DROID-984 collections tests * DROID-984 set tests * DROID-984 tests * DROID-984 reduce fun * DROID-984 set reducer tests * DROID-984 tests * DROID-984 relation add, test * DROID-984 legacy filter * DROID-984 test fix * DROID-984 cell click test * DROID-984 update tests * DROID-984 set restrictions test * DROID-984 viewer delete test * DROID-984 zero data view test, legacy * DROID-984 set navigation test * DROID-984 mock data view filters * DROID-984 set by relation test * DROID-984 fix tests * DROID-984 set mock * DROID-984 add default advance time * DROID-984 stub header * DROID-984 tests setup * DROID-984 toasts as sharedFlow * DROID-984 legacy useCase * DROID-984 refactoring * ci start * ci off --------- Co-authored-by: mcrakhman <rakhmanov.m@gmail.com>
This commit is contained in:
parent
9ac64c79fa
commit
c5866bdf39
241 changed files with 6823 additions and 5858 deletions
|
@ -5,13 +5,14 @@ import com.anytypeio.anytype.test_utils.MockDataFactory
|
|||
|
||||
fun StubHeader(
|
||||
id: Id = MockDataFactory.randomUuid(),
|
||||
children: List<Id> = emptyList()
|
||||
children: List<Id> = emptyList(),
|
||||
fields: Block.Fields = Block.Fields.empty()
|
||||
): Block = Block(
|
||||
id = id,
|
||||
content = Block.Content.Layout(
|
||||
type = Block.Content.Layout.Type.HEADER
|
||||
),
|
||||
fields = Block.Fields.empty(),
|
||||
fields = fields,
|
||||
children = children
|
||||
)
|
||||
|
||||
|
@ -325,15 +326,13 @@ fun StubDataViewBlock(
|
|||
backgroundColor: String? = null,
|
||||
targetObjectId: Id = "",
|
||||
viewers: List<Block.Content.DataView.Viewer> = emptyList(),
|
||||
relations: List<Relation> = emptyList(),
|
||||
relationsIndex: List<RelationLink> = emptyList(),
|
||||
): Block = Block(
|
||||
id = id,
|
||||
content = Block.Content.DataView(
|
||||
targetObjectId = targetObjectId,
|
||||
relationsIndex = relationsIndex,
|
||||
viewers = viewers,
|
||||
relations = relations
|
||||
relationLinks = relationsIndex,
|
||||
targetObjectId = targetObjectId
|
||||
),
|
||||
children = children,
|
||||
fields = fields,
|
||||
|
|
|
@ -5,13 +5,12 @@ import com.anytypeio.anytype.test_utils.MockDataFactory
|
|||
fun StubDataView(
|
||||
id: Id = MockDataFactory.randomUuid(),
|
||||
views: List<DVViewer> = emptyList(),
|
||||
relations: List<RelationLink> = emptyList(),
|
||||
relationLinks: List<RelationLink> = emptyList(),
|
||||
targetObjectId: Id = MockDataFactory.randomUuid()
|
||||
): Block = Block(
|
||||
id = id,
|
||||
content = DV(
|
||||
relations = emptyList(),
|
||||
relationsIndex = relations,
|
||||
relationLinks = relationLinks,
|
||||
viewers = views,
|
||||
targetObjectId = targetObjectId
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue