Fix DockerContainersTable to use Checkmate theme palette colors

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.
This commit is contained in:
Claude committed 2025-11-15 22:48:45 +00:00
1 parent fd9d265d23
commit 8f3edac281
1 file changed
+12 -11
@@ -55,7 +55,7 @@ const DockerContainersTable = ({ containers = [], errors = [], captureVersion })
</Typography> </Typography>
<Typography <Typography
variant="caption" variant="caption"
color="textSecondary" color={theme.palette.primary.contrastTextTertiary}
> >
{row.container_id ? row.container_id.substring(0, 12) : "N/A"} {row.container_id ? row.container_id.substring(0, 12) : "N/A"}
</Typography> </Typography>
@@ -79,13 +79,13 @@ const DockerContainersTable = ({ containers = [], errors = [], captureVersion })
<Box> <Box>
<Typography <Typography
variant="body2" variant="body2"
color={row.health?.healthy ? "success.main" : "error.main"} color={row.health?.healthy ? theme.palette.success.main : theme.palette.error.main}
> >
{row.health?.healthy ? "Healthy" : "Unhealthy"} {row.health?.healthy ? "Healthy" : "Unhealthy"}
</Typography> </Typography>
<Typography <Typography
variant="caption" variant="caption"
color="textSecondary" color={theme.palette.primary.contrastTextTertiary}
> >
{row.health?.source === "container_health_check" ? "HEALTHCHECK" : "State-based"} {row.health?.source === "container_health_check" ? "HEALTHCHECK" : "State-based"}
</Typography> </Typography>
@@ -126,7 +126,7 @@ const DockerContainersTable = ({ containers = [], errors = [], captureVersion })
) : ( ) : (
<Typography <Typography
variant="caption" variant="caption"
color="textSecondary" color={theme.palette.primary.contrastTextTertiary}
> >
None None
</Typography> </Typography>
@@ -157,14 +157,15 @@ const DockerContainersTable = ({ containers = [], errors = [], captureVersion })
sx={{ sx={{
padding: theme.spacing(12), padding: theme.spacing(12),
textAlign: "center", 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), borderRadius: theme.spacing(2),
backgroundColor: dockerClientError ? theme.palette.error.lighter : undefined,
}} }}
> >
<Typography <Typography
variant="body1" variant="body1"
color={dockerClientError ? "error.main" : "textSecondary"} color={dockerClientError ? theme.palette.error.main : theme.palette.primary.contrastTextTertiary}
fontWeight={600} fontWeight={600}
mb={errorDetails ? theme.spacing(2) : 0} mb={errorDetails ? theme.spacing(2) : 0}
> >
@@ -173,7 +174,7 @@ const DockerContainersTable = ({ containers = [], errors = [], captureVersion })
{errorDetails && ( {errorDetails && (
<Typography <Typography
variant="body2" variant="body2"
color="textSecondary" color={theme.palette.primary.contrastTextSecondary}
> >
{errorDetails} {errorDetails}
</Typography> </Typography>
@@ -181,7 +182,7 @@ const DockerContainersTable = ({ containers = [], errors = [], captureVersion })
{captureVersion && ( {captureVersion && (
<Typography <Typography
variant="caption" variant="caption"
color="textSecondary" color={theme.palette.primary.contrastTextTertiary}
sx={{ display: "block", marginTop: theme.spacing(4) }} sx={{ display: "block", marginTop: theme.spacing(4) }}
> >
Capture version: {captureVersion} Capture version: {captureVersion}
@@ -203,7 +204,7 @@ const DockerContainersTable = ({ containers = [], errors = [], captureVersion })
{errors && errors.length > 0 && ( {errors && errors.length > 0 && (
<Typography <Typography
variant="caption" variant="caption"
color="warning.main" color={theme.palette.warning.main}
sx={{ display: "block", marginTop: theme.spacing(1) }} sx={{ display: "block", marginTop: theme.spacing(1) }}
> >
⚠ {errors.length} error(s) encountered while fetching container data ⚠ {errors.length} error(s) encountered while fetching container data
@@ -212,7 +213,7 @@ const DockerContainersTable = ({ containers = [], errors = [], captureVersion })
{captureVersion && ( {captureVersion && (
<Typography <Typography
variant="caption" variant="caption"
color="textSecondary" color={theme.palette.primary.contrastTextTertiary}
sx={{ display: "block", marginTop: theme.spacing(1) }} sx={{ display: "block", marginTop: theme.spacing(1) }}
> >
Capture version: {captureVersion} Capture version: {captureVersion}