From bd6fa898190aa8513c6754b380d976886e4cf85e Mon Sep 17 00:00:00 2001 From: Dominik Oswald <6849456+d-oit@users.noreply.github.com> Date: Fri, 21 Aug 2026 14:54:37 +0000 Subject: [PATCH] feat(ux): add api key visibility toggles and fix label bindings --- web/app/components/Sidebar.tsx | 39 +++++++++++++++++++++++++++------- web/app/settings/page.tsx | 39 +++++++++++++++++++++++++--------- 2 files changed, 60 insertions(+), 18 deletions(-) diff --git a/web/app/components/Sidebar.tsx b/web/app/components/Sidebar.tsx index 59313bbb..ee8d144e 100644 --- a/web/app/components/Sidebar.tsx +++ b/web/app/components/Sidebar.tsx @@ -1,5 +1,6 @@ "use client"; +import { useState } from "react"; import Link from "next/link"; import ProfileCombobox from "@/app/components/ProfileCombobox"; import History, { HistoryEntry } from "@/app/components/History"; @@ -61,6 +62,12 @@ export default function Sidebar({ handleHistoryLoad, isCustomSelection, }: SidebarProps) { + const [visibleKeys, setVisibleKeys] = useState>({}); + + const toggleKeyVisibility = (key: string) => { + setVisibleKeys((prev) => ({ ...prev, [key]: !prev[key] })); + }; + return (