Repository navigation
feat(health): add CSV and JSON export for daily health summaries - #35
Merged
Merged
Conversation
This was referenced Nov 9, 2026
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.
Adds CSV and JSON file output for daily health summaries. An Array extension on DailyHealthSummary provides csvString, jsonData, writeCSV and writeJSON, so the export pipeline from parsed records to daily summaries now ends in usable files.
Part of #6. Closes #34.
How it was verified:
mise run lint- 503 violations, 11 serious in 128 files, same baseline as origin/main. No violations in the two added files.mise run build- passed, Build complete.mise run test- passed, 142 tests with 0 failures. The 9 new DailyHealthSummaryExportTests are listed below.mise run ios:build:devandmise run ios:test:uiwere not run. Nothing user-facing changed. This slice is core export logic only.Proof, terminal capture from
mise run testfiltered to the new suite:Each test name states what it shows. Together they cover the CSV header and row values, empty fields for nil values instead of zeros, a header-only file for empty input, preserving array order, ISO8601 dates with sorted keys in JSON, a JSON round-trip back to the same summaries, writing both formats to disk and reading them back, and an end-to-end run from HealthExportParser through dailySummaries into both exports.
Reviewer notes: