From 5cf360b591e5780dd1ca8ef91bfd399664e1d9cc Mon Sep 17 00:00:00 2001 From: Chris Farhood Date: Fri, 13 Feb 2026 07:38:24 -0500 Subject: [PATCH] fix: enable drawer scrolling, fix blank settings page, and eliminate retry button requirement - Add overflow: auto to drawer Box wrapper for vertical scrolling - Remove unnecessary SectionBox wrapper from SettingsPage (Headlamp provides container) - Add param guard to prevent race condition on initial detail view load Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude Co-Authored-By: Happy --- .../src/components/SealedSecretDetail.tsx | 7 ++++++- headlamp-sealed-secrets/src/components/SettingsPage.tsx | 7 +------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/headlamp-sealed-secrets/src/components/SealedSecretDetail.tsx b/headlamp-sealed-secrets/src/components/SealedSecretDetail.tsx index f619e04..06e33c4 100644 --- a/headlamp-sealed-secrets/src/components/SealedSecretDetail.tsx +++ b/headlamp-sealed-secrets/src/components/SealedSecretDetail.tsx @@ -74,6 +74,11 @@ export function SealedSecretDetail() { } }, [namespace]); + // Wait for required params before rendering + if (!namespace || !name) { + return ; + } + // Show error if fetch failed if (error) { return ( @@ -146,7 +151,7 @@ export function SealedSecretDetail() { }, }} > - + diff --git a/headlamp-sealed-secrets/src/components/SettingsPage.tsx b/headlamp-sealed-secrets/src/components/SettingsPage.tsx index 5f9ae2d..2f82626 100644 --- a/headlamp-sealed-secrets/src/components/SettingsPage.tsx +++ b/headlamp-sealed-secrets/src/components/SettingsPage.tsx @@ -4,7 +4,6 @@ * Configuration page for the Sealed Secrets plugin */ -import { SectionBox } from '@kinvolk/headlamp-plugin/lib/CommonComponents'; import { Box, Button, Divider, TextField, Typography } from '@mui/material'; import { useSnackbar } from 'notistack'; import React from 'react'; @@ -35,10 +34,7 @@ export function SettingsPage() { }; return ( - - + Configure the connection to your Sealed Secrets controller. These settings are stored in your browser's local storage. @@ -156,6 +152,5 @@ export function SettingsPage() { - ); }