Closed pauldelucia closed 1 week ago
The changes in this pull request involve significant modifications to the handling of the DPNSContestedNamesScreen
and related components. A new enum variant, DPNSSubscreen
, is introduced to categorize the screen into three distinct types: Active
, Past
, and Owned
. This allows for the instantiation of separate screens based on the selected subscreen. Additionally, a new method is added to the AppContext
struct to retrieve contested names owned by local identities. The main application title is also updated, and various UI components are adjusted to support the new structure.
File Path | Change Summary |
---|---|
src/app.rs |
Added enum variant DPNSSubscreen . Updated constructor for DPNSContestedNamesScreen to accept DPNSSubscreen . Replaced single instance with three separate instances for each subscreen. Updated main_screens BTreeMap entries. |
src/context.rs |
Introduced new method owned_contested_names in AppContext to filter contested names based on local identities. |
src/main.rs |
Changed application title from "Identity Manager" to "Dash Evo Tool". |
src/ui/components/dpns_subscreen_chooser_panel.rs |
Added function add_dpns_subscreen_chooser_panel to create a UI panel for selecting subscreens. |
src/ui/components/left_panel.rs |
Updated button action from RootScreenType::RootScreenDPNSContestedNames to RootScreenType::RootScreenDPNSActiveContests . |
src/ui/components/mod.rs |
Added new module dpns_subscreen_chooser_panel . |
src/ui/dpns_contested_names_screen.rs |
Added enum DPNSSubscreen . Updated constructor and methods to support new subscreen logic. |
src/ui/mod.rs |
Updated RootScreenType and ScreenType enums to reflect new subscreen variants. |
DPNSContestedNamesScreen
, including the addition of a button for registering usernames, which relates to the new subscreen functionality introduced in the main PR.DPNSContestedNamesScreen
, specifically enhancing the voting functionality, which is relevant to the overall management of contested names in the context of the new subscreen structure.DPNSContestedNamesScreen
.🐰 In the garden, screens now bloom,
Three paths to take, dispelling gloom.
Active, Past, and Owned, they play,
A joyful hop through the DPNS way!
With names contested, we’ll find our prize,
In Dash Evo Tool, our dreams will rise! 🌼
Summary by CodeRabbit
Release Notes
New Features
Bug Fixes
These updates enhance user experience by providing more detailed control over contested name management and improving the overall interface.