-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Improve stardust Transaction history UX (#872)
* Change view to date, transactionId, value. Signed-off-by: Eugene Panteleymonchuk <[email protected]> * Refactoring. Signed-off-by: Eugene Panteleymonchuk <[email protected]> * Change properties. Signed-off-by: Eugene Panteleymonchuk <[email protected]> * TransactionCard changes. Signed-off-by: Eugene Panteleymonchuk <[email protected]> * Changes after MR comments. Signed-off-by: Eugene Panteleymonchuk <[email protected]> * feat: changes after MR comments. Signed-off-by: Eugene Panteleymonchuk <[email protected]> * feat: changes after MR comments. Signed-off-by: Eugene Panteleymonchuk <[email protected]> * feat: create transactionHistoryUtils.ts Signed-off-by: Eugene Panteleymonchuk <[email protected]> * feat: Move one more function and interface. Signed-off-by: Eugene Panteleymonchuk <[email protected]> * chore: fixes for MR comments. Signed-off-by: Eugene Panteleymonchuk <[email protected]> * chore: rethinking transaction history view. Signed-off-by: Eugene Panteleymonchuk <[email protected]> * chore: revert prev commit. Signed-off-by: Eugene Panteleymonchuk <[email protected]> * chore: remove last transaction if user don't have all outputs. Signed-off-by: Eugene Panteleymonchuk <[email protected]> * chore: remove dark bg Signed-off-by: Eugene Panteleymonchuk <[email protected]> * fix: add edge case for spent outputs by the return address (#937) * chore: Finding of way how to include unclaimed transactions. Signed-off-by: Eugene Panteleymonchuk <[email protected]> * chore: Request outputs and details using async/await. Signed-off-by: Eugene Panteleymonchuk <[email protected]> * chore: Request list of details and set it. Signed-off-by: Eugene Panteleymonchuk <[email protected]> * chore: update groupOutputsByTransactionId Signed-off-by: Eugene Panteleymonchuk <[email protected]> * chore: calculate transactions. Signed-off-by: Eugene Panteleymonchuk <[email protected]> * chore: Investigate alternative joining. Signed-off-by: Eugene Panteleymonchuk <[email protected]> * chore: Cleaning branch. Signed-off-by: Eugene Panteleymonchuk <[email protected]> * chore: Get transactionId from outputDetails. Signed-off-by: Eugene Panteleymonchuk <[email protected]> * chore: Don't show tx if balance 0. Signed-off-by: Eugene Panteleymonchuk <[email protected]> * chore: fix formatting after merge conflicts. Signed-off-by: Eugene Panteleymonchuk <[email protected]> * fix: calculation for transaction. Signed-off-by: Eugene Panteleymonchuk <[email protected]> * fix: changes after review. Signed-off-by: Eugene Panteleymonchuk <[email protected]> --------- Signed-off-by: Eugene Panteleymonchuk <[email protected]> Co-authored-by: Begoña Álvarez de la Cruz <[email protected]>
- Loading branch information
1 parent
41f619f
commit 0a15fce
Showing
7 changed files
with
301 additions
and
250 deletions.
There are no files selected for viewing
52 changes: 20 additions & 32 deletions
52
client/src/app/components/stardust/history/TransactionCard.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 18 additions & 19 deletions
37
client/src/app/components/stardust/history/TransactionEntryProps.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,46 @@ | ||
export interface ITransactionEntryProps { | ||
/** | ||
* The output id. | ||
* The transaction id. | ||
*/ | ||
outputId: string; | ||
transactionId: string; | ||
|
||
/** | ||
* The transaction id. | ||
* The formatted date of the transaction. | ||
*/ | ||
transactionId: string; | ||
dateFormatted: string; | ||
|
||
/** | ||
* The date of the transaction. | ||
* Is the transaction spent. | ||
*/ | ||
date: number; | ||
isSpent: boolean; | ||
|
||
/** | ||
* The milestone index of the transaction. | ||
* Are the amounts formatted. | ||
*/ | ||
milestoneIndex: number; | ||
isFormattedAmounts: boolean; | ||
|
||
/** | ||
* The transaction amount. | ||
* The setter for formatted amounts toggle. | ||
*/ | ||
value: number; | ||
setIsFormattedAmounts: React.Dispatch<React.SetStateAction<boolean>>; | ||
|
||
/** | ||
* Is the transaction spent. | ||
* The formatted transaction amount. | ||
*/ | ||
isSpent: boolean; | ||
balanceChangeFormatted: string; | ||
|
||
/** | ||
* Are the amounts formatted. | ||
* Check if transaction from stardust by TransactionHelper. | ||
*/ | ||
isFormattedAmounts: boolean; | ||
isTransactionFromStardustGenesis: boolean; | ||
|
||
/** | ||
* The setter for formatted amounts toggle. | ||
* check some of outputs timestamps zero | ||
*/ | ||
setIsFormattedAmounts: React.Dispatch<React.SetStateAction<boolean>>; | ||
isGenesisByDate: boolean; | ||
|
||
/** | ||
* To colour the transaction row ligter/darker, alternating on | ||
* unrelated transactions. | ||
* The transaction link. | ||
*/ | ||
darkBackgroundRow?: boolean; | ||
transactionLink: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
138 changes: 53 additions & 85 deletions
138
client/src/app/components/stardust/history/TransactionHistory.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.