Skip to content

Fix NaN metrics bug#14

Merged
NicksPatties merged 5 commits intomasterfrom
11-bug-metrics-screen-counting-incomplete-events
Jul 15, 2022
Merged

Fix NaN metrics bug#14
NicksPatties merged 5 commits intomasterfrom
11-bug-metrics-screen-counting-incomplete-events

Conversation

@NicksPatties
Copy link
Copy Markdown
Owner

Changes

  • Fixed behavior in event filtering and percentage calculation functions
  • Added Composable Previews and unit tests
  • Moved "No items" null check in AnalysisPage underneath TimeRangeSelector, allowing for navigation between different ranges
    • This prevents any weird behavior from occurring if a user has recorded events, but none during a specified date range, and then navigates to that AnalysisPane. Before these changes, the screen would say "No items" with no way to return to another screen.

Related issue

Fixes issue #11

Screenshots

Starting with no events
Event in progress
Finishing an event

Testing

  • Added unit tests to changed code
  • Added Preview composables to verify bug behavior and fixes
  • Manual testing

If there is an AnalysisRow in the list of analysisPageRows that has a time of 0, then that leads to NaN being printed on screen.
This occurs when an event has started, but has not completed, since the startTime and endTime is set to the same value.
…eText into its own file. Use NothingHereText if there are no rows to show.
@NicksPatties NicksPatties linked an issue Jul 14, 2022 that may be closed by this pull request
@NicksPatties
Copy link
Copy Markdown
Owner Author

New tests are being run in the new build. Hooray!

Previous build output: 21 tests run
Now: 23 tests run

@NicksPatties NicksPatties merged commit 9aead4b into master Jul 15, 2022
@NicksPatties NicksPatties deleted the 11-bug-metrics-screen-counting-incomplete-events branch July 15, 2022 21:21
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.

[BUG] Metrics screen counting incomplete events

1 participant