Skip to content

Commit 13c72f6

Browse files
authored
Merge pull request #58 from cortex-reply/fix/project
fix: applies fix for storybook build
2 parents d4a2ed2 + e4e70cc commit 13c72f6

6 files changed

Lines changed: 16 additions & 16 deletions

File tree

src/components/Foundary/FoundaryLayout.stories.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import type { Meta, StoryObj } from '@storybook/react'
2-
import { DigitalColleageusLayout } from './DigitalColleageusLayout'
2+
import { FoundaryLayout } from './foundary-layout'
33
import { mockSidebarItems, mockNotifications } from './test-data'
44
import { businessUnits } from './test-data'
55
import { action } from '@storybook/addon-actions'
66

7-
const meta: Meta<typeof DigitalColleageusLayout> = {
8-
title: 'Foundary/DigitalColleageusLayout',
9-
component: DigitalColleageusLayout,
7+
const meta: Meta<typeof FoundaryLayout> = {
8+
title: 'Foundary/FoundaryLayout',
9+
component: FoundaryLayout,
1010
parameters: {
1111
layout: 'fullscreen',
1212
},
@@ -18,7 +18,7 @@ const meta: Meta<typeof DigitalColleageusLayout> = {
1818
}
1919

2020
export default meta
21-
type Story = StoryObj<typeof DigitalColleageusLayout>
21+
type Story = StoryObj<typeof FoundaryLayout>
2222

2323
export const Default: Story = {
2424
args: {

src/components/Foundary/Pages/dashboardpage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { useState } from 'react'
44
import { motion, AnimatePresence } from 'motion/react'
55
import { Bot } from 'lucide-react'
6-
import { DigitalColleageusLayout } from '../FoundaryLayout'
6+
import { DigitalColleageusLayout } from '../foundary-layout'
77
import { DashboardHero } from '../../Heros/DashboardHero'
88
import { AppCard } from '../../.archive/app-card'
99
import { FileList } from '../../Projects/file-list'

src/components/Foundary/foundary-clone.stories.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import React from 'react'
2-
import { DigitalColleagueClone } from './digital-colleague-clone'
2+
import { DigitalColleagueClone } from './foundary-clone'
33
import { action } from '@storybook/addon-actions'
44
import type { Meta, StoryObj } from '@storybook/react'
55
import type { DigitalColleague } from './types'
66

77
// Mock digital colleagues data
88
const mockDigitalColleagues: DigitalColleague[] = [
99
{
10-
id: 'digital-template-1',
10+
id: 1,
1111
type: 'digital',
1212
name: 'Content Creator Assistant',
1313
status: 'active',
@@ -31,7 +31,7 @@ const mockDigitalColleagues: DigitalColleague[] = [
3131
isActive: true,
3232
},
3333
{
34-
id: 'digital-template-2',
34+
id: 2,
3535
type: 'digital',
3636
name: 'Code Review Bot',
3737
status: 'active',
@@ -55,7 +55,7 @@ const mockDigitalColleagues: DigitalColleague[] = [
5555
isActive: true,
5656
},
5757
{
58-
id: 'digital-template-3',
58+
id: 3,
5959
type: 'digital',
6060
name: 'Customer Support Agent',
6161
status: 'active',
@@ -94,7 +94,7 @@ const mockDigitalColleagues: DigitalColleague[] = [
9494
isActive: true,
9595
},
9696
{
97-
id: 'digital-template-4',
97+
id: 4,
9898
type: 'digital',
9999
name: 'Data Analyst',
100100
status: 'inactive',

src/components/Foundary/FoundaryLayout.tsx renamed to src/components/Foundary/foundary-layout.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type { SidebarItem, BusinessUnit } from './types'
1010
import type { Notification } from '../AdvancedComponents/notifications-panel'
1111
import { User } from 'lucide-react'
1212

13-
interface DigitalColleageusLayoutProps {
13+
interface FoundaryLayoutProps {
1414
sidebarItems: SidebarItem[]
1515
children: React.ReactNode
1616
title?: string
@@ -45,7 +45,7 @@ const businessUnits: BusinessUnit[] = [
4545
},
4646
]
4747

48-
export function DigitalColleageusLayout({
48+
export function FoundaryLayout({
4949
sidebarItems,
5050
children,
5151
title = 'Digital Colleagues',
@@ -66,7 +66,7 @@ export function DigitalColleageusLayout({
6666
appName = 'Nuvia',
6767
tagline = 'Collaboration Platform',
6868
sidebarInitiallyClosed = false,
69-
}: DigitalColleageusLayoutProps) {
69+
}: FoundaryLayoutProps) {
7070
const [sidebarOpen, setSidebarOpen] = useState(!sidebarInitiallyClosed)
7171
const [mobileMenuOpen, setMobileMenuOpen] = useState(false)
7272
const [localBusinessUnit, setLocalBusinessUnit] = useState(currentBusinessUnit)

src/components/Foundary/foundary-options.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react'
2-
import { DigitalColleagueOptions } from './digital-colleague-options'
2+
import { DigitalColleagueOptions } from './foundary-options'
33
import { action } from '@storybook/addon-actions'
44
import type { Meta, StoryObj } from '@storybook/react'
55

src/components/Foundary/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Main Components
22
export { AppSidebarLeft } from './AppSidebarLeft'
33
export { DashboardHeader } from './DashboardHeader'
4-
export { DigitalColleageusLayout } from './FoundaryLayout'
4+
export { DigitalColleageusLayout } from './foundary-layout'
55
export { default as MainPage } from './MainPage'
66
export { ManagementSidebar } from './ManagementSidebar'
77
export { SearchableSelect } from './SearchableSelect'

0 commit comments

Comments
 (0)