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

feat(frontend): add IC transactions to unified list util #3568

Merged

Conversation

AntonioVentilii
Copy link
Collaborator

@AntonioVentilii AntonioVentilii commented Nov 14, 2024

Motivation

Following PR #3547 , we add the IC transactions to the util that unifies the transactions.

Tests

Provided additional tests.

@AntonioVentilii AntonioVentilii marked this pull request as ready for review November 15, 2024 08:22
@AntonioVentilii AntonioVentilii requested a review from a team as a code owner November 15, 2024 08:22
Copy link
Member

@peterpeterparker peterpeterparker left a comment

Choose a reason for hiding this comment

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

LGTm, thx

@@ -95,8 +106,24 @@ export const mapAllTransactionsUi = ({
}

if (isNetworkIdICP(networkId)) {
// TODO: Implement ICP transactions
return acc;
// TODO: Implement ckBTC and ckETH pending transactions
Copy link
Member

Choose a reason for hiding this comment

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

Unsolicited feedback: the more you provide PR for this feature, the more I think it's unrealisitc in terms of performance but, let's see.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes... the final version is not exactly good; we should really start thinking about caching


export const createMockIcTransactionsUi = (n: number): IcTransactionUi[] =>
Array.from({ length: n }, () => ({
id: Math.random().toString(36).substring(7),
Copy link
Member

Choose a reason for hiding this comment

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

crypto.randomUUID() ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done!

@AntonioVentilii AntonioVentilii enabled auto-merge (squash) November 15, 2024 12:19
@AntonioVentilii AntonioVentilii merged commit 29ea04c into main Nov 15, 2024
14 checks passed
@AntonioVentilii AntonioVentilii deleted the feat(frontend)/add-IC-transactions-to-unified-list-util branch November 15, 2024 12:21
AntonioVentilii added a commit that referenced this pull request Nov 15, 2024
# Motivation

After PR #3568, we add the IC transactions in the UI.
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