1234 Commits
Author SHA1 Message Date
DanSandClaude Opus 4.8 39a695589a fix(bootstrap): make signatureMatchesPinnedKey public so its unit test compiles
The merged branch declared signatureMatchesPinnedKey private but its own test calls
it directly (no friend/test hook), so the code as committed did not build. The method
is a pure, no-network ed25519 verify helper and the branch intends it "unit-testable",
so expose it publicly (sibling of verifyXmrigSignature's shared primitives).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-20 19:16:06 -06:00
DanSandClaude Opus 4.8 14b1b3a414 Merge feat/bootstrap-two-signing-keys into dev
Pin two bootstrap signing keys (automated signer + offline backup) so a signature
is accepted against either pinned key (F5). The previously-pinned single key had no
secret half on record and could never have signed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-20 19:12:39 -06:00
DanSandClaude Opus 4.8 23a5aafe99 feat(chat): footer buttons never overflow the card at large scale / long locales (F088)
UX audit (deferred HiDPI item, choice a): instead of a one-off 1.5x spot-check, the chat overlay
dialogs now fit their footer buttons at runtime. New material::OverlayFooterFitScale() returns 1.0
when the fixed-width buttons already fit the card's content width (so English/short layouts are
unchanged) and shrinks them proportionally only when they would overflow — e.g. long de/ru labels
at font_scale 1.5. Wired into all five chat dialog footers (new-conversation, export-confirm,
verify, delete-conversation 3-button, sensitive-vault). Overflow is now impossible at any scale.

Build + tests + hygiene green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-20 17:49:26 -06:00
DanSandClaude Opus 4.8 f73d6a2f4c feat(send): DPI-scale the hand-sized min floors (F056)
UX audit (deferred HiDPI item): the Send tab's `std::max(min, base * vScale)` geometry floors
used the raw schema min while the base term already includes dpiScale (vScale/popVs fold it in),
so on HiDPI the floors clamped at logical px (too small). Multiply each min by Layout::dpiScale()
so both terms share units: the confirm-dialog value/USD column strides, card heights, row step
and button heights; the amount-input min width; paste/cancel button min widths; and the memo /
action-button min heights. No behavior change at 1.0x.

Build + tests green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-20 17:35:18 -06:00
DanSandClaude Opus 5.5 79aed5462d feat(security): pin two bootstrap signing keys (automated signer + offline backup) (F5)
The single pinned key CbyBk7... has no secret half on record, so it could never
sign anything. Bootstraps are now built, verified and signed weekly by a
dedicated signer box, and an offline backup key covers loss or revocation of
that key. A signature is accepted if it verifies against either pinned key.

- bootstrap.h: kBootstrapSignaturePublicKeysBase64[] = { hot GHgDNfZV..., cold MZi/rTuQ... }
- bootstrap.cpp: Bootstrap::signatureMatchesPinnedKey() checks every pinned key
  (no network, unit-testable); a present signature matching none stays fatal.
- tests: the known answer is now a real signer-box signature over a real weekly
  checksum (height 3449343); covers tamper, garbage, empty and wrong-key cases,
  the two keys being distinct and valid, and CbyBk7 no longer being pinned.
- sign-bootstrap-release.sh: the key check accepts any pinned key.

kBootstrapRequireSignature stays false until every served bootstrap carries a
signature.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 17:26:52 -06:00
DanSandClaude Opus 4.8 18d12b6501 feat(mining): make the stuck-toggle caption state the ~30s self-timeout (F100)
UX audit (deferred item): completing F100 the safe way. A true force-stop/abort is not
buildable without live hung-state testing — App::stopMining()/stopPoolMining() no-op while a
toggle is in flight (mining_toggle_in_progress_.exchange(true) early-returns), and resetting
that atomic mid-operation would race the worker's completion callback (overlapping setgenerate,
stale state). So instead of a button that would silently do nothing or risk corruption, the
"Taking longer than expected…" caption now tells the user it will time out on its own within
~30s (the curl/RPC bound), which is the actual recovery. A generation-token + RPC-cancel abort
is left for a later change that can be tested against a hung daemon.

Build + tests green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-20 16:55:44 -06:00
DanSandClaude Opus 4.8 f901a260a2 feat(transactions): export shield legs as one merged row, matching History (F096)
UX audit (deferred item, choice b): the CSV export now collapses each autoshield send+receive
pair into a single "shield" row, so an export matches the History list instead of showing two
legs. New pure helper data::mergeShieldLegs() (in transaction_csv) replicates the list's
pairing (first send + first receive-to-z, positive receive amount, z destination, max
timestamp/confirmations) — every other entry passes through once, in order, so nothing is
dropped or double-counted. The export dialog merges before counting/formatting; scope 2 merges
first, then date-filters the merged rows so a shield is never split at a range edge.

Build + tests green. (Analyzed read-only in a workflow; mergeShieldLegs reviewed for
fund/display correctness and every old_string verified before applying.)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-20 16:53:38 -06:00
DanSandClaude Opus 4.8 c09a2374f2 feat(balance): mining-rewards shield parity across all layouts (F040)
UX audit (deferred item): the "Mining Rewards" element is now shield-aware in every balance
layout, not just the classic card. A shared helper set (miningRewardsActivate/Tooltip/Hover)
shields waiting coinbase on click (ShieldDialog::showShieldCoinbase when unshielded, else opens
Receive) with the same tooltip the card uses. The classic card and the dashboard tile loop
(new TileInfo.isMiningRewards flag) route through it; the 8 previously non-interactive layouts
(donut, consolidated, vertical-stack/2x2, shield, timeline, two-row, minimal) gain a hit-rect
with the same behavior — no layout geometry changed.

