Implement navigation and past games screen UI/ViewModel/majority of networking#31
Merged
Implement navigation and past games screen UI/ViewModel/majority of networking#31
Conversation
zachseidner1
requested changes
Mar 20, 2025
Collaborator
zachseidner1
left a comment
There was a problem hiding this comment.
Helen, this is a really impressive first draft! Everything looks nice overall, and I am hoping that after resolving the merge conflicts and taking a look at my comments you should be good. Please try to do this as soon as you reasonably can in case I end up having more comments, since we want to make sure this gets in in time. You did some real clever stuff in this PR that I even learned something lol.
app/src/main/java/com/cornellappdev/score/components/FeaturedGameCard.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/cornellappdev/score/components/FeaturedGameCard.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/cornellappdev/score/components/PastGameCard.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/cornellappdev/score/components/PastGameCard.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/cornellappdev/score/components/GamesCarousel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/cornellappdev/score/screen/PastGamesScreen.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/cornellappdev/score/screen/PastGamesScreen.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/cornellappdev/score/viewmodel/PastGamesViewModel.kt
Show resolved
Hide resolved
Collaborator
zachseidner1
left a comment
There was a problem hiding this comment.
Really great work, we're so close. I think if you just clean up the past games card a little bit, you should be good!
app/src/main/java/com/cornellappdev/score/viewmodel/PastGamesViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/cornellappdev/score/components/PastGameCard.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/cornellappdev/score/components/PastGameCard.kt
Outdated
Show resolved
Hide resolved
Collaborator
zachseidner1
approved these changes
Mar 24, 2025
Collaborator
zachseidner1
left a comment
There was a problem hiding this comment.
Thanks for resolving the second round of comments! Ship it 🚀 🔥
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Implemented Past Games (aka Scores) screen, with the associated ViewModel and most of networking. Also implemented bottom bar and navigation between game cards (on both Home and Past Games Screen) to a dummy game details screen.
Changes Made
UpcomingGameCardtoFeaturedGameCard,SportCardtoGameCard,UpcomingGamesCarouseltoGamesCarousel)PastGameCardandPastGamesScreen(PastGameCards are properly spaced on this screen)PastGamesViewModelGameCard/PastGameCardto a dummyGameDetailsPage-- will currently navigate back to the correct page when clicking the back arrow on theGameDetailsScreenPastGamesScreenGameCardso long event/university names don't push the sport/gender icon off the cardAdditional Notes
resultstring, which is oftentimes in the format Result, CornellScore-OpponentScore (e.g. "W, 2-1"). Not all of the strings are in this format (e.g. 4th of 6, 1498 points for women's Swimming and Diving), but in this case, thecornellScoreandotherScoreparameters of the game and associated card should be null, and as of right now, null-scored games are filtered out.