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).
@marionbarker

Copy link
Copy Markdown
Contributor

Thank you for your contribution. We will look at this.

Just a side note for next time. Please always issue PRs from a feature branch based on dev but with a specific branch name, such as add-pod-history or something like that.

@EJM0

EJM0 commented Jul 15, 2026

Copy link
Copy Markdown
Author

Oh ups just noticed I forgot about that. I can redo the pr with a proper brach, if you want?

@marionbarker

Copy link
Copy Markdown
Contributor

You do not have to redo the PR. Just make sure you do not modify your dev branch for another reason - if you do that, this PR would be updated too.

That's one of the many reasons why it is far better to use a named branch for a specific change.

@EJM0

EJM0 commented Jul 16, 2026

Copy link
Copy Markdown
Author

Okay noted 👍

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.

2 participants