Build + tests green. (Analyzed read-only in a workflow; every old_string verified against the
file and the helper logic reviewed before applying.)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-20 16:47:39 -06:00
DanSandClaude Opus 4.8 5ca308f754 feat(network/misc): block explorer navigation + errors, chain name, credits i18n, TLS tooltips (8 findings)
UX audit, Network/Misc surface — all 8 findings. (Analyzed in parallel per file, each
old_string verified against the file, logic reviewed, built/tested together.)

Block explorer (block_info_dialog.cpp):
- F047: Prev/Next hashes (and the Prev/Next buttons) now actually fetch the neighbouring
  block via a shared startBlockFetch() lambda, keeping the current block visible with a
  loading indicator until the new one arrives.
- F024: "Get Block Info" is disabled when not connected, with a tooltip + inline
  "Not connected to the node".
- F048: RPC failures go through util::friendlyRpcError(), with a tip-aware
  "Block N does not exist yet (tip is M)" for an out-of-range height.
- F081: error/link/merkle colors use theme tokens instead of raw ImVec4.
- F082: block-size units (MB/KB/bytes) come from TR format keys.

About (about_dialog.cpp):
- F025: the daemon "Chain" row shows "DragonX (DRGX)" instead of the app name.
- F090: credits use a TR("about_credit_by") "%s by %s" format (proper names stay literal).

Peers (peers_tab.cpp):
- F091: the hand-drawn "TLS" badge gets a hover tooltip (encrypted / unencrypted peer) at
  both the stat card and the per-peer row. Choice a.

New strings (English). Build + tests + hygiene green (one pre-existing Lite-controller
concurrency test flaked once, passed on 3 reruns).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-20 16:31:59 -06:00
DanSandClaude Opus 4.8 2b16556990 feat(wizard/security): reveal toggles, disabled-reasons, whitespace guards, themed colors, secret auto-hide (12 findings)
UX audit, Wizard/Security surface — all 12 findings. (Edits analyzed in parallel per file,
then each old_string verified against the file, logic reviewed, and built/tested together.)

Wizard (app_wizard.cpp):
- F019: show/hide reveal toggle on the encryption-step passphrase fields + shared
  character-class strength downgrade (matches the Settings Encrypt dialog).
- F066: the encryption-step Skip arms to a wide, error-styled "Skip anyway (unencrypted)"
  and disarms on outside interaction.
- F086: enlarge the strength/too-short caption buffers (64/80 -> 256) and wrap them so
  long de/ru/ja translations don't truncate.

Security dialogs (app_security.cpp):
- F018: the Change-passphrase dialog states why the button is disabled (current missing /
  too short / mismatch / must differ) and gains a reveal checkbox over all three fields.
- F036: the Encrypt and Change dialogs reject a passphrase with leading/trailing space/tab
  (matches the wizard) instead of silently accepting it.
- F068: Encrypt / PIN / Decrypt / lock-screen colors use theme tokens instead of raw
  ImVec4/IM_COL32.

Key export (export_all_keys_dialog.cpp, key_export_dialog.cpp):
- F017: export-all-keys shows "Unlock first" + an Unlock button and disables Export while
  the wallet is locked; a plaintext-file caution persists on full or partial export.
- F067: the "Exporting X of N" counter is now an atomic incremented per address (live).
- F035: the key-export card width scales the padding by dpiScale().
- F099: Retry re-dispatches the fetch directly, and a revealed key/QR auto-hides after ~60s
  with a countdown. Choice a.

Validate address (validate_address_dialog.cpp):
- F037: RPC failures show util::friendlyRpcError() instead of raw daemon text.
- F098: Paste strips whitespace into the field and auto-validates via the same handler.
  Choice a.

New strings (English). Build + tests + hygiene green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-20 16:10:49 -06:00
DanSandClaude Opus 4.8 fc6b854a00 feat(shield/compact): always-on chip tooltip, compact shortcut on Done, clearer compact feedback (F031/F071/F072)
UX audit, Shield/Consolidate surface (batch 3):

