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

✨ Allow for an "All Time" view in statistics page #712

Merged
merged 9 commits into from
Sep 28, 2024

Conversation

gBL17
Copy link
Contributor

@gBL17 gBL17 commented Sep 19, 2024

No description provided.

@gBL17
Copy link
Contributor Author

gBL17 commented Sep 19, 2024

Demo.554.mp4

- Refactor 'calculateGramsDistributionPerDaySinceFirstUse' function for
  better readability and accuracy
- Add unit test for 'createLineDataSet' function to ensure correctness

Refactored 'AllTimeGraph' and related components to use the newly
modularized logic.

# Conflicts:
#	app/src/main/res/values-pt/strings.xml
- Now the funSpec test are made in getFormattedValue cheking if it
  return correctly
- Refactored `DaysSinceFirstUseFormatter` to be a class that receives a
  list of uses and a date format string.
- Ensure the formatter returns the correct date format as specified in
  the settings repository
- Refactor 'calculateGramsDistributionPerDaySinceFirstUse' function for
  better readability and accuracy
- Add unit test for 'createLineDataSet' function to ensure correctness

Refactored 'AllTimeGraph' and related components to use the newly
modularized logic.

# Conflicts:
#	app/src/main/res/values-pt/strings.xml
Updated imports for string resources to improve readability and
consistency across the code. Changed value text color from White to Blue
 for better contrast, and fixed variable naming in date calculations for
  clarity.

Signed-off-by: Leonardo Colman Lopes <[email protected]>
@LeoColman LeoColman linked an issue Sep 28, 2024 that may be closed by this pull request
@LeoColman LeoColman changed the title Allow for an "All Time" view in statistics page #554 ✨ Allow for an "All Time" view in statistics page Sep 28, 2024
@LeoColman LeoColman enabled auto-merge (squash) September 28, 2024 22:20
@LeoColman LeoColman merged commit 0a21868 into LeoColman:main Sep 28, 2024
8 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.

Allow for an "All Time" view in statistics page
2 participants