iamsanjay commented on code in PR #3511: URL: https://github.com/apache/solr/pull/3511#discussion_r2303714188
########## solr/ui/src/commonMain/kotlin/org/apache/solr/ui/components/collections/CollectionsComponent.kt: ########## @@ -0,0 +1,35 @@ +package org.apache.solr.ui.components.collections + +import kotlinx.coroutines.flow.Flow +import kotlinx.coroutines.flow.StateFlow +import org.apache.solr.ui.components.collections.data.CollectionData +import org.apache.solr.ui.components.collections.data.CollectionsList +import org.apache.solr.ui.components.collections.data.ListConfigSets +import org.apache.solr.ui.components.collections.store.CollectionsStore + +/** + * Component interface that represents the collection section. + */ +interface CollectionsComponent { + + val model: StateFlow<Model> + + val labels: Flow<CollectionsStore.Label> + + data class Model( + val collectionsList: CollectionsList = CollectionsList(), + val selectedCollectionData: CollectionData? = null, + val liveNodesData: List<String> = emptyList(), + val mutating: Boolean = false, + val configSets: ListConfigSets? = null, + ) + + fun selectCollection(name: String) + fun fetchLiveNodesData() Review Comment: ohh I see for instance, fetchCollectionList is a bootstrap because we need list at the beginning. And fetchLiveNodesData is more like getLiveNodesData. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org