Draft
Conversation
471b26a to
8041a2b
Compare
…manager were not animating
make the secure or the not secure configs saved in the same json file
…l the time as read operation are less frequesnt then write operations to the config
…e for the old workspace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #53
this pr implement a custom persistent layer for storing and retrieving application state, replacing the previous use of
tauri-plugin-storeall written in rust.and exposes 2 tauri command for js
It also refactors state management across the Svelte frontend to use the new persistent state, updates workspace management logic, and cleans up related dependencies and permissions. The most important changes are grouped below:
Changes
Persistency Layer Implementation and Integration:
src/features/persistency) implementingAppPersistentStates, including schema versioning, serialization, and migration scaffolding. This module provides Tauri commands for loading and saving persistent state (get_persistent_states,save_persistent_states). [1] [2] [3] [4] [5]tauri-plugin-storefrom dependencies, permissions, and plugin setup, as it is no longer used. [1] [2] [3]Frontend State Refactor:
persistent_states), and refactored components to use it for managing recent workspaces and app configuration. [1] [2] [3]Codebase and Dependency Cleanup:
package.jsonto reflect removal of unused libraries and addition of new ones.chrono(withserdefeature) as a Rust dependency for timestamp serialization in persistent state.These changes collectively provide a more robust, versioned, and extensible approach to application state persistence, and streamline state management across the app.
Architecture
get_persistent_statesthis function has the responsibilty to
config.jsonconfig.jsonnot found, initalize a default oneconfig.jsonsave_persistent_statesthis function is responsible for
Other notes
config.jsonfile in the programs config directory according to the OS (eg~/.config/io.github.keshav-writes-code.cheritfor linux)config.jsonAppPersistentStatesis created for the operations and releeased and nothing is mainted in memory