Skip to content
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

Merged
merged 4 commits into from
Jun 26, 2024
Merged

Feature/58 timetable design #71

merged 4 commits into from
Jun 26, 2024

Conversation

charles-b-stb
Copy link
Contributor

Issue

Overview (Required)

  • Initial code with some functionality and some correct UI added for the timetable list.
  • Many features are still missing but this is actually a bit more complete than the iOS list at the moment with actual useful looking test data.
  • Partially complete but submitting for PR now so that we can get the ball rolling on development. (with PR, Smaller = Better)

Links

Screenshot (Optional if screenshot test is present or unrelated to UI)

Before After
340879397-821b8d1a-dd4a-4011-82a8-86cbb7561ac4 スクリーンショット 2024-06-25 23 07 52

Movie (Optional)

Before After

CHARLES BOND added 2 commits June 25, 2024 01:07
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.
@charles-b-stb charles-b-stb requested a review from takahirom June 25, 2024 14:17
Comment on lines 178 to 209
//@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()
//}


Copy link
Member

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.

Suggested change
//@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()
//}

Copy link
Contributor Author

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.

Copy link
Member

@takahirom takahirom left a 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?

@takahirom takahirom merged commit 55e4b3d into main Jun 26, 2024
2 checks passed
@takahirom takahirom deleted the feature/58-timetable-design branch June 26, 2024 04:44
@charles-b-stb
Copy link
Contributor Author

Sorry I didn't fix them before you acted. I was at work.

@charles-b-stb
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants