Files
ObsidianDragon/src/ui/windows/release_list_view.h
DanS f6024557d5 refactor(updater): drop dead RenderReleaseList picker; keep shared ReleaseRow
The miner and node updater dialogs were rebuilt around their own two-pane
tactile-Material version lists, which superseded release_list_view.h's
RenderReleaseList() picker. That function had zero call sites — both dialogs
include the header only for the shared ReleaseRow struct. Remove the dead
function (and the material/i18n/imgui includes it alone needed), leaving just
the ReleaseRow model, and correct CLAUDE.md's stale "shared picker" description
to reflect that the two-pane list is the browse-all UI and only the row model
is shared.

No behavior change: build + ctest + hygiene clean; grep confirms no remaining
RenderReleaseList references.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-14 14:51:02 -05:00

28 lines
1.1 KiB
C++

// DragonX Wallet - ImGui Edition
// Copyright 2024-2026 The Hush Developers
// Released under the GPLv3
//
// Shared release-row model for the updater dialogs. Both the miner updater (XmrigDownloadDialog) and
// the node updater (DaemonUpdateDialog) map their updater's release list into ReleaseRow values to
// drive their two-pane version picker (tag + title + date, with pre-release / installed badges). The
// two-pane list is the "browse all releases" UI; each dialog renders its own tactile Material cards.
#pragma once
#include <string>
namespace dragonx {
namespace ui {
struct ReleaseRow {
std::string tag; // version tag, e.g. "v1.0.2"
std::string title; // human title (release "name"), shown dimmed
std::string date; // YYYY-MM-DD (already trimmed)
bool prerelease = false; // show a pre-release badge
bool hasAsset = true; // a build exists for this platform (else the row's Install is disabled)
bool installed = false; // matches the currently-installed version (Install -> Reinstall)
};
} // namespace ui
} // namespace dragonx