Skip to content

Conversation

@amjiao
Copy link
Contributor

@amjiao amjiao commented Mar 9, 2025

Overview

Addressed issue #21

Screenshots (delete if not applicable)

UI looks the same

@amjiao amjiao requested a review from zachseidner1 March 9, 2025 20:24
Copy link
Collaborator

@zachseidner1 zachseidner1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amy, this is really great work, genuinely! I know I left a lot of comments, but it's so awesome to see that you have an understanding of MVVM. We're relatively close to this being ready, just address my comments and then you should be good.

Copy link
Collaborator

@zachseidner1 zachseidner1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops my old review told you to refactor all the filters to use flows, even though that's the way it should be done, I realized it's probably not worth it for us right now. I want you to not have to go through an entire refactor so let's just leave a TODO comment for now. The current solution works and is more concise.

@amjiao
Copy link
Contributor Author

amjiao commented Mar 18, 2025

I think the formatColor function needs to be kept since it parses the String into a valid Color input and applies the appropriate alpha, so I feel like it's a little long to put in one line and I also feel like it needs documentation? I just moved the function into the ScoreRepository which seems a bit off so let me know if you see a better way to approach this.

@amjiao amjiao requested a review from zachseidner1 March 18, 2025 00:16
Copy link
Collaborator

@zachseidner1 zachseidner1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job with this refactor! We're almost there. I appreciate your work 🙏

@zachseidner1 zachseidner1 linked an issue Mar 18, 2025 that may be closed by this pull request
@amjiao amjiao requested a review from zachseidner1 March 19, 2025 19:20
Copy link
Collaborator

@zachseidner1 zachseidner1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing work! 🥳

@amjiao amjiao merged commit f4759ba into main Mar 19, 2025
1 check passed
@amjiao amjiao deleted the Amy/games-model branch March 19, 2025 22:23
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.

HomeViewModel and ScoreRepository refactor

3 participants