diff --git a/apps/frontend/src/components/connection/Connection.tsx b/apps/frontend/src/components/connection/Connection.tsx index b9b1bacb..ad2691c5 100644 --- a/apps/frontend/src/components/connection/Connection.tsx +++ b/apps/frontend/src/components/connection/Connection.tsx @@ -60,7 +60,7 @@ export function Connection() { {/* top header */}
- Connections + Connections {hasConnectionsWithHistory && (
-
+ Key Elements -
+
{keyType === KEY_TYPES.STRING ? ( @@ -355,14 +358,16 @@ export default function AddNewKey({ onClose }: AddNewKeyProps) { ) : keyType === KEY_TYPES.JSON ? ( ) : ( -
Select a key type
+ + Select a key type + )}
{error && ( -
+ {error} -
+ )}
diff --git a/apps/frontend/src/components/key-browser/key-details/key-details-hash.tsx b/apps/frontend/src/components/key-browser/key-details/key-details-hash.tsx index cb4fc5fa..fd5a7e1f 100644 --- a/apps/frontend/src/components/key-browser/key-details/key-details-hash.tsx +++ b/apps/frontend/src/components/key-browser/key-details/key-details-hash.tsx @@ -5,6 +5,7 @@ import { Button } from "../../ui/button" import { Input } from "../../ui/input" import { EditActionButtons } from "../../ui/edit-action-buttons" import DeleteModal from "../../ui/delete-modal" +import { Typography } from "../../ui/typography" import { useAppDispatch } from "@/hooks/hooks" import { updateKeyRequested } from "@/state/valkey-features/keys/keyBrowserSlice" import { cn } from "@/lib/utils" @@ -145,8 +146,8 @@ export default function KeyDetailsHash(
-
Key
-
Value
+ Key + Value
!deletedHashFields.has(element.key)) .map((element: ElementInfo, index: number) => ( -
-
{element.key}
+
+ {element.key}
{isEditable ? (
@@ -187,13 +188,13 @@ export default function KeyDetailsHash( )}
) : ( - element.value + {element.value} )}
))} {isEditable && newFields.map((newField) => ( -
+
handleNewFieldKeyChange(newField.tempId, e.target.value)} 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 a2d05d03..fb23246f 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 @@ -4,6 +4,7 @@ import { KEY_TYPES } from "@common/src/constants" import { useSelector } from "react-redux" import { EditActionButtons } from "../../ui/edit-action-buttons" import { Textarea } from "../../ui/textarea" +import { Typography } from "../../ui/typography" import { useAppDispatch } from "@/hooks/hooks" import { updateKeyRequested } from "@/state/valkey-features/keys/keyBrowserSlice" import { selectJsonModuleAvailable } from "@/state/valkey-features/connection/connectionSelectors" @@ -78,8 +79,8 @@ export default function KeyDetailsJson( - -
- JSON Value + + JSON Value )}
+ {isEditable ? (