Skip to content

Commit

Permalink
🎨 Added RealResultPanel in MainScreen for testing
Browse files Browse the repository at this point in the history
This commit introduces a RealResultPanel component in the MainScreen.kt file. The purpose is to visually test the overall layout and data rendering of the application using mock data. This change is particularly helpful for front-end software developers who need to adjust CSS/SCSS or graphics files based on actual visual output.
  • Loading branch information
CXwudi committed Nov 28, 2023
1 parent 1466a2f commit ecd2051
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@ import androidx.compose.runtime.Composable
import androidx.compose.runtime.State
import androidx.compose.runtime.mutableStateOf
import mikufan.cx.songfinder.backend.controller.MainScreenController
import mikufan.cx.songfinder.backend.db.entity.PvService
import mikufan.cx.songfinder.backend.db.entity.PvType
import mikufan.cx.songfinder.backend.db.entity.SongType
import mikufan.cx.songfinder.backend.model.PVInfo
import mikufan.cx.songfinder.backend.model.SongSearchResult
import mikufan.cx.songfinder.backend.statemodel.SearchStatus
import mikufan.cx.songfinder.getSpringBean
import mikufan.cx.songfinder.ui.common.ColumnCentralizedWithSpacing
import mikufan.cx.songfinder.ui.component.mainpage.*
import mikufan.cx.songfinder.ui.theme.MyAppThemeWithSurface
import java.time.LocalDateTime

@Composable
fun MainScreen() {
Expand Down Expand Up @@ -49,6 +55,25 @@ fun PreviewMainScreen() {
{},
)
)
RealResultPanel(
listOf(
SongSearchResult(
id = 123L,
title = "title",
type = SongType.Original,
vocals = listOf("vocal1", "vocal2"),
producers = listOf("producer1", "producer2"),
publishDate = LocalDateTime.now(),
pvs = listOf(
PVInfo(
id = "sm123",
pvService = PvService.NicoNicoDouga,
pvType = PvType.Original,
)
)
)
)
)
}
}
}

0 comments on commit ecd2051

Please sign in to comment.