package solutions.tretter.githugandroid

enum class PaneId(val title: String) {
    LEVELS("Levels"),
    VISUAL("Visual"),
    EXERCISE("Exercise"),
    TERMINAL("Terminal"),
}

data class PaneLayout(
    val order: List<PaneId>,
    val collapsed: Set<PaneId>,
    val weights: Map<PaneId, Float>,
)

enum class ExerciseDetailPanel {
    HINT,
    SUGGESTIONS,
}

fun defaultPaneLayout(): PaneLayout = PaneLayout(
    order = listOf(PaneId.EXERCISE, PaneId.TERMINAL, PaneId.VISUAL, PaneId.LEVELS),
    collapsed = emptySet(),
    weights = mapOf(
        PaneId.EXERCISE to 3.0f,
        PaneId.TERMINAL to 6.0f,
        PaneId.VISUAL to 2.0f,
        PaneId.LEVELS to 1.0f,
    ),
)