-
Notifications
You must be signed in to change notification settings - Fork 200
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
Feature/58 timetable design #71
Conversation
Missing: Time sorting, correct shapes for room names, correct room names (data issue), warning data (canceled events), Favorite is misaligned. Also: Overall top bar, title, etc is still missing.
//@Composable | ||
//fun testItem() { | ||
// val isBookmarked = false | ||
// Row { | ||
// Text( | ||
// text = "Placeholder",//timetableItem.title.currentLangTitle, | ||
// modifier = Modifier | ||
// .padding(horizontal = 16.dp) | ||
// //.testTag(TimetableListItemTestTag) | ||
// //.clickable { onTimetableItemClick(timetableItem) }, | ||
// ) | ||
// Spacer(modifier = Modifier.weight(1f)) | ||
// TextButton( | ||
// onClick = {} | ||
// //onClick = { onBookmarkClick(timetableItem, true) }//, | ||
// //modifier = Modifier.testTag(TimetableListItemBookmarkIconTestTag) | ||
// ) { | ||
// if (isBookmarked) { | ||
// Icon(Icons.Filled.Favorite, contentDescription = "Bookmarked", tint= Color.Green) | ||
// } else { | ||
// Icon(Icons.Outlined.FavoriteBorder, contentDescription = "Not Bookmarked", tint= Color.White) | ||
// } | ||
// } | ||
// } | ||
//} | ||
// | ||
//@Preview @Composable | ||
//fun previewItem() { | ||
// testItem() | ||
//} | ||
|
||
|
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.
If you want to use this later we can leave as it is. But if we don't need this I think we can remove.
//@Composable | |
//fun testItem() { | |
// val isBookmarked = false | |
// Row { | |
// Text( | |
// text = "Placeholder",//timetableItem.title.currentLangTitle, | |
// modifier = Modifier | |
// .padding(horizontal = 16.dp) | |
// //.testTag(TimetableListItemTestTag) | |
// //.clickable { onTimetableItemClick(timetableItem) }, | |
// ) | |
// Spacer(modifier = Modifier.weight(1f)) | |
// TextButton( | |
// onClick = {} | |
// //onClick = { onBookmarkClick(timetableItem, true) }//, | |
// //modifier = Modifier.testTag(TimetableListItemBookmarkIconTestTag) | |
// ) { | |
// if (isBookmarked) { | |
// Icon(Icons.Filled.Favorite, contentDescription = "Bookmarked", tint= Color.Green) | |
// } else { | |
// Icon(Icons.Outlined.FavoriteBorder, contentDescription = "Not Bookmarked", tint= Color.White) | |
// } | |
// } | |
// } | |
//} | |
// | |
//@Preview @Composable | |
//fun previewItem() { | |
// testItem() | |
//} |
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.
Sorry I had intended to split into sub components but I gave up part way s the previewer was not showing in this project. I was able to get the view up and running without needing the preview but left this commented out.
I will try to be more careful about comments in the future.
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.
Thank you for your first internal contribution to the Android app; it looks better a lot!
Could you run ./gradlew detekt --auto-correct to fix the format and ensure the CI passes?
Sorry I didn't fix them before you acted. I was at work. |
Thanks for putting in coil. I thought about just adding the library but did not know if there were restrictions on library usage at the time. |
Issue
Overview (Required)
Links
Screenshot (Optional if screenshot test is present or unrelated to UI)
Movie (Optional)