Skip to content

Commit

Permalink
feat/#17 : Recommendation 화면 작업
Browse files Browse the repository at this point in the history
  • Loading branch information
shinythinking committed Feb 17, 2025
1 parent 697341d commit 7c60181
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package com.boostcamp.mapisode.home.ai

import com.boostcamp.mapisode.ui.base.UiIntent

sealed class RecommendationIntent : UiIntent {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package com.boostcamp.mapisode.home.ai

import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.lazy.grid.GridCells
import androidx.compose.foundation.lazy.grid.LazyVerticalGrid
import androidx.compose.foundation.lazy.grid.items
import androidx.compose.runtime.Composable
import androidx.hilt.navigation.compose.hiltViewModel
import com.boostcamp.mapisode.designsystem.compose.MapisodeText

val options: List<String> = (0..100).map { "Item $it" }

@Composable
fun RecommendationRoute(
viewmodel: RecommendationViewmodel = hiltViewModel(),
episodes: List<String>,
onBackClick: () -> Unit,
) {
RecommendationChoiceScreen()

}

@Composable
fun RecommendationChoiceScreen() {

LazyVerticalGrid(GridCells.Fixed(2)) {
items(options) { item ->
Box {
MapisodeText(
text = item,
)
}
}
}
}

@Composable
fun RecommendationResultScreen() {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package com.boostcamp.mapisode.home.ai

import com.boostcamp.mapisode.ui.base.SideEffect

sealed class RecommendationSideEffect : SideEffect {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.boostcamp.mapisode.home.ai

import com.boostcamp.mapisode.ui.base.UiState

data class RecommendationState (
val a:Int = 0
) : UiState
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.boostcamp.mapisode.home.ai

import com.boostcamp.mapisode.ui.base.BaseViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class RecommendationViewmodel @Inject constructor(

) :
BaseViewModel<RecommendationIntent, RecommendationState, RecommendationSideEffect>(
RecommendationState(),
) {
override fun onIntent(intent: RecommendationIntent) {

}
}

0 comments on commit 7c60181

Please sign in to comment.