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

[SDP-1068] Display future balance #76

Merged
merged 11 commits into from
Feb 23, 2024

Conversation

CaioTeixeira95
Copy link
Contributor

This PR adds the Future Balance label in the DisbursementDetails component to display the balance for the asset on the distribution account after the disbursement is completed.

@stellar-jenkins
Copy link

stellar-disbursement-platform-frontend-preview is available here:
http://sdp-frontend-pr76.previews.kube001.services.stellar-ops.com/

@stellar-jenkins
Copy link

stellar-disbursement-platform-frontend-preview is available here:
http://sdp-frontend-pr76.previews.kube001.services.stellar-ops.com/

Copy link
Contributor

@quietbits quietbits left a comment

Choose a reason for hiding this comment

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

Looks good! 🙌 I just have a few small comments/suggestions.

❓ Should we use BigNumber for futureBalance calculations? If we're dealing with precision greater than 2 decimal points, we could run into some issues with the "normal" calculations. Thoughts? 🙏

src/components/DisbursementDetails/index.tsx Outdated Show resolved Hide resolved
src/components/DisbursementDetails/index.tsx Outdated Show resolved Hide resolved
src/pages/DisbursementDraftDetails.tsx Outdated Show resolved Hide resolved
src/pages/DisbursementDraftDetails.tsx Outdated Show resolved Hide resolved
src/pages/DisbursementsNew.tsx Outdated Show resolved Hide resolved
@stellar-jenkins
Copy link

stellar-disbursement-platform-frontend-preview is available here:
http://sdp-frontend-pr76.previews.kube001.services.stellar-ops.com/

@stellar-jenkins
Copy link

stellar-disbursement-platform-frontend-preview is available here:
http://sdp-frontend-pr76.previews.kube001.services.stellar-ops.com/

@stellar-jenkins
Copy link

stellar-disbursement-platform-frontend-preview is available here:
http://sdp-frontend-pr76.previews.kube001.services.stellar-ops.com/

@stellar-jenkins
Copy link

stellar-disbursement-platform-frontend-preview is available here:
http://sdp-frontend-pr76.previews.kube001.services.stellar-ops.com/

Copy link
Contributor

@quietbits quietbits left a comment

Choose a reason for hiding this comment

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

Looks good! 🚀

Just a nitpick about the order of imports. We try to group them like this: libraries > absolute paths > types > styles

For example:
image

…stellar-disbursement-platform-frontend into sdp-1068_display-future-balance
@stellar-jenkins
Copy link

stellar-disbursement-platform-frontend-preview is available here:
http://sdp-frontend-pr76.previews.kube001.services.stellar-ops.com/

@stellar-jenkins
Copy link

stellar-disbursement-platform-frontend-preview is available here:
http://sdp-frontend-pr76.previews.kube001.services.stellar-ops.com/

@CaioTeixeira95 CaioTeixeira95 merged commit a962e20 into develop Feb 23, 2024
5 checks passed
@CaioTeixeira95 CaioTeixeira95 deleted the sdp-1068_display-future-balance branch February 23, 2024 20:12
marcelosalloum added a commit that referenced this pull request Apr 15, 2024
## [1.1.2](stellar/stellar-disbursement-platform-backend@1.1.1...1.1.2)

Attention, this version is compatible with the backend version
[1.1.6](https://github.com/stellar/stellar-disbursement-platform-backend/releases/tag/1.1.6).

### Added

- Add the "Future Balance" label in the disbursement detail component to display
  what will be balance for the asset on the distribution account after the
  disbursement is completed.
  [#76](#76)
- Add option to update a receiver's verification info from the receiver's detail
  page.
  [#78](#78)

### Changed

- Update the CSV template by adding examples with and without the paymentID
  (optional) column.
  [#77](#77)
- Display the entire disbursement account address for the tenant when that
  disbursement account does not exist in the network, making it easier to
  identify the account that needs to be funded.
  [#80](#80)
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