Closed pauldelucia closed 6 days ago
The pull request implements significant changes across multiple files, primarily focusing on simplifying the application state and configuration management. Key modifications include the removal of various enum variants, methods, and fields from the AppState
, NetworkConfig
, and AppContext
structures. Additionally, several database-related methods for managing contested names, contracts, and identities have been eliminated. The UI components have also been updated to reflect these changes, with adjustments to method signatures and error handling. Overall, the changes aim to streamline the codebase by reducing complexity and focusing on essential functionalities.
File Path | Change Summary |
---|---|
src/app.rs | Removed last_repaint from AppState , simplified DesiredAppAction and AppAction enums by removing variants, and updated update method to reflect these changes. |
src/config.rs | Removed multiple fields from NetworkConfig and eliminated methods related to validation and URI construction. |
src/context.rs | Removed NetworkConfig from AppContext , altered handling of network_config , and removed insert_local_identity method. |
src/database/contested_names.rs | Removed insert_or_update_name_contest and insert_or_update_contestant methods, affecting contested names and contestants management. |
src/database/contracts.rs | Removed insert_contract_if_not_exists and get_contract_by_name methods, renamed get_contracts to _get_contracts . |
src/database/identities.rs | Removed insert_remote_identity_if_not_exists method, simplifying identity management. |
src/database/wallet.rs | Removed UTXO management methods and updated update_wallet_alias_and_main . |
src/model/contested_name.rs | Removed state_is_votable method from ContestState enum. |
src/model/qualified_identity.rs | Removed display_string method and simplified available_transfer_keys method. |
src/model/wallet/mod.rs | Removed identity_authentication_ecdsa_public_key and identity_registration_ecdsa_public_key methods. |
src/model/wallet/utxos.rs | Removed unused import for PublicKey . |
src/platform/contested_names/mod.rs | Removed QueryDPNSVoteContenders variant from ContestedResourceTask enum and updated related match statement. |
src/platform/contested_names/query_dpns_contested_resources.rs | Updated method signatures by removing sender parameter from query_dpns_ending_times and query_dpns_vote_contenders . |
src/platform/contested_names/query_dpns_vote_contenders.rs | Removed sender parameter from query_dpns_vote_contenders method signature. |
src/platform/contested_names/query_ending_times.rs | Removed sender parameter from query_dpns_ending_times method signature. |
src/platform/contract.rs | Deleted file containing ContractTask enum and related methods. |
src/platform/document.rs | Deleted file containing DocumentTask enum and related methods. |
src/platform/identity/add_key_to_identity.rs | Enhanced error handling in add_key_to_identity method. |
src/platform/identity/register_identity.rs | Improved error handling and input destructuring in register_identity method. |
src/platform/mod.rs | Removed DocumentTask and ContractTask variants from BackendTask and updated run_backend_task method. |
src/ui/components/contract_chooser_panel.rs | Renamed add_contract_chooser_panel to _add_contract_chooser_panel and updated method call to _get_contracts . |
src/ui/components/left_panel.rs | Removed app_context parameter from add_left_panel function signature. |
src/ui/document_query_screen.rs | Removed sorting-related fields and methods from DocumentQueryScreen struct. |
src/ui/dpns_contested_names_screen.rs | Simplified add_left_panel function call by removing app_context argument. |
src/ui/identities/add_existing_identity_screen.rs | Removed fields from several structs related to identity management. |
src/ui/identities/add_new_identity_screen.rs | Removed KeyInfo struct and renamed new method to _new . |
src/ui/identities/add_new_wallet_screen.rs | Removed alias_input field from AddNewWalletScreen struct. |
src/ui/identities/identities_screen.rs | Updated ui method to simplify add_left_panel call and added parameter to show_public_key method. |
src/ui/identities/register_dpns_name_screen.rs | Enhanced user interface and feedback in RegisterDpnsNameScreen methods. |
src/ui/key_info_screen.rs | Improved error handling in ui and validate_and_store_private_key methods. |
src/ui/mod.rs | Removed AddNewIdentity variant from ScreenType enum and updated related methods. |
src/ui/network_chooser_screen.rs | Removed check_core_status method and updated add_left_panel call. |
src/ui/transfers/mod.rs | Updated display_message method to simplify its parameter and enhanced error handling in show_confirmation_popup . |
src/ui/transition_visualizer_screen.rs | Simplified add_left_panel call by removing app_context parameter. |
QualifiedIdentity
struct, which is relevant to the AppState
struct changes in the main PR, as both involve identity management and simplification of related enums and methods.DPNSSubscreen
and modifies the DPNSContestedNamesScreen
, which relates to the changes in the AppState
struct in the main PR, as both involve restructuring and managing different states or screens within the application.🐰 In the code we hop and play,
Simplifying things along the way.
With enums trimmed and methods few,
Our app is light, and so much new!
Let's celebrate this code delight,
For every change makes our work bright! 🌟
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?
Summary by CodeRabbit