diff --git a/apps/frontend/src/components/cluster-topology/cluster-node.tsx b/apps/frontend/src/components/cluster-topology/cluster-node.tsx index bb933c0c..7f07a6ff 100644 --- a/apps/frontend/src/components/cluster-topology/cluster-node.tsx +++ b/apps/frontend/src/components/cluster-topology/cluster-node.tsx @@ -6,6 +6,7 @@ import { TooltipProvider } from "@radix-ui/react-tooltip" import { Badge } from "../ui/badge" import { CustomTooltip } from "../ui/tooltip" import { Button } from "../ui/button" +import { Typography } from "../ui/typography" import type { RootState } from "@/store.ts" import type { PrimaryNode, ParsedNodeInfo } from "@/state/valkey-features/cluster/clusterSlice" import { connectPending, type ConnectionDetails } from "@/state/valkey-features/connection/connectionSlice.ts" @@ -62,11 +63,11 @@ export function ClusterNode({
- {nodeData?.used_memory_human ?? "N/A"} + {nodeData?.used_memory_human ?? "N/A"}
- {nodeData?.connected_clients ?? "N/A"} + {nodeData?.connected_clients ?? "N/A"}
) @@ -81,12 +82,12 @@ export function ClusterNode({
- {primaryData?.server_name || primaryKey} + {primaryData?.server_name || primaryKey} PRIMARY
- {`${primary.host}:${primary.port}`} + {`${primary.host}:${primary.port}`}
@@ -107,7 +108,7 @@ export function ClusterNode({ return (
- {replicaKey} + {replicaKey}
) })} diff --git a/apps/frontend/src/components/connection/ConnectionEntry.tsx b/apps/frontend/src/components/connection/ConnectionEntry.tsx index b751389f..16f2f56f 100644 --- a/apps/frontend/src/components/connection/ConnectionEntry.tsx +++ b/apps/frontend/src/components/connection/ConnectionEntry.tsx @@ -119,7 +119,7 @@ export const ConnectionEntry = ({ {connection.connectionDetails.alias && ( - + ({label}) )}
diff --git a/apps/frontend/src/components/connection/__tests__/text-truncation.test.tsx b/apps/frontend/src/components/connection/__tests__/text-truncation.test.tsx index 4013d69f..c4c0562a 100644 --- a/apps/frontend/src/components/connection/__tests__/text-truncation.test.tsx +++ b/apps/frontend/src/components/connection/__tests__/text-truncation.test.tsx @@ -100,10 +100,10 @@ describe("Text Truncation Improvements", () => { , ) - // Check for alias in Typography component with truncate and title - const aliasElements = container.querySelectorAll("p.truncate[title]") - const hasAliasElement = Array.from(aliasElements).some((p) => - p.textContent?.includes("(") && p.textContent?.includes(")"), + // Check for alias in Typography component with code variant (renders as element) with title + const aliasElements = container.querySelectorAll("code[title]") + const hasAliasElement = Array.from(aliasElements).some((code) => + code.textContent?.includes("(") && code.textContent?.includes(")"), ) expect(hasAliasElement).toBe(true) }) diff --git a/apps/frontend/src/components/key-browser/key-details/key-details-json.tsx b/apps/frontend/src/components/key-browser/key-details/key-details-json.tsx index fb23246f..a22a8dc6 100644 --- a/apps/frontend/src/components/key-browser/key-details/key-details-json.tsx +++ b/apps/frontend/src/components/key-browser/key-details/key-details-json.tsx @@ -98,11 +98,11 @@ export default function KeyDetailsJson( {!jsonModuleAvailable && ( -
+
- + JSON module is not loaded on this Valkey instance. Editing is disabled. - +
diff --git a/apps/frontend/src/components/key-browser/key-types.tsx b/apps/frontend/src/components/key-browser/key-types.tsx index 97660d78..e22160f9 100644 --- a/apps/frontend/src/components/key-browser/key-types.tsx +++ b/apps/frontend/src/components/key-browser/key-types.tsx @@ -3,6 +3,7 @@ import { Button } from "../ui/button" import { Input } from "../ui/input" import { Label } from "../ui/label" import { Textarea } from "../ui/textarea" +import { Typography } from "../ui/typography" interface StringFieldsProps { value: string @@ -309,17 +310,17 @@ export function JsonFields({ value, setValue, jsonModuleAvailable = false }: Jso {/* JSON Module Indicator */} -
- {jsonModuleAvailable ? : } - + {jsonModuleAvailable ? : } + {jsonModuleAvailable ? "JSON module is available" : "JSON module is not loaded on this Valkey instance"} - +