mirror of https://github.com/kortix-ai/suna.git
feat: credentials management
This commit is contained in:
parent
077dab8d8f
commit
0abd383c5c
|
@ -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') },
|
||||||
|
|
Loading…
Reference in New Issue