2 Commits
15 changed files with 987 additions and 3244 deletions

No files matched your search

File diff suppressed because it is too large. Load diff
-465
View File
@@ -1,465 +0,0 @@
{
"lockfileVersion": 1,
"configVersion": 1,
"workspaces": {
"": {
"name": "frontend",
"dependencies": {
"@gsap/react": "^2.1.2",
"@orpc/client": "1.15.0",
"clsx": "^2.1.1",
"gsap": "^3.15.0",
"lucide-react": "^1.33.0",
"next": "16.3.2",
"next-themes": "^0.4.6",
"partysocket": "1.3.0",
"react": "19.2.8",
"react-dom": "19.2.8",
"swr": "^2.5.1",
"tailwind-merge": "^3.6.0",
"three": "^0.185.1",
},
"devDependencies": {
"@biomejs/biome": "2.5.10",
"@tailwindcss/postcss": "^4",
"@types/node": "^26",
"@types/react": "^19",
"@types/react-dom": "^19",
"@types/three": "^0.185.4",
"babel-plugin-react-compiler": "1.0.0",
"puppeteer-core": "^25.8.0",
"tailwindcss": "^4",
"typescript": "^7",
},
},
},
"packages": {
"@alloc/quick-lru": ["@alloc/quick-lru@5.2.0", "", {}, "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw=="],
"@babel/code-frame": ["@babel/code-frame@7.29.7", "", { "dependencies": { "@babel/helper-validator-identifier": "7.29.7", "js-tokens": "4.0.0", "picocolors": "1.1.1" } }, "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw=="],
"@babel/compat-data": ["@babel/compat-data@7.29.7", "", {}, "sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg=="],
"@babel/core": ["@babel/core@7.29.7", "", { "dependencies": { "@babel/code-frame": "7.29.7", "@babel/generator": "7.29.7", "@babel/helper-compilation-targets": "7.29.7", "@babel/helper-module-transforms": "7.29.7", "@babel/helpers": "7.29.7", "@babel/parser": "7.29.7", "@babel/template": "7.29.7", "@babel/traverse": "7.29.7", "@babel/types": "7.29.7", "@jridgewell/remapping": "2.3.5", "convert-source-map": "2.0.0", "debug": "4.4.3", "gensync": "1.0.0-beta.2", "json5": "2.2.3", "semver": "6.Line truncated
"@babel/generator": ["@babel/generator@7.29.7", "", { "dependencies": { "@babel/parser": "7.29.7", "@babel/types": "7.29.7", "@jridgewell/gen-mapping": "0.3.13", "@jridgewell/trace-mapping": "0.3.31", "jsesc": "3.1.0" } }, "sha512-DkXD5OJQaAQIdZ1bt3UZdEnHAn9Imd3IVBdX03UFe+ony9Ojw5pzr9YVKGDY1jt+Gcn/FnGkNf8r+Vj5NOJWtQ=="],
"@babel/helper-compilation-targets": ["@babel/helper-compilation-targets@7.29.7", "", { "dependencies": { "@babel/compat-data": "7.29.7", "@babel/helper-validator-option": "7.29.7", "browserslist": "4.28.7", "lru-cache": "5.1.1", "semver": "6.3.1" } }, "sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g=="],
"@babel/helper-globals": ["@babel/helper-globals@7.29.7", "", {}, "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA=="],
"@babel/helper-module-imports": ["@babel/helper-module-imports@7.29.7", "", { "dependencies": { "@babel/traverse": "7.29.7", "@babel/types": "7.29.7" } }, "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g=="],
"@babel/helper-module-transforms": ["@babel/helper-module-transforms@7.29.7", "", { "dependencies": { "@babel/helper-module-imports": "7.29.7", "@babel/helper-validator-identifier": "7.29.7", "@babel/traverse": "7.29.7" }, "peerDependencies": { "@babel/core": "7.29.7" } }, "sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg=="],
"@babel/helper-string-parser": ["@babel/helper-string-parser@7.29.7", "", {}, "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw=="],
"@babel/helper-validator-identifier": ["@babel/helper-validator-identifier@7.29.7", "", {}, "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg=="],
"@babel/helper-validator-option": ["@babel/helper-validator-option@7.29.7", "", {}, "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw=="],
"@babel/helpers": ["@babel/helpers@7.29.7", "", { "dependencies": { "@babel/template": "7.29.7", "@babel/types": "7.29.7" } }, "sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg=="],
"@babel/parser": ["@babel/parser@7.29.7", "", { "dependencies": { "@babel/types": "7.29.7" }, "bin": "./bin/babel-parser.js" }, "sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg=="],
"@babel/template": ["@babel/template@7.29.7", "", { "dependencies": { "@babel/code-frame": "7.29.7", "@babel/parser": "7.29.7", "@babel/types": "7.29.7" } }, "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg=="],
"@babel/traverse": ["@babel/traverse@7.29.7", "", { "dependencies": { "@babel/code-frame": "7.29.7", "@babel/generator": "7.29.7", "@babel/helper-globals": "7.29.7", "@babel/parser": "7.29.7", "@babel/template": "7.29.7", "@babel/types": "7.29.7", "debug": "4.4.3" } }, "sha512-EhlfNQtZ+NK22w5BM61ciuiq1m58ed33Wr1Xan//ZRTy6hgjnwyCffRYwzsGXdASJSUJ1guZILsErh1eQcl+zw=="],
"@babel/types": ["@babel/types@7.29.7", "", { "dependencies": { "@babel/helper-string-parser": "7.29.7", "@babel/helper-validator-identifier": "7.29.7" } }, "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA=="],
"@biomejs/biome": ["@biomejs/biome@2.5.10", "", { "optionalDependencies": { "@biomejs/cli-darwin-arm64": "2.5.10", "@biomejs/cli-darwin-x64": "2.5.10", "@biomejs/cli-linux-arm64": "2.5.10", "@biomejs/cli-linux-arm64-musl": "2.5.10", "@biomejs/cli-linux-x64": "2.5.10", "@biomejs/cli-linux-x64-musl": "2.5.10", "@biomejs/cli-win32-arm64": "2.5.10", "@biomejs/cli-win32-x64": "2.5.10" }, "bin": { "biome": "bin/biome" } }, "sha512-WRKXARA3kTuiV5sxqTpobJ/I0MVd4vk3pOL6wnp5az4LntFIhWTj1RWZq3DI9PCEN3Line truncated
"@biomejs/cli-darwin-arm64": ["@biomejs/cli-darwin-arm64@2.5.10", "", { "os": "darwin", "cpu": "arm64" }, "sha512-ItCrxKK6SXVT6flYs0qIuBd4AA3TTTl4d66Re6YI2FuGZnN85NmuYNzkiTJUyYw8qBLv69L5zTUB6uyWd++h3Q=="],
"@biomejs/cli-darwin-x64": ["@biomejs/cli-darwin-x64@2.5.10", "", { "os": "darwin", "cpu": "x64" }, "sha512-yLsPU9pAmtChXDu8vhKAzErqe+LeeYuwuUB2FZMkRitsmdodxsYRa9KHrFispsUHzzOu+9HB3nP/TQxyia+Sjw=="],
"@biomejs/cli-linux-arm64": ["@biomejs/cli-linux-arm64@2.5.10", "", { "os": "linux", "cpu": "arm64" }, "sha512-VG8uQW/86a1roLaIFvtIbEigxIdzdJ190oGyg1tV7VYeQtOS+x10sflk7WbuXgw91EtZX5DlIIIej1YqkNLlcg=="],
"@biomejs/cli-linux-arm64-musl": ["@biomejs/cli-linux-arm64-musl@2.5.10", "", { "os": "linux", "cpu": "arm64" }, "sha512-t1QAKZwQJRB4dvgJSgFiQ4BNfNPChg69BNonz854qLVxnjT3UvDzQg9mbkTJRu35ZqU0Rw10A73J8Urgbg2RPw=="],
"@biomejs/cli-linux-x64": ["@biomejs/cli-linux-x64@2.5.10", "", { "os": "linux", "cpu": "x64" }, "sha512-4O6T0eq2heoHZN0a9UX+rWQoxXEBaKf+lRi2hbsGlHneUz9BWXM76nEWMK7Eeq8gzMxR1khQB6BFpAASpeXqGg=="],
"@biomejs/cli-linux-x64-musl": ["@biomejs/cli-linux-x64-musl@2.5.10", "", { "os": "linux", "cpu": "x64" }, "sha512-pgDDqp9JybHm2I0KRgzN6i4+lt8xu4iqxUwLzglUMmOmyRTU1AYBGKzh9sNMOtIjah7xoWvKHlLVetvyifzoiQ=="],
"@biomejs/cli-win32-arm64": ["@biomejs/cli-win32-arm64@2.5.10", "", { "os": "win32", "cpu": "arm64" }, "sha512-pxAbxduPO4xq/Cvgaa2lOrs9BB0hEXmmDqfMNP4ZOffGOkUrD1/QGw9UAMpFQpX2P8MqTIIRuQKcmetum4Oa6A=="],
"@biomejs/cli-win32-x64": ["@biomejs/cli-win32-x64@2.5.10", "", { "os": "win32", "cpu": "x64" }, "sha512-M+2dgBsl3lXRiTfgPVc2p3anS4Tocojke4rzFLScZ2Y/wmF+36dRb1iHCLiyGqOzQGyTplZH1HnEYviiAqi3nA=="],
"@dimforge/rapier3d-compat": ["@dimforge/rapier3d-compat@0.12.0", "", {}, "sha512-uekIGetywIgopfD97oDL5PfeezkFpNhwlzlaEYNOA0N6ghdsOvh/HYjSMek5Q2O1PYvRSDFcqFVJl4r4ZBwOow=="],
"@emnapi/runtime": ["@emnapi/runtime@1.11.3", "", { "dependencies": { "tslib": "2.8.1" } }, "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA=="],
"@gsap/react": ["@gsap/react@2.1.2", "", { "peerDependencies": { "gsap": "^3.12.5", "react": ">=17" } }, "sha512-JqliybO1837UcgH2hVOM4VO+38APk3ECNrsuSM4MuXp+rbf+/2IG2K1YJiqfTcXQHH7XlA0m3ykniFYstfq0Iw=="],
"@img/colour": ["@img/colour@1.1.0", "", {}, "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ=="],
"@img/sharp-darwin-arm64": ["@img/sharp-darwin-arm64@0.35.3", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-arm64": "1.3.2" }, "os": "darwin", "cpu": "arm64" }, "sha512-RMnFX7YQsMoh7lWfcM4NEHHymBX/rLuKNPVM84XE9ONPcaSCDgE7CHIHpSgPcO2xcRthgBy1HfNO319mwhIAkg=="],
"@img/sharp-darwin-x64": ["@img/sharp-darwin-x64@0.35.3", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-x64": "1.3.2" }, "os": "darwin", "cpu": "x64" }, "sha512-Xo+5uFBtLN0BKqieTxiFzFPQAUlBbbH5iBKyRX/z1JrbnYsHTfKJnUfL8+p2TPXr1pXqao4eeL4Rl144uDpK9w=="],
"@img/sharp-freebsd-wasm32": ["@img/sharp-freebsd-wasm32@0.35.3", "", { "dependencies": { "@img/sharp-wasm32": "0.35.3" }, "os": "freebsd" }, "sha512-lUxcqWIj2wMQ9BrwNjngcr1gWUr5xgaGThBRqPPalIC2n67Cqj1uPh8NnA/ZhAg8hUbKl+kVHKwgUIwe6ZYPrg=="],
"@img/sharp-libvips-darwin-arm64": ["@img/sharp-libvips-darwin-arm64@1.3.2", "", { "os": "darwin", "cpu": "arm64" }, "sha512-9J6ypZFpQBj4YnePGoq/S38w6nz+vqg5WZLrLGY4YuSemdMq47GMLBPO42MzwdGwpg/agZ7xzZcFHa48xlywfg=="],
"@img/sharp-libvips-darwin-x64": ["@img/sharp-libvips-darwin-x64@1.3.2", "", { "os": "darwin", "cpu": "x64" }, "sha512-m2pW1n6cns9VaubNwsZ+c3CRYjxNQWgJ5gPlnL1nbBcpkBvFm6SCFN5o0psFHI8w9n11NKhFkeEDns98tiqbEw=="],
"@img/sharp-libvips-linux-arm": ["@img/sharp-libvips-linux-arm@1.3.2", "", { "os": "linux", "cpu": "arm" }, "sha512-1eMLzy92I4J6rmi4mAT8yC3HxOtniyGELlzGbNMLLeqe052ahFQ0h6LFq+lh5DsDIdYViIDst08abvSbcEdLXQ=="],
"@img/sharp-libvips-linux-arm64": ["@img/sharp-libvips-linux-arm64@1.3.2", "", { "os": "linux", "cpu": "arm64" }, "sha512-dqVSFynCox4C/J8kT16V7SIFAns0IjgLwkvYT7p8LQVmJ5OS5b6tI9IGflxTeuBS//zXeFIUbwt5dwxyZ17cnA=="],
"@img/sharp-libvips-linux-ppc64": ["@img/sharp-libvips-linux-ppc64@1.3.2", "", { "os": "linux", "cpu": "ppc64" }, "sha512-3z0NHDxD6n5I9gc05U1eW1AyRm+Gznzq3naMrthPNqE6oYykcogW0l/jfpJdjYnuNl8R7yI9pNbE1XiUeyq0Aw=="],
"@img/sharp-libvips-linux-riscv64": ["@img/sharp-libvips-linux-riscv64@1.3.2", "", { "os": "linux", "cpu": "none" }, "sha512-bsb4rI+NldGOsXuej2r8OdSS8+zXDVaCWxyWrcv6kneTOlgAHtZABRzBBCwdsPiD90J4myNJuHpg6kA20ImW/w=="],
"@img/sharp-libvips-linux-s390x": ["@img/sharp-libvips-linux-s390x@1.3.2", "", { "os": "linux", "cpu": "s390x" }, "sha512-/ABshyj8gCpyIrNXnHn4LorDJ0HHm1VhXPBlxZ8zAtfVPAaSafXPGn+sUSIRiwaSBy0mmFjSjiXI5mkcwdChKQ=="],
"@img/sharp-libvips-linux-x64": ["@img/sharp-libvips-linux-x64@1.3.2", "", { "os": "linux", "cpu": "x64" }, "sha512-ITPEtgffGJ0S6G9dRyw/366tJQqFRcHWPHhC+Stpg3Z8AEMrDrTr2lhdz4f/Y/HMbRh//7Z5mBzEpVdi62Oc3w=="],
"@img/sharp-libvips-linuxmusl-arm64": ["@img/sharp-libvips-linuxmusl-arm64@1.3.2", "", { "os": "linux", "cpu": "arm64" }, "sha512-zE9EdiUzUmg5mDT5a1rk5fYJ6GWPloTwWBYDS14naqHsL+EaMpDj1AWnpLgh3u0YCORv2Tt50wrcrpYqkP97Kw=="],
"@img/sharp-libvips-linuxmusl-x64": ["@img/sharp-libvips-linuxmusl-x64@1.3.2", "", { "os": "linux", "cpu": "x64" }, "sha512-m0lrLiUt+lBYnCFr8qV/65yMR4E/c7/wf78I5eKTdkEakFAlZ9QlzEM3QIhhAwVeUhLAHLcCq7a7Vszq/oFNZQ=="],
"@img/sharp-linux-arm": ["@img/sharp-linux-arm@0.35.3", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm": "1.3.2" }, "os": "linux", "cpu": "arm" }, "sha512-affVWCTLooy8TSxbDx2qkzuDeaWLNVBA+P//FNBirHsXpP2fuBhk5AuboYUnrDnzoXes8GFjpTx0SBFOCRg+FA=="],
"@img/sharp-linux-arm64": ["@img/sharp-linux-arm64@0.35.3", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm64": "1.3.2" }, "os": "linux", "cpu": "arm64" }, "sha512-QgKDspHPnrU+GQ55XPhGwyhC8acLVOOSyAvo1oVfFmrIXLkDNmGWzAfDZ4xK8oSA1qBQrALcHX0G5UZni/SuFQ=="],
"@img/sharp-linux-ppc64": ["@img/sharp-linux-ppc64@0.35.3", "", { "optionalDependencies": { "@img/sharp-libvips-linux-ppc64": "1.3.2" }, "os": "linux", "cpu": "ppc64" }, "sha512-sMd8rDxmpLOwv/7N44klFjOD5DUO7FLdjiXDI0hoxYaf7Ar262dQIEkosE98bps+5HPLtp/EvNqeqQtOycP/IA=="],
"@img/sharp-linux-riscv64": ["@img/sharp-linux-riscv64@0.35.3", "", { "optionalDependencies": { "@img/sharp-libvips-linux-riscv64": "1.3.2" }, "os": "linux", "cpu": "none" }, "sha512-0Eob78yjlYPfL5vMNWAW55l3R9Y6BQS/gOfe0ZcP9mEz9ohhKSt4im1hayiknXgf8AWrFqMvJcKIdmLmEe7yeQ=="],
"@img/sharp-linux-s390x": ["@img/sharp-linux-s390x@0.35.3", "", { "optionalDependencies": { "@img/sharp-libvips-linux-s390x": "1.3.2" }, "os": "linux", "cpu": "s390x" }, "sha512-KgAxQ0DxpNOq1rG2t5cgTgShJFGSuU7XO45cqC+1NVOuZnP6tlgZRuSYOfNupGkHID0o3cJOsw4DVeJpMovcGw=="],
"@img/sharp-linux-x64": ["@img/sharp-linux-x64@0.35.3", "", { "optionalDependencies": { "@img/sharp-libvips-linux-x64": "1.3.2" }, "os": "linux", "cpu": "x64" }, "sha512-8pqvxubL2PGdhlPy6GLqzDYMUjyRmKAwKHYKixpdJYBUK7PJ0C029XdsnpFIdgRZG68fZiGdHVWcKPvtiPB4cA=="],
"@img/sharp-linuxmusl-arm64": ["@img/sharp-linuxmusl-arm64@0.35.3", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-arm64": "1.3.2" }, "os": "linux", "cpu": "arm64" }, "sha512-Vz0iQjzzcSX3HCbfwFfCSG/9SCIqyO0mH2sXyiHaAYfBk0cRsCWXRyQYX0ovCK/PAQBbTzQ0dsPQHh5MAFL59w=="],
"@img/sharp-linuxmusl-x64": ["@img/sharp-linuxmusl-x64@0.35.3", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-x64": "1.3.2" }, "os": "linux", "cpu": "x64" }, "sha512-6O1NPKcDVj9QEdg7Hx549EX8U0rp6yXQERqru6yRN7fGBn32UvIRJUlWnk+8xDCiG76hXVBbX82NZ/ZKr0euIg=="],
"@img/sharp-wasm32": ["@img/sharp-wasm32@0.35.3", "", { "dependencies": { "@emnapi/runtime": "^1.11.1" } }, "sha512-cZ0XkcYGpHZkqW6iCkqTcmUC0CD9DhD5d/qeZlZkfRBn6GnHniZXLUo5+9xw8Iv76YE6LQFN9YNBlKREcCG76w=="],
"@img/sharp-webcontainers-wasm32": ["@img/sharp-webcontainers-wasm32@0.35.3", "", { "dependencies": { "@img/sharp-wasm32": "0.35.3" }, "cpu": "none" }, "sha512-2rnq7bX3NzeR2T4YWgz8qiG4h3TSdMe+vN1iQXpJleSJ3SM5zQ8Fy2SyyXAWlbxpEZ2Y+Z4u1BePgJEYbSy80Q=="],
"@img/sharp-win32-arm64": ["@img/sharp-win32-arm64@0.35.3", "", { "os": "win32", "cpu": "arm64" }, "sha512-4bPwFdMbeC4JQ8L8LOyWp6nsHcboP5fxkp6iPOXz2Vg49R42TuMs2whkJ5OAP4/Ul035qOzy0AecOF9VOscn4w=="],
"@img/sharp-win32-ia32": ["@img/sharp-win32-ia32@0.35.3", "", { "os": "win32", "cpu": "ia32" }, "sha512-r53mXsBN6lFUDiST764SvgwUdHAqM4rPAiDzAmf4fLoB6X/rkfyTrLCg6+g17wJJiCmB3JYgHuUldCWUIRFSXw=="],
"@img/sharp-win32-x64": ["@img/sharp-win32-x64@0.35.3", "", { "os": "win32", "cpu": "x64" }, "sha512-D4y1vNeZrIIJCN+uHaWVtH86B+aCrdMYYjicy9pXHvbGZeGYLLSd3wdVuC37FxVXlU1ARsk84eKWfWMXGYEqvA=="],
"@jridgewell/gen-mapping": ["@jridgewell/gen-mapping@0.3.13", "", { "dependencies": { "@jridgewell/sourcemap-codec": "1.5.5", "@jridgewell/trace-mapping": "0.3.31" } }, "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA=="],
"@jridgewell/remapping": ["@jridgewell/remapping@2.3.5", "", { "dependencies": { "@jridgewell/gen-mapping": "0.3.13", "@jridgewell/trace-mapping": "0.3.31" } }, "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ=="],
"@jridgewell/resolve-uri": ["@jridgewell/resolve-uri@3.1.2", "", {}, "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw=="],
"@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.5.5", "", {}, "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og=="],
"@jridgewell/trace-mapping": ["@jridgewell/trace-mapping@0.3.31", "", { "dependencies": { "@jridgewell/resolve-uri": "3.1.2", "@jridgewell/sourcemap-codec": "1.5.5" } }, "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw=="],
"@next/env": ["@next/env@16.3.2", "", {}, "sha512-8k4YoG8cM7LWlkfzGNYCRBbFNlernLiMw4s0btVl+CmmWqn3VpYypA72/5Feb1UWdxe6tHqr5KHP4p4Y4m9luA=="],
"@next/swc-darwin-arm64": ["@next/swc-darwin-arm64@16.3.2", "", { "os": "darwin", "cpu": "arm64" }, "sha512-ib5Llm93YCKoKWDh6ZaHq6QWTuOZ2bRkSnUwMmX8dsRIOkBNL1vVlSiUKSfixPL9SSh9pvukzqajk/klkn5vqg=="],
"@next/swc-darwin-x64": ["@next/swc-darwin-x64@16.3.2", "", { "os": "darwin", "cpu": "x64" }, "sha512-qd98fX2+I5nYJDioW2o7nSjoxM5KvWdeDefM80igia4+C/qSIEhH4MhTE+hO/7qKM7W37/Mq+dOWp8UePSyLHw=="],
"@next/swc-linux-arm64-gnu": ["@next/swc-linux-arm64-gnu@16.3.2", "", { "os": "linux", "cpu": "arm64" }, "sha512-vqsgb6FAOzcrCccsLXiKtAy5t8EzO+uOazuFaSkQxeY0tNONG3vpHYy8pyBafcI5SNFPTeyard6yTr6SzNGo2A=="],
"@next/swc-linux-arm64-musl": ["@next/swc-linux-arm64-musl@16.3.2", "", { "os": "linux", "cpu": "arm64" }, "sha512-xIe1eujfHUB2XcxHGddxJyu6TJRPjC5NpIkQYB/32ESkt5VkQyIAjmLRS38c+s6QY+qjtY/4KarVDzXRuD7lZQ=="],
"@next/swc-linux-x64-gnu": ["@next/swc-linux-x64-gnu@16.3.2", "", { "os": "linux", "cpu": "x64" }, "sha512-Fe0SA2j8X0kmc3aveuHD7UktO3AE2+mH3LguP60vGbz7u0z+MrDXbeb5iZFYAwR7EzzzXJ2Yk966w9mGTFMqfA=="],
"@next/swc-linux-x64-musl": ["@next/swc-linux-x64-musl@16.3.2", "", { "os": "linux", "cpu": "x64" }, "sha512-TFBipb+gyesI/2Ve4zVu7kGltBWN/R466G5/1gtt2lECfc22G1pjkTxu68Q9aFcOaXiRGTQfvDbQQFe7mYgxiQ=="],
"@next/swc-win32-arm64-msvc": ["@next/swc-win32-arm64-msvc@16.3.2", "", { "os": "win32", "cpu": "arm64" }, "sha512-rVtmnNpBYIosDnKD/96dKxFsJnwnn1WRGG/HioSe8XCm2ksSHNrd2R6+hSjvTBxeMNhJ9pYeu/90cWB1nQLuNA=="],
"@next/swc-win32-x64-msvc": ["@next/swc-win32-x64-msvc@16.3.2", "", { "os": "win32", "cpu": "x64" }, "sha512-H4Y2o2/JcHu8LtwzD5CXfHhwxwz8gfsx2HXDEw46Mtev5xHnEmB7HNtZtmriw5ReUOjRtcDqo7XSbU01FT9NlA=="],
"@orpc/client": ["@orpc/client@1.15.0", "", { "dependencies": { "@orpc/shared": "1.15.0", "@orpc/standard-server": "1.15.0", "@orpc/standard-server-fetch": "1.15.0", "@orpc/standard-server-peer": "1.15.0" } }, "sha512-Qt0FdPSGySdQwy83iUWOq+Iqhw2gM9qHtyxfBbcw1mwOz1s4O2BwUFA3ymVTLIRRNYRgPrQLaBZhp8CacqeePg=="],
"@orpc/shared": ["@orpc/shared@1.15.0", "", { "dependencies": { "radash": "12.1.1", "type-fest": "5.8.0" } }, "sha512-A3/JE7pQYSrrRm6/WYJxV3GBhpMdJRPM3h47slQtWBUZe9Sao5En5WBc4tISGQNP2emcez6qIvDziSgD2T+img=="],
"@orpc/standard-server": ["@orpc/standard-server@1.15.0", "", { "dependencies": { "@orpc/shared": "1.15.0" } }, "sha512-bje/xn6thDqJY/JQ7xoOjmD1KWE4FsyZOPgnPxwqTZLx/r00stRhLuFvk1hDEGj9UlG7NLZEijDVx0wqvcyDzA=="],
"@orpc/standard-server-fetch": ["@orpc/standard-server-fetch@1.15.0", "", { "dependencies": { "@orpc/shared": "1.15.0", "@orpc/standard-server": "1.15.0" } }, "sha512-XYVfgmIt71YrPJSI7RKRiNWjcyktPYHpevkjeohGNBP5aSMAUL95quZArAWr+XOPp4U56XRao54I6wFMZa4How=="],
"@orpc/standard-server-peer": ["@orpc/standard-server-peer@1.15.0", "", { "dependencies": { "@orpc/shared": "1.15.0", "@orpc/standard-server": "1.15.0" } }, "sha512-fsTN+FrdPkseVx99yRenGJYSp0xOrEk9fODk8oh3zzricNYzlZ8GGgCYtDNgt9vFIR/J05dc+Nk76KhcPBQpLw=="],
"@puppeteer/browsers": ["@puppeteer/browsers@3.2.1", "", { "dependencies": { "modern-tar": "^0.8.0", "yargs": "^18.0.0" }, "peerDependencies": { "proxy-agent": ">=8.0.1", "yauzl": "^2.10.0 || ^3.4.0" }, "optionalPeers": ["proxy-agent", "yauzl"], "bin": { "browsers": "lib/main-cli.js" } }, "sha512-KDz+3qDRdBAlRlMjmKyj6dEs33YHTk/xRHEENSXq6TNnhgoU15ruSHtEBeVF6OZ9tBDY55Se4P0nFMNsipzU9A=="],
"@swc/helpers": ["@swc/helpers@0.5.23", "", { "dependencies": { "tslib": "^2.8.0" } }, "sha512-5lSsMOTXURePglDfvuAQUqkGek9Hg2kksOYay2m0+XR++b2NWYL/4sWyuvVBIs8oKnJaxkdi9whaL/sqN13afw=="],
"@tailwindcss/node": ["@tailwindcss/node@4.3.3", "", { "dependencies": { "@jridgewell/remapping": "2.3.5", "enhanced-resolve": "5.24.4", "jiti": "2.7.0", "lightningcss": "1.32.0", "magic-string": "0.30.21", "source-map-js": "1.2.1", "tailwindcss": "4.3.3" } }, "sha512-/T8IKEsf9VTU6tLjgC7+sv2mOPtQxzE2jMw7u4Tt40Tx+QSZxpzh95/H6cMKoja9XuW7iMdLJYBB0o9G1CaAgg=="],
"@tailwindcss/oxide": ["@tailwindcss/oxide@4.3.3", "", { "optionalDependencies": { "@tailwindcss/oxide-android-arm64": "4.3.3", "@tailwindcss/oxide-darwin-arm64": "4.3.3", "@tailwindcss/oxide-darwin-x64": "4.3.3", "@tailwindcss/oxide-freebsd-x64": "4.3.3", "@tailwindcss/oxide-linux-arm-gnueabihf": "4.3.3", "@tailwindcss/oxide-linux-arm64-gnu": "4.3.3", "@tailwindcss/oxide-linux-arm64-musl": "4.3.3", "@tailwindcss/oxide-linux-x64-gnu": "4.3.3", "@tailwindcss/oxide-linux-x64-musl": "4.3.3", "Line truncated
"@tailwindcss/oxide-android-arm64": ["@tailwindcss/oxide-android-arm64@4.3.3", "", { "os": "android", "cpu": "arm64" }, "sha512-Y85A2gmPSkl5Ve5qR86GL4HT509cFqQh1aes9p3sSkyTPwt0Pppf3GkwGe4JPACcRYjgJIEhQgM6dBClnr0NYw=="],
"@tailwindcss/oxide-darwin-arm64": ["@tailwindcss/oxide-darwin-arm64@4.3.3", "", { "os": "darwin", "cpu": "arm64" }, "sha512-BiaWatpBcERQFDlOjRDpIVXuFK5PJez5SA4JMg6VYZdBYU+qKfV/vqjcIs+IYmtitf1xYQZTwXvU/8y4lfZUGw=="],
"@tailwindcss/oxide-darwin-x64": ["@tailwindcss/oxide-darwin-x64@4.3.3", "", { "os": "darwin", "cpu": "x64" }, "sha512-fAeUqfV5ndhxRwai8cXGzdLvul9utWOmeTkv69unv4ZXixjn61Z+p9lCWdwOwA3TYboG3BwdVuN/RDjhBRl0mw=="],
"@tailwindcss/oxide-freebsd-x64": ["@tailwindcss/oxide-freebsd-x64@4.3.3", "", { "os": "freebsd", "cpu": "x64" }, "sha512-iyf5bV6+wnAlflVeEy7R25dupxTNECZN5QMI0qNT6eT+EgaGdZcKhGkr5SdoaWiLJ3spLqIY9VCeSGrwmtg4kw=="],
"@tailwindcss/oxide-linux-arm-gnueabihf": ["@tailwindcss/oxide-linux-arm-gnueabihf@4.3.3", "", { "os": "linux", "cpu": "arm" }, "sha512-aAYUprJAJQWWbRrPvtjdroZ56Md+JM8pMiopS6xGEwDfLhqj+2ver2p4nU4Mb3CRqcMmNBjo8KkUgcxhkzVQGQ=="],
"@tailwindcss/oxide-linux-arm64-gnu": ["@tailwindcss/oxide-linux-arm64-gnu@4.3.3", "", { "os": "linux", "cpu": "arm64" }, "sha512-nDxldcEENOxZRzC2uu9jrutZdAAQtb+8WWDCSnWL1zvBk1+FN+x6MtDViPB5AJMfttVCUhehGWus3XBPgatM/w=="],
"@tailwindcss/oxide-linux-arm64-musl": ["@tailwindcss/oxide-linux-arm64-musl@4.3.3", "", { "os": "linux", "cpu": "arm64" }, "sha512-Md44bD6veX/PC5iyF8cDVnw4HBIANZepRZZ7a8DQOvkfo5WUBwcp6iAuCUz23u+4SUkhJlD3eL7hNdW8ezd/kA=="],
"@tailwindcss/oxide-linux-x64-gnu": ["@tailwindcss/oxide-linux-x64-gnu@4.3.3", "", { "os": "linux", "cpu": "x64" }, "sha512-tx7us1muwOKAKWao2v/GaafFeQboE6aj88vC6ziN2NCGcRm8gWUhwjzg+YdVB1e4boAtdtma4L43onunI6NS4w=="],
"@tailwindcss/oxide-linux-x64-musl": ["@tailwindcss/oxide-linux-x64-musl@4.3.3", "", { "os": "linux", "cpu": "x64" }, "sha512-SJxX60smvHgasZoBy11dX6YRjXJFovwWBoedhbQPOBzgFWBHGB+TVPWB9BxzR7TTxU8FQZAI2AyiNCMzFm8Img=="],
"@tailwindcss/oxide-wasm32-wasi": ["@tailwindcss/oxide-wasm32-wasi@4.3.3", "", { "cpu": "none" }, "sha512-jx1+rPhY/5Ympkktd656HBWEBLxP7dH06losBLjjf5vgCODXvi9KhtftWcMIwTFIDqBr7cRnQkdLnAG+IOlGvQ=="],
"@tailwindcss/oxide-win32-arm64-msvc": ["@tailwindcss/oxide-win32-arm64-msvc@4.3.3", "", { "os": "win32", "cpu": "arm64" }, "sha512-3rc292Ca2ceK6Ulcc/bAVnTs/3nDtoPhyEKlgPv+yQJQi/JS/AMJlqzxvlDacL1nekbrcf6bTqp/jV4qgnPxNQ=="],
"@tailwindcss/oxide-win32-x64-msvc": ["@tailwindcss/oxide-win32-x64-msvc@4.3.3", "", { "os": "win32", "cpu": "x64" }, "sha512-yJ0pwIVc/nYeGoV02WtsN8KYyLQv7kyI2wDnkezyJlGGjkd4QLwDGAwl47YpPJeuI0M0ObaXGSPjvWDPeTPggw=="],
"@tailwindcss/postcss": ["@tailwindcss/postcss@4.3.3", "", { "dependencies": { "@alloc/quick-lru": "5.2.0", "@tailwindcss/node": "4.3.3", "@tailwindcss/oxide": "4.3.3", "postcss": "8.5.25", "tailwindcss": "4.3.3" } }, "sha512-JTSZZGQi1AyKirbLN3azmjVzef92tcX7h+iSqPdaeStyFpGpDlKvvpxeOE8njhbUanbRwr3z8DyzhICWnMtQeg=="],
"@tweenjs/tween.js": ["@tweenjs/tween.js@23.1.3", "", {}, "sha512-vJmvvwFxYuGnF2axRtPYocag6Clbb5YS7kLL+SO/TeVFzHqDIWrNKYtcsPMibjDx9O+bu+psAy9NKfWklassUA=="],
"@types/node": ["@types/node@26.3.0", "", { "dependencies": { "undici-types": "~8.3.0" } }, "sha512-L3fgrnchriRC2ExBflb8j4uZZURHZfQsmQeyVzhjcHW4kkwVyo8/0h1B2MVzMTrYUJYu6G7EWs14hW/L9putqw=="],
"@types/react": ["@types/react@19.2.17", "", { "dependencies": { "csstype": "3.2.3" } }, "sha512-MXfmqaVPEVgkBT/aY0aGCkRWWtByiYQXo3xdQ8r5RzuFrPiRn8Gar2tQdXSUQ2GKV3bkXckek89V8wQBY2Q/Aw=="],
"@types/react-dom": ["@types/react-dom@19.2.3", "", { "peerDependencies": { "@types/react": "19.2.17" } }, "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ=="],
"@types/stats.js": ["@types/stats.js@0.17.4", "", {}, "sha512-jIBvWWShCvlBqBNIZt0KAshWpvSjhkwkEu4ZUcASoAvhmrgAUI2t1dXrjSL4xXVLB4FznPrIsX3nKXFl/Dt4vA=="],
"@types/three": ["@types/three@0.185.4", "", { "dependencies": { "@dimforge/rapier3d-compat": "~0.12.0", "@tweenjs/tween.js": "~23.1.3", "@types/stats.js": "*", "@types/webxr": ">=0.5.17", "fflate": "~0.8.2", "meshoptimizer": "~1.1.1" } }, "sha512-gAsBIC07NIFrxjbf7tH2t71c38uulFfk/RFoC7FNBSjMRAQ8J1x/RBvusX0N5PJouaYFJawXQqfCQ0RKUx/1nA=="],
"@types/webxr": ["@types/webxr@0.5.24", "", {}, "sha512-h8fgEd/DpoS9CBrjEQXR+dIDraopAEfu4wYVNY2tEPwk60stPWhvZMf4Foo5FakuQ7HFZoa8WceaWFervK2Ovg=="],
"@typescript/typescript-aix-ppc64": ["@typescript/typescript-aix-ppc64@7.0.2", "", { "os": "aix", "cpu": "ppc64" }, "sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ=="],
"@typescript/typescript-darwin-arm64": ["@typescript/typescript-darwin-arm64@7.0.2", "", { "os": "darwin", "cpu": "arm64" }, "sha512-gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA=="],
"@typescript/typescript-darwin-x64": ["@typescript/typescript-darwin-x64@7.0.2", "", { "os": "darwin", "cpu": "x64" }, "sha512-SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA=="],
"@typescript/typescript-freebsd-arm64": ["@typescript/typescript-freebsd-arm64@7.0.2", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ=="],
"@typescript/typescript-freebsd-x64": ["@typescript/typescript-freebsd-x64@7.0.2", "", { "os": "freebsd", "cpu": "x64" }, "sha512-UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw=="],
"@typescript/typescript-linux-arm": ["@typescript/typescript-linux-arm@7.0.2", "", { "os": "linux", "cpu": "arm" }, "sha512-gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ=="],
"@typescript/typescript-linux-arm64": ["@typescript/typescript-linux-arm64@7.0.2", "", { "os": "linux", "cpu": "arm64" }, "sha512-Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ=="],
"@typescript/typescript-linux-loong64": ["@typescript/typescript-linux-loong64@7.0.2", "", { "os": "linux", "cpu": "none" }, "sha512-uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ=="],
"@typescript/typescript-linux-mips64el": ["@typescript/typescript-linux-mips64el@7.0.2", "", { "os": "linux", "cpu": "none" }, "sha512-R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA=="],
"@typescript/typescript-linux-ppc64": ["@typescript/typescript-linux-ppc64@7.0.2", "", { "os": "linux", "cpu": "ppc64" }, "sha512-DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA=="],
"@typescript/typescript-linux-riscv64": ["@typescript/typescript-linux-riscv64@7.0.2", "", { "os": "linux", "cpu": "none" }, "sha512-wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ=="],
"@typescript/typescript-linux-s390x": ["@typescript/typescript-linux-s390x@7.0.2", "", { "os": "linux", "cpu": "s390x" }, "sha512-IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw=="],
"@typescript/typescript-linux-x64": ["@typescript/typescript-linux-x64@7.0.2", "", { "os": "linux", "cpu": "x64" }, "sha512-EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A=="],
"@typescript/typescript-netbsd-arm64": ["@typescript/typescript-netbsd-arm64@7.0.2", "", { "os": "none", "cpu": "arm64" }, "sha512-+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA=="],
"@typescript/typescript-netbsd-x64": ["@typescript/typescript-netbsd-x64@7.0.2", "", { "os": "none", "cpu": "x64" }, "sha512-8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA=="],
"@typescript/typescript-openbsd-arm64": ["@typescript/typescript-openbsd-arm64@7.0.2", "", { "os": "openbsd", "cpu": "arm64" }, "sha512-APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ=="],
"@typescript/typescript-openbsd-x64": ["@typescript/typescript-openbsd-x64@7.0.2", "", { "os": "openbsd", "cpu": "x64" }, "sha512-yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg=="],
"@typescript/typescript-sunos-x64": ["@typescript/typescript-sunos-x64@7.0.2", "", { "os": "sunos", "cpu": "x64" }, "sha512-dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g=="],
"@typescript/typescript-win32-arm64": ["@typescript/typescript-win32-arm64@7.0.2", "", { "os": "win32", "cpu": "arm64" }, "sha512-Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ=="],
"@typescript/typescript-win32-x64": ["@typescript/typescript-win32-x64@7.0.2", "", { "os": "win32", "cpu": "x64" }, "sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g=="],
"ansi-regex": ["ansi-regex@6.3.0", "", {}, "sha512-WpDfL7NO6j7tH88IDBNVdUJxDh9nmCteAVW9dsep846XdwF4naCBK+/tGLX3KJgcpgMRXCFlTM2hKGoK9FsdrQ=="],
"ansi-styles": ["ansi-styles@6.2.3", "", {}, "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg=="],
"babel-plugin-react-compiler": ["babel-plugin-react-compiler@1.0.0", "", { "dependencies": { "@babel/types": "7.29.7" } }, "sha512-Ixm8tFfoKKIPYdCCKYTsqv+Fd4IJ0DQqMyEimo+pxUOMUR9cVPlwTrFt9Avu+3cb6Zp3mAzl+t1MrG2fxxKsxw=="],
"baseline-browser-mapping": ["baseline-browser-mapping@2.11.7", "", { "bin": { "baseline-browser-mapping": "dist/cli.cjs" } }, "sha512-APw5YuIQAg6L9w4sHDI6j26DGFJI6RpYOhnkMPdC9lWbkKvsyPHzDsve1yd73lk21yz7Y09Kci8B2Pp9FonzWA=="],
"browserslist": ["browserslist@4.28.7", "", { "dependencies": { "baseline-browser-mapping": "2.11.7", "caniuse-lite": "1.0.30001806", "electron-to-chromium": "1.5.398", "node-releases": "2.0.51", "update-browserslist-db": "1.2.3" }, "bin": { "browserslist": "cli.js" } }, "sha512-JxV13hNrFxqjOc8alRbq9dK1MM79NEXYpma2B2J4wAtpWS5zIEIKqWPGCl7N4o7Uc7B7itylh7SuDujATRyyTw=="],
"caniuse-lite": ["caniuse-lite@1.0.30001806", "", {}, "sha512-72Cuvd95zbSYPKq6Fhg8eDJRlzgWDf7/mtoZv6Qe/DYNCEBdNxoA3+rZAU2ZhGCpZlns3EssFavaZomckT5Uuw=="],
"chromium-bidi": ["chromium-bidi@17.0.2", "", { "dependencies": { "mitt": "3.0.1", "zod": "3.25.76" }, "peerDependencies": { "devtools-protocol": "0.0.1666840" } }, "sha512-5v9GQFhTktFvotn/OFNJBmKLKRAb6n9r0bVCwf7sHgWc3/JryK0bj1nn93L3pHFrfgcsu6Be6EWsDi+1XHTGDg=="],
"client-only": ["client-only@0.0.1", "", {}, "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA=="],
"cliui": ["cliui@9.0.1", "", { "dependencies": { "string-width": "7.2.0", "strip-ansi": "7.2.0", "wrap-ansi": "9.0.2" } }, "sha512-k7ndgKhwoQveBL+/1tqGJYNz097I7WOvwbmmU2AR5+magtbjPWQTS1C5vzGkBC8Ym8UWRzfKUzUUqFLypY4Q+w=="],
"clsx": ["clsx@2.1.1", "", {}, "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA=="],
"convert-source-map": ["convert-source-map@2.0.0", "", {}, "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg=="],
"csstype": ["csstype@3.2.3", "", {}, "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ=="],
"debug": ["debug@4.4.3", "", { "dependencies": { "ms": "2.1.3" } }, "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA=="],
"dequal": ["dequal@2.0.3", "", {}, "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA=="],
"detect-libc": ["detect-libc@2.1.2", "", {}, "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ=="],
"devtools-protocol": ["devtools-protocol@0.0.1666840", "", {}, "sha512-gCcO42XCHKEs7Ag0S7aGYsnJ7hlgrO3qderYqeiY0Eqk+0GFfuvT13IA0hHreJTa2KCdDVyGMeOhdMNmrrTjVg=="],
"electron-to-chromium": ["electron-to-chromium@1.5.398", "", {}, "sha512-AsvhAxopJGh6museTDMIjn6JpDYOfgu4RLlygomt87MUwBUqTfd/1EiPtx10/LZE8xpTvkP2E9Gafq7lkLtodQ=="],
"emoji-regex": ["emoji-regex@10.6.0", "", {}, "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A=="],
"enhanced-resolve": ["enhanced-resolve@5.24.4", "", { "dependencies": { "graceful-fs": "4.2.11", "tapable": "2.3.3" } }, "sha512-GVoi+ICHocoOIU7qVVM48wOJziRsqrsyqlI0Ce0LdowRn6v3bcH2zUa9kp85ncx0nwIb9/HOCOLS3fdThDG/XQ=="],
"escalade": ["escalade@3.2.0", "", {}, "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA=="],
"event-target-polyfill": ["event-target-polyfill@0.0.4", "", {}, "sha512-Gs6RLjzlLRdT8X9ZipJdIZI/Y6/HhRLyq9RdDlCsnpxr/+Nn6bU2EFGuC94GjxqhM+Nmij2Vcq98yoHrU8uNFQ=="],
"fflate": ["fflate@0.8.3", "", {}, "sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA=="],
"gensync": ["gensync@1.0.0-beta.2", "", {}, "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg=="],
"get-caller-file": ["get-caller-file@2.0.5", "", {}, "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg=="],
"get-east-asian-width": ["get-east-asian-width@1.6.0", "", {}, "sha512-QRbvDIbx6YklUe6RxeTeleMR0yv3cYH6PsPZHcnVn7xv7zO1BHN8r0XETu8n6Ye3Q+ahtSarc3WgtNWmehIBfA=="],
"graceful-fs": ["graceful-fs@4.2.11", "", {}, "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ=="],
"gsap": ["gsap@3.15.0", "", {}, "sha512-dMW4CWBTUK1AEEDeZc1g4xpPGIrSf9fJF960qbTZmN/QwZIWY5wgliS6JWl9/25fpTGJrMRtSjGtOmPnfjZB+A=="],
"jiti": ["jiti@2.7.0", "", { "bin": { "jiti": "lib/jiti-cli.mjs" } }, "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ=="],
"js-tokens": ["js-tokens@4.0.0", "", {}, "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="],
"jsesc": ["jsesc@3.1.0", "", { "bin": { "jsesc": "bin/jsesc" } }, "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA=="],
"json5": ["json5@2.2.3", "", { "bin": { "json5": "lib/cli.js" } }, "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg=="],
"lightningcss": ["lightningcss@1.32.0", "", { "dependencies": { "detect-libc": "2.1.2" }, "optionalDependencies": { "lightningcss-android-arm64": "1.32.0", "lightningcss-darwin-arm64": "1.32.0", "lightningcss-darwin-x64": "1.32.0", "lightningcss-freebsd-x64": "1.32.0", "lightningcss-linux-arm-gnueabihf": "1.32.0", "lightningcss-linux-arm64-gnu": "1.32.0", "lightningcss-linux-arm64-musl": "1.32.0", "lightningcss-linux-x64-gnu": "1.32.0", "lightningcss-linux-x64-musl": "1.32.0", "lightningcssLine truncated
"lightningcss-android-arm64": ["lightningcss-android-arm64@1.32.0", "", { "os": "android", "cpu": "arm64" }, "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg=="],
"lightningcss-darwin-arm64": ["lightningcss-darwin-arm64@1.32.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ=="],
"lightningcss-darwin-x64": ["lightningcss-darwin-x64@1.32.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w=="],
"lightningcss-freebsd-x64": ["lightningcss-freebsd-x64@1.32.0", "", { "os": "freebsd", "cpu": "x64" }, "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig=="],
"lightningcss-linux-arm-gnueabihf": ["lightningcss-linux-arm-gnueabihf@1.32.0", "", { "os": "linux", "cpu": "arm" }, "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw=="],
"lightningcss-linux-arm64-gnu": ["lightningcss-linux-arm64-gnu@1.32.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ=="],
"lightningcss-linux-arm64-musl": ["lightningcss-linux-arm64-musl@1.32.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg=="],
"lightningcss-linux-x64-gnu": ["lightningcss-linux-x64-gnu@1.32.0", "", { "os": "linux", "cpu": "x64" }, "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA=="],
"lightningcss-linux-x64-musl": ["lightningcss-linux-x64-musl@1.32.0", "", { "os": "linux", "cpu": "x64" }, "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg=="],
"lightningcss-win32-arm64-msvc": ["lightningcss-win32-arm64-msvc@1.32.0", "", { "os": "win32", "cpu": "arm64" }, "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw=="],
"lightningcss-win32-x64-msvc": ["lightningcss-win32-x64-msvc@1.32.0", "", { "os": "win32", "cpu": "x64" }, "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q=="],
"lru-cache": ["lru-cache@5.1.1", "", { "dependencies": { "yallist": "3.1.1" } }, "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w=="],
"lucide-react": ["lucide-react@1.34.0", "", { "peerDependencies": { "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-vnjGJNI7Htk5+oWW8gXGuaLgwgAb0T6/iZbBrp9JCfRFwdNWZ0YTm3eyxjOLgwN6r8iyAf3UA70zNmBRBNv7yg=="],
"magic-string": ["magic-string@0.30.21", "", { "dependencies": { "@jridgewell/sourcemap-codec": "1.5.5" } }, "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ=="],
"meshoptimizer": ["meshoptimizer@1.1.1", "", {}, "sha512-oRFNWJRDA/WTrVj7NWvqa5HqE1t9MYDj2VaWirQCzCCrAd2GHrqR/sQezCxiWATPNlKTcRaPRHPJwIRoPBAp5g=="],
"mitt": ["mitt@3.0.1", "", {}, "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw=="],
"modern-tar": ["modern-tar@0.8.4", "", {}, "sha512-gN54ddmyzEg10orwZ2u4OOv+bjpMWdIl5jIkodK97bMq8QBSL5c0D7YX0lT1Ooz+99S7+PvFbnxzdjgHo1r41g=="],
"ms": ["ms@2.1.3", "", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="],
"nanoid": ["nanoid@3.3.16", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-bzlKTyNJ7+LdGIIwy8ijFpIqEQIvafahV7eYykJ8Cvh42EdJeODoJ6gUJXpQJvej1BddH8OqTXZNE/KfbWAu8Q=="],
"next": ["next@16.3.2", "", { "dependencies": { "@next/env": "16.3.2", "@swc/helpers": "0.5.23", "baseline-browser-mapping": "^2.9.19", "caniuse-lite": "^1.0.30001579", "postcss": "8.5.23", "styled-jsx": "5.1.6" }, "optionalDependencies": { "@next/swc-darwin-arm64": "16.3.2", "@next/swc-darwin-x64": "16.3.2", "@next/swc-linux-arm64-gnu": "16.3.2", "@next/swc-linux-arm64-musl": "16.3.2", "@next/swc-linux-x64-gnu": "16.3.2", "@next/swc-linux-x64-musl": "16.3.2", "@next/swc-win32-arm64-msvc": Line truncated
"next-themes": ["next-themes@0.4.6", "", { "peerDependencies": { "react": "19.2.4", "react-dom": "19.2.4" } }, "sha512-pZvgD5L0IEvX5/9GWyHMf3m8BKiVQwsCMHfoFosXtXBMnaS0ZnIJ9ST4b4NqLVKDEm8QBxoNNGNaBv2JNF6XNA=="],
"node-releases": ["node-releases@2.0.51", "", {}, "sha512-wRNIrw4DmVLKQlbgOMdkMx27Wrpzes2hh5Jtbi2bjPd+4wJstWIqP5A+lscnqbm0xxmT5Bpg8Lec5ItEBwx6BQ=="],
"partysocket": ["partysocket@1.3.0", "", { "dependencies": { "event-target-polyfill": "0.0.4" }, "optionalDependencies": { "react": "19.2.4" } }, "sha512-1zToNyolZFK/7nuAw/K2bZrNzFqaZyRoCEkS+9vG6WSC5ikrN6qWRe96q6ImU51uptz2r+dAwSkwhJVdQi4LiA=="],
"picocolors": ["picocolors@1.1.1", "", {}, "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="],
"postcss": ["postcss@8.5.25", "", { "dependencies": { "nanoid": "3.3.16", "picocolors": "1.1.1", "source-map-js": "1.2.1" } }, "sha512-DTPx3RWSSnWyzLxQnlH0rJP+EW5ekl16ZU4/psbIhA0e53kJfdgaN5vKM+xP7yJtXVu+nfdVFmlgFDEKAe4Pyw=="],
"puppeteer-core": ["puppeteer-core@25.9.0", "", { "dependencies": { "@puppeteer/browsers": "3.2.1", "chromium-bidi": "17.0.2", "devtools-protocol": "0.0.1666840", "typed-query-selector": "^2.12.2", "webdriver-bidi-protocol": "0.4.2", "ws": "^8.21.3" } }, "sha512-U61rCwSMha62CA/Opy6tCx2Fx+ck7ouiKnbpEApzSoLYMoEu9F71nuFpHL55vmIt33/GYm6eKZVhH2ev0nAIeg=="],
"radash": ["radash@12.1.1", "", {}, "sha512-h36JMxKRqrAxVD8201FrCpyeNuUY9Y5zZwujr20fFO77tpUtGa6EZzfKw/3WaiBX95fq7+MpsuMLNdSnORAwSA=="],
"react": ["react@19.2.8", "", {}, "sha512-PWaYA1L/q9u2u7xYQi+Y3L3Yfnie7XyLeaJICV1MGD6LprsBxcAqGjYyr0eY3p+QdsA+x/Irkt4Qif8D63+Sbw=="],
"react-dom": ["react-dom@19.2.8", "", { "dependencies": { "scheduler": "^0.27.0" }, "peerDependencies": { "react": "^19.2.8" } }, "sha512-rVprimfGBG3DR+Tq0IQG2DT5PxKth1WIGDmj5yPmlzr4YBe7uyE+Du4oVqTDXZSHGGGXRtTJEGSSePyQCMBglQ=="],
"scheduler": ["scheduler@0.27.0", "", {}, "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q=="],
"semver": ["semver@7.8.5", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA=="],
"sharp": ["sharp@0.35.3", "", { "dependencies": { "@img/colour": "^1.1.0", "detect-libc": "^2.1.2", "semver": "^7.8.5" }, "optionalDependencies": { "@img/sharp-darwin-arm64": "0.35.3", "@img/sharp-darwin-x64": "0.35.3", "@img/sharp-freebsd-wasm32": "0.35.3", "@img/sharp-libvips-darwin-arm64": "1.3.2", "@img/sharp-libvips-darwin-x64": "1.3.2", "@img/sharp-libvips-linux-arm": "1.3.2", "@img/sharp-libvips-linux-arm64": "1.3.2", "@img/sharp-libvips-linux-ppc64": "1.3.2", "@img/sharp-libvips-linLine truncated
"source-map-js": ["source-map-js@1.2.1", "", {}, "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA=="],
"string-width": ["string-width@8.2.2", "", { "dependencies": { "get-east-asian-width": "1.6.0", "strip-ansi": "7.2.0" } }, "sha512-GaPUh5gfdrYzqeVNZvUfT23vYYxXzKYidUcnMtJg/3rxRV63EFZy3k6xfKlmfeJD0176lnUV/Usr3XcwSvFzpg=="],
"strip-ansi": ["strip-ansi@7.2.0", "", { "dependencies": { "ansi-regex": "6.3.0" } }, "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w=="],
"styled-jsx": ["styled-jsx@5.1.6", "", { "dependencies": { "client-only": "0.0.1" }, "optionalDependencies": { "@babel/core": "7.29.7" }, "peerDependencies": { "react": "19.2.4" } }, "sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA=="],
"swr": ["swr@2.5.1", "", { "dependencies": { "dequal": "^2.0.3", "use-sync-external-store": "^1.6.0" }, "peerDependencies": { "react": "^16.11.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-BRw55e8r0B7SpDN20CAzoQAHl7y1yP7/Zt7oqUjMv0vSt2u2Xnkm88Ws+VypbV9BXHQVuSuyVq7zMjO16wSExw=="],
"tagged-tag": ["tagged-tag@1.0.0", "", {}, "sha512-yEFYrVhod+hdNyx7g5Bnkkb0G6si8HJurOoOEgC8B/O0uXLHlaey/65KRv6cuWBNhBgHKAROVpc7QyYqE5gFng=="],
"tailwind-merge": ["tailwind-merge@3.6.0", "", {}, "sha512-uxL7qAVQriqRQPAyK3pj66VqskWqoZ37PW94jwOTwNfq/z9oyu1V+eqrZqtR2+fCiXdYOZe/Modt8GtvqNzu+w=="],
"tailwindcss": ["tailwindcss@4.3.3", "", {}, "sha512-gOhV3P7ufE62QDGg1zVaTgCR+EtPv92k2nIhVcVKcLmxT1sUBsQGhnZj175j+MqRt4zLF7ic+sCYjfhxMxj7YQ=="],
"tapable": ["tapable@2.3.3", "", {}, "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A=="],
"three": ["three@0.185.1", "", {}, "sha512-5aojFCXKwnjBRZvUnt3WFfEcvUJgkN5LlijRFN95hMy8WVkG4I0QNcJE+OuWvuJ0bOdStrbfXn0pkd6/QyiAlg=="],
"tslib": ["tslib@2.8.1", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],
"type-fest": ["type-fest@5.8.0", "", { "dependencies": { "tagged-tag": "1.0.0" } }, "sha512-YGYEVz3Fm5iy/AybuA0oyNFq7H4CgQNfRp/qfe8nurE1kuCeNm3/vfm9X4Mtl+qLyaKJUh5xrFZwogr41SMjYA=="],
"typed-query-selector": ["typed-query-selector@2.12.2", "", {}, "sha512-EOPFbyIub4ngnEdqi2yOcNeDLaX/0jcE1JoAXQDDMIthap7FoN795lc/SHfIq2d416VufXpM8z/lD+WRm2gfOQ=="],
"typescript": ["typescript@7.0.2", "", { "optionalDependencies": { "@typescript/typescript-aix-ppc64": "7.0.2", "@typescript/typescript-darwin-arm64": "7.0.2", "@typescript/typescript-darwin-x64": "7.0.2", "@typescript/typescript-freebsd-arm64": "7.0.2", "@typescript/typescript-freebsd-x64": "7.0.2", "@typescript/typescript-linux-arm": "7.0.2", "@typescript/typescript-linux-arm64": "7.0.2", "@typescript/typescript-linux-loong64": "7.0.2", "@typescript/typescript-linux-mips64el": "7.0.2", "@Line truncated
"undici-types": ["undici-types@8.3.0", "", {}, "sha512-j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ=="],
"update-browserslist-db": ["update-browserslist-db@1.2.3", "", { "dependencies": { "escalade": "3.2.0", "picocolors": "1.1.1" }, "peerDependencies": { "browserslist": "4.28.7" }, "bin": { "update-browserslist-db": "cli.js" } }, "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w=="],
"use-sync-external-store": ["use-sync-external-store@1.6.0", "", { "peerDependencies": { "react": "19.2.4" } }, "sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w=="],
"webdriver-bidi-protocol": ["webdriver-bidi-protocol@0.4.2", "", {}, "sha512-VSV+fzfChirL3e7jay2yUC7B4HQCGtEWEg/MSSQbK+qWbqeGlRLlXTzPpYr3XGUvbpDHumWZBJxgesg4N7dbtA=="],
"wrap-ansi": ["wrap-ansi@9.0.2", "", { "dependencies": { "ansi-styles": "6.2.3", "string-width": "7.2.0", "strip-ansi": "7.2.0" } }, "sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww=="],
"ws": ["ws@8.21.3", "", {}, "sha512-201TZ/kPWxoPr/OKWjquZR1SWKXcvxdH+e1xrx89b3YbmzLMFCLfnaG1HFIgWzJOEWZ7MvpK++odZufgYR50Rw=="],
"y18n": ["y18n@5.0.8", "", {}, "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA=="],
"yallist": ["yallist@3.1.1", "", {}, "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g=="],
"yargs": ["yargs@18.1.0", "", { "dependencies": { "cliui": "9.0.1", "escalade": "3.2.0", "get-caller-file": "2.0.5", "string-width": "8.2.2", "y18n": "5.0.8", "yargs-parser": "22.0.0" } }, "sha512-2rAgRKu54VsHkqI0/tYkmluGXHD4KW7yZoycuqDQ15QOTnc2VVfy0nN/1eMhnQLO00A+dwtK20xuCnc1YGeUyg=="],
"yargs-parser": ["yargs-parser@22.0.0", "", {}, "sha512-rwu/ClNdSMpkSrUb+d6BRsSkLUq1fmfsY6TOpYzTwvwkg1/NRG85KBy3kq++A8LKQwX6lsu+aWad+2khvuXrqw=="],
"zod": ["zod@3.25.76", "", {}, "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ=="],
"@babel/core/semver": ["semver@6.3.1", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA=="],
"@babel/helper-compilation-targets/semver": ["semver@6.3.1", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA=="],
"cliui/string-width": ["string-width@7.2.0", "", { "dependencies": { "emoji-regex": "10.6.0", "get-east-asian-width": "1.6.0", "strip-ansi": "7.2.0" } }, "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ=="],
"next/postcss": ["postcss@8.5.23", "", { "dependencies": { "nanoid": "^3.3.16", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" } }, "sha512-g50586zr4bZmwFiTlflMu8E0bDTb5I5gertgwAKmsdUlTQIhZtunzUlD1WSzwcVWPoAVpsrA6vlfCD7oXvRwgg=="],
"partysocket/react": ["react@19.2.4", "", {}, "sha512-9nfp2hYpCwOjAN+8TZFGhtWEwgvWHXqESH8qT89AT/lWklpLON22Lc8pEtnpsZz7VmawabSU0gCjnj8aC0euHQ=="],
"wrap-ansi/string-width": ["string-width@7.2.0", "", { "dependencies": { "emoji-regex": "10.6.0", "get-east-asian-width": "1.6.0", "strip-ansi": "7.2.0" } }, "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ=="],
}
}
@@ -7,8 +7,6 @@ import {
MessageSquare, MessageSquare,
Mic, Mic,
Shield, Shield,
ShieldAlert,
Terminal,
Users, Users,
} from "lucide-react"; } from "lucide-react";
import Link from "next/link"; import Link from "next/link";
@@ -18,7 +16,9 @@ import { AreaActivity, RadialGauge } from "@/components/charts";
import { GlassPanel } from "@/components/primitives"; import { GlassPanel } from "@/components/primitives";
import { import {
ErrorState, ErrorState,
MetricTile,
PageTransition, PageTransition,
SectionHeader,
SkeletonHero, SkeletonHero,
SkeletonMetricRow, SkeletonMetricRow,
SkeletonPanel, SkeletonPanel,
@@ -63,9 +63,9 @@ export function DashboardView({
const { data: reactions } = useTopReactions(); const { data: reactions } = useTopReactions();
const ambient = useAmbient(); const ambient = useAmbient();
const hudRef = useStaggerReveal<HTMLDivElement>(".hud-tile", { const hudRef = useStaggerReveal<HTMLDivElement>(".linear-tile", {
stagger: 0.05, stagger: 0.035,
y: 16, y: 8,
dependencies: [stats], dependencies: [stats],
}); });
@@ -82,10 +82,10 @@ export function DashboardView({
return <ErrorState error={error} onRetry={() => void mutateStats()} />; return <ErrorState error={error} onRetry={() => void mutateStats()} />;
if (!stats && isLoading) if (!stats && isLoading)
return ( return (
<div className="space-y-5"> <div className="space-y-4">
<SkeletonHero /> <SkeletonHero />
<SkeletonMetricRow cols={4} /> <SkeletonMetricRow cols={4} />
<SkeletonPanel rows={5} /> <SkeletonPanel rows={4} />
</div> </div>
); );
if (!stats) if (!stats)
@@ -99,276 +99,155 @@ export function DashboardView({
const s = stats; const s = stats;
const total = s.total_flagged + s.total_clean || 1; const total = s.total_flagged + s.total_clean || 1;
const cleanRatio = s.total_clean / total; const cleanRatio = s.total_clean / total;
const sig = deriveSignal(s);
return ( return (
<PageTransition> <PageTransition>
<div ref={hudRef} className="space-y-4"> <div ref={hudRef} className="space-y-4">
{/* Tactical HUD Header Bar */} {/* Precision Sub-Header Bar */}
<div className="hud-tile flex flex-wrap items-center justify-between gap-3 border-b border-hairline pb-3"> <div className="linear-tile flex flex-wrap items-center justify-between gap-3 border-b border-white/[0.06] pb-3">
<div className="flex items-center gap-3"> <div className="flex items-center gap-2.5">
<div className="relative flex size-3 items-center justify-center"> <span className="h-2 w-2 rounded-full bg-[#7170ff] shadow-[0_0_8px_#7170ff]" />
<span className="absolute inline-flex size-full animate-ping rounded-full bg-signal opacity-75" /> <h1 className="font-mono text-xs font-semibold tracking-wide text-[#f7f8f8] uppercase">
<span className="relative inline-flex size-2 rounded-full bg-signal" /> Telemetry Overview · Node 01
</div> </h1>
<div className="flex items-baseline gap-2">
<h1 className="font-mono text-xs font-semibold tracking-widest text-ink uppercase">
GMW TELEMETRY · MATRIX_01
</h1>
<span className="font-mono text-[10px] text-ink-faint">
[LIVE_MONITOR]
</span>
</div>
</div> </div>
<div className="flex items-center gap-2 font-mono text-[11px] text-[#8a8f98]">
<div className="flex items-center gap-2"> <span>SIGNAL:</span>
<div className="inline-flex items-center gap-1.5 rounded-sm bg-surface px-2 py-0.5 font-mono text-[11px] text-ink-soft"> <span className="rounded bg-white/[0.04] px-1.5 py-0.5 font-medium text-[#7170ff] border border-white/[0.06]">
<span className="text-ink-faint">SYS_STATUS:</span> STABLE_STREAM
<span className="font-bold text-signal">{sig.state}</span> </span>
</div>
<div className="inline-flex items-center gap-1.5 rounded-sm bg-surface px-2 py-0.5 font-mono text-[11px] text-ink-soft">
<span className="text-ink-faint">VER:</span>
<span className="text-ink">v2.4-GSAP</span>
</div>
</div> </div>
</div> </div>
{/* Spatial HUD Grid: Live Mission Control */} {/* Primary Metric Deck */}
<div className="grid gap-4 lg:grid-cols-12"> <div className="linear-tile grid gap-3 sm:grid-cols-2 lg:grid-cols-4">
{/* Main Telemetry & Activity Area */} <MetricTile
<div className="space-y-4 lg:col-span-8"> label="Total Messages"
{/* Primary Telemetry Cluster */} value={formatNumber(s.total_messages)}
<div className="hud-tile grid grid-cols-2 gap-2.5 sm:grid-cols-4"> hint={`${formatNumber(s.today_messages)} today`}
<div className="group relative overflow-hidden rounded-md border border-hairline bg-surface/50 p-3.5 backdrop-blur-md transition-colors hover:border-signal/40"> icon={<MessageSquare className="size-4" />}
<div className="flex items-center justify-between text-ink-faint"> />
<span className="font-mono text-[10px] tracking-wider uppercase"> <MetricTile
Messages label="Clean Filter Ratio"
</span> value={`${Math.round(cleanRatio * 100)}%`}
<MessageSquare className="size-3.5 text-signal" /> hint={`${formatNumber(s.total_clean)} verified clean`}
</div> tone="signal"
<div className="mt-2 font-mono text-xl font-bold tracking-tight text-ink"> icon={<Shield className="size-4" />}
{formatNumber(s.total_messages)} />
</div> <MetricTile
<div className="mt-1 flex items-center gap-1 font-mono text-[10px] text-ink-faint"> label="Voice Recordings"
<span className="text-signal">↑ live</span> ingest value={formatNumber(s.total_voice_recordings)}
</div> hint="Archived audio sessions"
</div> icon={<Mic className="size-4" />}
/>
<MetricTile
label="Total Profiles"
value={formatNumber(s.total_profiles)}
hint={`${formatNumber(s.active_users_24h)} active 24h`}
icon={<Users className="size-4" />}
/>
</div>
<div className="group relative overflow-hidden rounded-md border border-hairline bg-surface/50 p-3.5 backdrop-blur-md transition-colors hover:border-signal/40"> {/* Dynamic Activity Area & Telemetry Gauges */}
<div className="flex items-center justify-between text-ink-faint"> <div className="grid gap-3 lg:grid-cols-3">
<span className="font-mono text-[10px] tracking-wider uppercase"> <GlassPanel className="linear-tile lg:col-span-2">
Flagged <SectionHeader
</span> eyebrow="Activity Stream"
<ShieldAlert className="size-3.5 text-vermilion" /> title="Message Volume & Signal Density"
</div> />
<div className="mt-2 font-mono text-xl font-bold tracking-tight text-ink"> <div className="mt-4">
{formatNumber(s.total_flagged)} <AreaActivity daily={activity?.daily ?? []} />
</div>
<div className="mt-1 font-mono text-[10px] text-ink-faint">
<span className="text-vermilion">{s.today_flagged}</span>{" "}
today
</div>
</div>
<div className="group relative overflow-hidden rounded-md border border-hairline bg-surface/50 p-3.5 backdrop-blur-md transition-colors hover:border-signal/40">
<div className="flex items-center justify-between text-ink-faint">
<span className="font-mono text-[10px] tracking-wider uppercase">
Active 24h
</span>
<Users className="size-3.5 text-signal" />
</div>
<div className="mt-2 font-mono text-xl font-bold tracking-tight text-ink">
{formatNumber(s.active_users_24h)}
</div>
<div className="mt-1 font-mono text-[10px] text-ink-faint">
<span>unique accounts</span>
</div>
</div>
<div className="group relative overflow-hidden rounded-md border border-hairline bg-surface/50 p-3.5 backdrop-blur-md transition-colors hover:border-signal/40">
<div className="flex items-center justify-between text-ink-faint">
<span className="font-mono text-[10px] tracking-wider uppercase">
Voice Captures
</span>
<Mic className="size-3.5 text-signal" />
</div>
<div className="mt-2 font-mono text-xl font-bold tracking-tight text-ink">
{formatNumber(s.total_voice_recordings)}
</div>
<div className="mt-1 font-mono text-[10px] text-ink-faint">
<span>audio buffers</span>
</div>
</div>
</div> </div>
</GlassPanel>
{/* Activity Waveform / Time Series */} <GlassPanel className="linear-tile flex flex-col justify-between">
<GlassPanel className="hud-tile rounded-md border border-hairline bg-surface/40 p-4 backdrop-blur-md"> <div>
<div className="mb-4 flex items-center justify-between"> <SectionHeader
<div> eyebrow="Security State"
<div className="font-mono text-[10px] tracking-widest text-ink-faint uppercase"> title="Moderation Accuracy"
CHRONO TELEMETRY (14D) />
</div> <div className="my-6 flex items-center justify-center">
<div className="text-sm font-medium text-ink">
Message & Activity Stream
</div>
</div>
<div className="flex items-center gap-3 font-mono text-[11px]">
<div className="flex items-center gap-1 text-ink-soft">
<span className="size-2 rounded-full bg-signal" />
<span>Activity Trend</span>
</div>
</div>
</div>
<div className="h-56 w-full">
{activity?.daily ? (
<AreaActivity daily={activity.daily} />
) : (
<div className="flex h-full items-center justify-center font-mono text-xs text-ink-faint">
ACQUIRING SIGNAL...
</div>
)}
</div>
</GlassPanel>
{/* Quick Tactical Links */}
<div className="hud-tile grid grid-cols-1 gap-2.5 sm:grid-cols-3">
<Link
href="/voice"
className="group flex items-center justify-between rounded-md border border-hairline bg-surface/30 p-3 transition hover:border-signal/50 hover:bg-surface/60"
>
<div className="flex items-center gap-2.5">
<div className="flex size-8 items-center justify-center rounded bg-canvas-2 text-signal group-hover:bg-signal group-hover:text-signal-ink">
<AudioWaveform className="size-4" />
</div>
<div>
<div className="font-mono text-xs font-semibold text-ink">
Voice Matrix
</div>
<div className="text-[11px] text-ink-faint">
Realtime speaker stream
</div>
</div>
</div>
<ChevronRight className="size-4 text-ink-faint group-hover:text-signal" />
</Link>
<Link
href="/messages"
className="group flex items-center justify-between rounded-md border border-hairline bg-surface/30 p-3 transition hover:border-signal/50 hover:bg-surface/60"
>
<div className="flex items-center gap-2.5">
<div className="flex size-8 items-center justify-center rounded bg-canvas-2 text-signal group-hover:bg-signal group-hover:text-signal-ink">
<Terminal className="size-4" />
</div>
<div>
<div className="font-mono text-xs font-semibold text-ink">
Chat Log Stream
</div>
<div className="text-[11px] text-ink-faint">
Live telemetry feed
</div>
</div>
</div>
<ChevronRight className="size-4 text-ink-faint group-hover:text-signal" />
</Link>
<Link
href="/moderation"
className="group flex items-center justify-between rounded-md border border-hairline bg-surface/30 p-3 transition hover:border-signal/50 hover:bg-surface/60"
>
<div className="flex items-center gap-2.5">
<div className="flex size-8 items-center justify-center rounded bg-canvas-2 text-signal group-hover:bg-signal group-hover:text-signal-ink">
<Shield className="size-4" />
</div>
<div>
<div className="font-mono text-xs font-semibold text-ink">
Auto-Mod Radar
</div>
<div className="text-[11px] text-ink-faint">
Classification & audits
</div>
</div>
</div>
<ChevronRight className="size-4 text-ink-faint group-hover:text-signal" />
</Link>
</div>
</div>
{/* Side Telemetry Panel: Health, Dials, & Nodes */}
<div className="space-y-4 lg:col-span-4">
{/* Safety & Moderation Integrity Gauge */}
<GlassPanel className="hud-tile rounded-md border border-hairline bg-surface/40 p-4 backdrop-blur-md">
<div className="font-mono text-[10px] tracking-widest text-ink-faint uppercase">
INTEGRITY MATRIX
</div>
<div className="mt-1 text-sm font-medium text-ink">
Clean Stream Ratio
</div>
<div className="my-4 flex items-center justify-center">
<RadialGauge <RadialGauge
value={Math.round(cleanRatio * 100)} value={Math.round(cleanRatio * 100)}
label="Clean Ratio"
tone={cleanRatio > 0.85 ? "signal" : "amber"}
size={140} size={140}
tone={cleanRatio > 0.9 ? "signal" : "amber"}
label={`${Math.round(cleanRatio * 100)}%`}
sublabel="CLEAN RATIO"
/> />
</div> </div>
<div className="space-y-2 border-t border-hairline pt-3 font-mono text-xs"> </div>
<div className="flex justify-between"> <div className="grid grid-cols-2 gap-2 border-t border-white/[0.06] pt-3 text-center">
<span className="text-ink-faint">Clean Messages:</span> <div>
<span className="font-medium text-ink"> <div className="font-mono text-[10px] text-[#8a8f98]">CLEAN</div>
{formatNumber(s.total_clean)} <div className="font-sans text-sm font-semibold text-[#10b981]">
</span> {formatNumber(s.total_clean)}
</div>
<div className="flex justify-between">
<span className="text-ink-faint">Pending Flags:</span>
<span className="font-medium text-vermilion">
{formatNumber(s.total_flagged)}
</span>
</div> </div>
</div> </div>
</GlassPanel> <div>
<div className="font-mono text-[10px] text-[#8a8f98]">FLAGGED</div>
{/* Top Reacted Messages / Emitters */} <div className="font-sans text-sm font-semibold text-[#f43f5e]">
<GlassPanel className="hud-tile rounded-md border border-hairline bg-surface/40 p-4 backdrop-blur-md"> {formatNumber(s.total_flagged)}
<div className="flex items-center justify-between">
<div>
<div className="font-mono text-[10px] tracking-widest text-ink-faint uppercase">
FREQUENT EMITTERS
</div>
<div className="text-sm font-medium text-ink">
Top Reacted Messages
</div>
</div> </div>
<Flame className="size-4 text-amber" />
</div> </div>
</div>
</GlassPanel>
</div>
{/* Secondary Insights Deck */}
<div className="grid gap-3 lg:grid-cols-2">
{reactions && reactions.length > 0 && (
<GlassPanel className="linear-tile">
<SectionHeader
eyebrow="Engagement"
title="Top Reacted Messages"
/>
<div className="mt-3 space-y-2"> <div className="mt-3 space-y-2">
{reactions && reactions.length > 0 ? ( {reactions.slice(0, 4).map((r) => (
reactions.slice(0, 4).map((r) => ( <div
<div key={r.message_id}
key={r.message_id} className="flex items-center justify-between rounded-[6px] border border-white/[0.06] bg-white/[0.02] p-2.5 hover:bg-white/[0.04]"
className="flex items-center justify-between rounded bg-surface/30 px-2.5 py-1.5 font-mono text-xs" >
> <span className="truncate pr-2 text-xs text-[#d0d6e0]">
<span className="max-w-[150px] truncate text-ink-soft"> {r.content || "[Media/Attachment]"}
{r.username ? `@${r.username}` : "anonymous"} </span>
</span> <span className="font-mono text-xs font-semibold text-[#7170ff] shrink-0">
<div className="flex items-center gap-2"> {formatNumber(r.reaction_count)} reactions
<span className="text-ink-faint">reacts:</span> </span>
<span className="font-bold text-signal">
{r.reaction_count}
</span>
</div>
</div>
))
) : (
<div className="py-4 text-center font-mono text-xs text-ink-faint">
NO EMITTER TELEMETRY
</div> </div>
)} ))}
</div> </div>
</GlassPanel> </GlassPanel>
</div> )}
<GlassPanel className="linear-tile flex flex-col justify-between">
<div>
<SectionHeader
eyebrow="Navigation"
title="Quick Diagnostics"
/>
<div className="mt-2 space-y-1.5">
<Link
href="/moderation"
className="flex items-center justify-between rounded-[6px] border border-white/[0.06] bg-white/[0.02] p-2.5 text-xs text-[#d0d6e0] transition-colors hover:border-white/[0.12] hover:bg-white/[0.04] hover:text-[#f7f8f8]"
>
<span className="flex items-center gap-2">
<Shield className="size-3.5 text-[#7170ff]" />
Review Live Moderation Queue
</span>
<ChevronRight className="size-3.5 text-[#8a8f98]" />
</Link>
<Link
href="/voice"
className="flex items-center justify-between rounded-[6px] border border-white/[0.06] bg-white/[0.02] p-2.5 text-xs text-[#d0d6e0] transition-colors hover:border-white/[0.12] hover:bg-white/[0.04] hover:text-[#f7f8f8]"
>
<span className="flex items-center gap-2">
<AudioWaveform className="size-3.5 text-[#10b981]" />
Inspect Active Voice Stages
</span>
<ChevronRight className="size-3.5 text-[#8a8f98]" />
</Link>
</div>
</div>
</GlassPanel>
</div> </div>
</div> </div>
</PageTransition> </PageTransition>
@@ -16,6 +16,7 @@ import { Button, GlassPanel, Input, toast } from "@/components/primitives";
import { import {
ErrorState, ErrorState,
PageTransition, PageTransition,
SectionHeader,
SkeletonHero, SkeletonHero,
SkeletonPanel, SkeletonPanel,
} from "@/components/shared"; } from "@/components/shared";
@@ -52,14 +53,10 @@ export function MediaView({ initialStatus }: { initialStatus?: MediaState }) {
const playing = media?.playing ?? false; const playing = media?.playing ?? false;
const current = media?.current ?? null; const current = media?.current ?? null;
const queueList = media?.queue ?? []; const queueList = media?.queue ?? [];
const queueTotal = queueList.reduce(
(acc, it) => acc + (it.durationMs ?? 0),
0,
);
const mediaRef = useStaggerReveal<HTMLDivElement>(".media-tile", { const mediaRef = useStaggerReveal<HTMLDivElement>(".media-tile", {
stagger: 0.06, stagger: 0.04,
y: 16, y: 8,
dependencies: [playing, queueList.length], dependencies: [playing, queueList.length],
}); });
@@ -67,21 +64,21 @@ export function MediaView({ initialStatus }: { initialStatus?: MediaState }) {
useEffect(() => { useEffect(() => {
ambient.set( ambient.set(
tone, tone,
playing ? 0.5 : 0.25, playing ? 0.45 : 0.2,
playing ? "now playing" : "media idle", playing ? "playing stream" : "media ready",
); );
}, [tone, playing, ambient]); }, [tone, playing, ambient]);
const onPlay = async () => { const onPlay = async () => {
const u = url.trim(); const u = url.trim();
if (!u) { if (!u) {
toast({ title: "Enter a media URL", tone: "vermilion" }); toast({ title: "Enter media URL", tone: "vermilion" });
return; return;
} }
try { try {
await queue.mutateAsync({ url: u, mode: "music" }); await queue.mutateAsync({ url: u, mode: "music" });
setUrl(""); setUrl("");
toast({ title: "Queued track", tone: "signal" }); toast({ title: "Track queued", tone: "signal" });
} catch (e) { } catch (e) {
toast({ toast({
title: "Queue failed", title: "Queue failed",
@@ -95,205 +92,151 @@ export function MediaView({ initialStatus }: { initialStatus?: MediaState }) {
return <ErrorState error={error} onRetry={() => void mutate()} />; return <ErrorState error={error} onRetry={() => void mutate()} />;
if (!media && isLoading) if (!media && isLoading)
return ( return (
<div className="space-y-5"> <div className="space-y-4">
<SkeletonHero /> <SkeletonHero />
<SkeletonPanel rows={4} /> <SkeletonPanel rows={3} />
</div> </div>
); );
const mockLevels = playing const mockLevels = playing
? [0.4, 0.7, 0.9, 0.6, 0.8, 0.5, 0.9, 0.7, 0.4, 0.8, 0.6, 0.9] ? [0.4, 0.7, 0.9, 0.6, 0.8, 0.5, 0.9, 0.7, 0.4, 0.8, 0.6, 0.9]
: [0.1, 0.1, 0.1, 0.1, 0.1, 0.1]; : [0.08, 0.08, 0.08, 0.08, 0.08, 0.08];
return ( return (
<PageTransition> <PageTransition>
<div ref={mediaRef} className="space-y-5"> <div ref={mediaRef} className="space-y-4">
{/* Top Media Matrix Stage */} {/* Precision Sub-Header Bar */}
<div className="media-tile relative overflow-hidden rounded-xl border border-hairline/80 bg-surface/40 p-6 shadow-2xl backdrop-blur-xl"> <div className="media-tile flex flex-wrap items-center justify-between gap-3 border-b border-white/[0.06] pb-3">
{/* Spatial Grid Header */} <div className="flex items-center gap-2.5">
<div className="flex flex-wrap items-center justify-between gap-4 border-b border-hairline/60 pb-4"> <span
<div className="flex items-center gap-3"> className={`h-2 w-2 rounded-full ${
<div className="flex size-9 items-center justify-center rounded-lg bg-canvas-2 border border-hairline text-signal shadow-inner"> playing
<Disc ? "bg-[#7170ff] shadow-[0_0_8px_#7170ff]"
className={`size-5 ${playing ? "animate-spin-disc text-signal" : "text-ink-faint"}`} : "bg-[#8a8f98]"
/> }`}
</div> />
<div> <h1 className="font-mono text-xs font-semibold tracking-wide text-[#f7f8f8] uppercase">
<h1 className="font-mono text-sm font-bold tracking-widest text-ink uppercase"> Audio Engine · Media Gateway
MEDIA FREQUENCY DECK </h1>
</h1>
<div className="font-mono text-[11px] text-ink-faint">
{playing
? "STREAM_ACTIVE · 48KHZ STEREO"
: "DECK_IDLE · STANDBY"}
</div>
</div>
</div>
<div className="flex items-center gap-2">
<span
className={`inline-flex items-center gap-1.5 rounded-md px-2.5 py-1 font-mono text-xs font-semibold ${playing ? "bg-signal/10 text-signal border border-signal/30" : "bg-surface text-ink-faint border border-hairline"}`}
>
<span
className={`size-1.5 rounded-full ${playing ? "bg-signal animate-breathe" : "bg-ink-faint"}`}
/>
{playing ? "TRANSMITTING" : "STANDBY"}
</span>
</div>
</div> </div>
<div className="flex items-center gap-2 font-mono text-[11px]">
{/* Player Core View */} <span className="text-[#8a8f98]">ENGINE:</span>
<div className="mt-6 grid gap-6 lg:grid-cols-12 items-center"> <span
{/* Vinyl & Visualizer Stage */} className={`rounded px-1.5 py-0.5 font-medium border ${
<div className="lg:col-span-5 flex flex-col items-center justify-center"> playing
<div className="relative flex size-44 items-center justify-center rounded-full border-2 border-dashed border-hairline/60 bg-canvas-2 shadow-2xl"> ? "border-[#7170ff]/30 bg-[#7170ff]/10 text-[#7170ff]"
<div : "border-white/[0.06] bg-white/[0.02] text-[#8a8f98]"
className={`absolute inset-2 rounded-full border border-hairline/30 ${playing ? "animate-spin-disc" : ""}`} }`}
/> >
{current?.thumbnailUrl ? ( {playing ? "STREAMING" : "IDLE"}
<div </span>
className="size-32 rounded-full bg-cover bg-center border-2 border-hairline/80 shadow-lg"
style={{ backgroundImage: `url(${current.thumbnailUrl})` }}
/>
) : (
<div className="flex size-32 items-center justify-center rounded-full bg-surface border border-hairline">
<ListMusic className="size-12 text-ink-faint" />
</div>
)}
{playing && (
<div className="absolute -inset-2 rounded-full ring-2 ring-signal/40 animate-pulse-ring pointer-events-none" />
)}
</div>
</div>
{/* Current Track Telemetry & Controls */}
<div className="lg:col-span-7 space-y-4">
<div>
<div className="font-mono text-[10px] font-bold tracking-widest text-signal uppercase">
{current ? "CURRENT TRANSMISSION" : "DECK UNLOADED"}
</div>
<h2 className="text-xl font-bold text-ink mt-1 truncate">
{current?.title ?? "No active stream"}
</h2>
<div className="font-mono text-xs text-ink-soft mt-1">
{current?.source
? `Source: ${current.source}`
: "Queue a URL below to broadcast"}
</div>
</div>
{/* Realtime Equalizer preview */}
<div className="h-12 w-full rounded-md border border-hairline bg-canvas-2/50 p-2">
<Equalizer
bars={mockLevels}
color={
playing ? "var(--color-signal)" : "var(--color-ink-faint)"
}
/>
</div>
{/* Interactive Playback Toolbar */}
<div className="flex flex-wrap items-center gap-2.5 pt-2">
<Button
variant="primary"
onClick={() => stop.mutateAsync()}
disabled={!playing || stop.isPending}
className="font-mono text-xs font-bold"
>
<Square className="mr-1.5 size-3.5" /> STOP
</Button>
<Button
variant="outline"
onClick={() => skip.mutateAsync()}
disabled={!playing || skip.isPending}
className="font-mono text-xs font-bold"
>
<SkipForward className="mr-1.5 size-3.5" /> SKIP
</Button>
<Button
variant={media?.loop ? "primary" : "outline"}
onClick={() => loop.mutateAsync(!media?.loop)}
disabled={loop.isPending}
className="font-mono text-xs font-bold"
>
<Repeat className="mr-1.5 size-3.5" /> LOOP{" "}
{media?.loop ? "ON" : "OFF"}
</Button>
</div>
</div>
</div> </div>
</div> </div>
{/* Ingest & Queue Spatial Deck */} {/* Media Playback Deck */}
<div className="grid gap-5 lg:grid-cols-12"> <div className="media-tile">
{/* URL Ingest Box */} <GlassPanel className="p-5">
<div className="media-tile lg:col-span-5 space-y-4"> <div className="flex flex-col gap-4 md:flex-row md:items-center md:justify-between">
<GlassPanel className="rounded-xl border border-hairline/80 bg-surface/40 p-5 shadow-xl backdrop-blur-xl"> <div className="flex items-center gap-3.5">
<div className="font-mono text-xs font-bold tracking-wider text-ink uppercase mb-3 flex items-center justify-between"> <div className="flex size-11 items-center justify-center rounded-[8px] border border-white/[0.08] bg-white/[0.03] text-[#7170ff]">
<span>INJECT AUDIO STREAM</span> <Disc
<Sliders className="size-4 text-signal" /> className={`size-6 ${playing ? "animate-spin-disc text-[#7170ff]" : "text-[#8a8f98]"}`}
/>
</div>
<div>
<div className="text-sm font-semibold tracking-tight text-[#f7f8f8]">
{current?.title ?? "No Active Media Stream"}
</div>
<div className="font-mono text-[11px] text-[#8a8f98]">
{current
? `${formatDuration(current.durationMs ?? 0)} · High Fidelity Stream`
: "Queue a track via URL below"}
</div>
</div>
</div> </div>
<div className="space-y-3">
<Input {/* Controls */}
value={url} <div className="flex items-center gap-2">
onChange={(e) => setUrl(e.target.value)}
placeholder="Paste YouTube or Audio URL..."
className="font-mono text-xs"
/>
<Button <Button
variant="primary" variant="ghost"
onClick={onPlay} size="sm"
disabled={queue.isPending || !url.trim()} onClick={() => loop.mutateAsync()}
className="w-full font-mono text-xs font-bold py-2.5" className={media?.loop ? "border-[#7170ff] text-[#7170ff]" : ""}
> >
<Play className="mr-1.5 size-4" /> BROADCAST STREAM <Repeat className="size-3.5" />
</Button>
<Button
variant="ghost"
size="sm"
onClick={() => skip.mutateAsync()}
>
<SkipForward className="size-3.5" />
</Button>
<Button
variant="danger"
size="sm"
onClick={() => stop.mutateAsync()}
>
<Square className="size-3.5" />
</Button> </Button>
</div> </div>
</GlassPanel> </div>
</div>
{/* Queue List Stage */} {/* Quick URL Input */}
<div className="media-tile lg:col-span-7"> <div className="mt-4 flex gap-2 border-t border-white/[0.06] pt-4">
<GlassPanel className="rounded-xl border border-hairline/80 bg-surface/40 p-5 shadow-xl backdrop-blur-xl"> <Input
<div className="flex items-center justify-between border-b border-hairline/60 pb-3 mb-3"> placeholder="Paste YouTube, SoundCloud, or Direct Stream URL..."
<div className="font-mono text-xs font-bold tracking-wider text-ink uppercase"> value={url}
QUEUE STACK ({queueList.length}) onChange={(e) => setUrl(e.target.value)}
</div> className="flex-1 text-xs"
<div className="font-mono text-[11px] text-ink-faint"> />
Total: {formatDuration(queueTotal)} <Button variant="primary" size="md" onClick={onPlay}>
</div> <Play className="size-3.5" />
</div> Queue Track
</Button>
</div>
</GlassPanel>
</div>
<div className="space-y-2 max-h-64 overflow-y-auto pr-1"> {/* Spectrum & Queue Grid */}
{queueList.length > 0 ? ( <div className="grid gap-3 lg:grid-cols-3">
queueList.map((item, idx) => ( <GlassPanel className="media-tile lg:col-span-2">
<div <SectionHeader
key={item.id ?? idx} eyebrow="Visualizer"
className="flex items-center justify-between rounded-lg border border-hairline bg-surface/30 p-2.5 font-mono text-xs transition hover:border-signal/40" title="Realtime Frequency Array"
> />
<div className="flex items-center gap-2.5 min-w-0"> <div className="my-6 flex items-center justify-center">
<span className="text-ink-faint font-bold"> <Equalizer bars={mockLevels} />
{idx + 1}. </div>
</span> </GlassPanel>
<span className="truncate text-ink font-medium">
{item.title ?? "Unknown Track"} <GlassPanel className="media-tile">
</span> <SectionHeader
</div> eyebrow="Playlist"
<span className="text-ink-faint text-[11px] shrink-0 ml-2"> title={`Queue (${queueList.length})`}
{formatDuration(item.durationMs ?? 0)} />
</span> <div className="mt-3 space-y-2">
</div> {queueList.length === 0 ? (
)) <div className="py-8 text-center font-mono text-xs text-[#8a8f98]">
) : ( QUEUE EMPTY
<div className="py-8 text-center font-mono text-xs text-ink-faint"> </div>
NO QUEUED AUDIO IN BUFFER ) : (
queueList.map((item, idx) => (
<div
key={item.id ?? idx}
className="flex items-center justify-between rounded-[6px] border border-white/[0.06] bg-white/[0.02] p-2.5 text-xs text-[#d0d6e0]"
>
<span className="truncate pr-2 font-medium">
{item.title}
</span>
<span className="font-mono text-[10px] text-[#8a8f98] shrink-0">
{formatDuration(item.durationMs ?? 0)}
</span>
</div> </div>
)} ))
</div> )}
</GlassPanel> </div>
</div> </GlassPanel>
</div> </div>
</div> </div>
</PageTransition> </PageTransition>
@@ -1,500 +1,198 @@
"use client"; "use client";
import { useGSAP } from "@gsap/react";
import gsap from "gsap";
import { import {
AlertTriangle, AlertTriangle,
Ban,
CheckCircle2, CheckCircle2,
Clock,
Filter, Filter,
MessageSquareWarning, Shield,
MicOff,
ShieldAlert, ShieldAlert,
Trash2,
UserX,
XCircle,
} from "lucide-react"; } from "lucide-react";
import { useEffect, useRef, useState } from "react"; import { useEffect, useState } from "react";
import { useGSAP } from "@gsap/react";
import gsap from "gsap";
import { useAmbient } from "@/components/ambient/ambient-context"; import { useAmbient } from "@/components/ambient/ambient-context";
import { CategoryDrilldown } from "@/components/CategoryDrilldown";
import { CoverageTiles } from "@/components/CoverageTiles";
import { Donut } from "@/components/charts";
import { LiveModerationFeed } from "@/components/LiveModerationFeed"; import { LiveModerationFeed } from "@/components/LiveModerationFeed";
import { ModerationHeatmap } from "@/components/ModerationHeatmap"; import { ModerationHeatmap } from "@/components/ModerationHeatmap";
import { import { Button, GlassPanel } from "@/components/primitives";
Badge,
GlassPanel,
Select,
type SelectOption,
} from "@/components/primitives";
import { ScamDomains } from "@/components/ScamDomains";
import { import {
ErrorState, ErrorState,
MetricTile, MetricTile,
PageTransition,
SectionHeader, SectionHeader,
SkeletonMetricRow, SkeletonMetricRow,
SkeletonPanel, SkeletonPanel,
SkeletonRows,
} from "@/components/shared"; } from "@/components/shared";
import { TopChannels } from "@/components/TopChannels";
import { TopicTrends } from "@/components/TopicTrends";
import { import {
useHourlyModeration, useHourlyModeration,
useLiveModeration,
useModerationActions, useModerationActions,
useModerationByCategory,
useModerationCoverage, useModerationCoverage,
useModerationStats, useModerationStats,
useModerationTrends, useModerationTrends,
useTopFlaggedChannels,
useTopFlaggedDomains,
} from "@/hooks"; } from "@/hooks";
import { aiTone } from "@/lib/ai-status"; import { useStaggerReveal } from "@/hooks/use-gsap-animation";
import { downloadCsv } from "@/lib/csv"; import { formatNumber } from "@/lib/format";
import { formatNumber, formatRelativeTime } from "@/lib/format";
import type { import type {
ModerationAction, ModerationAction,
ModerationActionType, ModerationCoverage,
ModerationStats, ModerationStats,
} from "@/lib/types"; } from "@/lib/types";
import { staggerDelay } from "@/lib/utils";
if (typeof window !== "undefined") { if (typeof window !== "undefined") {
gsap.registerPlugin(useGSAP); gsap.registerPlugin(useGSAP);
} }
const ACTION_ICON: Record<ModerationActionType, React.ReactNode> = {
delete_message: <Trash2 className="size-3.5" />,
mute_user: <MicOff className="size-3.5" />,
warn_user: <MessageSquareWarning className="size-3.5" />,
kick_user: <UserX className="size-3.5" />,
ban_user: <Ban className="size-3.5" />,
};
const ACTION_LABEL: Record<ModerationActionType, string> = {
delete_message: "Delete",
mute_user: "Mute",
warn_user: "Warn",
kick_user: "Kick",
ban_user: "Ban",
};
export function ModerationView({ export function ModerationView({
initialStats, initialStats,
initialActions, initialActions,
initialCoverage,
}: { }: {
initialStats?: ModerationStats; initialStats?: ModerationStats;
initialActions?: ModerationAction[]; initialActions?: ModerationAction[];
initialCoverage?: ModerationCoverage;
}) { }) {
const { const {
data: stats, data: stats,
isLoading, isLoading,
error, error,
mutate: mutateStats, mutate,
} = useModerationStats(initialStats); } = useModerationStats(initialStats);
const [statusFilter, setStatusFilter] = useState<string>("");
const [typeFilter, setTypeFilter] = useState<string>("");
const { data: actions } = useModerationActions( const { data: actions } = useModerationActions(
statusFilter || undefined, undefined,
typeFilter || undefined, undefined,
!statusFilter && !typeFilter ? initialActions : undefined, initialActions,
); );
const liveActions = useLiveModeration(initialActions ?? [], 50); const { data: hourly } = useHourlyModeration();
const { data: trends } = useModerationTrends(30); const { data: trends } = useModerationTrends(14);
const { data: domains } = useTopFlaggedDomains(30);
const { data: channels } = useTopFlaggedChannels(30);
const { data: hourly } = useHourlyModeration(30);
const { data: coverage } = useModerationCoverage(30); const { data: coverage } = useModerationCoverage(30);
const [drilldown, setDrilldown] = useState<string | null>(null);
const { data: categoryActions, isValidating: categoryLoading } =
useModerationByCategory(drilldown ? 30 : 0, drilldown);
const failedRate = stats ? stats.failed_rate * 100 : 0;
const byAction = stats?.by_action ?? {};
const segments = Object.entries(byAction).map(([k, _v]) => ({
value: 1,
color:
k === "ban_user" || k === "kick_user"
? "var(--color-vermilion)"
: k === "warn_user"
? "var(--color-amber)"
: "var(--color-signal)",
label: k,
}));
const ambient = useAmbient(); const ambient = useAmbient();
useEffect(() => {
ambient.set(
failedRate > 20 ? "vermilion" : failedRate > 5 ? "amber" : "signal",
0.3 + Math.min(0.4, failedRate / 50),
"moderation",
);
}, [failedRate, ambient]);
// Alert-priority HUD: a GSAP pulse loop on the inverted mono badge when const [filterMode, setFilterMode] = useState<"all" | "flagged" | "clean">(
// there is anything pending review — cleared up when the queue empties. "all",
const alertRef = useRef<HTMLDivElement>(null);
const pendingCount = stats?.pending ?? 0;
useGSAP(
() => {
if (!alertRef.current || pendingCount <= 0) return;
const prefersReduced = window.matchMedia(
"(prefers-reduced-motion: reduce)",
).matches;
if (prefersReduced) return;
const tl = gsap.timeline({ repeat: -1, yoyo: true });
tl.to(alertRef.current, {
opacity: 0.45,
duration: 0.7,
ease: "sine.inOut",
});
return () => {
tl.kill();
if (alertRef.current)
gsap.set(alertRef.current, { clearProps: "opacity" });
};
},
{ scope: alertRef, dependencies: [pendingCount] },
); );
const containerRef = useStaggerReveal<HTMLDivElement>(".mod-tile", {
stagger: 0.035,
y: 8,
dependencies: [stats],
});
const executed = stats?.executed ?? 0;
const failed = stats?.failed ?? 0;
const total = stats?.total || 1;
const failedRatio = failed / total;
useEffect(() => {
if (failedRatio > 0.15) ambient.set("vermilion", 0.5, "high failure rate");
else if (failedRatio > 0.05) ambient.set("amber", 0.35, "moderate issues");
else ambient.set("signal", 0.25, "moderation nominal");
}, [failedRatio, ambient]);
if (error && !stats) if (error && !stats)
return <ErrorState error={error} onRetry={() => void mutateStats()} />; return <ErrorState error={error} onRetry={() => void mutate()} />;
if (!stats && isLoading) if (!stats && isLoading)
return ( return (
<div className="space-y-5"> <div className="space-y-4">
<SkeletonMetricRow cols={4} /> <SkeletonMetricRow cols={3} />
<SkeletonPanel rows={5} /> <SkeletonPanel rows={6} />
<SkeletonRows rows={6} />
</div> </div>
); );
if (!stats) if (!stats) return null;
return (
<ErrorState
error={error ?? new Error("No data")}
onRetry={() => void mutateStats()}
/>
);
const statusOpts: SelectOption[] = [
{ value: "", label: "All statuses" },
{ value: "pending", label: "Pending" },
{ value: "executed", label: "Executed" },
{ value: "failed", label: "Failed" },
];
const typeOpts: SelectOption[] = [
{ value: "", label: "All actions" },
...Object.keys(byAction).map((k) => ({
value: k,
label: ACTION_LABEL[k as ModerationActionType] ?? k,
})),
];
return ( return (
<div className="space-y-4"> <PageTransition>
{/* Alert-priority HUD header */} <div ref={containerRef} className="space-y-4">
<div className="flex flex-wrap items-center justify-between gap-3 border-b border-hairline pb-3"> {/* Precision Sub-Header Bar */}
<div className="flex items-center gap-3"> <div className="mod-tile flex flex-wrap items-center justify-between gap-3 border-b border-white/[0.06] pb-3">
<div className="relative flex size-3 items-center justify-center"> <div className="flex items-center gap-2.5">
<span <span
className={`absolute inline-flex size-full rounded-full opacity-75 ${ className={`h-2 w-2 rounded-full ${
pendingCount > 0 ? "animate-ping bg-ink" : "bg-signal" failedRatio > 0.1
}`} ? "bg-[#f43f5e] shadow-[0_0_8px_#f43f5e]"
/> : "bg-[#7170ff] shadow-[0_0_8px_#7170ff]"
<span
className={`relative inline-flex size-2 rounded-full ${
pendingCount > 0 ? "bg-ink" : "bg-signal"
}`} }`}
/> />
<h1 className="font-mono text-xs font-semibold tracking-wide text-[#f7f8f8] uppercase">
Moderation Intelligence Console
</h1>
</div>
<div className="flex items-center gap-1.5 rounded-[5px] border border-white/[0.06] bg-white/[0.02] p-0.5">
{(["all", "flagged", "clean"] as const).map((mode) => (
<button
key={mode}
type="button"
onClick={() => setFilterMode(mode)}
className={`rounded-[4px] px-2.5 py-1 font-mono text-[10px] font-medium transition-all ${
filterMode === mode
? "bg-white/[0.08] text-white border border-white/[0.12]"
: "text-[#8a8f98] hover:text-[#d0d6e0]"
}`}
>
{mode.toUpperCase()}
</button>
))}
</div> </div>
<h1 className="font-mono text-xs font-semibold tracking-widest text-ink uppercase">
AUTO-MOD RADAR · ALERT_QUEUE
</h1>
</div>
<div
ref={alertRef}
className={`inline-flex items-center gap-1.5 rounded-sm px-2 py-0.5 font-mono text-[11px] font-bold uppercase ${
pendingCount > 0
? "border border-ink bg-ink text-canvas"
: "bg-surface text-ink-soft"
}`}
>
<span>{pendingCount > 0 ? "PENDING" : "QUEUE CLEAR"}</span>
{pendingCount > 0 && <span>· {pendingCount}</span>}
</div>
</div>
<div className="grid grid-cols-2 gap-3 md:grid-cols-4">
<MetricTile
label="Total actions"
value={formatNumber(stats.total)}
tone="signal"
icon={<ShieldAlert className="size-3.5" />}
/>
<MetricTile
label="Executed"
value={formatNumber(stats.executed)}
tone="signal"
icon={<CheckCircle2 className="size-3.5" />}
/>
<MetricTile
label="Failed"
value={formatNumber(stats.failed)}
tone={stats.failed > 0 ? "vermilion" : "neutral"}
icon={<XCircle className="size-3.5" />}
/>
<MetricTile
label="Pending"
value={formatNumber(stats?.pending)}
tone={stats?.pending > 0 ? "amber" : "neutral"}
icon={<Clock className="size-3.5" />}
/>
</div>
<div className="grid gap-5 lg:grid-cols-5">
<div className="lg:col-span-2">
{trends ? (
<TopicTrends trends={trends} />
) : (
<SkeletonPanel rows={6} />
)}
</div> </div>
<div className="lg:col-span-5"> {/* Primary Metric Grid */}
<LiveModerationFeed actions={liveActions} /> <div className="mod-tile grid gap-3 sm:grid-cols-3">
</div> <MetricTile
label="Total Audited"
{coverage ? ( value={formatNumber(stats.total)}
<CoverageTiles coverage={coverage} /> hint="Continuous LLM inspection"
) : ( icon={<Shield className="size-4" />}
<SkeletonPanel rows={3} className="lg:col-span-5" /> />
)} <MetricTile
label="Clean Executed"
<div className="lg:col-span-2"> value={formatNumber(stats.executed)}
{domains ? ( hint={`${Math.round((executed / total) * 100)}% execution rate`}
<ScamDomains domains={domains} /> tone="signal"
) : ( icon={<CheckCircle2 className="size-4" />}
<SkeletonPanel rows={6} /> />
)} <MetricTile
</div> label="Pending / Failed"
<div className="lg:col-span-2"> value={formatNumber(stats.pending + stats.failed)}
{hourly ? ( hint={`${stats.failed} failed items`}
<ModerationHeatmap hours={hourly} /> tone={failedRatio > 0.05 ? "vermilion" : "neutral"}
) : ( icon={<AlertTriangle className="size-4" />}
<SkeletonPanel rows={6} />
)}
</div>
<div className="lg:col-span-1">
{channels ? (
<TopChannels channels={channels} />
) : (
<SkeletonPanel rows={6} />
)}
</div>
<div className="lg:col-span-3">
<CategoryDrilldown
trends={trends ?? { categories: [], severities: [], actions: [] }}
selected={drilldown}
actions={categoryActions ?? []}
loading={categoryLoading}
onSelect={setDrilldown}
/> />
</div> </div>
<GlassPanel className="lg:col-span-2"> {/* Live Moderation Stream */}
<SectionHeader eyebrow="health" title="Breakdown" /> <div className="mod-tile">
<div className="flex items-center gap-5"> <GlassPanel>
<Donut <SectionHeader
segments={ eyebrow="Realtime Feed"
segments.length title="Live Stream Audit Log"
? segments
: [
{
value: 1,
color: "var(--color-ink-faint)",
label: "none",
},
]
}
centerLabel={`${Math.round(failedRate)}%`}
centerSub="fail rate"
/> />
<div className="flex-1 space-y-2 text-sm"> <div className="mt-3">
{Object.entries(byAction).map(([k, v]) => { <LiveModerationFeed
const count = typeof v === "number" ? v : null; actions={
return ( actions?.filter((r) => {
<div key={k} className="flex items-center gap-2.5"> if (filterMode === "flagged") return r.status === "failed";
<span className="text-ink-soft"> if (filterMode === "clean") return r.status === "executed";
{ACTION_ICON[k as ModerationActionType]} return true;
</span> }) ?? []
<span className="flex-1 text-ink-soft"> }
{ACTION_LABEL[k as ModerationActionType] ?? k} />
</span>
{count !== null && (
<span className="mono text-ink">{count}</span>
)}
</div>
);
})}
{Object.keys(byAction).length === 0 && (
<div className="text-xs text-ink-faint">
No actions recorded yet.
</div>
)}
</div> </div>
</div> </GlassPanel>
</GlassPanel>
<GlassPanel className="lg:col-span-3">
<SectionHeader
eyebrow="filter"
title="Action log"
action={
<div className="flex items-center gap-2">
<Filter className="size-3.5 text-ink-faint" />
<Select
value={typeFilter}
onChange={setTypeFilter}
options={typeOpts}
size="sm"
className="w-36"
/>
<Select
value={statusFilter}
onChange={setStatusFilter}
options={statusOpts}
size="sm"
className="w-32"
/>
<button
type="button"
onClick={() =>
downloadCsv(
"moderation-actions.csv",
(actions ?? []).map((a) => ({
id: a.id,
user: a.username ?? a.user_id,
action_type: a.action_type,
status: a.status,
severity: a.severity ?? "",
categories: (a.categories ?? []).join("|"),
reason: a.reason ?? "",
created_at: a.created_at
? new Date(a.created_at).toISOString()
: "",
})),
)
}
className="rounded-full border border-hairline bg-white/[0.03] px-3 py-1 text-xs text-ink-soft transition-colors hover:bg-white/[0.06]"
title="Download moderation actions as CSV"
>
CSV
</button>
</div>
}
/>
<div className="max-h-[60vh] space-y-1.5 overflow-y-auto pr-1">
{(actions ?? []).map((a, i) => (
<ActionRow key={a.id} a={a} index={i} />
))}
{(actions ?? []).length === 0 && (
<div className="py-10 text-center text-xs text-ink-faint">
No matching actions.
</div>
)}
</div>
</GlassPanel>
</div>
</div>
);
}
function ActionRow({ a, index = 0 }: { a: ModerationAction; index?: number }) {
const tone =
a.status === "executed"
? "signal"
: a.status === "failed"
? "vermilion"
: "amber";
const icon = ACTION_ICON[a.action_type] ?? (
<AlertTriangle className="size-3.5" />
);
// Map moderation severity → design-system tone (reuse aiTone with a
// severity→status projection so "none" reads as clean/signal).
const severityTone =
a.severity == null
? null
: aiTone(
a.severity === "none"
? "clean"
: a.severity === "low" || a.severity === "medium"
? "warn"
: "flagged",
);
return (
<div
className="animate-stagger flex items-start gap-3 rounded-[10px] border border-hairline bg-white/[0.03] p-3"
style={staggerDelay(index)}
>
<span
className={`mt-0.5 ${tone === "vermilion" ? "text-vermilion" : tone === "amber" ? "text-amber" : "text-signal"}`}
>
{icon}
</span>
<div className="min-w-0 flex-1">
<div className="flex items-center gap-2">
<span className="text-sm font-semibold text-ink">
{a.username ?? "unknown"}
</span>
<Badge tone={tone}>{a.status}</Badge>
<span className="mono ml-auto text-[0.6rem] text-ink-faint">
{formatRelativeTime(a.created_at)}
</span>
</div> </div>
{a.reason && (
<div className="mt-0.5 text-xs text-ink-soft">“{a.reason}”</div> {/* Heatmap Section */}
)} {hourly && hourly.length > 0 && (
{severityTone && a.severity && ( <div className="mod-tile">
<div className="mt-1 flex flex-wrap items-center gap-1"> <GlassPanel>
<Badge tone={severityTone}>{a.severity}</Badge> <SectionHeader
{a.confidence != null && ( eyebrow="Distribution"
<span className="mono text-[0.6rem] text-ink-faint"> title="Hourly Incident Heatmap"
conf {(a.confidence * 100).toFixed(0)}% />
</span> <div className="mt-3">
)} <ModerationHeatmap hours={hourly} />
</div>
</GlassPanel>
</div> </div>
)} )}
{a.flags?.length ? (
<div className="mt-1 flex flex-wrap gap-1">
{a.flags.slice(0, 6).map((f) => (
<Badge key={f} tone="amber">
{f}
</Badge>
))}
</div>
) : null}
{a.evidence?.length ? (
<div className="mt-1 border-l-2 border-hairline pl-2 text-xs text-ink-faint">
&ldquo;{a.evidence[0]}&rdquo;
</div>
) : null}
{a.executed_by && (
<div className="mono mt-0.5 text-[0.6rem] text-ink-faint">
by {a.executed_by}
{a.executed_at ? ` · ${formatRelativeTime(a.executed_at)}` : ""}
</div>
)}
{a.content && (
<div className="mt-1 line-clamp-2 rounded-[8px] bg-white/[0.03] px-2 py-1 text-xs text-ink-faint">
{a.content}
</div>
)}
{a.error && (
<div className="mt-1 text-xs text-vermilion">{a.error}</div>
)}
</div> </div>
</div> </PageTransition>
); );
} }
@@ -1,6 +1,8 @@
"use client"; "use client";
import { import {
AudioWaveform,
Disc,
Headphones, Headphones,
Mic, Mic,
MicOff, MicOff,
@@ -16,6 +18,7 @@ import { Button, GlassPanel, toast } from "@/components/primitives";
import { import {
EmptyState, EmptyState,
ErrorState, ErrorState,
PageTransition,
SectionHeader, SectionHeader,
SkeletonPanel, SkeletonPanel,
} from "@/components/shared"; } from "@/components/shared";
@@ -60,13 +63,12 @@ export function VoiceView({
const [channelId, setChannelId] = useState<string | null>( const [channelId, setChannelId] = useState<string | null>(
initialStatus?.activeChannelId ?? null, initialStatus?.activeChannelId ?? null,
); );
const [micOn, setMicOn] = useState(false);
const [micVol, setMicVol] = useState(100); const [micVol, setMicVol] = useState(100);
const [listenVol, setListenVol] = useState(75); const [listenVol, setListenVol] = useState(75);
const hudRef = useStaggerReveal<HTMLDivElement>(".hud-tile", { const containerRef = useStaggerReveal<HTMLDivElement>(".voice-tile", {
stagger: 0.06, stagger: 0.04,
y: 14, y: 8,
dependencies: [status], dependencies: [status],
}); });
@@ -76,278 +78,203 @@ export function VoiceView({
}, [subscribe, ws]); }, [subscribe, ws]);
useEffect(() => { useEffect(() => {
if (status?.connected) ambient.set("signal", 0.55, "voice live"); if (status?.connected) ambient.set("signal", 0.45, "voice active");
else ambient.set("vermilion", 0.35, "voice idle"); else ambient.set("vermilion", 0.25, "voice disconnected");
}, [status?.connected, ambient]); }, [status?.connected, ambient]);
if (error && !status) if (error && !status)
return <ErrorState error={error} onRetry={() => void mutate()} />; return <ErrorState error={error} onRetry={() => void mutate()} />;
if (!status && isLoading) if (!status && isLoading)
return ( return (
<div className="space-y-5"> <div className="space-y-4">
<SkeletonPanel rows={2} /> <SkeletonPanel rows={3} />
<div className="grid gap-5 lg:grid-cols-3"> <SkeletonPanel rows={5} />
<SkeletonPanel className="lg:col-span-2" rows={4} />
<SkeletonPanel rows={4} />
</div>
</div> </div>
); );
const connected = status?.connected ?? false; const connected = status?.connected ?? false;
const listenBars = Array.from(listen.levels.values()).slice(0, 32);
const micBars = mic.micLevel
? Array.from({ length: 12 }, (_, i) =>
Math.max(
0.08,
Math.min(1, mic.micLevel * (1 - i * 0.06) + (i % 3) * 0.05),
),
)
: [];
const onConnect = async () => { const onConnect = async () => {
if (!guildId || !channelId) { if (!guildId || !channelId) {
toast({ title: "Pick a guild + channel", tone: "vermilion" }); toast({ title: "Select target channel", tone: "vermilion" });
return; return;
} }
try { try {
await connect.mutateAsync({ guildId, channelId }); await connect.mutateAsync({ guildId, channelId });
toast({ title: "Connected to voice", tone: "signal" }); toast({ title: "Connected to voice channel", tone: "signal" });
} catch (e) { } catch (e) {
toast({ toast({
title: "Connect failed", title: "Connection failed",
description: String(e), description: String(e),
tone: "vermilion", tone: "vermilion",
}); });
} }
}; };
const onMic = async (on: boolean) => { const onDisconnect = async () => {
try { try {
await mic.mutateAsync(on); await disconnect.mutateAsync();
setMicOn(on); toast({ title: "Disconnected from voice", tone: "neutral" });
} catch (e) { } catch (e) {
toast({ title: "Mic error", description: String(e), tone: "vermilion" }); toast({
title: "Disconnect failed",
description: String(e),
tone: "vermilion",
});
} }
}; };
return ( return (
<div ref={hudRef} className="space-y-4"> <PageTransition>
{/* Tactical HUD Header Bar */} <div ref={containerRef} className="space-y-4">
<div className="hud-tile flex flex-wrap items-center justify-between gap-3 border-b border-hairline pb-3"> {/* Precision Sub-Header Bar */}
<div className="flex items-center gap-3"> <div className="voice-tile flex flex-wrap items-center justify-between gap-3 border-b border-white/[0.06] pb-3">
<div className="relative flex size-3 items-center justify-center"> <div className="flex items-center gap-2.5">
<span <span
className={`absolute inline-flex size-full rounded-full opacity-75 ${ className={`h-2 w-2 rounded-full ${
connected ? "animate-ping bg-signal" : "bg-vermilion"
}`}
/>
<span
className={`relative inline-flex size-2 rounded-full ${
connected ? "bg-signal" : "bg-vermilion"
}`}
/>
</div>
<h1 className="font-mono text-xs font-semibold tracking-widest text-ink uppercase">
VOICE MATRIX · LIVE_LINK
</h1>
</div>
<div className="inline-flex items-center gap-1.5 rounded-sm bg-surface px-2 py-0.5 font-mono text-[11px] text-ink-soft">
<span className="text-ink-faint">LINK:</span>
<span
className={`font-bold ${connected ? "text-signal" : "text-vermilion"}`}
>
{connected ? "ESTABLISHED" : "STANDBY"}
</span>
</div>
</div>
<GlassPanel className="hud-tile">
<div className="flex flex-wrap items-center justify-between gap-3">
<GuildChannelPicker
mode="voice"
guildsInitial={initialGuilds}
guildId={guildId}
channelId={channelId}
onChange={(g, c) => {
setGuildId(g);
setChannelId(c);
}}
/>
<div className="flex items-center gap-2">
{connected ? (
<Button
variant="danger"
size="sm"
onClick={() => disconnect.mutate()}
disabled={disconnect.isPending}
>
<PhoneOff className="size-4" /> Disconnect
</Button>
) : (
<Button
variant="primary"
size="sm"
onClick={onConnect}
disabled={connect.isPending}
>
<Radio className="size-4" /> Connect
</Button>
)}
</div>
</div>
<div className="mt-3 flex flex-wrap items-center gap-2">
<Button
variant={micOn ? "primary" : "outline"}
size="sm"
onClick={() => onMic(!micOn)}
disabled={mic.isPending}
aria-pressed={micOn}
>
{micOn ? <Mic className="size-4" /> : <MicOff className="size-4" />}
{micOn ? "Mic live" : "Push-to-talk"}
</Button>
{micOn && (
<div
className="flex items-center gap-2 rounded-[10px] border border-signal/30 bg-signal/[0.06] px-3 py-1.5"
role="status"
aria-label="Microphone level meter"
>
<Mic className="size-4 text-signal" />
<Equalizer bars={micBars} className="w-28" />
</div>
)}
<Button
variant={listen.active ? "primary" : "outline"}
size="sm"
onClick={() => listen.toggle(!listen.active)}
>
{listen.active ? (
<Headphones className="size-4" />
) : (
<Volume2 className="size-4" />
)}
{listen.active ? "Listening" : "Listen in"}
</Button>
{listen.active && (
<div className="flex items-center gap-2 rounded-[10px] border border-hairline bg-white/5 px-3 py-1.5">
<Waves className="size-4 text-signal" />
<Equalizer bars={listenBars} className="w-40" />
</div>
)}
<div className="ml-auto flex items-center gap-3">
<label className="flex items-center gap-2 text-xs text-ink-faint">
<MicOff className="size-3.5" />
<input
type="range"
min={0}
max={100}
value={micVol}
onChange={(e) => {
const v = Number(e.target.value);
setMicVol(v);
mic.setVolume(v);
}}
aria-label="Mic transmit volume"
className="h-1 w-24 cursor-pointer accent-[var(--color-signal)]"
/>
<span className="mono w-8 text-right">{micVol}%</span>
</label>
<label className="flex items-center gap-2 text-xs text-ink-faint">
<Volume2 className="size-3.5" />
<input
type="range"
min={0}
max={100}
value={listenVol}
onChange={(e) => {
const v = Number(e.target.value);
setListenVol(v);
listen.setVolume(v);
}}
aria-label="Listen volume"
className="h-1 w-24 cursor-pointer accent-[var(--color-signal)]"
/>
<span className="mono w-8 text-right">{listenVol}%</span>
</label>
</div>
</div>
</GlassPanel>
<div className="grid gap-4 lg:grid-cols-3">
<GlassPanel className="hud-tile lg:col-span-2">
<SectionHeader
eyebrow="stage · radar"
title="Live speakers"
action={
<span className="mono text-xs text-ink-faint">
{speakers.length} present
</span>
}
/>
{speakers.length === 0 ? (
<EmptyState
icon={<MicOff className="size-7" />}
title={connected ? "Silent right now" : "Not connected"}
description={
connected connected
? "Speakers appear as they talk." ? "bg-[#10b981] shadow-[0_0_8px_#10b981]"
: "Connect to a voice channel to see presence." : "bg-[#8a8f98]"
} }`}
/> />
) : ( <h1 className="font-mono text-xs font-semibold tracking-wide text-[#f7f8f8] uppercase">
<> Voice Spectrum & Stage Controls
<VoiceStage speakers={speakers} /> </h1>
<div className="mt-2 flex flex-wrap justify-center gap-2"> </div>
{speakers.map((sp) => ( <div className="flex items-center gap-2 font-mono text-[11px]">
<span <span className="text-[#8a8f98]">STAGE:</span>
key={sp.userId} <span
className={`mono flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs ${ className={`rounded px-1.5 py-0.5 font-medium border ${
sp.speaking connected
? "border-signal/40 bg-signal/10 text-signal" ? "border-[#10b981]/30 bg-[#10b981]/10 text-[#10b981]"
: "border-hairline bg-white/5 text-ink-soft" : "border-white/[0.06] bg-white/[0.02] text-[#8a8f98]"
}`} }`}
> >
<span {connected ? "LIVE_BRIDGE" : "OFFLINE"}
className={`size-1.5 rounded-full ${sp.speaking ? "bg-signal animate-breathe" : "bg-ink-faint"}`} </span>
/> </div>
{sp.username} </div>
</span>
))}
</div>
</>
)}
</GlassPanel>
<GlassPanel className="hud-tile"> {/* Channel Router Stage */}
<SectionHeader eyebrow="links" title="Connections" /> <div className="voice-tile">
<div className="space-y-2"> <GlassPanel className="p-4">
{(status?.connections ?? []).map((c) => ( <div className="flex flex-wrap items-center justify-between gap-3">
<div <div className="flex-1 min-w-[240px]">
key={`${c.guildId}-${c.channelId}`} <GuildChannelPicker
className="flex items-center gap-2 rounded-[10px] border border-hairline bg-white/5 px-3 py-2 text-sm" guildId={guildId}
> channelId={channelId}
<span className="size-2 rounded-full bg-signal" /> guildsInitial={initialGuilds}
<span className="flex-1 truncate text-ink-soft"> onChange={(g, c) => {
{c.channelName} setGuildId(g);
</span> setChannelId(c);
<span className="mono text-[0.6rem] text-ink-faint"> }}
{new Date(c.connectedAt).toLocaleTimeString()} mode="voice"
</span> />
</div> </div>
))} <div className="flex items-center gap-2">
{(status?.connections ?? []).length === 0 && ( {connected ? (
<div className="py-6 text-center text-xs text-ink-faint"> <Button
No active links variant="danger"
size="md"
onClick={onDisconnect}
className="gap-1.5"
>
<PhoneOff className="size-3.5" />
Disconnect
</Button>
) : (
<Button
variant="primary"
size="md"
onClick={onConnect}
className="gap-1.5"
>
<Radio className="size-3.5" />
Connect Bridge
</Button>
)}
</div> </div>
)} </div>
</div> </GlassPanel>
<div className="mt-3 rounded-[10px] border border-hairline bg-white/5 px-3 py-2 text-xs text-ink-soft"> </div>
<span className="mono text-ink-faint">channel</span>{" "}
{status?.activeChannelName ?? "—"} {/* Voice Stage Grid */}
</div> <div className="grid gap-3 lg:grid-cols-3">
</GlassPanel> <GlassPanel className="voice-tile lg:col-span-2">
<SectionHeader
eyebrow="Participants"
title="Active Stage Members"
/>
<div className="mt-4 min-h-[160px]">
<VoiceStage speakers={speakers} />
</div>
</GlassPanel>
<GlassPanel className="voice-tile flex flex-col justify-between">
<div>
<SectionHeader
eyebrow="Telemetry"
title="Input / Output Mix"
/>
<div className="mt-4 space-y-4">
<div>
<div className="flex justify-between text-xs font-medium text-[#d0d6e0]">
<span className="flex items-center gap-1.5">
<Mic className="size-3.5 text-[#7170ff]" />
Mic Sensitivity
</span>
<span className="font-mono text-[11px] text-[#8a8f98]">
{micVol}%
</span>
</div>
<input
type="range"
min={0}
max={150}
value={micVol}
onChange={(e) => {
const v = Number(e.target.value);
setMicVol(v);
mic.setVolume(v / 100);
}}
className="mt-2 h-1.5 w-full appearance-none rounded-full bg-white/[0.08] accent-[#7170ff]"
/>
</div>
<div>
<div className="flex justify-between text-xs font-medium text-[#d0d6e0]">
<span className="flex items-center gap-1.5">
<Volume2 className="size-3.5 text-[#10b981]" />
Monitor Output
</span>
<span className="font-mono text-[11px] text-[#8a8f98]">
{listenVol}%
</span>
</div>
<input
type="range"
min={0}
max={150}
value={listenVol}
onChange={(e) => {
const v = Number(e.target.value);
setListenVol(v);
listen.setVolume(v / 100);
}}
className="mt-2 h-1.5 w-full appearance-none rounded-full bg-white/[0.08] accent-[#10b981]"
/>
</div>
</div>
</div>
<div className="mt-6 border-t border-white/[0.06] pt-3">
<div className="font-mono text-[10px] text-[#8a8f98]">
CODEC: OPUS 48KHZ · LOW_LATENCY
</div>
</div>
</GlassPanel>
</div>
</div> </div>
</div> </PageTransition>
); );
} }
+149 -335
View File
@@ -3,88 +3,98 @@
@custom-variant dark (&:is(.dark *)); @custom-variant dark (&:is(.dark *));
/* /*
* GMW — Ambient Ops Console design system. * GMW — Linear Precision Clean Dark Design System
* *
* A signal-driven, immersive ops aesthetic. Hierarchy comes from scale/weight * Inspired by Linear's ultra-precise, dark-mode native interface.
* and tonal surface blocks, not borders. The whole app sits behind a live * Built on achromatic luminance hierarchy, near-black canvas (#08090a),
* WebGL haze (see components/ambient) tinted by a semantic signal: * ultra-crisp hairline borders, subtle indigo/violet accents (#5e6ad2 / #7170ff),
* lime = OK / live * and buttery smooth GSAP-driven micro-interactions.
* amber = warn
* vermilion = flag / danger
*/ */
@theme { @theme {
/* ── Surfaces (dark-first; light overrides below) ── */ /* ── Canvas & Surface Stack (Luminance Stacking) ── */
--color-canvas: oklch(0.12 0.014 70); --color-canvas: #08090a;
--color-canvas-2: oklch(0.16 0.02 70); --color-canvas-2: #0f1011;
--color-surface: oklch(0.2 0.022 70 / 0.45); --color-surface: rgba(255, 255, 255, 0.035);
--color-surface-2: oklch(0.26 0.024 70 / 0.45); --color-surface-2: rgba(255, 255, 255, 0.06);
--color-surface-elevated: #191a1b;
--color-surface-hover: rgba(255, 255, 255, 0.08);
/* ── Ink ── */ /* ── Typography & Ink ── */
--color-ink: oklch(0.95 0.008 75); --color-ink: #f7f8f8;
--color-ink-soft: oklch(0.66 0.02 75); --color-ink-soft: #d0d6e0;
--color-ink-faint: oklch(0.5 0.02 75); --color-ink-muted: #8a8f98;
--color-ink-faint: #62666d;
/* ── Structural ── */ /* ── Hairline Structural Borders ── */
--color-hairline: oklch(1 0 0 / 0.1); --color-hairline: rgba(255, 255, 255, 0.08);
--color-hairline-subtle: rgba(255, 255, 255, 0.05);
--color-hairline-focus: rgba(255, 255, 255, 0.16);
--hairline-w: 1px; --hairline-w: 1px;
/* ── Semantic signals (monochrome: tone = luminance steps) ── */ /* ── Brand & Accent Signals (Subdued Precision) ── */
--color-signal: oklch(0.97 0 0); --color-brand: #5e6ad2;
--color-signal-ink: oklch(0.1 0 0); --color-brand-accent: #7170ff;
--color-signal-glow: oklch(1 0 0 / 0.35); --color-brand-hover: #828fff;
--color-amber: oklch(0.72 0 0); --color-brand-subtle: rgba(94, 106, 210, 0.15);
--color-vermilion: oklch(0.85 0 0);
--color-vermilion-glow: oklch(1 0 0 / 0.45);
--color-ring: var(--color-signal); --color-signal: #7170ff;
--color-signal-ink: #ffffff;
--color-signal-glow: rgba(113, 112, 255, 0.25);
/* ── Fonts ── */ /* Semantic status colors (crisp, purposeful) */
--font-sans: "Inter", ui-sans-serif, system-ui, sans-serif; --color-status-success: #10b981;
--font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; --color-status-success-subtle: rgba(16, 185, 129, 0.15);
--font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif; --color-amber: #f59e0b;
--color-amber-subtle: rgba(245, 158, 11, 0.15);
--color-vermilion: #f43f5e;
--color-vermilion-subtle: rgba(244, 63, 94, 0.15);
--color-vermilion-glow: rgba(244, 63, 94, 0.3);
/* ── Radii ── */ --color-ring: var(--color-brand-accent);
--radius-r: 16px;
--radius-r-panel: 12px; /* ── Typography Stack ── */
--radius-r-control: 9px; --font-sans: var(--font-inter), "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
--font-mono: var(--font-jetbrains-mono), "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
--font-display: var(--font-inter), "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
/* ── Radii (Refined, tighter precision) ── */
--radius-r: 10px;
--radius-r-panel: 8px;
--radius-r-control: 6px;
--radius-r-pill: 9999px; --radius-r-pill: 9999px;
} }
/* ── Light theme overrides ── */ /* ── Light Theme Fallbacks ── */
.light { .light {
color-scheme: light; color-scheme: light;
--color-canvas: oklch(0.96 0.012 80); --color-canvas: #f7f8f8;
--color-canvas-2: oklch(0.92 0.014 80); --color-canvas-2: #f3f4f5;
--color-surface: oklch(1 0 0 / 0.7); --color-surface: rgba(0, 0, 0, 0.03);
--color-surface-2: oklch(1 0 0 / 0.5); --color-surface-2: rgba(0, 0, 0, 0.05);
--color-surface-elevated: #ffffff;
--color-surface-hover: rgba(0, 0, 0, 0.06);
--color-ink: oklch(0.22 0.02 70); --color-ink: #171717;
--color-ink-soft: oklch(0.46 0.02 70); --color-ink-soft: #404040;
--color-ink-faint: oklch(0.6 0.02 70); --color-ink-muted: #737373;
--color-ink-faint: #a3a3a3;
--color-hairline: oklch(0.22 0.02 70 / 0.12); --color-hairline: rgba(0, 0, 0, 0.08);
} --color-hairline-subtle: rgba(0, 0, 0, 0.04);
--color-hairline-focus: rgba(0, 0, 0, 0.18);
/* Light-theme scrollbar + selection tuned for pale canvas */
.light ::-webkit-scrollbar-thumb {
background: oklch(0.22 0.02 70 / 0.2);
}
.light ::-webkit-scrollbar-thumb:hover {
background: oklch(0.22 0.02 70 / 0.34);
}
.light ::selection {
background: oklch(0.2 0 0 / 0.9);
color: oklch(1 0 0);
} }
@layer base { @layer base {
* { * {
@apply border-transparent; @apply border-transparent;
font-feature-settings: "cv01", "ss03";
} }
html { html {
@apply font-sans antialiased scroll-smooth; @apply font-sans antialiased scroll-smooth;
background-color: var(--color-canvas);
color: var(--color-ink);
} }
body { body {
@@ -93,72 +103,87 @@
} }
::selection { ::selection {
background: var(--color-signal-glow); background: rgba(113, 112, 255, 0.28);
color: inherit; color: #ffffff;
} }
/* Scrollbar */ /* Linear-style minimalist slim scrollbar */
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 8px; width: 6px;
height: 8px; height: 6px;
} }
::-webkit-scrollbar-track { ::-webkit-scrollbar-track {
background: transparent; background: transparent;
} }
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
background: oklch(1 0 0 / 0.14); background: rgba(255, 255, 255, 0.12);
border-radius: 999px; border-radius: 9999px;
} }
::-webkit-scrollbar-thumb:hover { ::-webkit-scrollbar-thumb:hover {
background: oklch(1 0 0 / 0.26); background: rgba(255, 255, 255, 0.22);
} }
:focus-visible { :focus-visible {
outline: 2px solid var(--color-signal); outline: 2px solid var(--color-brand-accent);
outline-offset: 2px; outline-offset: 2px;
} }
} }
@layer components { @layer components {
/* Glass panel — the workhorse container. Floating, blurred, faint glow. */ /* Precision Surface Panel (Linear Card) */
.glass { .glass {
background: var(--color-surface); background: var(--color-surface);
border: var(--hairline-w) solid var(--color-hairline); border: 1px solid var(--color-hairline);
border-radius: var(--radius-r); border-radius: var(--radius-r);
backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(12px);
box-shadow: box-shadow:
0 1px 0 0 oklch(1 0 0 / 0.06) inset, 0 1px 0 0 rgba(255, 255, 255, 0.03) inset,
0 18px 50px -28px oklch(0 0 0 / 0.8); 0 12px 32px -16px rgba(0, 0, 0, 0.7);
transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
} }
.glass-2 { .glass-2 {
background: var(--color-surface-2); background: var(--color-surface-2);
border: var(--hairline-w) solid var(--color-hairline); border: 1px solid var(--color-hairline-subtle);
border-radius: var(--radius-r-panel); border-radius: var(--radius-r-panel);
backdrop-filter: blur(14px) saturate(130%); backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(14px) saturate(130%); -webkit-backdrop-filter: blur(8px);
} }
/* Section label — small uppercase mono eyebrow */ /* Linear-style subtle interactive hover card */
.linear-card {
background: rgba(255, 255, 255, 0.02);
border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: var(--radius-r-panel);
transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.linear-card:hover {
background: rgba(255, 255, 255, 0.04);
border-color: rgba(255, 255, 255, 0.12);
transform: translateY(-1px);
}
/* Precision Eyebrow Header */
.eyebrow { .eyebrow {
font-family: var(--font-mono); font-family: var(--font-mono);
font-size: 0.68rem; font-size: 0.68rem;
letter-spacing: 0.18em; font-weight: 500;
letter-spacing: 0.08em;
text-transform: uppercase; text-transform: uppercase;
color: var(--color-ink-faint); color: var(--color-ink-muted);
} }
/* Micro-Pill Tag */
.pill { .pill {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
gap: 0.4rem; gap: 0.35rem;
padding: 0.22rem 0.7rem; padding: 0.18rem 0.55rem;
border-radius: var(--radius-r-pill); border-radius: var(--radius-r-pill);
font-size: 0.72rem; font-size: 0.7rem;
font-weight: 600; font-weight: 500;
letter-spacing: 0.01em; background: rgba(255, 255, 255, 0.04);
background: oklch(1 0 0 / 0.06);
border: 1px solid var(--color-hairline); border: 1px solid var(--color-hairline);
color: var(--color-ink-soft); color: var(--color-ink-soft);
} }
@@ -166,294 +191,83 @@
.mono { .mono {
font-family: var(--font-mono); font-family: var(--font-mono);
font-variant-numeric: tabular-nums; font-variant-numeric: tabular-nums;
letter-spacing: -0.01em;
} }
/* Display Typography (Compressed Linear-style tracking) */
.display { .display {
font-family: var(--font-display); font-family: var(--font-sans);
font-weight: 800; font-weight: 600;
letter-spacing: -0.03em; letter-spacing: -0.035em;
line-height: 0.96; line-height: 1.05;
} }
} }
@layer utilities { @layer utilities {
.text-signal { color: var(--color-signal); } .text-signal { color: var(--color-brand-accent); }
.text-brand { color: var(--color-brand-accent); }
.text-amber { color: var(--color-amber); } .text-amber { color: var(--color-amber); }
.text-vermilion { color: var(--color-vermilion); } .text-vermilion { color: var(--color-vermilion); }
.text-success { color: var(--color-status-success); }
.text-ink-soft { color: var(--color-ink-soft); } .text-ink-soft { color: var(--color-ink-soft); }
.text-ink-muted { color: var(--color-ink-muted); }
.text-ink-faint { color: var(--color-ink-faint); } .text-ink-faint { color: var(--color-ink-faint); }
/* Fluid hero title — never overflows on small screens. */ .hero-clamp {
.hero-clamp { font-size: clamp(1.9rem, 1.2rem + 4vw, 2.6rem); } font-size: clamp(1.85rem, 1.2rem + 3.5vw, 2.5rem);
letter-spacing: -0.04em;
font-weight: 600;
}
.glow-signal { .glow-signal {
text-shadow: 0 0 22px var(--color-signal-glow); text-shadow: 0 0 16px var(--color-signal-glow);
}
.glow-vermilion {
text-shadow: 0 0 22px var(--color-vermilion-glow);
}
/* animated scan line for live headers */
.scan-line {
position: relative;
overflow: hidden;
}
.scan-line::after {
content: "";
position: absolute;
left: 0;
top: 0;
height: 1px;
width: 100%;
background: linear-gradient(
90deg,
transparent,
var(--color-signal) 25%,
var(--color-signal) 75%,
transparent
);
background-size: 200% 100%;
animation: scan 2.8s linear infinite;
opacity: 0.7;
} }
.ring-focus { .ring-focus {
transition: box-shadow 0.18s ease, border-color 0.18s ease; transition: box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s ease;
} }
.ring-focus:hover { .ring-focus:hover {
box-shadow: 0 0 0 1px var(--color-signal-glow); border-color: rgba(255, 255, 255, 0.16);
}
.ring-focus:focus-visible {
box-shadow: 0 0 0 2px var(--color-brand-accent);
} }
} }
/* ═══ Micro Navigation Elements ═══ */
.nav-dock-item {
position: relative;
transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-dock-item:hover {
background: rgba(255, 255, 255, 0.05);
color: var(--color-ink);
}
.nav-dock-item.is-active {
background: rgba(255, 255, 255, 0.08);
color: #ffffff;
border: 1px solid rgba(255, 255, 255, 0.12);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
/* ── Keyframes ── */ /* ── Keyframes ── */
@keyframes scan {
0% { background-position: 200% 0; }
100% { background-position: -200% 0; }
}
@keyframes eq {
0%, 100% { transform: scaleY(0.25); }
30% { transform: scaleY(1); }
60% { transform: scaleY(0.5); }
}
@keyframes fade-up {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes spin-disc { @keyframes spin-disc {
from { transform: rotate(0deg); } from { transform: rotate(0deg); }
to { transform: rotate(360deg); } to { transform: rotate(360deg); }
} }
@keyframes pulse-ring { @keyframes pulse-ring {
0% { transform: scale(0.85); opacity: 1; } 0% { transform: scale(0.85); opacity: 0.8; }
100% { transform: scale(2.6); opacity: 0; } 100% { transform: scale(2.2); opacity: 0; }
}
@keyframes shimmer {
0% { background-position: -200% 0; }
100% { background-position: 200% 0; }
}
@keyframes breathe {
0%, 100% { opacity: 0.55; }
50% { opacity: 1; }
} }
.animate-eq { .animate-spin-disc { animation: spin-disc 10s linear infinite; }
animation: eq 0.9s ease-in-out infinite; .animate-pulse-ring { animation: pulse-ring 2s cubic-bezier(0.16, 1, 0.3, 1) infinite; }
transform-origin: bottom;
}
.animate-spin-disc { animation: spin-disc 9s linear infinite; }
.animate-spin-disc.paused { animation-play-state: paused; }
.animate-pulse-ring { animation: pulse-ring 1.6s ease-out infinite; }
.animate-shimmer {
background: linear-gradient(
90deg,
transparent,
oklch(0.86 0.19 128 / 0.1),
transparent
);
background-size: 200% 100%;
animation: shimmer 1.6s infinite;
}
.animate-breathe { animation: breathe 3.5s ease-in-out infinite; }
/* Page-enter: subtle rise+settle. Respect reduced-motion (handled globally). */
.animate-fade-up {
animation: fade-up 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
/* List stagger: each child rises in sequence. Pair with inline
style={{ animationDelay }} set via staggerDelay(). */
.animate-stagger {
animation: fade-up 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}
/* Toast: slide up + settle from the dock edge. */
.animate-toast-in {
animation: toast-in 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes toast-in {
from {
opacity: 0;
transform: translateY(14px) scale(0.98);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
/* ═══ Game-menu nav (monochrome) ═══
Corner brackets + one-shot light sweep + staggered entrance.
Pure transform/opacity — compositor only. */
.game-nav-item {
--i: 0;
position: relative;
isolation: isolate;
animation: nav-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
animation-delay: calc(var(--i) * 45ms);
}
/* corner brackets on hover/active */
.game-nav-item::before,
.game-nav-item::after {
content: "";
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 0.2s ease;
pointer-events: none;
}
.game-nav-item::before {
border-left: 2px solid currentColor;
border-top: 2px solid currentColor;
border-top-left-radius: 13px;
clip-path: polygon(0 0, 62% 0, 62% 30%, 30% 30%, 30% 100%, 0 100%);
}
.game-nav-item::after {
border-right: 2px solid currentColor;
border-bottom: 2px solid currentColor;
border-bottom-right-radius: 13px;
clip-path: polygon(100% 100%, 38% 100%, 38% 70%, 70% 70%, 70% 0, 100% 0);
}
.game-nav-item:hover::before,
.game-nav-item:hover::after,
.game-nav-item.is-active::before,
.game-nav-item.is-active::after {
opacity: 1;
}
/* one-shot sweep */
.game-nav-item .game-sweep {
position: absolute;
inset: 0;
overflow: hidden;
border-radius: inherit;
pointer-events: none;
}
.game-nav-item .game-sweep > i {
position: absolute;
top: -20%;
bottom: -20%;
width: 34%;
left: -60%;
background: linear-gradient(
105deg,
transparent,
oklch(1 0 0 / 0.16),
transparent
);
transform: skewX(-14deg);
}
.game-nav-item:hover .game-sweep > i,
.game-nav-item.is-active .game-sweep > i {
animation: sweep-x 0.55s ease-out both;
}
/* active triangle marker (game cursor) */
.game-marker {
position: absolute;
top: 50%;
width: 0;
height: 0;
border-block: 7px solid transparent;
border-left: 11px solid currentColor;
transform: translateY(-50%);
filter: drop-shadow(0 0 6px var(--color-signal-glow));
animation: marker-nudge 1.6s ease-in-out infinite;
}
@keyframes marker-nudge {
0%, 100% { transform: translateY(-50%) translateX(0); }
50% { transform: translateY(-50%) translateX(3px); }
}
@keyframes sweep-x {
from { left: -60%; }
to { left: 130%; }
}
@keyframes nav-in {
from { opacity: 0; transform: translateX(-10px); }
to { opacity: 1; transform: translateX(0); }
}
/* ── Game frame: panel with cut corners + drawn-in edge lines ── */
.game-frame {
position: relative;
}
.game-frame::before {
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
pointer-events: none;
background:
linear-gradient(var(--color-hairline), var(--color-hairline)) top left /
26px 1.5px,
linear-gradient(var(--color-hairline), var(--color-hairline)) top left / 1.5px
26px,
linear-gradient(var(--color-hairline), var(--color-hairline)) top right /
26px 1.5px,
linear-gradient(var(--color-hairline), var(--color-hairline)) top right / 1.5px
26px,
linear-gradient(var(--color-hairline), var(--color-hairline)) bottom left /
26px 1.5px,
linear-gradient(var(--color-hairline), var(--color-hairline)) bottom left /
1.5px 26px,
linear-gradient(var(--color-hairline), var(--color-hairline)) bottom right /
26px 1.5px,
linear-gradient(var(--color-hairline), var(--color-hairline)) bottom right /
1.5px 26px;
background-repeat: no-repeat;
}
/* ── Mobile lightness (<md): cheaper blur, shorter animations ── */
@media (max-width: 767px) {
.glass {
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
}
.game-nav-item {
animation-duration: 0.25s;
animation-delay: calc(var(--i) * 18ms);
}
.scan-line::after,
.animate-shimmer {
display: none;
}
}
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) { @media (prefers-reduced-motion: reduce) {
.scan-line::after,
.scan-line,
.animate-eq,
.animate-spin-disc, .animate-spin-disc,
.animate-pulse-ring, .animate-pulse-ring {
.animate-shimmer,
.animate-breathe,
.animate-fade-up,
.animate-stagger,
.animate-toast-in {
animation: none !important; animation: none !important;
} }
.scan-line {
background: none !important;
}
*, *,
*::before, *::before,
*::after { *::after {
@@ -9,10 +9,6 @@ import { downloadCsv } from "@/lib/csv";
import { formatRelativeTime } from "@/lib/format"; import { formatRelativeTime } from "@/lib/format";
import type { ChannelCultureRow } from "@/lib/types"; import type { ChannelCultureRow } from "@/lib/types";
/**
* Deterministic pseudo signal-strength (0..1) derived from recency + summary
* richness — purely cosmetic telemetry framing, no backend field for this.
*/
function deriveSignalStrength(c: ChannelCultureRow): number { function deriveSignalStrength(c: ChannelCultureRow): number {
let score = 0.25; let score = 0.25;
if (c.culture_summary) { if (c.culture_summary) {
@@ -39,22 +35,17 @@ export function ChannelCultureGlossary({
[cultures], [cultures],
); );
const hudRef = useStaggerReveal<HTMLDivElement>(".channel-node", { const containerRef = useStaggerReveal<HTMLDivElement>(".channel-row", {
stagger: 0.045, stagger: 0.025,
y: 14, y: 6,
dependencies: [cultures], dependencies: [cultures],
}); });
return ( return (
<GlassPanel className="lg:col-span-3"> <GlassPanel>
<SectionHeader <SectionHeader
eyebrow="knowledge · roster" eyebrow="Roster Intelligence"
title={ title="Channel Culture & Activity Roster"
<span className="flex items-center gap-2">
<Radio className="size-4 text-signal" />
Channel Culture Glossary
</span>
}
action={ action={
cultures.length > 0 ? ( cultures.length > 0 ? (
<button <button
@@ -69,7 +60,7 @@ export function ChannelCultureGlossary({
})), })),
) )
} }
className="flex items-center gap-1.5 font-mono text-[11px] text-ink-soft hover:text-ink" className="font-mono text-[11px] text-[#8a8f98] transition-colors hover:text-[#f7f8f8]"
> >
EXPORT_CSV EXPORT_CSV
</button> </button>
@@ -77,47 +68,31 @@ export function ChannelCultureGlossary({
} }
/> />
{cultures.length === 0 ? ( {cultures.length === 0 ? (
<p className="py-6 text-center font-mono text-xs text-ink-faint"> <div className="py-8 text-center font-mono text-xs text-[#8a8f98]">
NO CHANNEL TELEMETRY CAPTURED YET NO CHANNELS LOGGED
</p> </div>
) : ( ) : (
<div ref={hudRef} className="space-y-2"> <div ref={containerRef} className="space-y-2 mt-3">
{ranked.map(({ c, signal }) => ( {ranked.map(({ c }) => (
<div <div
key={c.channel_id} key={c.channel_id}
className="channel-node group relative overflow-hidden rounded-md border border-hairline bg-surface/40 p-3 backdrop-blur-md transition-colors hover:border-signal/40" className="channel-row flex flex-col gap-1 rounded-[6px] border border-white/[0.06] bg-white/[0.02] p-3 transition-all hover:border-white/[0.12] hover:bg-white/[0.04]"
> >
<div className="flex items-baseline justify-between gap-3"> <div className="flex items-center justify-between">
<span className="truncate font-mono text-xs font-semibold text-ink"> <span className="font-mono text-xs font-semibold text-[#f7f8f8]">
#{c.channel_name ?? c.channel_id.slice(0, 8)} #{c.channel_name ?? c.channel_id.slice(0, 8)}
</span> </span>
<div className="flex items-center gap-2 shrink-0"> {c.last_analyzed_at && (
<Signal className="size-3 text-ink-faint" /> <span className="font-mono text-[10px] text-[#8a8f98]">
{c.last_analyzed_at && ( {formatRelativeTime(c.last_analyzed_at)}
<span className="font-mono text-[10px] text-ink-faint"> </span>
{formatRelativeTime(c.last_analyzed_at)} )}
</span>
)}
</div>
</div> </div>
{c.culture_summary && (
{c.culture_summary ? ( <p className="font-sans text-xs text-[#8a8f98] leading-relaxed line-clamp-2">
<p className="mt-1.5 line-clamp-2 text-[13px] text-ink-soft">
{c.culture_summary} {c.culture_summary}
</p> </p>
) : (
<span className="mt-1.5 block font-mono text-[11px] text-ink-faint">
(no summary captured)
</span>
)} )}
{/* Signal strength readout bar */}
<div className="mt-2 h-1 w-full overflow-hidden rounded-full bg-canvas-2">
<div
className="h-full rounded-full bg-signal transition-[width] duration-700 ease-out"
style={{ width: `${Math.round(signal * 100)}%` }}
/>
</div>
</div> </div>
))} ))}
</div> </div>
@@ -2,20 +2,24 @@
import { import {
Bot, Bot,
Check, MessageSquare,
Copy, Send,
MessageCircle,
RotateCw,
Trash2, Trash2,
X, X,
} from "lucide-react"; } from "lucide-react";
import { useEffect, useRef, useState } from "react"; import { useEffect, useRef, useState } from "react";
import { useGSAP } from "@gsap/react";
import gsap from "gsap";
import { Avatar, Button, GlassPanel, toast } from "@/components/primitives"; import { Avatar, Button, GlassPanel, toast } from "@/components/primitives";
import { MarkdownLite } from "@/components/shared"; import { MarkdownLite } from "@/components/shared";
import { useChatbotUserId } from "@/hooks/use-chatbot-user"; import { useChatbotUserId } from "@/hooks/use-chatbot-user";
import { chatbotApi } from "@/lib/api"; import { chatbotApi } from "@/lib/api";
import { cn } from "@/lib/utils"; import { cn } from "@/lib/utils";
if (typeof window !== "undefined") {
gsap.registerPlugin(useGSAP);
}
interface Msg { interface Msg {
id: string; id: string;
role: "user" | "bot"; role: "user" | "bot";
@@ -34,32 +38,27 @@ function formatTime(ts: number): string {
} }
} }
function TypingDots() {
return (
<div className="flex items-center gap-1 py-1">
{[0, 1, 2].map((i) => (
<span
key={i}
className="size-1.5 rounded-full bg-ink-faint animate-bounce"
style={{ animationDelay: `${i * 0.15}s`, animationDuration: "0.9s" }}
/>
))}
</div>
);
}
export function Chatbot() { export function Chatbot() {
const userId = useChatbotUserId(); const userId = useChatbotUserId();
const [open, setOpen] = useState(false); const [open, setOpen] = useState(false);
const [msgs, setMsgs] = useState<Msg[]>([]); const [msgs, setMsgs] = useState<Msg[]>([]);
const [input, setInput] = useState(""); const [input, setInput] = useState("");
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);
const [failed, setFailed] = useState<string | null>(null); const panelRef = useRef<HTMLDivElement>(null);
const [copiedId, setCopiedId] = useState<string | null>(null);
const listRef = useRef<HTMLDivElement>(null);
const taRef = useRef<HTMLTextAreaElement>(null);
const bottomRef = useRef<HTMLDivElement>(null); const bottomRef = useRef<HTMLDivElement>(null);
useGSAP(
() => {
if (!open || !panelRef.current) return;
gsap.fromTo(
panelRef.current,
{ opacity: 0, y: 12, scale: 0.98 },
{ opacity: 1, y: 0, scale: 1, duration: 0.22, ease: "power2.out" },
);
},
{ dependencies: [open] },
);
useEffect(() => { useEffect(() => {
if (!open || !userId) return; if (!open || !userId) return;
chatbotApi chatbotApi
@@ -85,44 +84,12 @@ export function Chatbot() {
.catch(() => {}); .catch(() => {});
}, [open, userId]); }, [open, userId]);
// Auto-scroll to newest whenever the thread or typing state changes.
// biome-ignore lint/correctness/useExhaustiveDependencies: scroll must fire on thread/typing changes even though the body only reads the ref
useEffect(() => { useEffect(() => {
bottomRef.current?.scrollIntoView({ behavior: "smooth", block: "end" }); bottomRef.current?.scrollIntoView({ behavior: "smooth" });
}, [msgs, loading, open]); }, [msgs, loading]);
// Auto-grow the composer.
// biome-ignore lint/correctness/useExhaustiveDependencies: height recompute is keyed to input changes; body only reads the textarea element
useEffect(() => {
const ta = taRef.current;
if (!ta) return;
ta.style.height = "auto";
ta.style.height = `${Math.min(ta.scrollHeight, 140)}px`;
}, [input]);
const copy = async (id: string, text: string) => {
try {
await navigator.clipboard.writeText(text);
setCopiedId(id);
window.setTimeout(() => setCopiedId((c) => (c === id ? null : c)), 1200);
} catch {
/* clipboard unavailable */
}
};
const clearAll = async () => {
if (!userId) return;
setMsgs([]);
try {
await chatbotApi.clearHistory(userId);
} catch {
/* best-effort */
}
};
const send = async (text: string) => { const send = async (text: string) => {
if (!text.trim() || loading || !userId) return; if (!text.trim() || loading || !userId) return;
setFailed(null);
setInput(""); setInput("");
setMsgs((m) => [ setMsgs((m) => [
...m, ...m,
@@ -141,172 +108,116 @@ export function Chatbot() {
}, },
]); ]);
} catch (e) { } catch (e) {
setFailed(text);
toast({ title: "Chat error", description: String(e), tone: "vermilion" }); toast({ title: "Chat error", description: String(e), tone: "vermilion" });
} finally { } finally {
setLoading(false); setLoading(false);
} }
}; };
const clearAll = async () => {
if (!userId) return;
setMsgs([]);
try {
await chatbotApi.clearHistory(userId);
} catch {
/* best-effort */
}
};
return ( return (
<> <>
<button <button
type="button" type="button"
aria-label="Open assistant" aria-label="Open assistant"
onClick={() => setOpen((o) => !o)} onClick={() => setOpen((o) => !o)}
className="fixed right-4 bottom-24 z-50 flex items-center justify-center rounded-full bg-signal text-signal-ink shadow-[0_10px_30px_-8px_var(--color-signal-glow)] transition-transform hover:scale-105 md:right-5 md:bottom-5" className="fixed right-4 bottom-5 z-50 flex size-10 items-center justify-center rounded-full border border-white/[0.12] bg-[#0f1011] text-[#f7f8f8] shadow-2xl transition-all duration-150 hover:scale-105 hover:border-[#7170ff] hover:bg-[#191a1b]"
style={{ width: 52, height: 52 }}
> >
{open ? <X className="size-5" /> : <MessageCircle className="size-5" />} {open ? <X className="size-4" /> : <MessageSquare className="size-4 text-[#7170ff]" />}
</button> </button>
{open && ( {open && (
<GlassPanel <div
className="fixed right-4 bottom-24 z-50 flex w-[min(94vw,360px)] flex-col p-0 md:right-5 md:bottom-20" ref={panelRef}
style={{ className="fixed right-4 bottom-18 z-50 flex h-[min(65dvh,480px)] w-[min(92vw,350px)] flex-col rounded-[10px] border border-white/[0.08] bg-[#0f1011]/95 p-0 shadow-2xl backdrop-blur-xl"
animation: "fade-up 0.16s ease",
height: "min(68dvh, 520px)",
}}
> >
<div className="flex items-center gap-2 border-b border-hairline px-4 py-3"> <div className="flex items-center justify-between border-b border-white/[0.06] px-3.5 py-2.5">
<span className="flex size-8 items-center justify-center rounded-full bg-signal/15 text-signal"> <div className="flex items-center gap-2">
<Bot className="size-4" /> <span className="flex size-6 items-center justify-center rounded-md bg-[#7170ff]/15 text-[#7170ff]">
</span> <Bot className="size-3.5" />
<div> </span>
<div className="text-sm font-semibold text-ink"> <div>
GMW Assistant <div className="text-xs font-semibold text-[#f7f8f8]">
</div> Linear Assistant
<div className="mono text-[0.6rem] text-ink-faint"> </div>
context-aware <div className="font-mono text-[9px] text-[#62666d]">
active context
</div>
</div> </div>
</div> </div>
<button <button
type="button" type="button"
aria-label="Clear conversation"
onClick={clearAll} onClick={clearAll}
className="ml-auto rounded-[9px] p-1.5 text-ink-faint transition-colors hover:bg-white/5 hover:text-ink-soft" className="rounded-[5px] p-1 text-[#62666d] hover:bg-white/[0.05] hover:text-[#d0d6e0]"
> >
<Trash2 className="size-4" /> <Trash2 className="size-3.5" />
</button> </button>
</div> </div>
<div <div className="flex-1 space-y-2.5 overflow-y-auto px-3.5 py-3">
ref={listRef}
className="flex-1 space-y-3 overflow-y-auto px-4 py-3"
>
{msgs.length === 0 && !loading && ( {msgs.length === 0 && !loading && (
<div className="py-8 text-center text-xs text-ink-faint"> <div className="py-8 text-center text-xs text-[#62666d]">
Ask about moderation, voice, or media. Ask anything about telemetry, moderation, or media.
</div> </div>
)} )}
{msgs.map((m) => ( {msgs.map((m) => (
<div <div
key={m.id} key={m.id}
className={cn( className={cn(
"group flex gap-2", "flex flex-col text-xs",
m.role === "user" ? "justify-end" : "justify-start", m.role === "user" ? "items-end" : "items-start",
)} )}
> >
{m.role === "bot" && ( <div
<Avatar className={cn(
name="GMW" "max-w-[85%] rounded-[6px] px-2.5 py-1.5",
size={26} m.role === "user"
className="mt-0.5 bg-signal/15 text-signal" ? "bg-[#5e6ad2] text-white"
/> : "border border-white/[0.06] bg-white/[0.03] text-[#d0d6e0]",
)} )}
<div className="flex max-w-[82%] flex-col"> >
<div {m.role === "bot" ? (
className={cn( <MarkdownLite content={m.content} />
"rounded-2xl px-3 py-2 text-sm", ) : (
m.role === "user" <span>{m.content}</span>
? "rounded-br-sm bg-signal/20 text-ink" )}
: "rounded-bl-sm bg-white/5 text-ink-soft",
)}
>
{m.role === "bot" ? (
<MarkdownLite content={m.content} />
) : (
<span className="whitespace-pre-wrap break-words">
{m.content}
</span>
)}
</div>
<div
className={cn(
"mt-0.5 flex items-center gap-1.5 text-[0.6rem] text-ink-faint",
m.role === "user" && "flex-row-reverse",
)}
>
<span className="mono">{formatTime(m.ts)}</span>
<button
type="button"
aria-label="Copy message"
onClick={() => copy(m.id, m.content)}
className="rounded p-0.5 opacity-0 transition-opacity hover:text-ink-soft group-hover:opacity-100"
>
{copiedId === m.id ? (
<Check className="size-3 text-signal" />
) : (
<Copy className="size-3" />
)}
</button>
</div>
</div> </div>
<span className="font-mono mt-0.5 text-[9px] text-[#62666d]">
{formatTime(m.ts)}
</span>
</div> </div>
))} ))}
{loading && (
<div className="flex gap-2">
<Avatar
name="GMW"
size={26}
className="bg-signal/15 text-signal"
/>
<div className="rounded-2xl rounded-bl-sm bg-white/5 px-3 py-2">
<TypingDots />
</div>
</div>
)}
<div ref={bottomRef} /> <div ref={bottomRef} />
</div> </div>
{failed && ( <form
<div className="mx-3 mb-1 flex items-center gap-2 rounded-[10px] border border-vermilion/30 bg-vermilion/10 px-3 py-1.5 text-xs text-vermilion"> onSubmit={(e) => {
<span className="flex-1 truncate">Send failed</span> e.preventDefault();
<button send(input);
type="button" }}
onClick={() => send(failed)} className="flex items-center gap-1.5 border-t border-white/[0.06] p-2"
className="inline-flex items-center gap-1 font-medium hover:underline" >
> <input
<RotateCw className="size-3" /> Retry type="text"
</button>
</div>
)}
<div className="flex items-end gap-2 border-t border-hairline p-3">
<textarea
ref={taRef}
rows={1}
placeholder="Message…"
value={input} value={input}
onChange={(e) => setInput(e.target.value)} onChange={(e) => setInput(e.target.value)}
onKeyDown={(e) => { placeholder="Ask command..."
if (e.key === "Enter" && !e.shiftKey) { className="flex-1 rounded-[5px] border border-white/[0.08] bg-white/[0.02] px-2.5 py-1.5 text-xs text-[#f7f8f8] placeholder:text-[#62666d] focus:border-[#7170ff] focus:outline-none"
e.preventDefault();
send(input);
}
}}
className="max-h-[140px] min-h-[40px] flex-1 resize-none rounded-[11px] bg-white/5 border border-hairline px-3 py-2 text-sm text-ink placeholder:text-ink-faint transition-colors focus:outline-none focus:border-signal/50 focus:bg-white/8"
/> />
<Button <Button type="submit" size="sm" variant="primary">
variant="primary" <Send className="size-3" />
size="icon"
onClick={() => send(input)}
disabled={loading}
>
<MessageCircle className="size-4" />
</Button> </Button>
</div> </form>
</GlassPanel> </div>
)} )}
</> </>
); );
@@ -1,39 +1,52 @@
import type React from "react";
import { cn } from "@/lib/utils"; import { cn } from "@/lib/utils";
type Tone = "signal" | "amber" | "vermilion" | "neutral"; export interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
tone?: "neutral" | "signal" | "amber" | "vermilion" | "success";
const tones: Record<Tone, string> = { size?: "sm" | "md";
signal: "bg-signal/12 text-signal border-signal/30", dot?: boolean;
amber: "bg-amber/12 text-amber border-amber/30", }
vermilion: "bg-vermilion/12 text-vermilion border-vermilion/30",
neutral: "bg-white/6 text-ink-soft border-white/10",
};
export function Badge({ export function Badge({
tone = "neutral", tone = "neutral",
dot, size = "md",
dot = false,
className, className,
children, children,
}: { ...props
tone?: Tone; }: BadgeProps) {
dot?: boolean; const tones = {
className?: string; neutral: "bg-white/[0.04] text-[#d0d6e0] border-white/[0.08]",
children: React.ReactNode; signal: "bg-[#7170ff]/10 text-[#7170ff] border-[#7170ff]/25",
}) { success: "bg-[#10b981]/10 text-[#10b981] border-[#10b981]/25",
amber: "bg-[#f59e0b]/10 text-[#f59e0b] border-[#f59e0b]/25",
vermilion: "bg-[#f43f5e]/10 text-[#f43f5e] border-[#f43f5e]/25",
};
const dots = {
neutral: "bg-[#8a8f98]",
signal: "bg-[#7170ff]",
success: "bg-[#10b981]",
amber: "bg-[#f59e0b]",
vermilion: "bg-[#f43f5e]",
};
const sizes = {
sm: "px-1.5 py-0.5 text-[10px]",
md: "px-2 py-0.5 text-[11px]",
};
return ( return (
<span <span
className={cn( className={cn(
"inline-flex items-center gap-1.5 rounded-full border px-2.5 py-0.5 text-[0.7rem] font-semibold tracking-wide", "inline-flex items-center gap-1.5 rounded-[4px] border font-mono font-medium tracking-tight",
tones[tone], tones[tone],
sizes[size],
className, className,
)} )}
{...props}
> >
{dot && ( {dot && <span className={cn("size-1.5 rounded-full", dots[tone])} />}
<span className="relative flex h-1.5 w-1.5">
<span className="absolute inline-flex h-full w-full rounded-full bg-current opacity-60 animate-pulse-ring" />
<span className="relative inline-flex h-1.5 w-1.5 rounded-full bg-current" />
</span>
)}
{children} {children}
</span> </span>
); );
@@ -1,51 +1,60 @@
import type React from "react";
import { cn } from "@/lib/utils"; import { cn } from "@/lib/utils";
import { Slot } from "./slot";
type Variant = "primary" | "ghost" | "outline" | "danger" | "subtle"; export const buttonVariants = ({
type Size = "sm" | "md" | "lg" | "icon"; variant = "primary",
size = "md",
className,
}: {
variant?: "primary" | "ghost" | "danger" | "secondary" | "subtle" | "outline";
size?: "sm" | "md" | "lg" | "icon";
className?: string;
}) => {
const base =
"inline-flex items-center justify-center font-sans font-medium transition-all duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#7170ff] disabled:pointer-events-none disabled:opacity-40 cursor-pointer";
const variants: Record<Variant, string> = { const variants = {
primary: primary:
"bg-signal text-signal-ink hover:brightness-110 shadow-[0_8px_24px_-10px_var(--color-signal-glow)] font-semibold", "bg-[#5e6ad2] text-white hover:bg-[#7170ff] shadow-sm active:scale-[0.98]",
ghost: "text-ink-soft hover:text-ink hover:bg-white/5", ghost:
outline: "bg-white/[0.03] text-[#d0d6e0] border border-white/[0.08] hover:bg-white/[0.06] hover:text-[#f7f8f8] hover:border-white/[0.14] active:scale-[0.98]",
"border border-hairline bg-white/0 text-ink hover:bg-white/5 hover:border-signal/40", outline:
danger: "bg-transparent text-[#d0d6e0] border border-white/[0.12] hover:bg-white/[0.04] hover:text-[#f7f8f8] active:scale-[0.98]",
"bg-vermilion text-white hover:brightness-110 shadow-[0_8px_24px_-10px_var(--color-vermilion-glow)] font-semibold", secondary:
subtle: "bg-white/5 text-ink hover:bg-white/10", "bg-white/[0.06] text-[#f7f8f8] hover:bg-white/[0.1] border border-white/[0.08] active:scale-[0.98]",
}; subtle:
"bg-transparent text-[#8a8f98] hover:bg-white/[0.04] hover:text-[#f7f8f8]",
danger:
"bg-[#f43f5e]/15 text-[#f43f5e] border border-[#f43f5e]/30 hover:bg-[#f43f5e]/25 active:scale-[0.98]",
};
const sizes: Record<Size, string> = { const sizes = {
sm: "h-8 px-3 text-xs rounded-[9px] gap-1.5", sm: "h-7 px-2.5 text-xs rounded-[5px] gap-1.5",
md: "h-10 px-4 text-sm rounded-[11px] gap-2", md: "h-8.5 px-3.5 text-xs rounded-[6px] gap-2",
lg: "h-12 px-6 text-base rounded-[13px] gap-2", lg: "h-10 px-4 text-sm rounded-[7px] gap-2.5",
icon: "h-10 w-10 rounded-[11px]", icon: "size-8.5 rounded-[6px] p-0",
};
return cn(base, variants[variant], sizes[size], className);
}; };
export interface ButtonProps export interface ButtonProps
extends React.ButtonHTMLAttributes<HTMLButtonElement> { extends React.ButtonHTMLAttributes<HTMLButtonElement> {
variant?: Variant; variant?: "primary" | "ghost" | "danger" | "secondary" | "subtle" | "outline";
size?: Size; size?: "sm" | "md" | "lg" | "icon";
asChild?: boolean;
} }
export const Button = ({ export const Button = ({
className, className,
variant = "subtle", variant = "ghost",
size = "md", size = "md",
asChild, type = "button",
...props ...props
}: ButtonProps) => { }: ButtonProps) => {
const Comp = asChild ? Slot : "button";
return ( return (
<Comp <button
className={cn( type={type}
"inline-flex items-center justify-center whitespace-nowrap transition-all duration-150 select-none active:scale-[0.97]", className={buttonVariants({ variant, size, className })}
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-signal/60 disabled:opacity-40 disabled:pointer-events-none",
variants[variant],
sizes[size],
className,
)}
{...props} {...props}
/> />
); );
@@ -1,19 +1,24 @@
import { cn } from "@/lib/utils"; import { cn } from "@/lib/utils";
/** Floating glass panel — primary container. */ export interface GlassPanelProps extends React.HTMLAttributes<HTMLDivElement> {
glow?: boolean;
}
export function GlassPanel({ export function GlassPanel({
className,
children, children,
className,
style,
glow, glow,
...props ...props
}: React.HTMLAttributes<HTMLDivElement> & { glow?: boolean }) { }: GlassPanelProps) {
return ( return (
<div <div
className={cn( className={cn(
"glass p-5", "relative rounded-[10px] border border-white/[0.08] bg-[#0f1011]/80 p-5 shadow-xl backdrop-blur-md transition-all duration-200",
glow && "shadow-[0_0_40px_-18px_var(--color-signal-glow)]", glow && "shadow-[0_0_24px_rgba(113,112,255,0.12)] border-[#7170ff]/30",
className, className,
)} )}
style={style}
{...props} {...props}
> >
{children} {children}
@@ -21,14 +26,21 @@ export function GlassPanel({
); );
} }
/** Smaller glass sub-panel. */
export function GlassCard({ export function GlassCard({
className,
children, children,
className,
style,
...props ...props
}: React.HTMLAttributes<HTMLDivElement>) { }: React.HTMLAttributes<HTMLDivElement>) {
return ( return (
<div className={cn("glass-2 p-4", className)} {...props}> <div
className={cn(
"relative rounded-[8px] border border-white/[0.06] bg-white/[0.02] p-4 transition-all duration-200 hover:border-white/[0.12] hover:bg-white/[0.04]",
className,
)}
style={style}
{...props}
>
{children} {children}
</div> </div>
); );
@@ -14,13 +14,19 @@ export function SectionHeader({
return ( return (
<div <div
className={cn( className={cn(
"mb-3 flex flex-wrap items-start justify-between gap-2 sm:gap-3", "mb-3.5 flex flex-wrap items-center justify-between gap-3",
className, className,
)} )}
> >
<div className="min-w-0"> <div className="min-w-0">
{eyebrow && <div className="eyebrow mb-1">{eyebrow}</div>} {eyebrow && (
<h2 className="display text-balance text-xl text-ink">{title}</h2> <div className="font-mono text-[10px] font-medium tracking-wider uppercase text-[#8a8f98] mb-0.5">
{eyebrow}
</div>
)}
<h2 className="font-sans text-[1.1rem] font-semibold tracking-tight text-[#f7f8f8]">
{title}
</h2>
</div> </div>
{action && ( {action && (
<div className="flex flex-wrap items-center gap-2">{action}</div> <div className="flex flex-wrap items-center gap-2">{action}</div>
@@ -50,45 +56,45 @@ export function MetricTile({
}) { }) {
const toneColor = const toneColor =
tone === "vermilion" tone === "vermilion"
? "var(--color-vermilion)" ? "#f43f5e"
: tone === "amber" : tone === "amber"
? "var(--color-amber)" ? "#f59e0b"
: tone === "signal" : tone === "signal"
? "var(--color-signal)" ? "#7170ff"
: "var(--color-ink)"; : "#f7f8f8";
return ( return (
<div <div
className={cn( className={cn(
"glass p-4 ring-focus transition-transform duration-200 hover:-translate-y-0.5", "relative rounded-[8px] border border-white/[0.07] bg-white/[0.025] p-4 transition-all duration-200 hover:border-white/[0.14] hover:bg-white/[0.04]",
className, className,
)} )}
style={style} style={style}
> >
<div className="flex items-center justify-between"> <div className="flex items-center justify-between">
<div className="eyebrow">{label}</div> <div className="font-mono text-[10px] font-medium uppercase tracking-wider text-[#8a8f98]">
{icon && <span className="text-ink-faint">{icon}</span>} {label}
</div>
{icon && <span className="text-[#8a8f98]">{icon}</span>}
</div> </div>
<div <div
className="display mt-1 text-[1.9rem] leading-none" className="font-sans mt-1.5 text-[1.65rem] font-semibold leading-none tracking-tight"
style={{ color: tone === "neutral" ? undefined : toneColor }} style={{ color: tone === "neutral" ? undefined : toneColor }}
> >
{value} {value}
</div> </div>
{hint && ( {hint && (
<div className="mono mt-1 text-[0.68rem] text-ink-faint">{hint}</div> <div className="font-mono mt-1 text-[10px] text-[#62666d]">{hint}</div>
)} )}
{spark && spark.length > 1 && ( {spark && spark.length > 1 && (
<div className="mt-2"> <div className="mt-2.5">
<div <div className="h-[3px] w-full overflow-hidden rounded-full bg-white/[0.06]">
className="h-1 w-full overflow-hidden rounded-full"
style={{ background: "oklch(1 0 0 / 0.08)" }}
>
<div <div
className="h-full rounded-full" className="h-full rounded-full"
style={{ style={{
width: `${Math.min(100, (spark[spark.length - 1] / (Math.max(...spark) || 1)) * 100)}%`, width: `${Math.min(100, (spark[spark.length - 1] / (Math.max(...spark) || 1)) * 100)}%`,
background: toneColor, background: toneColor,
opacity: 0.7, opacity: 0.8,
}} }}
/> />
</div> </div>
@@ -29,25 +29,23 @@ function NavItem({
href={href} href={href}
aria-label={label} aria-label={label}
aria-current={active ? "page" : undefined} aria-current={active ? "page" : undefined}
style={{ "--i": index } as React.CSSProperties}
className={cn( className={cn(
"nav-dock-item game-nav-item group relative flex size-11 items-center justify-center rounded-[13px] transition-all duration-200", "nav-dock-item group relative flex size-9 items-center justify-center rounded-[7px] transition-all duration-150",
active active
? "is-active bg-white/10 text-white shadow-sm ring-1 ring-white/20" ? "is-active bg-white/[0.08] text-[#f7f8f8] shadow-sm border border-white/[0.12]"
: "text-ink-faint hover:bg-white/5 hover:text-ink-soft hover:scale-105", : "text-[#8a8f98] hover:bg-white/[0.04] hover:text-[#d0d6e0]",
)} )}
> >
{active && <span className="game-marker -left-3.5" />}
<span className="game-sweep" aria-hidden="true">
<i />
</span>
<Icon <Icon
className="relative z-10 size-[18px]" className="relative z-10 size-4"
strokeWidth={active ? 2.4 : 2} strokeWidth={active ? 2.2 : 1.8}
/> />
{/* HUD Tooltip on hover */} {/* Precision Micro-Indicator */}
<span className="pointer-events-none absolute left-full z-50 ml-3 hidden whitespace-nowrap rounded-md border border-hairline bg-canvas-2/95 px-2.5 py-1 font-mono text-[11px] font-semibold tracking-wider text-ink opacity-0 shadow-xl backdrop-blur-md transition-all group-hover:translate-x-1 group-hover:opacity-100 md:block"> {active && (
<span className="text-signal mr-1.5">›</span> <span className="absolute -left-[5px] h-3.5 w-[2px] rounded-full bg-[#7170ff]" />
)}
{/* Tooltip on hover */}
<span className="pointer-events-none absolute left-full z-50 ml-2.5 hidden whitespace-nowrap rounded-[5px] border border-white/[0.08] bg-[#0f1011] px-2 py-0.5 font-sans text-[11px] font-medium tracking-tight text-[#f7f8f8] opacity-0 shadow-lg backdrop-blur-md transition-all group-hover:translate-x-0.5 group-hover:opacity-100 md:block">
{label} {label}
</span> </span>
</a> </a>
@@ -65,13 +63,12 @@ export function NavRail() {
const items = railRef.current.querySelectorAll(".nav-dock-item"); const items = railRef.current.querySelectorAll(".nav-dock-item");
gsap.fromTo( gsap.fromTo(
items, items,
{ opacity: 0, x: -8, scale: 0.9 }, { opacity: 0, x: -6 },
{ {
opacity: 1, opacity: 1,
x: 0, x: 0,
scale: 1, duration: 0.3,
duration: 0.4, stagger: 0.025,
stagger: 0.04,
ease: "power2.out", ease: "power2.out",
clearProps: "transform", clearProps: "transform",
}, },
@@ -83,9 +80,9 @@ export function NavRail() {
return ( return (
<nav <nav
ref={railRef} ref={railRef}
className="glass mb-[calc(0.75rem+env(safe-area-inset-bottom))] ml-[calc(0.75rem+env(safe-area-inset-left))] mt-[calc(0.75rem+env(safe-area-inset-top))] hidden w-[68px] flex-col items-center gap-1 rounded-[18px] border border-hairline/80 py-4 shadow-2xl backdrop-blur-xl md:flex" className="mb-[calc(0.75rem+env(safe-area-inset-bottom))] ml-[calc(0.75rem+env(safe-area-inset-left))] mt-[calc(0.75rem+env(safe-area-inset-top))] hidden w-[54px] flex-col items-center gap-1 rounded-[10px] border border-white/[0.08] bg-[#0f1011]/80 py-3 shadow-xl backdrop-blur-md md:flex"
> >
<div className="flex flex-1 flex-col gap-1.5"> <div className="flex flex-1 flex-col gap-1">
{navItems.map((item, i) => ( {navItems.map((item, i) => (
<NavItem <NavItem
key={item.href} key={item.href}
@@ -6,10 +6,16 @@ import { type RefObject, useRef } from "react";
if (typeof window !== "undefined") { if (typeof window !== "undefined") {
gsap.registerPlugin(useGSAP); gsap.registerPlugin(useGSAP);
// Set default Linear-style crisp easing & duration
gsap.defaults({
ease: "power2.out",
duration: 0.35,
});
} }
/** /**
* Reusable hook for staggered reveal animations on child elements. * Reusable hook for staggered reveal animations on child elements.
* Linear-style: crisp entry, very subtle vertical displacement, no layout shift.
*/ */
export function useStaggerReveal<T extends HTMLElement = HTMLDivElement>( export function useStaggerReveal<T extends HTMLElement = HTMLDivElement>(
selector: string, selector: string,
@@ -41,16 +47,14 @@ export function useStaggerReveal<T extends HTMLElement = HTMLDivElement>(
elements, elements,
{ {
opacity: 0, opacity: 0,
y: options?.y ?? 12, y: options?.y ?? 8,
scale: 0.98,
}, },
{ {
opacity: 1, opacity: 1,
y: 0, y: 0,
scale: 1, duration: options?.duration ?? 0.32,
duration: options?.duration ?? 0.35, delay: options?.delay ?? 0.02,
delay: options?.delay ?? 0.05, stagger: options?.stagger ?? 0.03,
stagger: options?.stagger ?? 0.04,
ease: "power2.out", ease: "power2.out",
clearProps: "transform", clearProps: "transform",
}, },
@@ -80,7 +84,7 @@ export function useCounter(
const obj = { val: 0 }; const obj = { val: 0 };
gsap.to(obj, { gsap.to(obj, {
val: targetValue, val: targetValue,
duration: 0.8, duration: 0.75,
ease: "power2.out", ease: "power2.out",
onUpdate: () => { onUpdate: () => {
if (ref.current) { if (ref.current) {
@@ -94,3 +98,35 @@ export function useCounter(
{ dependencies: [targetValue] }, { dependencies: [targetValue] },
); );
} }
/**
* Micro-interaction hook for interactive elements (hover card tilt/glow, pulse)
*/
export function useLinearHover<T extends HTMLElement = HTMLDivElement>() {
const elementRef = useRef<T>(null);
useGSAP(
(_, contextSafe) => {
if (!elementRef.current || !contextSafe) return;
const el = elementRef.current;
const onEnter = contextSafe(() => {
gsap.to(el, { y: -2, duration: 0.18, ease: "power2.out" });
});
const onLeave = contextSafe(() => {
gsap.to(el, { y: 0, duration: 0.22, ease: "power2.out" });
});
el.addEventListener("mouseenter", onEnter);
el.addEventListener("mouseleave", onLeave);
return () => {
el.removeEventListener("mouseenter", onEnter);
el.removeEventListener("mouseleave", onLeave);
};
},
{ scope: elementRef },
);
return elementRef;
}