docs: update AI Studio design token audits
Refresh design token inventory files to reflect the latest UI sizing and layout configurations from the sandbox prototype.
This commit is contained in:
1 parent
50449e96ad
commit
d39d9f92f9
139 files changed
+10982
-6
No files matched your search
@@ -0,0 +1,68 @@
|
||||
import React from 'react';
|
||||
import { Card } from '@/components/ui/Card';
|
||||
import { Icon } from '@/components/ui/Icon';
|
||||
|
||||
export const Architecture: React.FC = () => {
|
||||
return (
|
||||
<div className="flex flex-col gap-1.5 py-1">
|
||||
<div className="flex items-center justify-between border-b border-[var(--border)] pb-1">
|
||||
<h2 className="text-[11px] font-semibold text-[var(--text)] uppercase tracking-wider">
|
||||
Pipeline Flow
|
||||
</h2>
|
||||
<span className="text-[9px] text-[var(--text-dim)] font-mono">:4000 ➔ :3000</span>
|
||||
</div>
|
||||
|
||||
<Card compact className="p-2.5 flex flex-col gap-2 font-mono text-[10px] bg-[var(--bg-elevated)]">
|
||||
{/* Desktop Flow: 5 items */}
|
||||
<div className="hidden md:grid md:grid-cols-5 gap-1.5 items-center text-center">
|
||||
<div className="p-1.5 border border-[var(--border)] bg-[var(--bg-main)] flex flex-col items-center gap-0.5">
|
||||
<Icon name="FileCode" size={12} className="text-[var(--accent)]" />
|
||||
<span className="font-semibold text-[var(--text)]">Python SDK</span>
|
||||
</div>
|
||||
|
||||
<div className="text-[var(--text-dim)] flex items-center justify-center gap-1">
|
||||
<span className="text-[9px] px-1.5 py-0.2 border border-[var(--border)] bg-[var(--bg-main)] flex items-center gap-0.5">
|
||||
<span>JWT</span>
|
||||
<Icon name="ArrowRight" size={9} />
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div className="p-1.5 border border-[var(--border-strong)] bg-[var(--bg-main)] flex flex-col items-center gap-0.5">
|
||||
<Icon name="Radio" size={12} className="text-[var(--accent)]" />
|
||||
<span className="font-semibold text-[var(--text)]">Express Ingest (:4000)</span>
|
||||
</div>
|
||||
|
||||
<div className="text-[var(--text-dim)] flex items-center justify-center gap-1">
|
||||
<span className="text-[9px] px-1.5 py-0.2 border border-[var(--border)] bg-[var(--bg-main)] flex items-center gap-0.5">
|
||||
<span>Buffer</span>
|
||||
<Icon name="ArrowRight" size={9} />
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div className="p-1.5 border border-[var(--border)] bg-[var(--bg-main)] flex flex-col items-center gap-0.5">
|
||||
<Icon name="HardDrive" size={12} className="text-[var(--success)]" />
|
||||
<span className="font-semibold text-[var(--text)]">CSV Storage (Disk)</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Mobile Flow: Vertical */}
|
||||
<div className="flex md:hidden flex-col gap-1">
|
||||
<div className="p-1.5 border border-[var(--border)] bg-[var(--bg-main)] flex items-center justify-between">
|
||||
<span className="font-semibold text-[var(--text)]">1. Python SDK</span>
|
||||
<span className="text-[8.5px] text-[var(--text-dim)]">Client</span>
|
||||
</div>
|
||||
<div className="p-1.5 border border-[var(--border-strong)] bg-[var(--bg-main)] flex items-center justify-between">
|
||||
<span className="font-semibold text-[var(--text)]">2. Express (:4000)</span>
|
||||
<span className="text-[8.5px] text-[var(--accent)]">Ingest</span>
|
||||
</div>
|
||||
<div className="p-1.5 border border-[var(--border)] bg-[var(--bg-main)] flex items-center justify-between">
|
||||
<span className="font-semibold text-[var(--text)]">3. CSV Files</span>
|
||||
<span className="text-[8.5px] text-[var(--success)]">Rotated</span>
|
||||
</div>
|
||||
</div>
|
||||
</Card>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Architecture;
|
||||
@@ -0,0 +1,67 @@
|
||||
import React from 'react';
|
||||
import { Card, CardHeader, CardTitle, CardContent } from '@/components/ui/Card';
|
||||
import { Icon } from '@/components/ui/Icon';
|
||||
|
||||
export const Features: React.FC = () => {
|
||||
const items = [
|
||||
{
|
||||
icon: 'Zap',
|
||||
title: 'Decoupled Runtime Split',
|
||||
desc: 'Port 4000 WebSocket intake; Port 3000 Web & export.',
|
||||
},
|
||||
{
|
||||
icon: 'HardDrive',
|
||||
title: 'CSV File Persistence',
|
||||
desc: 'Streams directly to rotated CSV files on disk (Zero DB inserts).',
|
||||
},
|
||||
{
|
||||
icon: 'ShieldCheck',
|
||||
title: 'JWT SDK Authentication',
|
||||
desc: 'Signed tokens verify client IDs and rate limits on handshake.',
|
||||
},
|
||||
{
|
||||
icon: 'Cpu',
|
||||
title: 'In-Memory Buffer',
|
||||
desc: 'Aggregates 500 records or 2000ms intervals before async disk flush.',
|
||||
},
|
||||
{
|
||||
icon: 'CheckCheck',
|
||||
title: 'Idempotency Dedup',
|
||||
desc: 'Rejects duplicate clientId + eventId in 5-minute sliding TTL window.',
|
||||
},
|
||||
{
|
||||
icon: 'FileCode2',
|
||||
title: 'Python Client SDK',
|
||||
desc: 'datastack-sdk package with auto-reconnection and batch streaming.',
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
<div className="flex flex-col gap-1.5 py-1">
|
||||
<div className="flex items-center justify-between border-b border-[var(--border)] pb-1">
|
||||
<h2 className="text-[11px] font-semibold text-[var(--text)] uppercase tracking-wider">
|
||||
Platform Architecture
|
||||
</h2>
|
||||
<span className="text-[9px] text-[var(--text-dim)] font-mono">6 SUBSYSTEMS</span>
|
||||
</div>
|
||||
|
||||
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-1.5">
|
||||
{items.map((item, idx) => (
|
||||
<Card key={idx} compact className="flex flex-col gap-0.5 p-2">
|
||||
<CardHeader className="p-0 pb-0.5 mb-0 border-b-0 flex items-center gap-1.5">
|
||||
<div className="p-0.5 bg-[var(--bg-main)] text-[var(--accent)] border border-[var(--border-strong)] shrink-0">
|
||||
<Icon name={item.icon} size={11} />
|
||||
</div>
|
||||
<CardTitle className="text-[11px]">{item.title}</CardTitle>
|
||||
</CardHeader>
|
||||
<CardContent className="p-0 text-[10px] text-[var(--text-muted)] leading-tight">
|
||||
{item.desc}
|
||||
</CardContent>
|
||||
</Card>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Features;
|
||||
@@ -0,0 +1,90 @@
|
||||
'use client';
|
||||
|
||||
import React, { useState } from 'react';
|
||||
import Link from 'next/link';
|
||||
import { Button } from '@/components/ui/Button';
|
||||
import { Card } from '@/components/ui/Card';
|
||||
import { Icon } from '@/components/ui/Icon';
|
||||
|
||||
export const Hero: React.FC = () => {
|
||||
const [copied, setCopied] = useState(false);
|
||||
|
||||
const handleCopy = () => {
|
||||
navigator.clipboard.writeText('pip install ./sdk-python');
|
||||
setCopied(true);
|
||||
setTimeout(() => setCopied(false), 2000);
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="flex flex-col gap-2.5 py-1">
|
||||
{/* Title */}
|
||||
<div className="flex flex-col gap-1">
|
||||
<h1 className="text-[16px] sm:text-[18px] font-semibold tracking-tight text-[var(--text)]">
|
||||
Realtime Data Collection Platform
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
{/* Actions */}
|
||||
<div className="flex flex-wrap items-center gap-1.5">
|
||||
<Link href="/vcon/dashboard">
|
||||
<Button size="xs" variant="primary" icon="Terminal">
|
||||
Console (/vcon/)
|
||||
</Button>
|
||||
</Link>
|
||||
<Link href="/vcon/data">
|
||||
<Button size="xs" variant="secondary" icon="Activity">
|
||||
Live Stream
|
||||
</Button>
|
||||
</Link>
|
||||
<div className="flex items-center gap-1.5 border border-[var(--border)] bg-[var(--bg-elevated)] px-2 py-0.5 text-[10px] font-mono text-[var(--text)]">
|
||||
<span className="text-[var(--text-dim)]">$</span>
|
||||
<span>pip install ./sdk-python</span>
|
||||
<button
|
||||
onClick={handleCopy}
|
||||
className="text-[var(--text-dim)] hover:text-[var(--text)] ml-0.5 cursor-pointer"
|
||||
aria-label="Copy install command"
|
||||
>
|
||||
<Icon name={copied ? 'Check' : 'Copy'} size={11} />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* 4 Clean Metric Cards */}
|
||||
<div className="grid grid-cols-2 lg:grid-cols-4 gap-1.5 pt-0.5">
|
||||
<Card compact className="p-2 flex flex-col gap-0.5 bg-[var(--bg-elevated)]">
|
||||
<div className="flex items-center justify-between text-[8.5px] uppercase tracking-wider text-[var(--text-dim)] font-medium">
|
||||
<span>Ingestion</span>
|
||||
<Icon name="Radio" size={11} className="text-[var(--accent)]" />
|
||||
</div>
|
||||
<span className="text-[12.5px] font-semibold text-[var(--text)] font-mono">:4000 (ws)</span>
|
||||
</Card>
|
||||
|
||||
<Card compact className="p-2 flex flex-col gap-0.5 bg-[var(--bg-elevated)]">
|
||||
<div className="flex items-center justify-between text-[8.5px] uppercase tracking-wider text-[var(--text-dim)] font-medium">
|
||||
<span>Web & API</span>
|
||||
<Icon name="LayoutDashboard" size={11} className="text-[var(--accent)]" />
|
||||
</div>
|
||||
<span className="text-[12.5px] font-semibold text-[var(--text)] font-mono">:3000 (http)</span>
|
||||
</Card>
|
||||
|
||||
<Card compact className="p-2 flex flex-col gap-0.5 bg-[var(--bg-elevated)]">
|
||||
<div className="flex items-center justify-between text-[8.5px] uppercase tracking-wider text-[var(--text-dim)] font-medium">
|
||||
<span>Storage Engine</span>
|
||||
<Icon name="HardDrive" size={11} className="text-[var(--accent)]" />
|
||||
</div>
|
||||
<span className="text-[12.5px] font-semibold text-[var(--text)] font-mono">Rotated CSV</span>
|
||||
</Card>
|
||||
|
||||
<Card compact className="p-2 flex flex-col gap-0.5 bg-[var(--bg-elevated)]">
|
||||
<div className="flex items-center justify-between text-[8.5px] uppercase tracking-wider text-[var(--text-dim)] font-medium">
|
||||
<span>Buffer Limit</span>
|
||||
<Icon name="Cpu" size={11} className="text-[var(--accent)]" />
|
||||
</div>
|
||||
<span className="text-[12.5px] font-semibold text-[var(--text)] font-mono">500 rows / 2s</span>
|
||||
</Card>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Hero;
|
||||
@@ -0,0 +1,9 @@
|
||||
# Sections Manifest
|
||||
|
||||
## Purpose
|
||||
Modular section blocks used in landing page and documentation views.
|
||||
|
||||
## Sections
|
||||
- `Hero.tsx`: Headline, technical metrics, quick start buttons
|
||||
- `Features.tsx`: Subsystem cards with icons and descriptions
|
||||
- `Architecture.tsx`: Visual diagram of decoupled port 4000/3000 runtime and data flow.
|
||||
Reference in new issue
Block a user