-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
697341d
commit 7c60181
Showing
5 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
feature/home/src/main/java/com/boostcamp/mapisode/home/ai/RecommendationIntent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | ||
} |
40 changes: 40 additions & 0 deletions
40
feature/home/src/main/java/com/boostcamp/mapisode/home/ai/RecommendationScreen.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() { | ||
|
||
} |
6 changes: 6 additions & 0 deletions
6
feature/home/src/main/java/com/boostcamp/mapisode/home/ai/RecommendationSideEffect.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | ||
} |
7 changes: 7 additions & 0 deletions
7
feature/home/src/main/java/com/boostcamp/mapisode/home/ai/RecommendationState.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
17 changes: 17 additions & 0 deletions
17
feature/home/src/main/java/com/boostcamp/mapisode/home/ai/RecommendationViewmodel.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { | ||
|
||
} | ||
} |