From a169917692016e1a01560c13c95a554da430cd38 Mon Sep 17 00:00:00 2001 From: Tam Nhu Tran Date: Thu, 9 Apr 2026 17:44:15 -0400 Subject: [PATCH] feat(ui): add paused filter to account flow viz --- .../account/flow-viz/flow-viz-header.tsx | 27 ++++++- ui/src/components/account/flow-viz/index.tsx | 72 ++++++++++++++----- .../account/flow-viz/provider-card.tsx | 3 +- ui/src/lib/i18n.ts | 2 + 4 files changed, 86 insertions(+), 18 deletions(-) diff --git a/ui/src/components/account/flow-viz/flow-viz-header.tsx b/ui/src/components/account/flow-viz/flow-viz-header.tsx index 3d66d3bd..05962237 100644 --- a/ui/src/components/account/flow-viz/flow-viz-header.tsx +++ b/ui/src/components/account/flow-viz/flow-viz-header.tsx @@ -4,12 +4,15 @@ import { useTranslation } from 'react-i18next'; import { cn } from '@/lib/utils'; -import { ChevronRight, Eye, EyeOff, RotateCcw } from 'lucide-react'; +import { ChevronRight, Eye, EyeOff, ListFilter, RotateCcw } from 'lucide-react'; interface FlowVizHeaderProps { onBack?: () => void; showDetails: boolean; onToggleDetails: () => void; + showPausedAccounts: boolean; + pausedAccountsCount: number; + onTogglePausedAccounts: () => void; hasCustomPositions: boolean; onResetPositions: () => void; } @@ -18,6 +21,9 @@ export function FlowVizHeader({ onBack, showDetails, onToggleDetails, + showPausedAccounts, + pausedAccountsCount, + onTogglePausedAccounts, hasCustomPositions, onResetPositions, }: FlowVizHeaderProps) { @@ -48,6 +54,25 @@ export function FlowVizHeader({ {showDetails ? : } {showDetails ? t('flowViz.hideDetails') : t('flowViz.showDetails')} + {pausedAccountsCount > 0 && ( + + )} {hasCustomPositions && (