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

Disburse maturity destination input #3284

Closed
wants to merge 30 commits into from

Conversation

mstrasinskis
Copy link
Contributor

@mstrasinskis mstrasinskis commented Sep 6, 2023

Motivation

Add destination address support (any icrc address) to disburse maturity modal and minor design/copy changes.

Changes

  • add input for the destination
  • add toAccount field to disburseMaturity service
  • add NeuronSelectMaturityDisbursement component to combine maturity disbursement configuration

Tests

  • NeuronSelectMaturityDisbursement.page-object.ts
  • Updated SnsDisburseMaturity.spec to support updated structure and destination data

Todos

  • Add entry to changelog (if necessary).
    Not necessary.

Screenshots

image image image

@mstrasinskis mstrasinskis marked this pull request as draft September 8, 2023 15:28
@mstrasinskis mstrasinskis marked this pull request as ready for review September 11, 2023 11:34
Copy link
Contributor

@lmuntaner lmuntaner left a comment

Choose a reason for hiding this comment

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

Shouldn't we default to the Main account?

And allow selection of user accounts with a dropdown?

The same way we have for all destinations.

We have a component for it: SelectDestinationAddress.svelte

@@ -0,0 +1,92 @@
<script lang="ts">
Copy link
Contributor Author

Choose a reason for hiding this comment

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

A component just to isolate the inputs logic

}

.destination-key {
white-space: nowrap;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

A request to not break "To address:" line.

}

.destination-value {
text-align: right;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The value according to design needs to be right aligned. It feels that KeyValue component needs a review w/ designer.

@lmuntaner lmuntaner force-pushed the disburse-maturity-destination-input branch from b0b85bf to 900a72e Compare September 13, 2023 08:15
github-merge-queue bot pushed a commit that referenced this pull request Sep 13, 2023
# Motivation

Improving the disburse maturity flow.

This PR is one of the few I'll do to split #3284 into smaller PRs.

In this PR, we add the amount of maturity in the component where a
percentage of maturity is selected.

# Changes

* New sns neuron util `maturityPercentageToE8s`.
* Use new sns neuron util in NeuronSelectPercantage to show the amount
of maturity related to the percentage.

# Tests

* Test new util.
* Test that the amount of maturity is visible in the
DisburseMaturityModal.

# Todos

- [x] Add entry to changelog (if necessary).
@mstrasinskis
Copy link
Contributor Author

Obsolete.

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.

2 participants