feat: credentials management

This commit is contained in:
Soumyadas15 2025-06-09 11:36:24 +05:30
parent 077dab8d8f
commit 0abd383c5c
1 changed files with 0 additions and 7 deletions

View File

@ -15,7 +15,6 @@ import {
SidebarGroup, SidebarGroup,
SidebarHeader, SidebarHeader,
SidebarMenuButton, SidebarMenuButton,
SidebarMenuItem,
SidebarRail, SidebarRail,
SidebarTrigger, SidebarTrigger,
useSidebar, useSidebar,
@ -53,7 +52,6 @@ export function SidebarLeft({
const customAgentsEnabled = flags.custom_agents; const customAgentsEnabled = flags.custom_agents;
const marketplaceEnabled = flags.agent_marketplace; const marketplaceEnabled = flags.agent_marketplace;
// Fetch user data
useEffect(() => { useEffect(() => {
const fetchUserData = async () => { const fetchUserData = async () => {
const supabase = createClient(); const supabase = createClient();
@ -74,16 +72,11 @@ export function SidebarLeft({
fetchUserData(); fetchUserData();
}, []); }, []);
// Handle keyboard shortcuts (CMD+B) for consistency
useEffect(() => { useEffect(() => {
const handleKeyDown = (event: KeyboardEvent) => { const handleKeyDown = (event: KeyboardEvent) => {
if ((event.metaKey || event.ctrlKey) && event.key === 'b') { if ((event.metaKey || event.ctrlKey) && event.key === 'b') {
event.preventDefault(); event.preventDefault();
// We'll handle this in the parent page component
// to ensure proper coordination between panels
setOpen(!state.startsWith('expanded')); setOpen(!state.startsWith('expanded'));
// Broadcast a custom event to notify other components
window.dispatchEvent( window.dispatchEvent(
new CustomEvent('sidebar-left-toggled', { new CustomEvent('sidebar-left-toggled', {
detail: { expanded: !state.startsWith('expanded') }, detail: { expanded: !state.startsWith('expanded') },