Skip to content

Add pod session log feature and retention#107

Open
EJM0 wants to merge 2 commits into
loopandlearn:devfrom
EJM0:dev
Open

Add pod session log feature and retention#107
EJM0 wants to merge 2 commits into
loopandlearn:devfrom
EJM0:dev

Conversation

@EJM0

@EJM0 EJM0 commented Jul 15, 2026

Copy link
Copy Markdown

Adds a pod session log with retention controls and UI.

A failure log for the OmniPod module. Since I’m having these 203 failures, I keep finding myself in situations where I need to report multiple pods to my supplier.(in batches) I usually screenshot the failure details and ref codes, but having a built-in log with this info would eliminate the clumsy screenshot mess.

  • New PodSessionLogRetention enum (OmnipodCommon) with titles and days/forever logic.
  • Persisted podSessionLog and podSessionLogRetention in OmniPumpManagerState; added recording, pruning, remove/clear helpers, and RawRepresentable serialization.
  • OmniPumpManager: exposes podSessionLog/podSessionLogDetails, retention property (applies pruning immediately), and methods to delete/clear entries; records completed sessions when a pod ends.
  • OmniSettingsViewModel: published properties for pod session log details and retention, plus delete/clear actions and observers updates.
  • UI: adds navigation link in OmniSettingsView and new PodSessionLogView/PodSessionLogListContent implementing retention picker, list, delete, and clear-confirmation UI (with previews).

Adds a pod session log with retention controls and UI.

- New PodSessionLogRetention enum (OmnipodCommon) with titles and days/forever logic.
- Persisted podSessionLog and podSessionLogRetention in OmniPumpManagerState; added recording, pruning, remove/clear helpers, and RawRepresentable serialization.
- OmniPumpManager: exposes podSessionLog/podSessionLogDetails, retention property (applies pruning immediately), and methods to delete/clear entries; records completed sessions when a pod ends.
- OmniSettingsViewModel: published properties for pod session log details and retention, plus delete/clear actions and observers updates.
- UI: adds navigation link in OmniSettingsView and new PodSessionLogView/PodSessionLogListContent implementing retention picker, list, delete, and clear-confirmation UI (with previews).
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.

1 participant