Skip to content

Alarm history export (CSV/JSON) #275

Description

@ScottMorris

Part of #272. Depends on #273 (capture); the button lives on the screen from #274.

"Metrics the user could use wherever they want": export the raw alarm_history log so users own their data without Threshold needing any analytics component.

Scope

  • An "Export history" action on the History & stats screen producing CSV and/or JSON (decide: one format or a choice; CSV is the spreadsheet-friendly default, JSON preserves types).
  • Delivery per platform: share sheet on Android, file save dialog on desktop.
  • Export the full retained log (all alarms, including deleted-alarm rows), with human-readable timestamps alongside epoch millis.

Notes

  • Check the capabilities/ACL story for whatever plugin command or dialog API this uses (apps/threshold/src-tauri/capabilities/*.json) — a command that works from Rust can still be ACL-denied from TS.
  • Everything stays local; no network involved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions