diff --git a/packages/taler-util/src/transactionsTypes.ts b/packages/taler-util/src/transactionsTypes.ts
index b3cc274a0..e29a5549d 100644
--- a/packages/taler-util/src/transactionsTypes.ts
+++ b/packages/taler-util/src/transactionsTypes.ts
@@ -145,7 +145,7 @@ interface WithdrawalDetailsForTalerBankIntegrationApi {
// This should only be used for actual withdrawals
// and not for tips that have their own transactions type.
-interface TransactionWithdrawal extends TransactionCommon {
+export interface TransactionWithdrawal extends TransactionCommon {
type: TransactionType.Withdrawal;
/**
@@ -266,7 +266,7 @@ export interface OrderShortInfo {
fulfillmentMessage_i18n?: InternationalizedString;
}
-interface TransactionRefund extends TransactionCommon {
+export interface TransactionRefund extends TransactionCommon {
type: TransactionType.Refund;
// ID for the transaction that is refunded
@@ -282,7 +282,7 @@ interface TransactionRefund extends TransactionCommon {
amountEffective: AmountString;
}
-interface TransactionTip extends TransactionCommon {
+export interface TransactionTip extends TransactionCommon {
type: TransactionType.Tip;
// Raw amount of the tip, without extra fees that apply
@@ -297,7 +297,7 @@ interface TransactionTip extends TransactionCommon {
// A transaction shown for refreshes that are not associated to other transactions
// such as a refresh necessary before coin expiration.
// It should only be returned by the API if the effective amount is different from zero.
-interface TransactionRefresh extends TransactionCommon {
+export interface TransactionRefresh extends TransactionCommon {
type: TransactionType.Refresh;
// Exchange that the coins are refreshed with
@@ -314,7 +314,7 @@ interface TransactionRefresh extends TransactionCommon {
* Deposit transaction, which effectively sends
* money from this wallet somewhere else.
*/
-interface TransactionDeposit extends TransactionCommon {
+export interface TransactionDeposit extends TransactionCommon {
type: TransactionType.Deposit;
depositGroupId: string;
diff --git a/packages/taler-wallet-webextension/package.json b/packages/taler-wallet-webextension/package.json
index 5a6775b27..60a2ea5d4 100644
--- a/packages/taler-wallet-webextension/package.json
+++ b/packages/taler-wallet-webextension/package.json
@@ -12,12 +12,13 @@
"test": "jest ./tests",
"compile": "tsc && rollup -c",
"build-storybook": "build-storybook",
- "storybook": "start-storybook -p 6006",
+ "storybook": "start-storybook -s static -p 6006",
"watch": "tsc --watch & rollup -w -c"
},
"dependencies": {
"@gnu-taler/taler-util": "workspace:*",
"@gnu-taler/taler-wallet-core": "workspace:*",
+ "date-fns": "^2.22.1",
"preact": "^10.5.13",
"preact-router": "^3.2.1",
"tslib": "^2.1.0"
diff --git a/packages/taler-wallet-webextension/src/Application.tsx b/packages/taler-wallet-webextension/src/Application.tsx
index 096f6a09a..6e10786d2 100644
--- a/packages/taler-wallet-webextension/src/Application.tsx
+++ b/packages/taler-wallet-webextension/src/Application.tsx
@@ -19,7 +19,7 @@ export enum Pages {
return_coins = '/return-coins',
tips = '/tips',
withdraw = '/withdraw',
- popup = '/popup/:rest',
+ popup = '/popup/:rest*',
}
export function Application() {
diff --git a/packages/taler-wallet-webextension/src/pages/popup.stories.tsx b/packages/taler-wallet-webextension/src/pages/popup.stories.tsx
new file mode 100644
index 000000000..e9202fbea
--- /dev/null
+++ b/packages/taler-wallet-webextension/src/pages/popup.stories.tsx
@@ -0,0 +1,191 @@
+/*
+ This file is part of GNU Taler
+ (C) 2021 Taler Systems S.A.
+
+ GNU Taler is free software; you can redistribute it and/or modify it under the
+ terms of the GNU General Public License as published by the Free Software
+ Foundation; either version 3, or (at your option) any later version.
+
+ GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along with
+ GNU Taler; see the file COPYING. If not, see
+ */
+
+/**
+*
+* @author Sebastian Javier Marchano (sebasjm)
+*/
+
+import { PaymentStatus, TransactionPayment, TransactionType, TransactionWithdrawal, TransactionDeposit, TransactionRefresh, TransactionTip, TransactionRefund, WithdrawalType, TransactionCommon } from '@gnu-taler/taler-util';
+import { Fragment, h } from 'preact';
+import { WalletTransactionView as Component } from './popup';
+
+export default {
+ title: 'popup/transaction details',
+ component: Component,
+ decorators: [
+ (Story: any) =>