Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce persistent application state #96

Closed
2 of 3 tasks
srid opened this issue Oct 30, 2023 · 2 comments
Closed
2 of 3 tasks

Introduce persistent application state #96

srid opened this issue Oct 30, 2023 · 2 comments
Assignees

Comments

@srid
Copy link
Member

srid commented Oct 30, 2023

Use a sqlite db dioxus persistance to store application state which includes:

  • Recent flakes accessed Persist Signal state to disk (recently visited flakes now persist) #98
  • Flake output structure Cache retrieved flakes on disk #101
    • Once we "cache" the outputs in the DB, it can be shown without having re-evaluate the flake again. This can be useful for large projects with IFD, like nammayatri, or even nixpkgs. The UI will open ready to do search for packages, etc.
  • UI indicator for stale data. If a flake is out of date, encourage user to update it. Then update the SystemTime in the cache.
  • User settings if any (in the future)
@srid srid changed the title Introduce application state (sqlite) Introduce persistent application state (sqlite) Oct 30, 2023
@srid srid pinned this issue Oct 30, 2023
@srid srid self-assigned this Oct 31, 2023
@srid
Copy link
Member Author

srid commented Nov 1, 2023

Let's consider DioxusLabs/sdk#17 over sqlite ...

@srid srid changed the title Introduce persistent application state (sqlite) Introduce persistent application state Nov 1, 2023
@srid
Copy link
Member Author

srid commented Nov 9, 2023

This is now done, opened #102 for the last task.

@srid srid closed this as completed Nov 9, 2023
@srid srid unpinned this issue Nov 9, 2023
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

No branches or pull requests

1 participant