From 044ffcc6f57c948d7ea35bd6f08acc0a60e6d66e Mon Sep 17 00:00:00 2001 From: cryptooda Date: Sat, 8 Nov 2025 04:56:41 +0700 Subject: [PATCH] Refactor PlatformLineChart and Tabs components for improved layout and styling, enhance WhitelistSettings with responsive design, and implement API candles health check in HealthChecks. Update global styles for scrollbar visibility and adjust tool tabs for better organization. --- .../PlatformLineChart/PlatformLineChart.tsx | 12 +- .../src/components/mollecules/Tabs/Tabs.tsx | 70 ++--- .../adminPage/whitelist/whitelistSettings.tsx | 18 +- .../pages/backtestPage/backtestBundleForm.tsx | 3 +- .../pages/dashboardPage/platformSummary.tsx | 94 +++--- .../healthchecks/healthChecks.tsx | 267 +++++++++++------- .../sqlmonitoring/sqlMonitoring.tsx | 1 - .../whitelist/whitelistSettings.tsx | 18 +- .../src/pages/toolsPage/tools.tsx | 14 +- src/Managing.WebApp/src/styles/globals.css | 9 + 10 files changed, 285 insertions(+), 221 deletions(-) diff --git a/src/Managing.WebApp/src/components/mollecules/PlatformLineChart/PlatformLineChart.tsx b/src/Managing.WebApp/src/components/mollecules/PlatformLineChart/PlatformLineChart.tsx index eb834be6..1ed0d0ec 100644 --- a/src/Managing.WebApp/src/components/mollecules/PlatformLineChart/PlatformLineChart.tsx +++ b/src/Managing.WebApp/src/components/mollecules/PlatformLineChart/PlatformLineChart.tsx @@ -265,13 +265,18 @@ function PlatformLineChart({ color: theme['base-content'] || '#ffffff' }, bgcolor: 'rgba(0,0,0,0)', - bordercolor: 'rgba(0,0,0,0)' + bordercolor: 'rgba(0,0,0,0)', + orientation: 'h' as const, + x: 0.5, + y: -0.15, + xanchor: 'center' as const, + yanchor: 'top' as const }, margin: { l: 60, r: 60, t: 60, - b: 60, + b: 80, pad: 4 }, paper_bgcolor: 'rgba(0,0,0,0)', @@ -290,9 +295,8 @@ function PlatformLineChart({ } const config: Partial = { - displayModeBar: true, + displayModeBar: false, displaylogo: false, - modeBarButtonsToRemove: ['pan2d', 'lasso2d', 'select2d', 'autoScale2d', 'resetScale2d'] as any, responsive: true } diff --git a/src/Managing.WebApp/src/components/mollecules/Tabs/Tabs.tsx b/src/Managing.WebApp/src/components/mollecules/Tabs/Tabs.tsx index 47889b00..698480c5 100644 --- a/src/Managing.WebApp/src/components/mollecules/Tabs/Tabs.tsx +++ b/src/Managing.WebApp/src/components/mollecules/Tabs/Tabs.tsx @@ -27,40 +27,42 @@ const Tabs: FC = ({ orientation === 'vertical' ? className + ' vertical' : className } > -
- {tabs.map((tab: any) => ( - - ))} - {addButton && ( - - )} +
+
+ {tabs.map((tab: any) => ( + + ))} + {addButton && ( + + )} +
{ Search Filters
-
-
-