chore: publish current DataStack updates

Publish the current application, design, and Phase 1 deployment updates. Excludes ignored personal notes, local MCP config, and generated TypeScript build info.
This commit is contained in:
i vib committed 2026-10-23 19:56:38 -07:00
1 parent d39d9f92f9
commit fcc4f4db2d
88 files changed
+21248 -2213

No files matched your search

+26 -27
View File
@@ -1,20 +1,19 @@
'use client';
import React, { useState, useEffect, useCallback } from 'react';
import { Card } from '@/components/ui/Card';
import { Button } from '@/components/ui/Button';
import { Icon } from '@/components/ui/Icon';
import { Card } from '@/components/ui/Card';
import {
TableWrap,
Table,
TableHeader,
TableBody,
TableRow,
TableHead,
TableCell,
TableEmpty,
Table,
TableBody,
TableCell,
TableEmpty,
TableHead,
TableHeader,
TableRow,
TableWrap,
} from '@/components/ui/Table';
import { useToast } from '@/components/ui/Toast';
import { useCallback, useEffect, useState } from 'react';
export default function StoragePage() {
const { success, error } = useToast();
@@ -64,7 +63,7 @@ export default function StoragePage() {
<div className="flex flex-col gap-4">
{/* Header */}
<div className="flex flex-col sm:flex-row sm:items-center justify-between gap-2 border-b border-[var(--border)] pb-2">
<h1 className="text-[14px] font-semibold text-[var(--text)] tracking-tight">
<h1 className="text-[22px] font-semibold text-[var(--text)]">
CSV Storage
</h1>
@@ -90,31 +89,31 @@ export default function StoragePage() {
</div>
{/* Storage Summary Cards */}
<div className="grid grid-cols-2 lg:grid-cols-4 gap-1.5">
<div className="grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-4 gap-3">
<Card compact className="p-2 flex flex-col gap-0.5 bg-[var(--bg-elevated)]">
<span className="text-[8.5px] uppercase tracking-wider text-[var(--text-dim)] font-medium">Disk Usage</span>
<span className="text-[15px] font-semibold text-[var(--text)] font-mono">
<span className="text-[12px] uppercase text-[var(--text-muted)] font-medium">Disk Usage</span>
<span className="text-[22px] font-semibold text-[var(--text)] font-mono">
{stats?.totalMB ?? '0.00'} MB
</span>
</Card>
<Card compact className="p-2 flex flex-col gap-0.5 bg-[var(--bg-elevated)]">
<span className="text-[8.5px] uppercase tracking-wider text-[var(--text-dim)] font-medium">CSV Files</span>
<span className="text-[15px] font-semibold text-[var(--text)] font-mono">
<span className="text-[12px] uppercase text-[var(--text-muted)] font-medium">CSV Files</span>
<span className="text-[22px] font-semibold text-[var(--text)] font-mono">
{stats?.totalFiles ?? 0}
</span>
</Card>
<Card compact className="p-2 flex flex-col gap-0.5 bg-[var(--bg-elevated)]">
<span className="text-[8.5px] uppercase tracking-wider text-[var(--text-dim)] font-medium">Persisted Rows</span>
<span className="text-[15px] font-semibold text-[var(--text)] font-mono">
<span className="text-[12px] uppercase text-[var(--text-muted)] font-medium">Persisted Rows</span>
<span className="text-[22px] font-semibold text-[var(--text)] font-mono">
{stats?.totalRows ? stats.totalRows.toLocaleString() : 0}
</span>
</Card>
<Card compact className="p-2 flex flex-col gap-0.5 bg-[var(--bg-elevated)]">
<span className="text-[8.5px] uppercase tracking-wider text-[var(--text-dim)] font-medium">Rotation Rule</span>
<span className="text-[13px] font-semibold text-[var(--accent)] font-mono">
<span className="text-[12px] uppercase text-[var(--text-muted)] font-medium">Rotation Rule</span>
<span className="text-[17px] font-semibold text-[var(--accent)] font-mono">
100MB / Daily
</span>
</Card>
@@ -122,7 +121,7 @@ export default function StoragePage() {
{/* Partition Files Table */}
<div className="flex flex-col gap-2">
<h2 className="text-[13px] font-semibold text-[var(--text)]">
<h2 className="text-[17px] font-semibold text-[var(--text)]">
CSV Files on Disk
</h2>
@@ -143,19 +142,19 @@ export default function StoragePage() {
) : (
files.map((file, idx) => (
<TableRow key={idx}>
<TableCell className="font-mono text-[11px] text-[var(--accent)]">
<TableCell className="font-mono text-[12px] text-[var(--accent)]">
{file.clientId}
</TableCell>
<TableCell className="font-mono text-[11px] font-medium text-[var(--text)]">
<TableCell className="font-mono text-[12px] font-medium text-[var(--text)]">
{file.filename}
</TableCell>
<TableCell className="font-mono text-[11px]">
<TableCell className="font-mono text-[12px]">
{(file.sizeBytes / 1024).toFixed(1)} KB
</TableCell>
<TableCell className="font-mono text-[11px]">
<TableCell className="font-mono text-[12px]">
{file.linesCount.toLocaleString()}
</TableCell>
<TableCell className="text-[10.5px] text-[var(--text-dim)] font-mono">
<TableCell className="text-[12px] text-[var(--text-dim)] font-mono">
{new Date(file.modifiedAt).toLocaleString()}
</TableCell>
</TableRow>