feat(portfolio): Market card entries + "Manage" editor dialog
Build the configurable-portfolio UI on the persisted model: - The portfolio card keeps the "all funds" summary and now renders each custom entry below it as a compact row (label · summed DRGX · USD), live-computed via SumPortfolioBalance over the wallet's per-address balances; the card grows to fit the entries. - A right-aligned "Manage…" button on the card header opens a modal editor (material overlay dialog): list entries with Edit/Delete, "Add entry", and an edit form = label field + quick "All shielded / All transparent / Clear" selectors + a checklist of wallet addresses (with balances). Persists to Settings on each mutation. - i18n English defaults for the new portfolio_* strings. - Test namespace fix (AddressInfo is dragonx::, not dragonx::data::). Full-node + lite build clean; ctest green; source hygiene clean. Remaining: the Overview-tab right-click "add/remove address to a label" integration. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -2585,7 +2585,7 @@ void testConsoleModel()
|
||||
// Portfolio helpers — sum/query a labeled address group against per-address balances.
|
||||
void testPortfolioHelpers()
|
||||
{
|
||||
using dragonx::data::AddressInfo;
|
||||
using dragonx::AddressInfo;
|
||||
using dragonx::data::SumPortfolioBalance;
|
||||
using dragonx::data::PortfolioEntryContains;
|
||||
using dragonx::data::PortfolioEntryAdd;
|
||||
|
||||
Reference in New Issue
Block a user