-
Notifications
You must be signed in to change notification settings - Fork 0
Add empty state #52
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 empty state #52
Conversation
* Add missing border * Bump material version in preparation for pull to refresh * Fix border on home and past, fix carousel # Conflicts: # app/src/main/java/com/cornellappdev/score/screen/HomeScreen.kt # app/src/main/java/com/cornellappdev/score/screen/PastGamesScreen.kt
… Amy/empty-state
zachseidner1
left a comment
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.
Pretty clean for the most part, nice job! Thank you Amy. There's a couple minor things I'd like you to fix.
app/src/main/java/com/cornellappdev/score/components/EmptyState.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/cornellappdev/score/components/EmptyState.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/cornellappdev/score/screen/PastGamesScreen.kt
Outdated
Show resolved
Hide resolved
zachseidner1
left a comment
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.
Very nice work! Left a few nits but feel free to just merge if you want lol
| } | ||
| if (uiState.filteredGames.isEmpty()) { |
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.
nit: better to use else here?
| Column( | ||
| modifier = Modifier | ||
| .fillMaxSize() | ||
| .background(color = Color.White) | ||
| ) { |
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.
Nit: I can remove this column and the preview still works
Overview
Address issue #34
Changes Made
Added EmptyState component, implemented appropriately in PastGamesScreen and HomeScreen
Test Coverage
Visually correct