Skip to content

Autosave state & allow opting out - #229

Open
Carifio24 wants to merge 20 commits into
cosmicds:devfrom
Carifio24:autosave
Open

Autosave state & allow opting out#229
Carifio24 wants to merge 20 commits into
cosmicds:devfrom
Carifio24:autosave

Conversation

@Carifio24

Copy link
Copy Markdown
Member

This PR is intended to resolve #215. The current implementation sets up the app to save the state every 1 minute (60,000 ms), provided that the value of useLocalStorage is true. It also respects the cache-disabling query parameter.

Whether or not to save the state in local storage is a flag stored (somewhat ironically) in local storage - I don't really know where else we can put it. If a user changes their preference to not store the state in local storage, we remove the current state value in addition to preventing future saves (at least until the value is changed).

I haven't implemented any sort of UI for this yet. @patudom do we want this to show up on some sort of initial splash screen, or a small popup like our other data collection opt-out boxes? I assume that people who want this disabled would prefer that we actively ask them, rather than just having it stashed in a menu somewhere.

@Carifio24
Carifio24 changed the base branch from main to dev July 10, 2026 14:53
@Carifio24
Carifio24 marked this pull request as ready for review July 14, 2026 20:32
@Carifio24

Copy link
Copy Markdown
Member Author

I've added a dialog to allow the user to opt out of local storage saving. I've also updated things so that local storage data is compressed, but exported data files are not.

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.

General state vs. data storage clarity

3 participants