Skip to content

Add button to set label for accounts#29

Open
schouhy wants to merge 2 commits into
masterfrom
schouhy/add-labels
Open

Add button to set label for accounts#29
schouhy wants to merge 2 commits into
masterfrom
schouhy/add-labels

Conversation

@schouhy

@schouhy schouhy commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

This PR depends on PR #28

  • Bump the lez version
  • Add a button to set labels to accounts

Note: currently the LEZ wallet core module does not support removing/editing existing labels. We therefore don't support those here either.

image image image

@schouhy schouhy self-assigned this Jul 24, 2026
Comment thread src/LEZWalletBackend.cpp
: m_logosAPI->getClient(LEZ_MODULE)->invokeRemoteMethod(
LEZ_MODULE, "register_private_account",
QVariantList{accountIdHex.trimmed()},
NO_TIMEOUT).toString();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

feels funny to do this for the sake of timeouts, I wonder if logos-core team has plans for a more ergonomic approach on this 🤔

Comment thread src/LEZWalletBackend.cpp
return false;
const QString programOwner = doc.object().value(QStringLiteral("program_owner")).toString();
return std::any_of(programOwner.cbegin(), programOwner.cend(),
[](QChar c) { return c != QLatin1Char('0'); });

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bro god bless Rust closures, how ugly is C++ 🙏🏻

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is from #28 I think, right? same comment applies here

@erhant erhant left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Pravdyvy Pravdyvy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@moudyellaz moudyellaz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks. Left a small comment

Comment thread src/LEZWalletBackend.cpp
// Both feed the transfer/withdraw "from"/"to" account-picker combo boxes, where an
// uninitialized account isn't a usable sender or recipient — unlike m_accountModel
// (unfiltered), which AccountsPanel needs to keep showing them on for initialization.
m_filteredAccountModel->setOnlyInitialized(true);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is_initialized comes from a per-account network read that defaults to false when the sequencer call fails, so one failed read during a refresh drops good accounts from this picker until the next refresh. Could we keep the last-known value like balances do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants