From 936070ca1ab46456a64c263f78495a61db219bda Mon Sep 17 00:00:00 2001 From: johndoe6345789 Date: Sun, 18 Jan 2026 00:10:13 +0000 Subject: [PATCH] Split DocumentationView components --- src/components/DocumentationView.tsx | 25 +-- .../DocumentationView/AIFeatureCard.tsx | 18 ++ .../DocumentationView/AgentFileItem.tsx | 32 +++ .../DocumentationView/AnimationItem.tsx | 8 + .../DocumentationView/CICDPlatformItem.tsx | 32 +++ .../DocumentationView/DocComponents.tsx | 182 ------------------ .../DocumentationView/FeatureItem.tsx | 13 ++ .../DocumentationView/IntegrationPoint.tsx | 20 ++ .../DocumentationView/PipelineStageCard.tsx | 24 +++ .../DocumentationView/ReadmeTab.tsx | 3 +- .../DocumentationView/RoadmapItem.tsx | 27 +++ .../DocumentationView/SassComponentItem.tsx | 13 ++ 12 files changed, 202 insertions(+), 195 deletions(-) create mode 100644 src/components/DocumentationView/AIFeatureCard.tsx create mode 100644 src/components/DocumentationView/AgentFileItem.tsx create mode 100644 src/components/DocumentationView/AnimationItem.tsx create mode 100644 src/components/DocumentationView/CICDPlatformItem.tsx delete mode 100644 src/components/DocumentationView/DocComponents.tsx create mode 100644 src/components/DocumentationView/FeatureItem.tsx create mode 100644 src/components/DocumentationView/IntegrationPoint.tsx create mode 100644 src/components/DocumentationView/PipelineStageCard.tsx create mode 100644 src/components/DocumentationView/RoadmapItem.tsx create mode 100644 src/components/DocumentationView/SassComponentItem.tsx diff --git a/src/components/DocumentationView.tsx b/src/components/DocumentationView.tsx index 4df23d4..d852710 100644 --- a/src/components/DocumentationView.tsx +++ b/src/components/DocumentationView.tsx @@ -23,19 +23,20 @@ import { Target, Lightbulb, MagnifyingGlass, - GitBranch + GitBranch, + FileCode, + Sparkle, + CheckCircle } from '@phosphor-icons/react' -import { - FeatureItem, - AIFeatureCard, - RoadmapItem, - AgentFileItem, - IntegrationPoint, - CICDPlatformItem, - PipelineStageCard, - SassComponentItem, - AnimationItem -} from './DocumentationView/DocComponents' +import { AIFeatureCard } from './DocumentationView/AIFeatureCard' +import { AgentFileItem } from './DocumentationView/AgentFileItem' +import { AnimationItem } from './DocumentationView/AnimationItem' +import { CICDPlatformItem } from './DocumentationView/CICDPlatformItem' +import { FeatureItem } from './DocumentationView/FeatureItem' +import { IntegrationPoint } from './DocumentationView/IntegrationPoint' +import { PipelineStageCard } from './DocumentationView/PipelineStageCard' +import { RoadmapItem } from './DocumentationView/RoadmapItem' +import { SassComponentItem } from './DocumentationView/SassComponentItem' export function DocumentationView() { const [activeTab, setActiveTab] = useState('readme') diff --git a/src/components/DocumentationView/AIFeatureCard.tsx b/src/components/DocumentationView/AIFeatureCard.tsx new file mode 100644 index 0000000..3cfc368 --- /dev/null +++ b/src/components/DocumentationView/AIFeatureCard.tsx @@ -0,0 +1,18 @@ +import { Card, CardContent } from '@/components/ui/card' +import { Sparkle } from '@phosphor-icons/react' + +export function AIFeatureCard({ title, description }: { title: string; description: string }) { + return ( + + +
+ +
+

{title}

+

{description}

+
+
+
+
+ ) +} diff --git a/src/components/DocumentationView/AgentFileItem.tsx b/src/components/DocumentationView/AgentFileItem.tsx new file mode 100644 index 0000000..66d98da --- /dev/null +++ b/src/components/DocumentationView/AgentFileItem.tsx @@ -0,0 +1,32 @@ +import { FileCode, CheckCircle } from '@phosphor-icons/react' + +export function AgentFileItem({ filename, path, description, features }: { + filename: string + path: string + description: string + features: string[] +}) { + return ( +
+
+
+ + {filename} +
+

{path}

+

{description}

+
+
+

Key Features:

+
    + {features.map((feature, idx) => ( +
  • + + {feature} +
  • + ))} +
+
+
+ ) +} diff --git a/src/components/DocumentationView/AnimationItem.tsx b/src/components/DocumentationView/AnimationItem.tsx new file mode 100644 index 0000000..b19077d --- /dev/null +++ b/src/components/DocumentationView/AnimationItem.tsx @@ -0,0 +1,8 @@ +export function AnimationItem({ name, description }: { name: string; description: string }) { + return ( +
+ {name} +

{description}

+
+ ) +} diff --git a/src/components/DocumentationView/CICDPlatformItem.tsx b/src/components/DocumentationView/CICDPlatformItem.tsx new file mode 100644 index 0000000..b19839a --- /dev/null +++ b/src/components/DocumentationView/CICDPlatformItem.tsx @@ -0,0 +1,32 @@ +import { CheckCircle, GitBranch } from '@phosphor-icons/react' + +export function CICDPlatformItem({ name, file, description, features }: { + name: string + file: string + description: string + features: string[] +}) { + return ( +
+
+
+ +

{name}

+
+ {file} +

{description}

+
+
+

Key Features:

+
    + {features.map((feature, idx) => ( +
  • + + {feature} +
  • + ))} +
+
+
+ ) +} diff --git a/src/components/DocumentationView/DocComponents.tsx b/src/components/DocumentationView/DocComponents.tsx deleted file mode 100644 index b6225ce..0000000 --- a/src/components/DocumentationView/DocComponents.tsx +++ /dev/null @@ -1,182 +0,0 @@ -import { Card, CardContent } from '@/components/ui/card' -import { Badge } from '@/components/ui/badge' -import { FileCode, CheckCircle, Sparkle, GitBranch } from '@phosphor-icons/react' - -export function FeatureItem({ icon, title, description }: { icon: React.ReactNode; title: string; description: string }) { - return ( -
-
{icon}
-
-

{title}

-

{description}

-
-
- ) -} - -export function AIFeatureCard({ title, description }: { title: string; description: string }) { - return ( - - -
- -
-

{title}

-

{description}

-
-
-
-
- ) -} - -export function RoadmapItem({ status, title, description, version }: { - status: 'completed' | 'planned' - title: string - description: string - version: string -}) { - return ( - - -
-
-
-

{title}

- - {version} - -
-

{description}

-
-
-
-
- ) -} - -export function AgentFileItem({ filename, path, description, features }: { - filename: string - path: string - description: string - features: string[] -}) { - return ( -
-
-
- - {filename} -
-

{path}

-

{description}

-
-
-

Key Features:

-
    - {features.map((feature, idx) => ( -
  • - - {feature} -
  • - ))} -
-
-
- ) -} - -export function IntegrationPoint({ component, capabilities }: { component: string; capabilities: string[] }) { - return ( -
-

- - {component} -

- -
- ) -} - -export function CICDPlatformItem({ name, file, description, features }: { - name: string - file: string - description: string - features: string[] -}) { - return ( -
-
-
- -

{name}

-
- {file} -

{description}

-
-
-

Key Features:

-
    - {features.map((feature, idx) => ( -
  • - - {feature} -
  • - ))} -
-
-
- ) -} - -export function PipelineStageCard({ stage, description, duration }: { - stage: string - description: string - duration: string -}) { - return ( - - -
-
-

{stage}

-

{description}

-
- - {duration} - -
-
-
- ) -} - -export function SassComponentItem({ name, classes, description }: { name: string; classes: string[]; description: string }) { - return ( -
-

{name}

-

{description}

-
- {classes.map((cls, idx) => ( - {cls} - ))} -
-
- ) -} - -export function AnimationItem({ name, description }: { name: string; description: string }) { - return ( -
- {name} -

{description}

-
- ) -} diff --git a/src/components/DocumentationView/FeatureItem.tsx b/src/components/DocumentationView/FeatureItem.tsx new file mode 100644 index 0000000..74368fa --- /dev/null +++ b/src/components/DocumentationView/FeatureItem.tsx @@ -0,0 +1,13 @@ +import type { ReactNode } from 'react' + +export function FeatureItem({ icon, title, description }: { icon: ReactNode; title: string; description: string }) { + return ( +
+
{icon}
+
+

{title}

+

{description}

+
+
+ ) +} diff --git a/src/components/DocumentationView/IntegrationPoint.tsx b/src/components/DocumentationView/IntegrationPoint.tsx new file mode 100644 index 0000000..490822c --- /dev/null +++ b/src/components/DocumentationView/IntegrationPoint.tsx @@ -0,0 +1,20 @@ +import { Sparkle } from '@phosphor-icons/react' + +export function IntegrationPoint({ component, capabilities }: { component: string; capabilities: string[] }) { + return ( +
+

+ + {component} +

+ +
+ ) +} diff --git a/src/components/DocumentationView/PipelineStageCard.tsx b/src/components/DocumentationView/PipelineStageCard.tsx new file mode 100644 index 0000000..434b630 --- /dev/null +++ b/src/components/DocumentationView/PipelineStageCard.tsx @@ -0,0 +1,24 @@ +import { Card, CardContent } from '@/components/ui/card' +import { Badge } from '@/components/ui/badge' + +export function PipelineStageCard({ stage, description, duration }: { + stage: string + description: string + duration: string +}) { + return ( + + +
+
+

{stage}

+

{description}

+
+ + {duration} + +
+
+
+ ) +} diff --git a/src/components/DocumentationView/ReadmeTab.tsx b/src/components/DocumentationView/ReadmeTab.tsx index 9a53ce4..7d8ce82 100644 --- a/src/components/DocumentationView/ReadmeTab.tsx +++ b/src/components/DocumentationView/ReadmeTab.tsx @@ -1,7 +1,8 @@ import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card' import { Separator } from '@/components/ui/separator' import { Code, Database, Tree, PaintBrush, Flask, Play, Cube, Wrench, Gear, Rocket, Lightbulb, CheckCircle } from '@phosphor-icons/react' -import { FeatureItem, AIFeatureCard } from './DocComponents' +import { AIFeatureCard } from './AIFeatureCard' +import { FeatureItem } from './FeatureItem' import readmeData from '@/data/documentation/readme-data.json' const Sparkle = ({ size }: { size: number }) => diff --git a/src/components/DocumentationView/RoadmapItem.tsx b/src/components/DocumentationView/RoadmapItem.tsx new file mode 100644 index 0000000..b163df6 --- /dev/null +++ b/src/components/DocumentationView/RoadmapItem.tsx @@ -0,0 +1,27 @@ +import { Card, CardContent } from '@/components/ui/card' +import { Badge } from '@/components/ui/badge' + +export function RoadmapItem({ status, title, description, version }: { + status: 'completed' | 'planned' + title: string + description: string + version: string +}) { + return ( + + +
+
+
+

{title}

+ + {version} + +
+

{description}

+
+
+
+
+ ) +} diff --git a/src/components/DocumentationView/SassComponentItem.tsx b/src/components/DocumentationView/SassComponentItem.tsx new file mode 100644 index 0000000..a34905b --- /dev/null +++ b/src/components/DocumentationView/SassComponentItem.tsx @@ -0,0 +1,13 @@ +export function SassComponentItem({ name, classes, description }: { name: string; classes: string[]; description: string }) { + return ( +
+

{name}

+

{description}

+
+ {classes.map((cls, idx) => ( + {cls} + ))} +
+
+ ) +}