Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,11 @@ class ActivityCenterStore(private val scope: CoroutineScope) {
ActivityStreamEventType.MESSAGE -> event.message?.let { applyMessage(it) }
ActivityStreamEventType.MISSED ->
streamErrorMessage = "Some activity updates were missed. Pull to refresh."
ActivityStreamEventType.UNKNOWN -> Unit
ActivityStreamEventType.ERROR ->
streamErrorMessage = event.error ?: "Live updates paused. Pull to refresh."
ActivityStreamEventType.HEARTBEAT,
ActivityStreamEventType.UNKNOWN,
-> Unit
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ import app.getarcane.android.ui.components.SkeletonListLoadingView
import app.getarcane.android.ui.theme.ArcaneGreen
import app.getarcane.android.ui.theme.StatusRunning
import app.getarcane.android.ui.theme.StatusUnknown
import app.getarcane.sdk.models.base.SearchPaginationSort
import app.getarcane.sdk.models.container.ContainerSummary
import kotlinx.coroutines.launch

Expand Down Expand Up @@ -93,7 +94,12 @@ fun ContainerListScreen(onOpen: (String) -> Unit) {
if (client == null) return@LaunchedEffect
if (state !is Loadable.Success) state = Loadable.Loading
state = try {
Loadable.Success(client.containers.list(envId = envId).data)
Loadable.Success(
client.containers.list(
envId = envId,
query = SearchPaginationSort(start = 0, limit = -1),
Comment thread
mkaltner marked this conversation as resolved.
).data,
)
} catch (e: Throwable) {
Loadable.Error(friendlyErrorMessage(e))
}
Expand Down
Loading