From 7fdb68368f967fb8344f613f0f102aa6efea6b50 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 14 Aug 2026 12:37:46 +0000 Subject: [PATCH] feat(ux): add API key visibility toggles and improve keyboard focus accessibility Co-authored-by: d-oit <6849456+d-oit@users.noreply.github.com> --- web/app/components/Sidebar.tsx | 39 +++++++++++++++++++++++++++------- web/app/settings/page.tsx | 39 +++++++++++++++++++++++++--------- web/next-env.d.ts | 1 + web/package-lock.json | 4 ++-- web/tsconfig.json | 2 +- 5 files changed, 64 insertions(+), 21 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 (