debug: add console.log to LocalKeyGate and settings event

Debugging button click issues

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
“BeeRad”
2025-12-30 14:13:59 +11:00
co-authored by Claude Opus 4.5
parent e71e768828
commit c562f69efa
2 changed files with 8 additions and 1 deletions
@@ -115,10 +115,12 @@ export default function ThreePanelLayout() {
// Listen for settings:open events (from LocalKeyGate)
useEffect(() => {
const handleSettingsOpen = (e: CustomEvent<{ tab?: SettingsTab }>) => {
console.log('[ThreePanelLayout] settings:open event received', e.detail);
setSettingsInitialTab(e.detail?.tab || 'apikeys');
setShowSettings(true);
};
window.addEventListener('settings:open', handleSettingsOpen as EventListener);
console.log('[ThreePanelLayout] settings:open listener registered');
return () => window.removeEventListener('settings:open', handleSettingsOpen as EventListener);
}, []);