[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: show summary on tx history
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: show summary on tx history |
Date: |
Thu, 01 Sep 2022 14:21:07 +0200 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new 91d5d55e show summary on tx history
91d5d55e is described below
commit 91d5d55edc36bde8ac860fd56b0fd2dcb93b150a
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Thu Sep 1 09:20:59 2022 -0300
show summary on tx history
---
.../src/components/TransactionItem.tsx | 8 ++++----
.../src/wallet/History.stories.tsx | 14 ++++++++++++--
2 files changed, 16 insertions(+), 6 deletions(-)
diff --git
a/packages/taler-wallet-webextension/src/components/TransactionItem.tsx
b/packages/taler-wallet-webextension/src/components/TransactionItem.tsx
index 6dcee6ec..b59d6fad 100644
--- a/packages/taler-wallet-webextension/src/components/TransactionItem.tsx
+++ b/packages/taler-wallet-webextension/src/components/TransactionItem.tsx
@@ -119,7 +119,7 @@ export function TransactionItem(props: { tx: Transaction
}): VNode {
id={tx.transactionId}
amount={tx.amountEffective}
debitCreditIndicator={"credit"}
- title={"Invoice credit"}
+ title={tx.info.summary || "Invoice"}
timestamp={AbsoluteTime.fromTimestamp(tx.timestamp)}
iconPath={"I"}
pending={tx.pending}
@@ -131,7 +131,7 @@ export function TransactionItem(props: { tx: Transaction
}): VNode {
id={tx.transactionId}
amount={tx.amountEffective}
debitCreditIndicator={"debit"}
- title={"Invoice debit"}
+ title={tx.info.summary || "Invoice"}
timestamp={AbsoluteTime.fromTimestamp(tx.timestamp)}
iconPath={"I"}
pending={tx.pending}
@@ -143,7 +143,7 @@ export function TransactionItem(props: { tx: Transaction
}): VNode {
id={tx.transactionId}
amount={tx.amountEffective}
debitCreditIndicator={"credit"}
- title={"Transfer credit"}
+ title={tx.info.summary || "Transfer"}
timestamp={AbsoluteTime.fromTimestamp(tx.timestamp)}
iconPath={"T"}
pending={tx.pending}
@@ -155,7 +155,7 @@ export function TransactionItem(props: { tx: Transaction
}): VNode {
id={tx.transactionId}
amount={tx.amountEffective}
debitCreditIndicator={"debit"}
- title={"Transfer debit"}
+ title={tx.info.summary || "Transfer"}
timestamp={AbsoluteTime.fromTimestamp(tx.timestamp)}
iconPath={"T"}
pending={tx.pending}
diff --git a/packages/taler-wallet-webextension/src/wallet/History.stories.tsx
b/packages/taler-wallet-webextension/src/wallet/History.stories.tsx
index e37711b8..1efd917c 100644
--- a/packages/taler-wallet-webextension/src/wallet/History.stories.tsx
+++ b/packages/taler-wallet-webextension/src/wallet/History.stories.tsx
@@ -125,7 +125,9 @@ const exampleData = {
push_credit: {
...commonTransaction(),
type: TransactionType.PeerPushCredit,
-
+ info: {
+ summary: "take this cash",
+ },
exchangeBaseUrl: "https://exchange.taler.net",
} as TransactionPeerPushCredit,
push_debit: {
@@ -133,6 +135,9 @@ const exampleData = {
type: TransactionType.PeerPushDebit,
talerUri:
"taler://pay-push/exchange.taler.ar/HS585JK0QCXHJ8Z8QWZA3EBAY5WY7XNC1RR2MHJXSH2Z4WP0YPJ0",
+ info: {
+ summary: "take this cash",
+ },
exchangeBaseUrl: "https://exchange.taler.net",
} as TransactionPeerPushDebit,
pull_credit: {
@@ -140,12 +145,17 @@ const exampleData = {
type: TransactionType.PeerPullCredit,
talerUri:
"taler://pay-push/exchange.taler.ar/HS585JK0QCXHJ8Z8QWZA3EBAY5WY7XNC1RR2MHJXSH2Z4WP0YPJ0",
+ info: {
+ summary: "pay me",
+ },
exchangeBaseUrl: "https://exchange.taler.net",
} as TransactionPeerPullCredit,
pull_debit: {
...commonTransaction(),
type: TransactionType.PeerPullDebit,
-
+ info: {
+ summary: "pay me",
+ },
exchangeBaseUrl: "https://exchange.taler.net",
} as TransactionPeerPullDebit,
};
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: show summary on tx history,
gnunet <=