Closed hcavarsan closed 1 month ago
The recent changes across multiple files in the kftray-tauri
project improve logging practices and transition to an asynchronous architecture for database operations. Standard output statements have been replaced with structured logging using the log
crate, enhancing error handling and traceability. A new configuration management system has been established with the introduction of the ConfigState
struct and a dedicated configuration file, facilitating better organization and efficiency in managing application settings.
Files | Change Summary |
---|---|
crates/kftray-tauri/src/{commands.rs, config.rs, config_state.rs} |
Enhanced logging by replacing println! and eprintln! with info! and error! macros, improving error handling and traceability across components. |
crates/kftray-tauri/src/{db.rs, migration.rs} |
Transitioned database initialization and management to asynchronous functions, improving performance and responsiveness. |
.mise.toml |
Introduced a new configuration file specifying required tools and environment settings, enhancing project setup and standardization for development. |
frontend/src/components/{Footer/BulkDeleteButton/index.tsx, Main/index.tsx} |
Updated props to streamline state management for configurations, reflecting a shift towards external handling of updates through new prop methods. |
crates/kftray-commons/src/{utils/config.rs, utils/config_state.rs} |
Developed a comprehensive configuration management system with CRUD operations, enhancing the application's ability to efficiently manage configurations. |
crates/kftray-portforward/src/{client.rs, core.rs} |
Updated port forwarding functionalities to leverage asynchronous operations and improved state management through configuration updates. |
crates/kftray-commons/src/models/mod.rs |
Added multiple new models to encapsulate functionalities related to configuration management and responses, enhancing modularity within the library. |
sequenceDiagram
participant User
participant Main
participant Commands
participant Database
User->>Main: Trigger command
Main->>Commands: Execute command
Commands->>Database: Query/Update data
Database-->>Commands: Return result
Commands-->>Main: Log result
Main-->>User: Display result
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Add logic to manage the port forward state on the backend side. This is a prerequisite for developing the CLI or TUI clients