Closed ogabrielides closed 3 weeks ago
[!IMPORTANT]
Review skipped
Auto reviews are disabled on base/target branches other than the default branch.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yaml
file in this repository. To trigger a single review, invoke the@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
The pull request introduces several modifications across multiple files in the dash-evo-tool
package. Key changes include the addition of a new dependency in Cargo.toml
, enhancements to the AppState
struct in src/app.rs
, and the introduction of a new module for managing application directories in src/app_dir.rs
. The Config
struct in src/config.rs
now dynamically loads the .env
file path, while logging functionality in src/logging.rs
has been updated for better error handling. The UI for withdrawal status has also been improved in src/ui/withdraws_status_screen.rs
.
File | Change Summary |
---|---|
Cargo.toml | - Added new dependency: directories = "5.0" - Updated dependency: serde_yaml = "0.9.34+deprecated" |
src/app.rs | - Added functions: create_app_user_data_directory_if_not_exists() , copy_mainnet_env_file_if_not_exists() - Updated new() method in AppState to enhance initialization. |
src/app_dir.rs | - Introduced functions for managing user data directories: app_user_data_dir_path() , create_app_user_data_directory_if_not_exists() , app_user_data_file_path(filename: String) , copy_mainnet_env_file_if_not_exists() |
src/config.rs | - Updated load() method in Config to use dynamic path for .env file via app_user_data_file_path . |
src/logging.rs | - Modified initialize_logger to use app_user_data_file_path for log file location. |
src/main.rs | - Added new module: mod app_dir; |
src/ui/withdraws_status_screen.rs | - Updated WithdrawsStatusScreen for improved pagination handling and display of withdrawal data. - Refined methods for clarity and usability. |
src/config.rs
related to loading the .env
file dynamically are connected to the main PR's updates in Cargo.toml
, as both involve managing configuration and dependencies in the application.src/app.rs
that enhance the AppState::new
method are relevant to the main PR, as they both involve changes to the application state management and initialization processes.🐰 In the garden where changes bloom,
New paths and functions make room.
With directories tidy and logs in place,
The app now runs with a happier face!
Let's hop along, with joy we cheer,
For every update brings us near! 🌼
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?
@coderabbitai review
Summary by CodeRabbit
Release Notes
New Features
Improvements
Bug Fixes
These updates enhance user experience and application reliability.