Skip to content

Commit dd23c89

Browse files
committed
fix: update schema version and improve code formatting in components
1 parent 8b7f3e8 commit dd23c89

File tree

3 files changed

+29
-18
lines changed

3 files changed

+29
-18
lines changed

docs/biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.4.1/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.4.2/schema.json",
33
"vcs": {
44
"enabled": true,
55
"clientKind": "git",

docs/src/components/landing/flow-primitives.tsx

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,15 @@ import { cn } from "@/lib/cn";
77
interface FlowNodeProps {
88
label: string;
99
sublabel?: string;
10-
color?: "teal" | "amber" | "green" | "red" | "blue" | "gray" | "purple" | "violet";
10+
color?:
11+
| "teal"
12+
| "amber"
13+
| "green"
14+
| "red"
15+
| "blue"
16+
| "gray"
17+
| "purple"
18+
| "violet";
1119
size?: "sm" | "md" | "lg";
1220
icon?: React.ReactNode;
1321
pulse?: boolean;
@@ -88,7 +96,15 @@ export function FlowNode({
8896
interface FlowLineProps {
8997
direction?: "horizontal" | "vertical";
9098
length?: number;
91-
color?: "teal" | "amber" | "green" | "red" | "gray" | "blue" | "violet" | "purple";
99+
color?:
100+
| "teal"
101+
| "amber"
102+
| "green"
103+
| "red"
104+
| "gray"
105+
| "blue"
106+
| "violet"
107+
| "purple";
92108
animated?: boolean;
93109
className?: string;
94110
delay?: number;
@@ -274,8 +290,7 @@ const statusConfig = {
274290
icon: "check",
275291
},
276292
retry: {
277-
color:
278-
"text-blue-600 dark:text-blue-400 bg-blue-500/10 border-blue-500/20",
293+
color: "text-blue-600 dark:text-blue-400 bg-blue-500/10 border-blue-500/20",
279294
defaultLabel: "503 Retry",
280295
icon: "retry",
281296
},

docs/src/components/landing/hero.tsx

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,13 @@ function MiniSafetyPipeline() {
7272
<FlowLine length={24} color="blue" delay={2} />
7373
<FlowNode label="Awareness" color="teal" size="sm" delay={0.7} />
7474
<FlowLine length={24} color="blue" delay={3} />
75-
<FlowNode label="Boundaries" color="blue" size="sm" pulse delay={0.85} />
75+
<FlowNode
76+
label="Boundaries"
77+
color="blue"
78+
size="sm"
79+
pulse
80+
delay={0.85}
81+
/>
7682
</div>
7783

7884
{/* Row 2: Safety pipeline events */}
@@ -99,12 +105,7 @@ function MiniSafetyPipeline() {
99105
className="flex items-center gap-0"
100106
>
101107
<FlowLine length={28} color="blue" delay={5} />
102-
<FlowNode
103-
label="Judgment"
104-
color="gray"
105-
size="sm"
106-
delay={1.3}
107-
/>
108+
<FlowNode label="Judgment" color="gray" size="sm" delay={1.3} />
108109
<FlowLine length={24} color="blue" delay={6} />
109110
<StatusBadge status="retry" label="reviewing" />
110111
</motion.div>
@@ -117,12 +118,7 @@ function MiniSafetyPipeline() {
117118
className="flex items-center gap-0"
118119
>
119120
<FlowLine length={28} color="green" delay={7} />
120-
<FlowNode
121-
label="Reflexes"
122-
color="gray"
123-
size="sm"
124-
delay={1.5}
125-
/>
121+
<FlowNode label="Reflexes" color="gray" size="sm" delay={1.5} />
126122
<FlowLine length={24} color="green" delay={8} />
127123
<StatusBadge status="delivered" label="safe" />
128124
</motion.div>

0 commit comments

Comments
 (0)