From c0e235c01ac54d17242d310ee1feb9525d7f98eb Mon Sep 17 00:00:00 2001 From: Mononaut Date: Fri, 16 Jun 2023 13:47:09 -0400 Subject: [PATCH 1/4] Mark RBF transactions as removed if earlier version is mined --- .../app/components/transaction/transaction.component.html | 7 ++++++- .../components/confirmations/confirmations.component.html | 5 ++++- .../components/confirmations/confirmations.component.ts | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/components/transaction/transaction.component.html b/frontend/src/app/components/transaction/transaction.component.html index 64eeeaecd..a5a44ee90 100644 --- a/frontend/src/app/components/transaction/transaction.component.html +++ b/frontend/src/app/components/transaction/transaction.component.html @@ -18,7 +18,12 @@
- +
diff --git a/frontend/src/app/shared/components/confirmations/confirmations.component.html b/frontend/src/app/shared/components/confirmations/confirmations.component.html index 1d7138c7c..914ed714f 100644 --- a/frontend/src/app/shared/components/confirmations/confirmations.component.html +++ b/frontend/src/app/shared/components/confirmations/confirmations.component.html @@ -8,6 +8,9 @@ - + + + + \ No newline at end of file diff --git a/frontend/src/app/shared/components/confirmations/confirmations.component.ts b/frontend/src/app/shared/components/confirmations/confirmations.component.ts index 8d14128e5..624c58278 100644 --- a/frontend/src/app/shared/components/confirmations/confirmations.component.ts +++ b/frontend/src/app/shared/components/confirmations/confirmations.component.ts @@ -11,6 +11,7 @@ export class ConfirmationsComponent implements OnChanges { @Input() chainTip: number; @Input() height: number; @Input() replaced: boolean = false; + @Input() removed: boolean = false; @Input() hideUnconfirmed: boolean = false; @Input() buttonClass: string = ''; From 1872e5d12f8dd2ba4e9bfc270d941b662ad52285 Mon Sep 17 00:00:00 2001 From: Mononaut Date: Fri, 16 Jun 2023 17:35:07 -0400 Subject: [PATCH 2/4] change "removed" and "replaced" badges to yellow --- .../components/confirmations/confirmations.component.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/shared/components/confirmations/confirmations.component.html b/frontend/src/app/shared/components/confirmations/confirmations.component.html index 914ed714f..0c947eb39 100644 --- a/frontend/src/app/shared/components/confirmations/confirmations.component.html +++ b/frontend/src/app/shared/components/confirmations/confirmations.component.html @@ -6,10 +6,10 @@ - + - + From c8d3653ef3745dd8ab7f1b3ca7bfcd3e370a4270 Mon Sep 17 00:00:00 2001 From: softsimon Date: Sat, 17 Jun 2023 00:32:58 +0200 Subject: [PATCH 3/4] Updating tests --- frontend/cypress/e2e/mainnet/mainnet.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/cypress/e2e/mainnet/mainnet.spec.ts b/frontend/cypress/e2e/mainnet/mainnet.spec.ts index da9e00b9f..b12b93cf1 100644 --- a/frontend/cypress/e2e/mainnet/mainnet.spec.ts +++ b/frontend/cypress/e2e/mainnet/mainnet.spec.ts @@ -537,7 +537,7 @@ describe('Mainnet', () => { cy.get('.container-xl > :nth-child(3)').invoke('css', 'width').should('equal', alertWidth); }); - cy.get('.btn-danger').then(getRectangle).then((rectA) => { + cy.get('.btn-warning').then(getRectangle).then((rectA) => { cy.get('.alert').then(getRectangle).then((rectB) => { expect(areOverlapping(rectA, rectB), 'Confirmations box and RBF alert are overlapping').to.be.false; }); @@ -582,7 +582,7 @@ describe('Mainnet', () => { cy.get(alertLocator).invoke('css', 'width').should('equal', firstWidth); }); - cy.get('.btn-danger').then(getRectangle).then((rectA) => { + cy.get('.btn-warning').then(getRectangle).then((rectA) => { cy.get('.alert').then(getRectangle).then((rectB) => { expect(areOverlapping(rectA, rectB), 'Confirmations box and RBF alert are overlapping').to.be.false; }); From 20d7e56de285e8d135370659ed8b67849b2dbf0d Mon Sep 17 00:00:00 2001 From: softsimon Date: Sat, 17 Jun 2023 15:04:46 +0200 Subject: [PATCH 4/4] Update i18n --- .../components/confirmations/confirmations.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/shared/components/confirmations/confirmations.component.html b/frontend/src/app/shared/components/confirmations/confirmations.component.html index 0c947eb39..e785ce4dd 100644 --- a/frontend/src/app/shared/components/confirmations/confirmations.component.html +++ b/frontend/src/app/shared/components/confirmations/confirmations.component.html @@ -6,7 +6,7 @@ - +