-
Notifications
You must be signed in to change notification settings - Fork 201
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
Expanded Lunch Field (Grid) #712
base: main
Are you sure you want to change the base?
Conversation
Detekt check failed. Please run |
Fixed formatting. Ready for review. |
Detekt check failed. Please run |
@@ -106,7 +106,7 @@ fun TimetableGridItem( | |||
derivedStateOf { (height - TimetableGridItemSizes.padding * 2) / 4 > titleMinHeightDp * 3 / 2 } | |||
} | |||
|
|||
ProvideRoomTheme(timetableItem.room.getThemeKey()) { |
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.
Our formatter says this. Could you check it out?
/home/runner/work/conference-app-2024/conference-app-2024/feature/sessions/src/commonMain/kotlin/io/github/droidkaigi/confsched/sessions/component/TimetableGridItem.kt:109:22: Extra braces exist on this branch, remove them. [BracesOnIfStatements]
/home/runner/work/conference-app-2024/conference-app-2024/feature/sessions/src/commonMain/kotlin/io/github/droidkaigi/confsched/sessions/component/TimetableGridItem.kt:109:61: Extra braces exist on this branch, remove them. [BracesOnIfStatements]
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.
Weird. I ran the format fixer....
I will try to fix this.
@takahirom fixed (again) |
@@ -106,7 +106,7 @@ fun TimetableGridItem( | |||
derivedStateOf { (height - TimetableGridItemSizes.padding * 2) / 4 > titleMinHeightDp * 3 / 2 } | |||
} | |||
|
|||
ProvideRoomTheme(timetableItem.room.getThemeKey()) { | |||
ProvideRoomTheme(if (timetableItem.isLunch) "lunch" else timetableItem.room.getThemeKey()) { |
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.
How about passing isLunch to getThemeKey()?
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.
ok
I would like to have a fake session for lunch which will be used for screenshot tests. It could break unexpectedly otherwise. |
Detekt check failed. Please run |
Detekt check failed. Please run |
jaTitle = "${fake.title.jaTitle} $day $index", | ||
enTitle = "${fake.title.enTitle} $day $index", | ||
|
||
if(start == DroidKaigi2024Day.Workday.start + 13.hours) { |
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.
There may not be a DroidKaigi 2024 Day 1 session starting at 1 PM.
I think we can place this above the for-loop.
Could you please check?
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.
ok. I will look now. Sorry about yesterday (I was unwell yesterday and needed to rest)
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.
@takahirom if you mean day zero... do we need test data for that?
We cut day zero from the timetable.
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 we don't need this if
statement, and we can move the add statement outside of the for-loop.
Additionally, I believe we should use DroidKaigi2024Day.ConferenceDay1.start
instead of DroidKaigi2024Day.Workday.start
for startsAt
and endsAt
.
Adjusted as requested. 🙇 |
TimetableItem.Special( | ||
id = TimetableItemId("7"), | ||
title = MultiLangText("Lunch break", "Lunch break"), | ||
startsAt = DroidKaigi2024Day.Workday.start + 13.hours, |
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 is still DroidKaigi2024Day.Workday 👀
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.
oops, sorry I forgot to fix that part.
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.
@takahirom sorry about that. Fixed as requested.
Additional requested actions:
|
Issue
Overview (Required)
Links
Screenshot (Optional if screenshot test is present or unrelated to UI)
Movie (Optional)