diff --git a/autogpt_platform/frontend/src/components/layout/Navbar/components/AgentActivityDropdown/components/ActivityDropdown/ActivityDropdown.stories.tsx b/autogpt_platform/frontend/src/components/layout/Navbar/components/AgentActivityDropdown/components/ActivityDropdown/ActivityDropdown.stories.tsx deleted file mode 100644 index 9f96591b0c..0000000000 --- a/autogpt_platform/frontend/src/components/layout/Navbar/components/AgentActivityDropdown/components/ActivityDropdown/ActivityDropdown.stories.tsx +++ /dev/null @@ -1,73 +0,0 @@ -import type { Meta, StoryObj } from "@storybook/react"; -import { ActivityDropdown } from "./ActivityDropdown"; - -const mockExecutions = [ - { - type: "running" as const, - agent_name: "Web Scraper Agent", - agent_description: "Scrapes data from websites", - execution_id: "exec-1", - started_at: new Date().toISOString(), - stats: { nodes_total: 10, nodes_completed: 5, nodes_failed: 0 }, - }, - { - type: "completed" as const, - agent_name: "Data Analyzer", - agent_description: "Analyzes datasets", - execution_id: "exec-2", - started_at: new Date(Date.now() - 3600000).toISOString(), - ended_at: new Date().toISOString(), - stats: { nodes_total: 8, nodes_completed: 8, nodes_failed: 0 }, - }, - { - type: "failed" as const, - agent_name: "Email Sender", - agent_description: "Sends automated emails", - execution_id: "exec-3", - started_at: new Date(Date.now() - 7200000).toISOString(), - ended_at: new Date(Date.now() - 3600000).toISOString(), - stats: { nodes_total: 5, nodes_completed: 3, nodes_failed: 2 }, - }, -]; - -const meta: Meta = { - title: "Layout/Navbar/ActivityDropdown", - component: ActivityDropdown, - parameters: { - layout: "centered", - }, - decorators: [ - (Story) => ( -
- -
- ), - ], -}; - -export default meta; -type Story = StoryObj; - -export const WithActivity: Story = { - args: { - activeExecutions: [mockExecutions[0]] as any, - recentCompletions: [mockExecutions[1]] as any, - recentFailures: [mockExecutions[2]] as any, - }, -}; - -export const Empty: Story = { - args: { - activeExecutions: [], - recentCompletions: [], - recentFailures: [], - }, -}; - -export const ManyItems: Story = { - args: { - activeExecutions: Array(5).fill(mockExecutions[0]).map((e, i) => ({ ...e, execution_id: `running-${i}` })) as any, - recentCompletions: Array(10).fill(mockExecutions[1]).map((e, i) => ({ ...e, execution_id: `completed-${i}` })) as any, - recentFailures: Array(3).fill(mockExecutions[2]).map((e, i) => ({ ...e, execution_id: `failed-${i}` })) as any, - }, -};