[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-ios] 17/69: Summary in ThreeAmountsV
From: |
gnunet |
Subject: |
[taler-taler-ios] 17/69: Summary in ThreeAmountsV |
Date: |
Fri, 19 Jan 2024 09:01:50 +0100 |
This is an automated email from the git hooks/post-receive script.
marc-stibane pushed a commit to branch master
in repository taler-ios.
commit 0c0f3b1aeed93caf4aba69d27bbda8b4afc87003
Author: Marc Stibane <marc@taler.net>
AuthorDate: Wed Jan 3 17:44:58 2024 +0100
Summary in ThreeAmountsV
---
TalerWallet1/Views/Sheets/P2P_Sheets/P2pPayURIView.swift | 4 +++-
.../Views/Sheets/P2P_Sheets/P2pReceiveURIView.swift | 4 +++-
TalerWallet1/Views/Sheets/Payment/PayTemplateView.swift | 8 ++++++--
TalerWallet1/Views/Sheets/Payment/PaymentView.swift | 8 ++++++--
.../Sheets/WithdrawBankIntegrated/WithdrawURIView.swift | 4 +++-
TalerWallet1/Views/Transactions/ThreeAmountsV.swift | 16 +++++++++++++---
6 files changed, 34 insertions(+), 10 deletions(-)
diff --git a/TalerWallet1/Views/Sheets/P2P_Sheets/P2pPayURIView.swift
b/TalerWallet1/Views/Sheets/P2P_Sheets/P2pPayURIView.swift
index 8a8fbcf..415c9ed 100644
--- a/TalerWallet1/Views/Sheets/P2P_Sheets/P2pPayURIView.swift
+++ b/TalerWallet1/Views/Sheets/P2P_Sheets/P2pPayURIView.swift
@@ -36,7 +36,9 @@ struct P2pPayURIView: View {
bottomAbbrev: String(localized: "Effective:"),
bottomAmount: effective,
large: false, pending: false, incoming:
false,
- baseURL: nil)
+ baseURL: nil,
+ status: nil,
+ summary:
peerPullDebitResponse.contractTerms.summary)
}
.listStyle(myListStyle.style).anyView
.navigationTitle(navTitle)
diff --git a/TalerWallet1/Views/Sheets/P2P_Sheets/P2pReceiveURIView.swift
b/TalerWallet1/Views/Sheets/P2P_Sheets/P2pReceiveURIView.swift
index bb2a14e..0f71b3e 100644
--- a/TalerWallet1/Views/Sheets/P2P_Sheets/P2pReceiveURIView.swift
+++ b/TalerWallet1/Views/Sheets/P2P_Sheets/P2pReceiveURIView.swift
@@ -38,7 +38,9 @@ struct P2pReceiveURIView: View {
bottomAbbrev: String(localized: "Effective:"),
bottomAmount: effective,
large: false, pending: false, incoming:
true,
- baseURL: nil)
+ baseURL: nil,
+ status: nil,
+ summary:
peerPushCreditResponse.contractTerms.summary)
}
.listStyle(myListStyle.style).anyView
.navigationTitle(navTitle)
diff --git a/TalerWallet1/Views/Sheets/Payment/PayTemplateView.swift
b/TalerWallet1/Views/Sheets/Payment/PayTemplateView.swift
index 4951b0f..019152b 100644
--- a/TalerWallet1/Views/Sheets/Payment/PayTemplateView.swift
+++ b/TalerWallet1/Views/Sheets/Payment/PayTemplateView.swift
@@ -66,7 +66,9 @@ struct PayTemplateView: View {
bottomAbbrev: String(localized: "Effective:"),
bottomAmount: effective,
large: false, pending: false, incoming:
false,
- baseURL: baseURL)
+ baseURL: baseURL,
+ status: nil,
+ summary: nil)
// TODO: payment: popup with all possible exchanges, check
fees
} else if let balanceDetails = preparePayResult.balanceDetails
{ // Insufficient
Text("You don't have enough \(currency)")
@@ -78,7 +80,9 @@ struct PayTemplateView: View {
bottomAbbrev: String(localized: "Available:"),
bottomAmount: balanceDetails.balanceAvailable,
large: false, pending: false, incoming:
false,
- baseURL: baseURL)
+ baseURL: baseURL,
+ status: nil,
+ summary: nil)
} else {
// TODO: Error - neither effective nor balanceDetails
Text("Error")
diff --git a/TalerWallet1/Views/Sheets/Payment/PaymentView.swift
b/TalerWallet1/Views/Sheets/Payment/PaymentView.swift
index 4c89f13..68e2534 100644
--- a/TalerWallet1/Views/Sheets/Payment/PaymentView.swift
+++ b/TalerWallet1/Views/Sheets/Payment/PaymentView.swift
@@ -62,7 +62,9 @@ struct PaymentView: View {
bottomAbbrev: String(localized: "Effective:"),
bottomAmount: effective,
large: false, pending: false, incoming:
false,
- baseURL: baseURL)
+ baseURL: baseURL,
+ status: nil,
+ summary: terms.summary)
// TODO: payment: popup with all possible exchanges, check
fees
} else if let balanceDetails = preparePayResult.balanceDetails
{ // Insufficient
Text("You don't have enough \(currency)")
@@ -74,7 +76,9 @@ struct PaymentView: View {
bottomAbbrev: String(localized: "Available:"),
bottomAmount: balanceDetails.balanceAvailable,
large: false, pending: false, incoming:
false,
- baseURL: baseURL)
+ baseURL: baseURL,
+ status: nil,
+ summary: terms.summary)
} else {
// TODO: Error - neither effective nor balanceDetails
Text("Error")
diff --git
a/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawURIView.swift
b/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawURIView.swift
index a5af316..5c9ec65 100644
--- a/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawURIView.swift
+++ b/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawURIView.swift
@@ -43,7 +43,9 @@ struct WithdrawURIView: View {
bottomAbbrev: String(localized: "Effective:"),
bottomAmount: effective,
large: false, pending: false, incoming:
true,
- baseURL: exchange.exchangeBaseUrl)
+ baseURL: exchange.exchangeBaseUrl,
+ status: nil, //
common.txState.major.localizedState
+ summary: nil)
let someCoins = SomeCoins(details: withdrawalAmountDetails)
QuiteSomeCoins(someCoins: someCoins,
shouldShowFee: true, // TODO: set to
false if we never charge withdrawal fees
diff --git a/TalerWallet1/Views/Transactions/ThreeAmountsV.swift
b/TalerWallet1/Views/Transactions/ThreeAmountsV.swift
index 0ff8f06..0f9cef0 100644
--- a/TalerWallet1/Views/Transactions/ThreeAmountsV.swift
+++ b/TalerWallet1/Views/Transactions/ThreeAmountsV.swift
@@ -13,6 +13,7 @@ struct ThreeAmountsSheet: View {
var bottomAbbrev: String?
let baseURL: String?
let large: Bool // set to false for QR or IBAN
+ let summary: String?
var body: some View {
let raw = common.amountRaw
@@ -35,7 +36,8 @@ struct ThreeAmountsSheet: View {
bottomAmount: incomplete ? nil : effective,
large: large, pending: pending, incoming: incoming,
baseURL: baseURL,
- status: common.txState.major.localizedState)
+ status: common.txState.major.localizedState,
+ summary: summary)
}
}
// MARK: -
@@ -51,7 +53,8 @@ struct ThreeAmountsV: View {
let pending: Bool
let incoming: Bool
let baseURL: String?
- var status: String?
+ let status: String?
+ let summary: String?
@AppStorage("iconOnly") var iconOnly: Bool = false
@@ -60,6 +63,12 @@ struct ThreeAmountsV: View {
let foreColor = pending ? WalletColors().pendingColor(incoming)
: WalletColors().transactionColor(incoming)
Section {
+ if let summary {
+ Text(summary)
+ .accessibilityFont(.title2)
+ .lineLimit(4)
+ .padding(.bottom)
+ }
AmountView(title: iconOnly ? topAbbrev : topTitle,
value: topAmount.readableDescription,
color: labelColor,
@@ -122,7 +131,8 @@ struct ThreeAmounts_Previews: PreviewProvider {
Group {
List {
ThreeAmountsSheet(common: common, topAbbrev: "Withdrawal",
- topTitle: "Withdrawal", baseURL: DEMOEXCHANGE,
large: 1==0)
+ topTitle: "Withdrawal", baseURL: DEMOEXCHANGE,
+ large: 1==0, summary: nil)
.safeAreaInset(edge: .bottom) {
Button(String(localized: "Accept"), action: {})
.buttonStyle(TalerButtonStyle(type: .prominent))
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-taler-ios] 16/69: remove about protocols, (continued)
- [taler-taler-ios] 16/69: remove about protocols, gnunet, 2024/01/19
- [taler-taler-ios] 18/69: ToS for P2P, gnunet, 2024/01/19
- [taler-taler-ios] 29/69: clearDb (instead of reset), gnunet, 2024/01/19
- [taler-taler-ios] 27/69: use minor for Status, gnunet, 2024/01/19
- [taler-taler-ios] 14/69: remove Apple Sounds, gnunet, 2024/01/19
- [taler-taler-ios] 21/69: TransactionDone popToRootView, gnunet, 2024/01/19
- [taler-taler-ios] 09/69: API 2:0:1, gnunet, 2024/01/19
- [taler-taler-ios] 15/69: hapticFeedback, gnunet, 2024/01/19
- [taler-taler-ios] 08/69: fixes, gnunet, 2024/01/19
- [taler-taler-ios] 11/69: Landscape, gnunet, 2024/01/19
- [taler-taler-ios] 17/69: Summary in ThreeAmountsV,
gnunet <=
- [taler-taler-ios] 50/69: txStates, gnunet, 2024/01/19
- [taler-taler-ios] 24/69: dbg+cleanup, gnunet, 2024/01/19
- [taler-taler-ios] 13/69: definitions, gnunet, 2024/01/19
- [taler-taler-ios] 23/69: aborting Notification, gnunet, 2024/01/19
- [taler-taler-ios] 28/69: AccountRestriction, gnunet, 2024/01/19
- [taler-taler-ios] 60/69: P2P Expiration Timestamp, gnunet, 2024/01/19
- [taler-taler-ios] 26/69: Layout transactions, gnunet, 2024/01/19
- [taler-taler-ios] 51/69: cleanup, gnunet, 2024/01/19
- [taler-taler-ios] 67/69: Bump version to 0.9.4 (0), gnunet, 2024/01/19
- [taler-taler-ios] 68/69: lowercased(), gnunet, 2024/01/19