Skip to content

Commit 8490c5f

Browse files
committed
fix: export AppSidebar
1 parent ce77918 commit 8490c5f

8 files changed

Lines changed: 18 additions & 282 deletions

File tree

per-item-favorites-demo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useState } from "react"
2-
import { Sidebar } from "./src/components/DigitalColleagues/sidebar"
2+
import { Sidebar } from "./src/components/AdvancedComponents/AppSidebar"
33
import { Home, Users, Layers, Bot, FileText, TrendingUp, Wrench, DollarSign, Scale, Package, Zap } from "lucide-react"
44

55
// Example demonstrating per-item maxItems functionality

sidebar-favorites-demo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useState } from "react"
2-
import { Sidebar } from "./src/components/DigitalColleagues/sidebar"
2+
import { Sidebar } from "./src/components/AdvancedComponents/AppSidebar"
33
import { Home, Users, Layers, Bot, FileText, TrendingUp, Wrench, DollarSign, Scale, Package, Zap } from "lucide-react"
44

55
// Example of using the enhanced Sidebar component with favorites

src/components/DigitalColleagues/sidebar.stories.tsx renamed to src/components/AdvancedComponents/AppSidebar.stories.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import type { Meta, StoryObj } from "@storybook/react"
22
import { action } from "@storybook/addon-actions"
3-
import { Sidebar } from "./sidebar"
4-
import { mockSidebarItems } from "./test-data"
3+
import { AppSidebar } from "./AppSidebar"
4+
import { mockSidebarItems } from "../DigitalColleagues/test-data"
55

6-
const meta: Meta<typeof Sidebar> = {
7-
title: "Digital Colleagues/Sidebar",
8-
component: Sidebar,
6+
const meta: Meta<typeof AppSidebar> = {
7+
title: "Digital Colleagues/AppSidebar",
8+
component: AppSidebar,
99
parameters: {
1010
layout: "fullscreen",
1111
},
@@ -23,7 +23,7 @@ const meta: Meta<typeof Sidebar> = {
2323
}
2424

2525
export default meta
26-
type Story = StoryObj<typeof Sidebar>
26+
type Story = StoryObj<typeof AppSidebar>
2727

2828
export const Default: Story = {
2929
args: {

src/components/DigitalColleagues/sidebar.tsx renamed to src/components/AdvancedComponents/AppSidebar.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogTrigger } from
1212
import { Checkbox } from "@/components/ui/checkbox"
1313
import { BusinessUnitSwitcher } from "../Projects/business-unit-switcher"
1414
import { cn } from "@/lib/utils"
15-
import { businessUnits } from "./test-data"
16-
import type { BusinessUnit, SidebarItem } from "./types"
15+
import { businessUnits } from "../DigitalColleagues/test-data"
16+
import type { BusinessUnit, SidebarItem } from "../DigitalColleagues/types"
1717
import { useLocalStorage } from "@/hooks/use-local-storage"
1818

1919
interface SidebarProps {
@@ -30,7 +30,7 @@ interface SidebarProps {
3030
tagline?: string
3131
}
3232

33-
export function Sidebar({
33+
export function AppSidebar({
3434
items,
3535
isOpen,
3636
isMobile = false,
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
export * from './navigation-tabs';
22
export * from './switch';
33
export * from './CommentSection';
4-
export * from './EditableField';
4+
export * from './EditableField';
5+
export * from './AppSidebar';
6+
export * from './app-header';
7+
export * from './notifications-panel';

src/components/AdvancedComponents/sidebar.stories.tsx

Lines changed: 0 additions & 51 deletions
This file was deleted.

src/components/AdvancedComponents/sidebar.tsx

Lines changed: 0 additions & 216 deletions
This file was deleted.

src/components/DigitalColleagues/DigitalColleageusLayout.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type React from "react"
55
import { useState } from "react"
66
import { motion } from "framer-motion"
77
import { cn } from "@/lib/utils"
8-
import { Sidebar } from "./sidebar"
8+
import { AppSidebar } from "../AdvancedComponents/AppSidebar"
99
import { AppHeader } from "../AdvancedComponents/app-header"
1010
import type { SidebarItem, BusinessUnit } from "./types"
1111
import type { Notification } from "../AdvancedComponents/notifications-panel"
@@ -101,7 +101,7 @@ export function DigitalColleageusLayout({
101101

102102
{/* Sidebar - Mobile */}
103103
<div className="md:hidden">
104-
<Sidebar
104+
<AppSidebar
105105
items={sidebarItems}
106106
isOpen={mobileMenuOpen}
107107
isMobile={true}
@@ -117,7 +117,7 @@ export function DigitalColleageusLayout({
117117

118118
{/* Sidebar - Desktop */}
119119
<div className="hidden md:block">
120-
<Sidebar
120+
<AppSidebar
121121
items={sidebarItems}
122122
isOpen={sidebarOpen}
123123
isMobile={false}

0 commit comments

Comments
 (0)