From 61211b5237b0eeb0ab935f530328a4b57f844be3 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 18 Jun 2024 12:51:05 -0300 Subject: filter obs by screen --- .../src/components/Modal.tsx | 3 +- .../src/components/WalletActivity.tsx | 155 ++++++++++++--------- 2 files changed, 92 insertions(+), 66 deletions(-) (limited to 'packages/taler-wallet-webextension/src/components') diff --git a/packages/taler-wallet-webextension/src/components/Modal.tsx b/packages/taler-wallet-webextension/src/components/Modal.tsx index f8c0f1651..c5f716c76 100644 --- a/packages/taler-wallet-webextension/src/components/Modal.tsx +++ b/packages/taler-wallet-webextension/src/components/Modal.tsx @@ -52,8 +52,7 @@ const Body = styled.div` export function Modal({ title, children, onClose }: Props): VNode { return ( -
- +
e.stopPropagation()} diff --git a/packages/taler-wallet-webextension/src/components/WalletActivity.tsx b/packages/taler-wallet-webextension/src/components/WalletActivity.tsx index f29d0b0f7..b3b1a5c1f 100644 --- a/packages/taler-wallet-webextension/src/components/WalletActivity.tsx +++ b/packages/taler-wallet-webextension/src/components/WalletActivity.tsx @@ -39,6 +39,7 @@ import { WxApiType } from "../wxApi.js"; import { WalletActivityTrack } from "../wxBackend.js"; import { Modal } from "./Modal.js"; import { Time } from "./Time.js"; +import { Checkbox } from "./Checkbox.js"; const OPEN_ACTIVITY_HEIGHT_PX = 250; const CLOSE_ACTIVITY_HEIGHT_PX = 40; @@ -212,7 +213,10 @@ function ShowBackupOperationError({ events, onClick }: MoreInfoPRops): VNode {
{error.hint ?? "--"}
Time
-
+    
-        
-        
+        {asd}
Event InfoStartEndWhen
@@ -417,11 +428,9 @@ function ShowObervavilityDetails({ title, notif, onClick, - prev, }: { title: string; notif: ObservaNotifWithTime; - prev?: ObservaNotifWithTime; onClick: (content: VNode) => void; }): VNode { switch (notif.event.type) { @@ -443,7 +452,7 @@ function ShowObervavilityDetails({ wordBreak: "break-word", }} > - {JSON.stringify({ event: notif, prev }, undefined, 2)} + {JSON.stringify({ event: notif }, undefined, 2)}
, ); @@ -454,21 +463,21 @@ function ShowObervavilityDetails({ {notif.event.url}{" "} - {prev?.event.type === + {notif?.event.type === ObservabilityEventType.HttpFetchFinishSuccess ? ( - `(${prev.event.status})` - ) : prev?.event.type === + `(${notif.event.status})` + ) : notif?.event.type === ObservabilityEventType.HttpFetchFinishError ? ( { e.preventDefault(); if ( - prev.event.type !== + notif.event.type !== ObservabilityEventType.HttpFetchFinishError ) return; - const error = prev.event.error; + const error = notif.event.error; onClick(
@@ -482,7 +491,7 @@ function ShowObervavilityDetails({
@@ -504,11 +513,7 @@ function ShowObervavilityDetails({ {" "} -
, ); @@ -544,10 +549,7 @@ function ShowObervavilityDetails({ {notif.event.location} {notif.event.name} -