Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some gui improvements #1506

Merged
merged 12 commits into from
Jan 26, 2024
Merged

Some gui improvements #1506

merged 12 commits into from
Jan 26, 2024

Conversation

azarovh
Copy link
Member

@azarovh azarovh commented Jan 26, 2024

  • Copy transaction id
  • Added validation to all input fields
  • Display pool ids for delegations
Screenshot 2024-01-26 at 12 17 47
  • Display margin ration and cost per block for pools
Screenshot 2024-01-26 at 12 17 39

@azarovh azarovh added the gui Graphical User Interface related issues label Jan 26, 2024
Copy link
Contributor

@iljakuklic iljakuklic left a comment

Choose a reason for hiding this comment

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

Looks fine to me but I'm not very familiar with gui so don't take this too seriously. A couple of comments / questions below.

common/src/primitives/per_thousand.rs Show resolved Hide resolved
@@ -360,6 +361,7 @@ impl WalletTab {
self.account_state.send_delegation_id.clear();
Command::none()
}
WalletMessage::NoOp => Command::none(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this needed? What's the difference between sending a NoOp and not sending anything?

Copy link
Member Author

Choose a reason for hiding this comment

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

There are cases where I have to send a message, like in closures with input validation: Fn(String) -> Message. So NoOp is a workaround there

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok. I don't have a strong opinion about this.

@azarovh azarovh merged commit f609834 into master Jan 26, 2024
27 checks passed
@azarovh azarovh deleted the fix/small_gui_fixes branch January 26, 2024 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gui Graphical User Interface related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants