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

Adds support for Exercise Goals #290

Merged
merged 1 commit into from
Aug 26, 2024
Merged

Conversation

breanatate
Copy link
Collaborator

Adds support for Exercise Goals:

  • New Exercise Goals Screen
  • Exercise Goals Screen Test
  • Exercise Goal Met Dialog
  • Exercise Goals VM
  • Small changes to other files

@breanatate breanatate requested review from yschimke and garanj August 20, 2024 18:37
icon = { Icon(Icons.Default.SportsScore, contentDescription = "goal achieved") },
title = stringResource(id = R.string.goal_achieved),
showDialog = showDialog,
durationMillis = 10L,
Copy link
Contributor

Choose a reason for hiding this comment

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

10ms seems pretty short, does this show for long enough?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Agreed. I'll update it to 50, and maybe look into some sort of vibration in a later iteration. Definitely want to modify the ExerciseGoalMet component more because 1) it isn't centered and 2) it could look nicer 😅

@breanatate
Copy link
Collaborator Author

You will see the force-push as a had a goof up on my fork, but will do checks to make sure all is in order.

@@ -120,7 +120,7 @@ dependencies {
// Hilt
implementation libs.hilt.navigation.compose
implementation libs.dagger.hilt.android
kapt libs.dagger.hilt.android.compiler
kapt libs.dagger.hilt.android.compiler
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: revert?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed. Thanks!

icon = { Icon(Icons.Default.SportsScore, contentDescription = "goal achieved") },
title = stringResource(id = R.string.goal_achieved),
showDialog = showDialog,
durationMillis = 50L,
Copy link
Contributor

@yschimke yschimke Aug 24, 2024

Choose a reason for hiding this comment

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

Can you leave this as the default, 50ms is very short.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changed to DialogDefaults.LongDurationMillis

@breanatate breanatate merged commit 73a4343 into android:main Aug 26, 2024
2 checks passed
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.

3 participants