From 8f3edac2814b793546d57e1892a86dd847262b43 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 15 Nov 2025 22:48:45 +0000 Subject: [PATCH] Fix DockerContainersTable to use Checkmate theme palette colors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace MUI shorthand color strings with proper Checkmate theme palette paths: - color="textSecondary" → theme.palette.primary.contrastTextTertiary - color="error.main" → theme.palette.error.main - color="warning.main" → theme.palette.warning.main - color="success.main" → theme.palette.success.main This ensures consistent theming across the application and follows Checkmate component standards. --- .../DockerContainersTable/index.jsx | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/client/src/Pages/v1/Infrastructure/Details/Components/DockerContainersTable/index.jsx b/client/src/Pages/v1/Infrastructure/Details/Components/DockerContainersTable/index.jsx index 53ecaf746..cbb4d09e0 100644 --- a/client/src/Pages/v1/Infrastructure/Details/Components/DockerContainersTable/index.jsx +++ b/client/src/Pages/v1/Infrastructure/Details/Components/DockerContainersTable/index.jsx @@ -55,7 +55,7 @@ const DockerContainersTable = ({ containers = [], errors = [], captureVersion }) {row.container_id ? row.container_id.substring(0, 12) : "N/A"} @@ -79,13 +79,13 @@ const DockerContainersTable = ({ containers = [], errors = [], captureVersion }) {row.health?.healthy ? "Healthy" : "Unhealthy"} {row.health?.source === "container_health_check" ? "HEALTHCHECK" : "State-based"} @@ -126,7 +126,7 @@ const DockerContainersTable = ({ containers = [], errors = [], captureVersion }) ) : ( None @@ -157,14 +157,15 @@ const DockerContainersTable = ({ containers = [], errors = [], captureVersion }) sx={{ padding: theme.spacing(12), textAlign: "center", - border: `1px solid ${theme.palette.divider}`, + border: dockerClientError + ? `2px solid ${theme.palette.error.main}` + : `1px solid ${theme.palette.divider}`, borderRadius: theme.spacing(2), - backgroundColor: dockerClientError ? theme.palette.error.lighter : undefined, }} > @@ -173,7 +174,7 @@ const DockerContainersTable = ({ containers = [], errors = [], captureVersion }) {errorDetails && ( {errorDetails} @@ -181,7 +182,7 @@ const DockerContainersTable = ({ containers = [], errors = [], captureVersion }) {captureVersion && ( Capture version: {captureVersion} @@ -203,7 +204,7 @@ const DockerContainersTable = ({ containers = [], errors = [], captureVersion }) {errors && errors.length > 0 && ( ⚠ {errors.length} error(s) encountered while fetching container data @@ -212,7 +213,7 @@ const DockerContainersTable = ({ containers = [], errors = [], captureVersion }) {captureVersion && ( Capture version: {captureVersion}