-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add timetable detail screen Base #102
Conversation
@@ -118,6 +122,12 @@ class KaigiAppScaffoldState @OptIn(ExperimentalMaterial3Api::class) constructor( | |||
} | |||
} | |||
|
|||
fun onTimeTableClick(timetableId : TimetableItemId){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[spotless] reported by reviewdog 🐶
fun onTimeTableClick(timetableId : TimetableItemId){ | |
fun onTimeTableClick(timetableId: TimetableItemId) { |
import kotlinx.datetime.TimeZone | ||
import kotlinx.datetime.toInstant | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[spotless] reported by reviewdog 🐶
} | ||
} | ||
|
||
fun fakeTimetableDetail() = Session( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[spotless] reported by reviewdog 🐶
fun fakeTimetableDetail() = Session( | |
fun fakeTimetableDetail() = Session( |
"INTERMEDIATE", | ||
).toPersistentList(), | ||
) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[spotless] reported by reviewdog 🐶
import androidx.compose.ui.layout.ContentScale | ||
import androidx.compose.ui.tooling.preview.Preview | ||
import androidx.compose.ui.unit.dp | ||
import io.github.droidkaigi.confsched2022.designsystem.theme.KaigiScaffold |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[spotless] reported by reviewdog 🐶
import io.github.droidkaigi.confsched2022.designsystem.theme.KaigiScaffold | |
import coil.compose.AsyncImage | |
import io.github.droidkaigi.confsched2022.designsystem.theme.KaigiScaffold |
TimetableDetailDescription( | ||
description = item.description | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[spotless] reported by reviewdog 🐶
TimetableDetailDescription( | |
description = item.description | |
) | |
TimetableDetailDescription( | |
description = item.description | |
) |
language : String, | ||
levels : PersistentList<String>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[spotless] reported by reviewdog 🐶
language : String, | |
levels : PersistentList<String>, | |
language: String, | |
levels: PersistentList<String>, |
|
||
Text( | ||
modifier = modifier, | ||
text = "$startsAt $endsAt" , |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[spotless] reported by reviewdog 🐶
text = "$startsAt $endsAt" , | |
text = "$startsAt $endsAt", |
Spacer( | ||
modifier = modifier.padding(horizontal = 16.dp), | ||
) | ||
//TODO ClickableにしてSpeaker詳細へ遷移 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[spotless] reported by reviewdog 🐶
//TODO ClickableにしてSpeaker詳細へ遷移 | |
// TODO ClickableにしてSpeaker詳細へ遷移 |
uiModel = TimeTableDetailUiModel(Loaded(fakeTimetableDetail())) | ||
) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[spotless] reported by reviewdog 🐶
@@ -43,6 +43,7 @@ dependencies { | |||
implementation(projects.coreData) | |||
implementation(projects.coreDesignsystem) | |||
implementation(projects.coreUi) | |||
implementation(projects.coreModel) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this dependency is bad ... but I don't know what to do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this for TimetableItemId? I think this is not so bad. Because the model is used everywhere in this project.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this for TimetableItemId?
That's right.
the model is used everywhere in this project.
I see. Thank you very much!!
composable(route = SessionsNavGraph.sessionRoute) { | ||
SessionsScreenRoot(onNavigationIconClick = onNavigationIconClick) | ||
SessionsScreenRoot( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Q]
Should I make another NavGraph Class , and move them ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is ok. 👍
} | ||
|
||
@Composable | ||
fun TimetableDetailDescription( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
"INTERMEDIATE", | ||
).toPersistentList(), | ||
) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[spotless] reported by reviewdog 🐶
} | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's merge first
...ions/src/test/java/io/github/droidkaigi/confsched2022/feature/sessions/SessionsScreenTest.kt
Outdated
Show resolved
Hide resolved
...ions/src/test/java/io/github/droidkaigi/confsched2022/feature/sessions/SessionsScreenTest.kt
Outdated
Show resolved
Hide resolved
Thanks for fixing! |
🙏 |
Issue
Overview (Required)
Not yet
//TODO comment Added
Links
Screenshot