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,23 @@
|
||||
# AGENTS.md — Component-Only Architecture Rules & System Directives
|
||||
|
||||
## 1. Single Source of Truth Components
|
||||
- All UI design styles are designed once as reusable components in `components/ui/` and `components/layout/`.
|
||||
- Pages must never implement isolated, inline styles or custom ad-hoc styling blocks.
|
||||
- Spacing, colors, fonts, borders, buttons, cards, modals, and tables are defined centrally. Any design token alteration automatically cascades across all pages.
|
||||
|
||||
## 2. Decoupled Runtime Split
|
||||
- **Port 3000**: Next.js App Router (Frontend UI, `/vcon/*` admin console, streaming CSV export `/api/export`).
|
||||
- **Port 4000**: Express.js + Socket.IO process (WebSocket handshake, JWT verification, real-time ingestion).
|
||||
- **Socket.IO Rule**: Socket.IO must never reside inside Next.js serverless route handlers.
|
||||
|
||||
## 3. Data Storage Rules
|
||||
- **Collected Realtime Data**: Strictly stored in rotated CSV files at `/storage/data/{clientId}/{YYYY-MM-DD}.csv`.
|
||||
- **Zero Database Inserts**: Per-row DB inserts are prohibited for collected data streams.
|
||||
- **File Rotation**: Rotates daily or upon reaching 100MB (`-part2.csv`).
|
||||
- **Redis / In-Memory Buffer**: Aggregates batches (500 events or 2000ms timer) before flushing to disk.
|
||||
- **PostgreSQL / Prisma**: Exclusively dedicated to metadata, SDK registrations, and admin settings.
|
||||
|
||||
## 4. Design & Typography Tokens
|
||||
- **Font Stack**: `"Segoe UI", "Segoe UI Web", system-ui, -apple-system, "Helvetica Neue", sans-serif`.
|
||||
- **Border Radius**: `--radius: 0rem` strictly across all shadcn and custom UI components.
|
||||
- **Shadows**: None. Clean, soft, compact flat design with subtle 1px borders.
|
||||
Reference in new issue
Block a user