Skip to content

Export parsed activity ring summaries as CSV and JSON #52

Closed

Description

@johnnyhuy

Part of #6.

Add CSV and JSON export for the parsed HealthActivitySummary values, following the existing daily and weekly summary export APIs. Keep activity ring totals separate from record-derived daily totals.

  • Export the calendar date, normalised energy and goal in kilocalories, exercise minutes and goal, and stand hours and goal as CSV.
  • Preserve raw units and values in Codable JSON for a lossless round trip.
  • Preserve input order, missing values and measured zeroes; escape CSV text fields.
  • Provide atomic file writers and document the public API.
  • Prove the XML-to-export path with unit and integration tests plus the repository lint, build and test gates.

No app UI changes. Recommendation policy and activity ring analytics remain follow-up slices.

Activity

  1. johnnyhuy commented on Nov 13, 2026

    @johnnyhuy
    ContributorAuthor

    agent claim: agent/issue-52-activity-summary-export @ 2a9c8c1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agentclaimed by the BetterFit work loop

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions