From 0f3da7f8950d3ad7451edee1dc648f9b2dbd53d5 Mon Sep 17 00:00:00 2001 From: cl-mitch <104023143+cl-mitch@users.noreply.github.com> Date: Fri, 5 Aug 2022 10:03:26 -0500 Subject: [PATCH] web/satellite: Added token transaction history to new payment methods flow (#4977) Added code for SortingHeader2.vue, VerticalArrows.vue, and TokenTransactionItem.vue. This code is for some of the stubbed components on PaymentMethodsTab.vue. --- .../SortingHeader2.vue | 139 ++++++++++++++++- .../paymentMethods/TokenTransactionItem.vue | 140 +++++++++++++++++- .../src/components/common/VerticalArrows.vue | 18 ++- .../__snapshots__/VerticalArrows.spec.ts.snap | 6 +- .../SortingListHeader.spec.ts.snap | 6 +- 5 files changed, 292 insertions(+), 17 deletions(-) diff --git a/web/satellite/src/components/account/billing/depositAndBillingHistory/SortingHeader2.vue b/web/satellite/src/components/account/billing/depositAndBillingHistory/SortingHeader2.vue index 3d5149774..e44a4213e 100644 --- a/web/satellite/src/components/account/billing/depositAndBillingHistory/SortingHeader2.vue +++ b/web/satellite/src/components/account/billing/depositAndBillingHistory/SortingHeader2.vue @@ -2,12 +2,147 @@ // See LICENSE for copying information. + + diff --git a/web/satellite/src/components/account/billing/paymentMethods/TokenTransactionItem.vue b/web/satellite/src/components/account/billing/paymentMethods/TokenTransactionItem.vue index 2df48a21c..ee5319d99 100644 --- a/web/satellite/src/components/account/billing/paymentMethods/TokenTransactionItem.vue +++ b/web/satellite/src/components/account/billing/paymentMethods/TokenTransactionItem.vue @@ -1,13 +1,147 @@ -// Copyright (C) 2019 Storj Labs, Inc. +// Copyright (C) 2022 Storj Labs, Inc. // See LICENSE for copying information. + + diff --git a/web/satellite/src/components/common/VerticalArrows.vue b/web/satellite/src/components/common/VerticalArrows.vue index bf43e4b83..980ea7237 100644 --- a/web/satellite/src/components/common/VerticalArrows.vue +++ b/web/satellite/src/components/common/VerticalArrows.vue @@ -1,10 +1,10 @@ -// Copyright (C) 2019 Storj Labs, Inc. +// Copyright (C) 2022 Storj Labs, Inc. // See LICENSE for copying information. @@ -48,10 +48,16 @@ export default class VerticalArrows extends Vue { height: 17px; } - .active { + .inactive { + opacity: 0.5; + } - .arrow-svg-path { + .active { + opacity: 1; + + ::v-deep path { fill: #2683ff !important; } } - + + \ No newline at end of file diff --git a/web/satellite/tests/unit/common/__snapshots__/VerticalArrows.spec.ts.snap b/web/satellite/tests/unit/common/__snapshots__/VerticalArrows.spec.ts.snap index 85699ea7d..314e632f8 100644 --- a/web/satellite/tests/unit/common/__snapshots__/VerticalArrows.spec.ts.snap +++ b/web/satellite/tests/unit/common/__snapshots__/VerticalArrows.spec.ts.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`VerticalArrows.vue should render with bottom arrow highlighted 1`] = `
`; +exports[`VerticalArrows.vue should render with bottom arrow highlighted 1`] = `
`; -exports[`VerticalArrows.vue should render with top arrow highlighted 1`] = `
`; +exports[`VerticalArrows.vue should render with top arrow highlighted 1`] = `
`; -exports[`VerticalArrows.vue should render without any highlighted arrows 1`] = `
`; +exports[`VerticalArrows.vue should render without any highlighted arrows 1`] = `
`; diff --git a/web/satellite/tests/unit/projectMembers/__snapshots__/SortingListHeader.spec.ts.snap b/web/satellite/tests/unit/projectMembers/__snapshots__/SortingListHeader.spec.ts.snap index c36cf425f..32c316e3d 100644 --- a/web/satellite/tests/unit/projectMembers/__snapshots__/SortingListHeader.spec.ts.snap +++ b/web/satellite/tests/unit/projectMembers/__snapshots__/SortingListHeader.spec.ts.snap @@ -4,15 +4,15 @@ exports[`SortingListHeader.vue should render correctly 1`] = `

Name

-
+

Added

-
+
-
+
`;