- F031: the status-bar consolidation chip always shows a tooltip ("Consolidating notes
  in the background — click to view or stop"), with the pause reason appended when any.
- F071: after a clean consolidate run, the Done screen notes the file won't shrink until
  compacted and offers a "Compact wallet…" shortcut (full-node) that opens the same
  confirm as Settings, via a new OpenCompactWalletConfirm() cross-module hook. Choice a.
- F072: the compact "started" toast is sticky and reworded ("don't close … a few
  minutes"), compact_done leads with "Compaction finished", and the confirm dialog notes
  the post-compaction rescan can take several minutes. Choice a.

New strings (English). Build + tests green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-20 15:46:57 -06:00
DanSandClaude Opus 4.8 3434679afe feat(shield): batch-accurate merge confirm, friendly errors, plural confirm text (F014/F013/F095)
UX audit, Shield/Consolidate surface (batch 2):

- F014: the "Into one address" confirm no longer overstates a single run — it caps to
  what one batch merges ("merges N of M inputs ... run again for the rest"), and both the
  merge and shield confirms now name the network fee and the destination's label.
- F013: the op-failed message and the create-z-address error go through
  util::friendlyRpcError() like the submit paths already do.
- F095: confirm text uses separate singular/plural strings (input/inputs,
  mining address/mining addresses) instead of "(s)".

New strings (English). Build + tests green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-20 15:41:40 -06:00
DanSandClaude Opus 4.8 af00efc0c3 feat(shield): explain merge-mode radios, label+balance dest combo, fee guards (F032/F063/F064/F095)
UX audit, Shield/Consolidate surface (batch 1):

- F032: the "Into one address" / "Keep in each address" radios get explanatory tooltips.
- F063: the destination z-address combo now shows each address's label and balance (and
  a watch-only marker), matching the from-address combo; the closed preview shows the
  label too. (F095) truncation uses the shared ellipsized helper, not ASCII "...".
- F064: the Advanced fee field shows the default ("default 0.0001 DRGX"), a Reset button,
  and a warning when the fee is zero or far above the default.

New strings (English). Build + tests green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-20 15:37:52 -06:00
DanSandClaude Opus 4.8 0f5627f151 feat(settings): rescan-height guards, auto-consolidate status + opt-in default (F061/F070)
UX audit, Settings surface (batch 3):

- F061: the runtime rescan-from-height dialog shows the current chain height, flags a
  value above it (and disables Rescan with that as the inline reason), and adds
  "Last 1,000 / 10,000" presets — previously a bare InputInt clamped only at 0.
- F070: "Auto-consolidate notes" gains a live status line (Idle / Merging — batch X of Y
  / Paused until synced) and is now OFF by default, matching the documented intent for a
  background fund-moving feature (it no longer silently defaults on). Choice a.

New strings (English). Build + tests green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-20 14:41:50 -06:00
DanSandClaude Opus 4.8 3c5f3b9d69 feat(settings): lite secret auto-wipe, import-key reveal/hint, seed-save caution (F012/F060/F059)
UX audit, Settings surface (batch 2) — Lite backup/keys:

- F012: a revealed Lite seed / private keys auto-wipes after ~60s on screen (with a
  live countdown) and when the user switches settings tabs. The 60s backstop also
  covers walking away, locking, or leaving the page (all stop re-rendering the block).
  Choice a.
- F060: the Lite "Import key" field gets a show/hide (eye) toggle and a length + key-type
  hint (viewing / spending / unrecognized) so a blind-pasted key is checkable.
- F059: a seed "Save to file" shows an inline "saved unencrypted — move it offline"
  caution and notes when it replaced an existing file. Choice a.

New strings (English). Build + tests green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-20 14:34:19 -06:00
DanSandClaude Opus 4.8 e4f7cd0b40 feat(settings): reduce-motion glow, stratum restart notice, hint indents, credits gap in schema (F030/F062/F094/F084)
UX audit, Settings surface (batch 1):

- F030: the "Migrate to seed wallet" glow holds a static highlight (no pulse) when
  Reduce motion is on, instead of animating every frame.
- F062: changing the stratum host toggle or allowed-IP now shows a "Restart the daemon
  to apply" banner with a Restart button (mirrors the debug-categories banner); the
  dirty flag clears on restart.
- F094: hint/warning lines use ImGui::Indent() instead of literal "    " space padding
  (stratum hint/warning, auto-shield address) so indents are DPI-consistent.
- F084: the About credits bullet gap reads from schema (tabs.settings.credits-bullet-gap
  in ui.toml) instead of a hardcoded 8.0f.

New strings + ui.toml key. Build + tests green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-20 14:28:30 -06:00
DanSandClaude Opus 4.8 c9192fe24a feat(mining): disabled-reason caption, unreachable-pool causes, slow-toggle note (F007/F046/F100)
UX audit, Mining surface (batch 2):

- F007: the large Mine/Stop button now shows its disabled reason as a persistent
  caption below the card (not connected / syncing / stop solo first / needs a shielded
  payout), reusing the existing error-caption slot — previously the reason was only on
  hover of a hand-hit-tested button.
- F046: hovering the "Can't reach pool" status shows likely causes (URL/port, firewall,
  TLS) and points to the pool list below to switch. Choice a.
- F100: after ~15 s of a stuck start/stop, a "Taking longer than expected…" caption
  appears. The force-stop half is deferred: stopMining()/stopPoolMining() no-op while a
  toggle is in progress, so a real abort needs a new primitive in the mining control
  thread (not a UI-only change) — tracked as remaining.

New strings (English). Build + tests green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-20 13:45:22 -06:00
DanSandClaude Opus 4.8 fe0d2fcc66 feat(mining): localize est-time, RAM estimate, per-worker placeholder (F045/F079/F080)
UX audit, Mining surface (batch 1) — i18n gaps:

- F045: FormatEstTime's units (min/hrs/days/weeks) and N/A go through TR() instead of
  hardcoded English.
- F079: the RAM estimate label uses a translated format string.
- F080: the per-worker hashrate placeholder uses TR("grpc_na") instead of a raw em dash.

New strings (English). Build + tests green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-20 13:38:22 -06:00
DanSandClaude Opus 4.8 17f6bd2648 feat(chat): sensitive-vault setup — split errors, inline, show/hide, min length (F004)
UX audit, Chat surface — sensitive-vault passphrase dialog:

- Validation errors are split and specific ("Enter a passphrase." / "Use at least 8
  characters." / "Passphrases don't match.") instead of one combined toast, and shown
  inline under the fields so the dialog stays open on the offending input.
- A show/hide (eye) toggle reveals the passphrase fields.
- Setup now enforces a minimum length (8 chars); unlock still only checks non-empty.
- Stale inline error / reveal state is cleared when the dialog reopens or closes.

New strings (English). Build + tests green. F088 (dialog widths at 1.5x) stays with
the cross-surface HiDPI pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-20 13:22:12 -06:00
DanSandClaude Opus 4.8 bf434e330e feat(chat): translate export header, safer delete-dialog layout (F075/F041)
UX audit, Chat surface (batch 2):

- F075: the chat-export file's human-readable title is translated (chat_export_header);
  the machine-readable "cid:" line stays stable English. The success toast already
  shows the saved path. Choice a.
- F041: the delete-conversation dialog no longer shows two identical red buttons.
  Cancel comes first with primary emphasis (safe default), the plain local delete is
  low-emphasis, and only "Delete & Block" keeps the destructive red. The conversation
  name is in the title. Choice a.

New string (English). Build + tests green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-20 13:18:14 -06:00
DanSandClaude Opus 4.8 6b3086c881 feat(chat): HiDPI empty-state hint, clearer parts tooltip, localized poll unit (F022/F076/F077)
UX audit, Chat surface (batch 1):

- F022: the empty-state hint wrap width now scales with dpiScale() (was raw 40/420
  logical px, so it never widened on HiDPI / large font scale).
- F076: the message-size tooltip puts the parts / txns counts on their own lines
  instead of middle-dot-joining them onto the byte-count line.
- F077: the poll-rate slider unit comes from a translated format string, and the
  tooltip now notes that faster polling puts more load on the node (CPU and RPC).

New strings (English). Build + tests green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-20 13:14:11 -06:00
DanSandClaude Opus 4.8 e0ae8045c2 feat(contacts): Message + Send-to as row icons, toolbar buttons, and menu (F020)
UX audit, Contacts surface — discoverability (choice a):

- "Message" (open a chat) was reachable only from the right-click menu. It now also
  appears as a per-row hover icon and a toolbar button, disabled with a "needs a
  shielded (z) address" tooltip when the contact is transparent.
- New "Send to" action (per-row icon, toolbar button, context menu) prefills the
  Send tab's recipient with the contact and switches there. Backed by a new
  PrefillSendRecipient() that fills only the recipient (amount/memo left to the user),
  distinct from the demo-only SweepSetSendRecipient.
- The per-row action cluster is refactored to id-based dispatch so the two new
  actions slot in without positional-index fragility; width is reserved for the
  full cluster so the address text doesn't shift on hover.

New string (English). Build + tests green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-20 13:10:32 -06:00
DanSandClaude Opus 4.8 49cac136a5 feat(contacts): search clear (x) + Esc, name/recently-added sort toggle (F089)
UX audit, Contacts surface — search & sort affordances (choice a):

- A trailing (x) clears the search box, and Escape clears it while focused.
- Cards & List gain a sort toggle (name / recently added) in the toolbar, beside
  the view switch; Table keeps its own sortable headers. "Recently added" uses
  storage/append order (newest first).

New strings (English). Build + tests green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-20 13:04:58 -06:00
DanSandClaude Opus 4.8 31b6cb0c3f feat(contacts): validate address on save, armed-delete hints, bigger avatar badge, Z/T tooltips (F005/F006/F044/F078)
UX audit, Contacts surface (batch 2):

- F005: Save is disabled (with an inline red hint) when the address fails the same
  recipient validator the Send tab uses — a contact can no longer be saved with an
  address that would only fail later at send time.
- F006: an armed per-row delete names the consequence ("Click again to delete <label>
  — cannot be undone") instead of leaving the tooltip on "Delete".
- F044: the avatar-library delete badge gets a larger hit target and an explicit
  armed-state tooltip.
- F078: the bare Z/T letter in Table view gets a hover tooltip (shielded / mining).

New strings (English). Build + tests green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-20 12:57:25 -06:00
DanSandClaude Opus 4.8 37773308f5 feat(contacts): clear stale selection, state-aware empty/count, disabled-action hint (F001/F042/F023/F043)
UX audit, Contacts surface (batch 1):

- F001: a selection hidden by the search or wallet-scope filter is cleared, so a
  toolbar action (delete/edit/copy) can never act on an off-screen contact.
- F042: the empty state now reads from the real state — "No matching contacts"
  when searching, "No contacts for this wallet yet" when contacts exist only in
  another wallet's scope, vs. the first-run empty message.
- F023: the footer shows "N of M contacts" when a filter/scope hides rows.
- F043: the disabled Edit/Delete/Copy buttons show a "Select a contact first" hint.

New strings (English). Build + tests green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-20 12:54:04 -06:00
DanSandClaude Opus 4.8 12284d91b1 feat(transactions): export dialog — disabled-with-reason, no silent overwrite, folder link (F034/F073/F085)
UX audit, Export transactions dialog:

- F034: the Export button is disabled when the scope is stale/invalid or no rows
  match, with the reason spelled out inline next to the count (was: always enabled,
  reason only shown as a toast after clicking).
- F073: a persistent "Open folder" link (not only on the success screen), and an
  existing file is auto-suffixed (-2, -3, …) instead of being silently overwritten.
- F085: the error line uses the themed ErrorVec4() instead of a raw literal.

F096 (export shield legs as one merged row) deferred — needs a shared shield-merge
helper with the History list. Build + tests green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-19 15:04:00 -06:00
DanSandClaude Opus 4.8 6956710639 feat(transactions): detail dialog — dropped/stale badges, themed colors, shield label (F016/F033/F015)
UX audit, transaction detail dialog:

- F016: the confirmations badge now shows "Dropped" (red) for a conflicted/
  reorged tx (conf < 0) and "Expired?" (amber) for a long-stale 0-conf, mirroring
  the list, instead of a green "-1 confirmations".
- F033: type colors use theme tokens (Secondary / Primary / OnSurfaceMedium)
  instead of raw ImVec4 literals, and tiny USD amounts show ~$0.00xx (tiered).
- F015: a "shield" tx renders a "Shielded (moved to your own z-address)" label.

New string (English). Build + tests green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-19 15:00:37 -06:00
DanSandClaude Opus 4.8 0da495bdcc feat(transactions): shield detail view, immature-coinbase status, clear-filters (F015/F065/F097)
UX audit, Transactions surface (batch 1):

- F015: opening details for an autoshield row now shows the SHIELD view
  (positive amount, from mining t-addr → z-addr) via a synthesized TransactionInfo,
  instead of its raw send leg which read as "Sent -amount".
- F065: a mined coinbase row at 10-99 confirmations shows "Immature (n/100)" in
  amber instead of a green "Confirmed" — the funds aren't spendable until 100.
- F097: the "no matching" empty state gets a one-click "Clear filters" button
  (resets the type filter and search).

New strings (English). Build + tests green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-19 14:56:36 -06:00
DanSandClaude Opus 4.8 d93b337353 feat(balance): recent-tx detail dialog + pending marker, address gesture hint (F069/F039)
UX audit, Balance surface (batch 3):

- F069: clicking a Recent Transactions row now opens that transaction's detail
  dialog (was: jump to the unfiltered History tab). 0-conf rows are dimmed and
  marked with a clock, so a pending tx no longer looks settled. Choice a.
- F039: a persistent one-line hint under the address list explains the row
  gestures (click to copy, drag to move funds, drag between rows to reorder),
  which were invisible until a drag started. Choice a.

New strings (English). Build + tests + hygiene green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-19 00:13:12 -06:00
DanSandClaude Opus 4.8 f9861e505a feat(balance): clearer fiat line instead of "$-.-- USD" placeholder (F087)
UX audit, Balance: the fiat line showed the cryptic "$-.-- USD" whenever the USD
value was 0 — both for a genuine zero balance and for an unavailable price. A
shared FormatFiatFallback now shows "$0.00 USD" when a price is known (balance is
zero) and "Price unavailable" when there's no price, across all six spots. New
string. Build + tests green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-18 21:45:59 -06:00
DanSandClaude Opus 4.8 7656c7f92c feat(balance): safer hide, address-create feedback, neutral tx icon (F003/F021/F038/F074)
UX audit, Balance surface (batch 1):

- F003: the per-row eye only hides an EMPTY or already-hidden address now (match
  the right-click menu) — hiding a funded address on one unconfirmed click was a
  fund-visibility footgun; a tooltip explains when it's disabled.
- F021: the create-address buttons show "Available once sync finishes" while
  greyed during sync.
- F038: creating an address now toasts success/failure instead of only logging.
- F074: generic transactions get a neutral swap icon; the hard-hat icon now means
  mined only (shield gets the shield icon).

New strings (English). Build + tests green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-18 21:42:33 -06:00
DanSandClaude Opus 4.8 cbc930f640 feat(receive): enlarge-QR, request-dialog clamp/HiDPI, mining-address QR warning
UX audit, Receive surface (batch 2):

- F051: a compact expand button beside Copy opens the full-screen QR popup (large
  QR + full chunked address) for a shielded address — the tab only shows a
  truncated address. Choice a.
- F052: the QR popup warns when the address is transparent (mining) — it can't
  receive payments — reusing mining_addr_explainer.
- F027: clamp the Request-payment dialog amount to >= 0 (and NaN), matching the
  Receive tab.
- F026: scale the request dialog's QR and memo box by dpiScale so they aren't
  native-size on HiDPI.

Receive surface complete (11/11). Build + tests green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-18 20:23:57 -06:00
DanSandClaude Opus 4.8 c66031f94b feat(receive): fix share truncation, memo-only requests, explorer leak + clearer labels
UX audit, Receive surface (batch 1):

- F002: build the "Copy request" text in a std::string so a long memo's URI is
  never silently truncated (was a 1024-char buffer).
- F008: build the payment URI / QR when an amount OR a memo is set, so a
  memo-only request isn't a bare address; Copy URI / Copy request follow suit.
- F009: when the QR fails to encode (usually an over-long memo) say so and point
  to Copy URI, instead of a bare "QR unavailable".
- F028: rename "Share" to "Copy request" and add tooltips distinguishing it
  (address + amount + link) from Copy URI (just the drgx: link).
- F049: hide Explorer for shielded addresses — a z-address shows nothing on an
  explorer and the click would leak your receiving address; keep it (with a
  tooltip) for transparent/mining addresses. Choice a.
- F050: replace the cryptic [Z]/[T] source tags with "Shielded"/"Mining"; TR the
  share "URI" label.
- F083: Clear now has a tooltip and a one-step Undo (restores the amount + memo
  in the same slot). Choice a.

New strings (English; locales fall back). Build + tests green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-18 20:18:31 -06:00
DanSandClaude Opus 4.8 684fb64f4b feat(send): richer success card — amount, recipient, View in History (F093)
UX audit, Send surface: after a send the card showed only "Transaction sent" + a
truncated txid. It now reads "Sent 2.5000 DRGX to <label/address>" (captured at
dispatch, before the form clears) and offers a History button beside Copy. Choice
a. 2 new strings (English). Build + tests green. Send surface done except F056
(HiDPI), held for a cross-surface DPI pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-18 20:11:53 -06:00
DanSandClaude Opus 4.8 d2b6d881e1 feat(send): distinguish shield rows + send-again in Recent Sends (F092)
UX audit, Send surface: the "Recent Sends" list lumped shield/auto-shield
transactions in with real payments — same red "-amount" and "Sent" label — so a
move to your own z-address looked like paying a stranger. Now shield rows get the
shield icon, the "Shielded" label, and a neutral unsigned amount. All rows show a
saved contact label when one exists and the full address on hover; clicking a
real send pre-fills it as the recipient ("send again"), while a shield row still
opens History. Choice a. New string (English). Build + tests green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-18 18:28:48 -06:00
DanSandClaude Opus 4.8 0623b32ae1 feat(send): clearer fee/currency/source labels + visible disabled reason (F055/F057/F058)
UX audit, Send surface (batch 2):

- F055: each fee tier (Low/Normal/High) now shows its exact fee on hover, on the
  compose form and the confirm.
- F057: replace the cryptic, untranslated [Z]/[T] source tags with TR'd
  "Private" / "Mining", and add a tooltip to the unlabeled DRGX⇄USD toggle.
- F058: show the reason Review/Send is greyed as a visible caption (not only the
  hover tooltip) — not connected / select a source / mining address / invalid
  address / no amount / can't afford / view-only — reusing the tooltip's reason
  chain so the two stay in sync.

New strings (English; locales fall back). Build + tests green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-18 18:24:13 -06:00
DanSandClaude Opus 4.8 47b93252ff feat(send): harden the confirm dialog (UX audit F010/F011/F029/F053/F054)
First batch of the 2026-11 UX audit, Send surface — the pre-broadcast confirm:

- F029: round the amount-bar drag to satoshi precision, so the value reviewed in
  the confirm is exactly what's sent / affordability-checked (text entry already
  rounded).
- F011: wrap the memo in the confirm (a long / multi-line memo was clipped off
  the card), and repeat the transparent-source privacy warning on the confirm,
  not just the compose form.
- F054: flag a recipient with no saved label and no prior send to it ("New
  recipient — verify the full address") and show its first/last characters for an
  easy compare — the clearest cue against a swapped/clipboard address.
- F053: on the live re-validation at Confirm, name the specific reason (not
  connected / syncing / no tip / no amount / can't afford) instead of one generic
  "cannot send now", reusing the disabled-Review reason chain.
- F010: a locked encrypted lite wallet now tells the user to unlock and closes
  the confirm, instead of silently doing nothing behind it.

3 new strings (English; locales fall back). Build + tests green. Decisions pulled
from the tracked audit artifact (F054 = option a).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-18 12:26:13 -06:00
DanSandClaude Opus 4.8 6bb72f9878 fix(input): strip Unicode/CJK whitespace across address, key, and URL inputs
Follow-up to the key-import fix: an audit found the same ASCII-only-trim pattern
across the input layer, where a pasted value carrying CJK full-width (U+3000),
NBSP, zero-width, or BOM whitespace survived trimming and then failed validation
or an RPC. Most paths failed closed (same value validated and acted on → "won't
work" rather than a wrong send), but several mattered — above all the Lite
Import Key path, the exact recurrence of the reported bug on the Lite variant.

Single-token inputs (keys, addresses, URLs) now go through
util::stripAllWhitespaceForKey; path/label inputs use the new
util::trimUnicodeWhitespace (edge-trim, preserves internal spaces):

- Lite Import Key (settings_page) — strip-all before importKeyAsync. [fund recovery]
- Lite wallet path (open/restore) — edge-trim the request path AND the empty gate
  (they had diverged: gate trimmed, request used raw).
- Contacts — gate on and save the cleaned label/address; clean on paste; an
  address never persists with stray whitespace (which silently broke every later
  use + defeated duplicate detection).
- Send recipient — strip-all on paste and on field edit, so a CJK-pasted valid
  address validates and sends.
- Chat new-conversation z-address — validate and send the cleaned value.
- Chat restore-by-address — strip-all (the old trim even missed '\r'), so a
  padded address matches the deleted list instead of broadcasting a junk memo.
- Mining pool URL + payout — strip-all at persist and in the payout check.
- Validate-address dialog — strip-all before classify.
- Lite custom server URL — strip-all; its label edge-trimmed.
- Payment URI — strip-all the parsed address.
- Defense-in-depth: importPrivateKey / sweepPrivateKey strip-all the key;
  importWalletFile edge-trims the path.

Adds trimUnicodeWhitespace coverage to testKeyInputSanitization. Build + tests +
hygiene green. (Deferred, noted for follow-up: the console tokenizer treating
Unicode whitespace as a separator, and repairing already-polluted address-book
entries on load.)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-15 12:11:54 -06:00
DanSandClaude Opus 4.8 0a957e9555 fix(import): strip Unicode whitespace from pasted keys before import/sweep
Users (notably in the Chinese community) hit "Invalid spending key" when
importing/sweeping an otherwise-valid shielded spending key. Root cause: the
Import Key dialog classified the TRIMMED key (so the UI showed it as valid) but
handed the RAW import_key_input_ buffer to z_importkey/sweep — and the trim was
ASCII-only (' ' \t \n \r). CJK clipboards commonly inject whitespace that an
ASCII trim leaves behind — above all a trailing U+3000 ideographic space, plus
NBSP / zero-width / BOM — so a trailing such character passed the prefix
classifier (UI "valid") but reached the daemon's DecodeSpendingKey() verbatim,
which failed the Bech32 decode → "Invalid spending key". Native Ctrl+V also
bypassed the paste-button trim entirely, so even plain ASCII whitespace reached
the RPC. This is why it hit CJK users systematically and others rarely.

Add util::stripAllWhitespaceForKey (UTF-8 aware; removes every whitespace code
point, ASCII + Unicode, including internal ones — a key is a single token). The
dialog now classifies AND sends this cleaned key (keyTrim), the key Paste button
cleans the field with it, and trimmedClipboardText (addresses etc.) now
edge-trims Unicode whitespace too. Covers spending, viewing, and WIF imports and
the sweep path. Present in v2.0.2 and current dev (same gate).

Adds testKeyInputSanitization (trailing U+3000 / NBSP / BOM / zero-width /
internal newline → clean key; and the end-to-end classify-after-clean case).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-15 11:04:20 -06:00
DanSandClaude Opus 4.8 6ffe3bc526 i18n(security): translate the pool TLS fingerprint warning (F12)
Translate mining_tls_needs_fingerprint into de, es, fr, ja, ko, pt, ru, zh
(res/lang/*.json, 2523 → 2524 keys each), grounded per file and keeping the "TLS"
acronym. Rebuilt the CJK subset font for 2 new glyphs (书, 끈).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-10 12:22:19 -06:00
DanSandClaude Opus 4.8 b79a62b24b fix(security): verify an ed25519 signature on the bootstrap archive (F5)
The chain-bootstrap download was authenticated only by a same-origin SHA-256,
which anyone who can replace the archive (CDN/server compromise or a TLS break)
can also replace. The RCE half of the original report is already closed — extract
skips every *.conf/wallet*/.dat entry, so DRAGONX.conf/blocknotify can't be
overwritten — but the archive itself was unauthenticated.

Verify a detached ed25519 signature over the published .sha256 file (the archive
is multi-GB; its checksum already binds the bytes, so signing the small checksum
authenticates the whole download) against a pinned key. A present-but-invalid
signature always fails closed; a missing one is gated by
kBootstrapRequireSignature (false until bootstrap.dragonx.is publishes .sig
files, then flip to true). Adds scripts/sign-bootstrap-release.sh; the secret key
stays offline.

Also adds regression tests: testBootstrapSignatureInterop (known-answer verify
against the pinned key, fails closed on tamper/wrong-key — F5) and
testEphemeralPortPick (F13).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-08 11:52:57 -06:00
DanSandClaude Opus 4.8 5ffb083855 fix(security): pin the pool TLS certificate fingerprint (F12)
With pool TLS enabled but no fingerprint pinned, xmrig accepts ANY certificate
(verifyFingerprint passes on a null fingerprint), so an on-path attacker could
MITM the stratum session and capture/redirect the login. The wallet never set a
fingerprint and had no setting for one.

Add a pool_tls_fingerprint setting, emit it as the xmrig "tls-fingerprint" pool
key when non-empty, and refuse to start pool mining with TLS on but no
fingerprint (mining_tls_needs_fingerprint) so "pool TLS on" actually
authenticates the pool. pool_tls still defaults off.

English-only for the new string; 8 locales fall back.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-08 11:52:57 -06:00
DanSandClaude Opus 4.8 cd37b1be3a fix(security): pick an unpredictable ephemeral port for migrate-to-seed (F13)
The migrate-to-seed isolated node chose its RPC port by scanning a fixed
21770-21899 range for LISTEN sockets. A local co-tenant could bind() a port in
that range WITHOUT listen() — invisible to the LISTEN-state scan — get it
picked, then start a listener and intercept the isolated node's plaintext RPC,
up to returning a rogue z_getnewaddress that redirects the migration sweep.

Add EmbeddedDaemon::pickEphemeralPort(): bind 127.0.0.1:0 and return the
OS-assigned port via getsockname(). A real bind() proves the port free right now
(a bound-not-listening squatter makes it fail), and the OS-chosen number is
unpredictable, so a fixed range can't be pre-squatted. pickFreePort() uses it,
keeping the old scan only as a fallback. The port reaches disk solely in the
0600 DRAGONX.conf. A tiny close-then-bind window remains but is no longer
targetable in advance.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-08 11:52:44 -06:00
DanSandClaude Opus 4.8 abbe5d8412 feat(chat): thicker, grabbable scrollbar for the message thread
The chat message thread used the global 6px scrollbar with a ~6% grab, which is
thin and hard to grab. Push a 12px scrollbar with a clearly-visible,
theme-adaptive grab (OnSurface at 55/95/135 alpha for idle/hover/active) for the
##ChatMessages child only, popped after EndChild. No change to the global
scrollbar or other scroll regions.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-27 13:35:13 -05:00
DanSandClaude Opus 4.8 00d298453e fix(wallet): don't raise the "needs a repair" dialog after a Compact
Compact runs the node with -salvagewallet to rewrite wallet.dat, which produces
the exact same salvage signature in the daemon output as a corruption recovery.
So detectWalletAutoRecovery mistook the compaction for a recovery and raised the
alarming "Your wallet file needs a quick repair" dialog — whose "Restore
original" would have UNDONE the compaction by restoring the larger pre-compact
backup.

Flag the salvage as expected when we arm it for a compaction
(compaction_salvage_expected_, set in both compactWallet and
compactViaEmbeddedSwitch, disarmed if the restart is refused). When the detector
sees the salvage it consumes the flag and shows a calm "Wallet compacted" toast
(compact_done) instead of the recovery dialog. A genuine, unexpected salvage
still surfaces the dialog as before.

English only for compact_done (8 locales fall back). Build + tests + hygiene green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-27 12:09:29 -05:00
DanSandClaude Opus 4.8 38461f084c i18n(wallet): translate the Compact external-daemon / switch strings
Translate the 4 remaining Compact strings (compact_needs_embedded,
confirm_compact_switch_msg, compact_switching, compact_switch_stop_failed) into
de, es, fr, ja, ko, pt, ru, zh (res/lang/*.json, 2519 → 2523 keys each), grounded
per file and keeping wallet.dat / dragonxd / -salvagewallet as-is. No new CJK
glyphs, so the subset font is unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-27 11:56:55 -05:00
DanSandClaude Opus 4.8 16d60a72f2 feat(wallet): one-click "switch to the built-in node and compact"
When connected to an external/standalone dragonxd (the wallet adopted a running
node, so daemon_controller_ is null), Compact couldn't run. Add a path that does
it in one click: compactViaEmbeddedSwitch() gates the connect loop, drops the RPC
connection, and on the worker gracefully stops the external node (RPC "stop" with
our credentials, via stopDaemonForWalletSwitch) and waits for the port; back on
the main thread it switches the wallet to its built-in node and starts it with a
one-shot compact_on_embedded_start_ flag that arms -salvagewallet, so the fresh
node rewrites wallet.dat (and rescans). On stop failure nothing is changed and
the external node stays up.

The Compact button is now enabled whenever the build can run the embedded node;
its confirmation branches — direct compact when the wallet already runs the
built-in node (canCompactWallet), else a clear message (confirm_compact_switch_
msg) that it will stop the external node, switch to the built-in one, and that
this changes which node binary runs. New strings confirm_compact_switch_msg /
compact_switching / compact_switch_stop_failed.

Mirrors restartDaemon's disconnect + background stop pattern; controller creation
stays on the main thread. Can't be runtime-verified here (no live daemon). Build
+ tests + hygiene green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-27 11:41:49 -05:00
DanSandClaude Opus 4.8 a5cd211e89 fix(wallet): correct Compact's behaviour with an external daemon
Compact rewrites wallet.dat by restarting the node with -salvagewallet, which the
wallet can only do for the EMBEDDED node it manages. When the wallet is connected
to a dragonxd the user started themselves (use-embedded off, or it attached to an
already-running node), daemon_controller_ is null — and compactWallet() fired the
misleading "unavailable in lite build" warning even on a full-node wallet.

Now: a precise App::canCompactWallet() (full-node AND embedded AND a live
controller) disables the Compact button for an external/standalone daemon with a
tooltip, and compactWallet() refuses with an accurate message (compact_needs_
embedded) that tells the user to enable "Use embedded dragonxd" or restart their
dragonxd with -salvagewallet themselves. The lite-build path keeps its own
message. New string compact_needs_embedded (English; 8 locales fall back).

Build + tests + hygiene green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-27 10:55:46 -05:00
DanSandClaude Opus 4.8 0ebd1ac5d5 feat(wallet): defer + retry a merge that hits a transient mempool conflict
A consolidation batch can be rejected by the daemon with
bad-txns-shielded-requirements-not-met (REJECT_DUPLICATE) when it clashes with an
earlier, still-unconfirmed batch — the batch outran its predecessors into the
mempool. That isn't a real failure: once the earlier batches confirm, the same
merge succeeds. Previously it failed the whole address.

Now a merge OP failure whose message is a mempool conflict (shielded- /
joinsplit-requirements-not-met, txn-mempool-conflict, inputs-spent — new pure
helper isDeferrableMergeOpError) HOLDS the address for kRunMempoolClearSec (2 min)
instead of failing it, then retries from where it left off; up to
kRunMaxDeferRetries consecutive defers (reset on any success), after which it is a
genuine failure. Deferrals don't feed the halt breaker, and since the address
outcome stays non-failed the run verdict reads Clean when the retry succeeds.
applyOpState takes `now` to stamp the hold; next() waits on a deferred address
until its window passes.

Unit-tested (testConsolidationDefer): the classifier; and a driven run where an
op reports the conflict → the address is deferred (not failed), held before the
window and retried after it. Build + tests + hygiene green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-26 18:26:28 -05:00
DanSandClaude Opus 4.8 94d41e2932 i18n(wallet): translate the Compact action + reworded consolidation strings
Translate the 7 new Compact strings (wallet_size_compact, tt_wallet_size_compact,
compact_started, confirm_compact_wallet_{title,msg,safe}, compact_wallet_confirm)
and re-translate the 4 corrected consolidation strings (consolidate_desc,
wallet_size_warn, wallet_size_auto_info, tt_wallet_size_warn) into de, es, fr, ja,
ko, pt, ru, zh (res/lang/*.json, 2512 → 2519 keys each), grounded per file and
keeping wallet.dat / Berkeley DB as-is. Rebuilt the CJK subset font
(2123 → 2127 glyphs) for the five new glyphs (肥 領 + ko 써 압 켤).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-26 17:29:33 -05:00