Skip to content

The only tool you need to know what is happening and how to fix it.

chart progress

ddux5e502a4775be
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index c93281f9..6586d4eb 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -20,13 +20,20 @@
"@sveltejs/kit": "^2.49.1",
"@sveltejs/vite-plugin-svelte": "^6.2.1",
"@tailwindcss/vite": "^4.1.17",
+ "@types/d3-scale": "^4.0.9",
+ "@types/d3-shape": "^3.1.7",
"@types/node": "^22",
"bits-ui": "^2.14.4",
"clsx": "^2.1.1",
+ "clsx-tailwind-merge": "^1.0.4",
+ "d3-array": "^3.2.4",
+ "d3-scale": "^4.0.2",
+ "d3-shape": "^3.2.0",
"eslint": "^9.39.1",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-svelte": "^3.13.1",
"globals": "^16.5.0",
+ "layerchart": "^2.0.0-next.43",
"prettier": "^3.7.4",
"prettier-plugin-svelte": "^3.4.0",
"prettier-plugin-tailwindcss": "^0.7.2",
@@ -41,6 +48,26 @@
"vite": "^7.2.6"
}
},
+ "node_modules/@dagrejs/dagre": {
+ "version": "1.1.8",
+ "resolved": "https://registry.npmjs.org/@dagrejs/dagre/-/dagre-1.1.8.tgz",
+ "integrity": "sha512-5SEDlndt4W/LaVzPYJW+bSmSEZc9EzTf8rJ20WCKvjS5EAZAN0b+x0Yww7VMT4R3Wootkg+X9bUfUxazYw6Blw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@dagrejs/graphlib": "2.2.4"
+ }
+ },
+ "node_modules/@dagrejs/graphlib": {
+ "version": "2.2.4",
+ "resolved": "https://registry.npmjs.org/@dagrejs/graphlib/-/graphlib-2.2.4.tgz",
+ "integrity": "sha512-mepCf/e9+SKYy1d02/UkvSy6+6MoyXhVxP8lLDfA7BPE1X1d4dR0sZznmbM8/XVJ1GPM+Svnx7Xj6ZweByWUkw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">17.0.0"
+ }
+ },
"node_modules/@esbuild/aix-ppc64": {
"version": "0.27.2",
"resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.2.tgz",
@@ -796,6 +823,55 @@
"@jridgewell/sourcemap-codec": "^1.4.14"
}
},
+ "node_modules/@layerstack/svelte-actions": {
+ "version": "1.0.1-next.14",
+ "resolved": "https://registry.npmjs.org/@layerstack/svelte-actions/-/svelte-actions-1.0.1-next.14.tgz",
+ "integrity": "sha512-MPBmVaB+GfNHvBkg5nJkPG18smoXKvsvJRpsdWnrUBfca+TieZLoaEzNxDH+9LG11dIXP9gghsXt1mUqbbyAsA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@floating-ui/dom": "^1.7.0",
+ "@layerstack/utils": "2.0.0-next.14",
+ "d3-scale": "^4.0.2"
+ }
+ },
+ "node_modules/@layerstack/svelte-state": {
+ "version": "0.1.0-next.19",
+ "resolved": "https://registry.npmjs.org/@layerstack/svelte-state/-/svelte-state-0.1.0-next.19.tgz",
+ "integrity": "sha512-yCYoQAIbeP8y1xmOB/r0+UundgP4JFnpNURgMki+26TotzoqrZ5oLpHvhPSVm60ks+buR3ebDBTeUFdHzxwzQQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@layerstack/utils": "2.0.0-next.14"
+ }
+ },
+ "node_modules/@layerstack/tailwind": {
+ "version": "2.0.0-next.17",
+ "resolved": "https://registry.npmjs.org/@layerstack/tailwind/-/tailwind-2.0.0-next.17.tgz",
+ "integrity": "sha512-ZSn6ouqpnzB6DKzSKLVwrUBOQsrzpDA/By2/ba9ApxgTGnaD1nyqNwrvmZ+kswdAwB4YnrGEAE4VZkKrB2+DaQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@layerstack/utils": "^2.0.0-next.14",
+ "clsx": "^2.1.1",
+ "d3-array": "^3.2.4",
+ "lodash-es": "^4.17.21",
+ "tailwind-merge": "^3.2.0"
+ }
+ },
+ "node_modules/@layerstack/utils": {
+ "version": "2.0.0-next.14",
+ "resolved": "https://registry.npmjs.org/@layerstack/utils/-/utils-2.0.0-next.14.tgz",
+ "integrity": "sha512-1I2CS0Cwgs53W35qVg1eBdYhB/CiPvL3s0XE61b8jWkTHxgjBF65yYNgXjW74kv7WI7GsJcWMNBufPd0rnu9kA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "d3-array": "^3.2.4",
+ "d3-time": "^3.1.0",
+ "d3-time-format": "^4.1.0",
+ "lodash-es": "^4.17.21"
+ }
+ },
"node_modules/@lucide/svelte": {
"version": "0.561.0",
"resolved": "https://registry.npmjs.org/@lucide/svelte/-/svelte-0.561.0.tgz",
@@ -1584,6 +1660,40 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/@types/d3-path": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/@types/d3-path/-/d3-path-3.1.1.tgz",
+ "integrity": "sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-scale": {
+ "version": "4.0.9",
+ "resolved": "https://registry.npmjs.org/@types/d3-scale/-/d3-scale-4.0.9.tgz",
+ "integrity": "sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3-time": "*"
+ }
+ },
+ "node_modules/@types/d3-shape": {
+ "version": "3.1.7",
+ "resolved": "https://registry.npmjs.org/@types/d3-shape/-/d3-shape-3.1.7.tgz",
+ "integrity": "sha512-VLvUQ33C+3J+8p+Daf+nYSOsjB4GXp19/S/aGo60m9h1v6XaxjiT82lKVWJCfzhtuZ3yD7i/TPeC/fuKLLOSmg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3-path": "*"
+ }
+ },
+ "node_modules/@types/d3-time": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/@types/d3-time/-/d3-time-3.0.4.tgz",
+ "integrity": "sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/@types/estree": {
"version": "1.0.8",
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",
@@ -2038,6 +2148,29 @@
"node": ">=6"
}
},
+ "node_modules/clsx-tailwind-merge": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/clsx-tailwind-merge/-/clsx-tailwind-merge-1.0.4.tgz",
+ "integrity": "sha512-f4c5VfZXlr/kMQKcO0WOkObk1BF+F7KGBuWSFa2R9XvUtiPmsKc7Gqjw4w6Uf8GkT1atAEGzo0xmOFmicnNF5g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "clsx": "^2.0.0",
+ "tailwind-merge": "^1.14.0",
+ "typescript": "^5.1.6"
+ }
+ },
+ "node_modules/clsx-tailwind-merge/node_modules/tailwind-merge": {
+ "version": "1.14.0",
+ "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-1.14.0.tgz",
+ "integrity": "sha512-3mFKyCo/MBcgyOTlrY8T7odzZFx+w+qKSMAmdFzRvqBfLlSigU6TZnlFHK0lkMwj9Bj8OYU+9yW9lmGuS0QEnQ==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/dcastil"
+ }
+ },
"node_modules/color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
@@ -2058,6 +2191,16 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/commander": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz",
+ "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 10"
+ }
+ },
"node_modules/concat-map": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
@@ -2103,6 +2246,338 @@
"node": ">=4"
}
},
+ "node_modules/d3-array": {
+ "version": "3.2.4",
+ "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.4.tgz",
+ "integrity": "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "internmap": "1 - 2"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-color": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-3.1.0.tgz",
+ "integrity": "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-delaunay": {
+ "version": "6.0.4",
+ "resolved": "https://registry.npmjs.org/d3-delaunay/-/d3-delaunay-6.0.4.tgz",
+ "integrity": "sha512-mdjtIZ1XLAM8bm/hx3WwjfHt6Sggek7qH043O8KEjDXN40xi3vx/6pYSVTwLjEgiXQTbvaouWKynLBiUZ6SK6A==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "delaunator": "5"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-dispatch": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/d3-dispatch/-/d3-dispatch-3.0.1.tgz",
+ "integrity": "sha512-rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-dsv": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/d3-dsv/-/d3-dsv-3.0.1.tgz",
+ "integrity": "sha512-UG6OvdI5afDIFP9w4G0mNq50dSOsXHJaRE8arAS5o9ApWnIElp8GZw1Dun8vP8OyHOZ/QJUKUJwxiiCCnUwm+Q==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "commander": "7",
+ "iconv-lite": "0.6",
+ "rw": "1"
+ },
+ "bin": {
+ "csv2json": "bin/dsv2json.js",
+ "csv2tsv": "bin/dsv2dsv.js",
+ "dsv2dsv": "bin/dsv2dsv.js",
+ "dsv2json": "bin/dsv2json.js",
+ "json2csv": "bin/json2dsv.js",
+ "json2dsv": "bin/json2dsv.js",
+ "json2tsv": "bin/json2dsv.js",
+ "tsv2csv": "bin/dsv2dsv.js",
+ "tsv2json": "bin/dsv2json.js"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-force": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/d3-force/-/d3-force-3.0.0.tgz",
+ "integrity": "sha512-zxV/SsA+U4yte8051P4ECydjD/S+qeYtnaIyAs9tgHCqfguma/aAQDjo85A9Z6EKhBirHRJHXIgJUlffT4wdLg==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "d3-dispatch": "1 - 3",
+ "d3-quadtree": "1 - 3",
+ "d3-timer": "1 - 3"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-format": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-3.1.0.tgz",
+ "integrity": "sha512-YyUI6AEuY/Wpt8KWLgZHsIU86atmikuoOmCfommt0LYHiQSPjvX2AcFc38PX0CBpr2RCyZhjex+NS/LPOv6YqA==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-geo": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/d3-geo/-/d3-geo-3.1.1.tgz",
+ "integrity": "sha512-637ln3gXKXOwhalDzinUgY83KzNWZRKbYubaG+fGVuc/dxO64RRljtCTnf5ecMyE1RIdtqpkVcq0IbtU2S8j2Q==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "d3-array": "2.5.0 - 3"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-geo-voronoi": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/d3-geo-voronoi/-/d3-geo-voronoi-2.1.0.tgz",
+ "integrity": "sha512-kqE4yYuOjPbKdBXG0xztCacPwkVSK2REF1opSNrnqqtXJmNcM++UbwQ8SxvwP6IQTj9RvIjjK4qeiVsEfj0Z2Q==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "d3-array": "3",
+ "d3-delaunay": "6",
+ "d3-geo": "3",
+ "d3-tricontour": "1"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-hierarchy": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/d3-hierarchy/-/d3-hierarchy-3.1.2.tgz",
+ "integrity": "sha512-FX/9frcub54beBdugHjDCdikxThEqjnR93Qt7PvQTOHxyiNCAlvMrHhclk3cD5VeAaq9fxmfRp+CnWw9rEMBuA==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-interpolate": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-3.0.1.tgz",
+ "integrity": "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "d3-color": "1 - 3"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-interpolate-path": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/d3-interpolate-path/-/d3-interpolate-path-2.3.0.tgz",
+ "integrity": "sha512-tZYtGXxBmbgHsIc9Wms6LS5u4w6KbP8C09a4/ZYc4KLMYYqub57rRBUgpUr2CIarIrJEpdAWWxWQvofgaMpbKQ==",
+ "dev": true,
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/d3-path": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-3.1.0.tgz",
+ "integrity": "sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-quadtree": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/d3-quadtree/-/d3-quadtree-3.0.1.tgz",
+ "integrity": "sha512-04xDrxQTDTCFwP5H6hRhsRcb9xxv2RzkcsygFzmkSIOJy3PeRJP7sNk3VRIbKXcog561P9oU0/rVH6vDROAgUw==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-random": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/d3-random/-/d3-random-3.0.1.tgz",
+ "integrity": "sha512-FXMe9GfxTxqd5D6jFsQ+DJ8BJS4E/fT5mqqdjovykEB2oFbTMDVdg1MGFxfQW+FBOGoB++k8swBrgwSHT1cUXQ==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-sankey": {
+ "version": "0.12.3",
+ "resolved": "https://registry.npmjs.org/d3-sankey/-/d3-sankey-0.12.3.tgz",
+ "integrity": "sha512-nQhsBRmM19Ax5xEIPLMY9ZmJ/cDvd1BG3UVvt5h3WRxKg5zGRbvnteTyWAbzeSvlh3tW7ZEmq4VwR5mB3tutmQ==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "d3-array": "1 - 2",
+ "d3-shape": "^1.2.0"
+ }
+ },
+ "node_modules/d3-sankey/node_modules/d3-array": {
+ "version": "2.12.1",
+ "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-2.12.1.tgz",
+ "integrity": "sha512-B0ErZK/66mHtEsR1TkPEEkwdy+WDesimkM5gpZr5Dsg54BiTA5RXtYW5qTLIAcekaS9xfZrzBLF/OAkB3Qn1YQ==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "internmap": "^1.0.0"
+ }
+ },
+ "node_modules/d3-sankey/node_modules/d3-path": {
+ "version": "1.0.9",
+ "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-1.0.9.tgz",
+ "integrity": "sha512-VLaYcn81dtHVTjEHd8B+pbe9yHWpXKZUC87PzoFmsFrJqgFwDe/qxfp5MlfsfM1V5E/iVt0MmEbWQ7FVIXh/bg==",
+ "dev": true,
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/d3-sankey/node_modules/d3-shape": {
+ "version": "1.3.7",
+ "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-1.3.7.tgz",
+ "integrity": "sha512-EUkvKjqPFUAZyOlhY5gzCxCeI0Aep04LwIRpsZ/mLFelJiUfnK56jo5JMDSE7yyP2kLSb6LtF+S5chMk7uqPqw==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "d3-path": "1"
+ }
+ },
+ "node_modules/d3-sankey/node_modules/internmap": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/internmap/-/internmap-1.0.1.tgz",
+ "integrity": "sha512-lDB5YccMydFBtasVtxnZ3MRBHuaoE8GKsppq+EchKL2U4nK/DmEpPHNH8MZe5HkMtpSiTSOZwfN0tzYjO/lJEw==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/d3-scale": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-4.0.2.tgz",
+ "integrity": "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "d3-array": "2.10.0 - 3",
+ "d3-format": "1 - 3",
+ "d3-interpolate": "1.2.0 - 3",
+ "d3-time": "2.1.1 - 3",
+ "d3-time-format": "2 - 4"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-scale-chromatic": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/d3-scale-chromatic/-/d3-scale-chromatic-3.1.0.tgz",
+ "integrity": "sha512-A3s5PWiZ9YCXFye1o246KoscMWqf8BsD9eRiJ3He7C9OBaxKhAd5TFCdEx/7VbKtxxTsu//1mMJFrEt572cEyQ==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "d3-color": "1 - 3",
+ "d3-interpolate": "1 - 3"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-shape": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-3.2.0.tgz",
+ "integrity": "sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "d3-path": "^3.1.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-tile": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/d3-tile/-/d3-tile-1.0.0.tgz",
+ "integrity": "sha512-79fnTKpPMPDS5xQ0xuS9ir0165NEwwkFpe/DSOmc2Gl9ldYzKKRDWogmTTE8wAJ8NA7PMapNfEcyKhI9Lxdu5Q==",
+ "dev": true,
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/d3-time": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-3.1.0.tgz",
+ "integrity": "sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "d3-array": "2 - 3"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-time-format": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-4.1.0.tgz",
+ "integrity": "sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "d3-time": "1 - 3"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-timer": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-3.0.1.tgz",
+ "integrity": "sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-tricontour": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/d3-tricontour/-/d3-tricontour-1.1.0.tgz",
+ "integrity": "sha512-G7gHKj89n2owmkGb6WX6ixcnQ0Kf/0wpa9VIh9DGdbHu8wdrlaHU4ir3/bFNERl8N8nn4G7e7qbtBG8N9caihQ==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "d3-delaunay": "6",
+ "d3-scale": "4"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
"node_modules/debug": {
"version": "4.4.3",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
@@ -2138,6 +2613,16 @@
"node": ">=0.10.0"
}
},
+ "node_modules/delaunator": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/delaunator/-/delaunator-5.0.1.tgz",
+ "integrity": "sha512-8nvh+XBe96aCESrGOqMp/84b13H9cdKbG5P2ejQCh4d4sK9RL4371qou9drQjMhvnPmhWl5hnmqbEE0fXr9Xnw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "robust-predicates": "^3.0.2"
+ }
+ },
"node_modules/dequal": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",
@@ -2600,6 +3085,19 @@
"node": ">=8"
}
},
+ "node_modules/iconv-lite": {
+ "version": "0.6.3",
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
+ "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safer-buffer": ">= 2.1.2 < 3.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
"node_modules/ignore": {
"version": "5.3.2",
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
@@ -2644,6 +3142,16 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/internmap": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/internmap/-/internmap-2.0.3.tgz",
+ "integrity": "sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
"node_modules/is-extglob": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
@@ -2754,6 +3262,62 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/layerchart": {
+ "version": "2.0.0-next.43",
+ "resolved": "https://registry.npmjs.org/layerchart/-/layerchart-2.0.0-next.43.tgz",
+ "integrity": "sha512-1Ywm38NdzHWKwgaAHq3EcqshIgsq+pylntSnVWAVazXUk/NsxPcxdpR3tMt3ySjWV0ZPBBgLs78sdVf7FTgd+g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@dagrejs/dagre": "^1.1.5",
+ "@layerstack/svelte-actions": "1.0.1-next.14",
+ "@layerstack/svelte-state": "0.1.0-next.19",
+ "@layerstack/tailwind": "2.0.0-next.17",
+ "@layerstack/utils": "2.0.0-next.14",
+ "d3-array": "^3.2.4",
+ "d3-color": "^3.1.0",
+ "d3-delaunay": "^6.0.4",
+ "d3-dsv": "^3.0.1",
+ "d3-force": "^3.0.0",
+ "d3-geo": "^3.1.1",
+ "d3-geo-voronoi": "^2.1.0",
+ "d3-hierarchy": "^3.1.2",
+ "d3-interpolate": "^3.0.1",
+ "d3-interpolate-path": "^2.3.0",
+ "d3-path": "^3.1.0",
+ "d3-quadtree": "^3.0.1",
+ "d3-random": "^3.0.1",
+ "d3-sankey": "^0.12.3",
+ "d3-scale": "^4.0.2",
+ "d3-scale-chromatic": "^3.1.0",
+ "d3-shape": "^3.2.0",
+ "d3-tile": "^1.0.0",
+ "d3-time": "^3.1.0",
+ "lodash-es": "^4.17.21",
+ "memoize": "^10.1.0",
+ "runed": "^0.31.1"
+ },
+ "peerDependencies": {
+ "svelte": "^5.0.0"
+ }
+ },
+ "node_modules/layerchart/node_modules/runed": {
+ "version": "0.31.1",
+ "resolved": "https://registry.npmjs.org/runed/-/runed-0.31.1.tgz",
+ "integrity": "sha512-v3czcTnO+EJjiPvD4dwIqfTdHLZ8oH0zJheKqAHh9QMViY7Qb29UlAMRpX7ZtHh7AFqV60KmfxaJ9QMy+L1igQ==",
+ "dev": true,
+ "funding": [
+ "https://github.com/sponsors/huntabyte",
+ "https://github.com/sponsors/tglide"
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "esm-env": "^1.0.0"
+ },
+ "peerDependencies": {
+ "svelte": "^5.7.0"
+ }
+ },
"node_modules/levn": {
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
@@ -3061,6 +3625,13 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "node_modules/lodash-es": {
+ "version": "4.17.22",
+ "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.22.tgz",
+ "integrity": "sha512-XEawp1t0gxSi9x01glktRZ5HDy0HXqrM0x5pXQM98EaI0NxO6jVM7omDOxsuEo5UIASAnm2bRp1Jt/e0a2XU8Q==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/lodash.merge": {
"version": "4.6.2",
"resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",
@@ -3096,6 +3667,35 @@
"@jridgewell/sourcemap-codec": "^1.5.5"
}
},
+ "node_modules/memoize": {
+ "version": "10.2.0",
+ "resolved": "https://registry.npmjs.org/memoize/-/memoize-10.2.0.tgz",
+ "integrity": "sha512-DeC6b7QBrZsRs3Y02A6A7lQyzFbsQbqgjI6UW0GigGWV+u1s25TycMr0XHZE4cJce7rY/vyw2ctMQqfDkIhUEA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "mimic-function": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sindresorhus/memoize?sponsor=1"
+ }
+ },
+ "node_modules/mimic-function": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/mimic-function/-/mimic-function-5.0.1.tgz",
+ "integrity": "sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/minimatch": {
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
@@ -3552,6 +4152,13 @@
"node": ">=4"
}
},
+ "node_modules/robust-predicates": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.2.tgz",
+ "integrity": "sha512-IXgzBWvWQwE6PrDI05OvmXUIruQTcoMDzRsOd5CDvHCVLcLHMTSYvOK5Cm46kWqlV3yAbuSpBZdJ5oP5OUoStg==",
+ "dev": true,
+ "license": "Unlicense"
+ },
"node_modules/rollup": {
"version": "4.54.0",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-4.54.0.tgz",
@@ -3619,6 +4226,13 @@
}
}
},
+ "node_modules/rw": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/rw/-/rw-1.3.3.tgz",
+ "integrity": "sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ==",
+ "dev": true,
+ "license": "BSD-3-Clause"
+ },
"node_modules/sade": {
"version": "1.8.1",
"resolved": "https://registry.npmjs.org/sade/-/sade-1.8.1.tgz",
@@ -3632,6 +4246,13 @@
"node": ">=6"
}
},
+ "node_modules/safer-buffer": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/semver": {
"version": "7.7.3",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz",
diff --git a/frontend/package.json b/frontend/package.json
index 0f2049c5..2ecb0010 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -23,13 +23,20 @@
"@sveltejs/kit": "^2.49.1",
"@sveltejs/vite-plugin-svelte": "^6.2.1",
"@tailwindcss/vite": "^4.1.17",
+ "@types/d3-scale": "^4.0.9",
+ "@types/d3-shape": "^3.1.7",
"@types/node": "^22",
"bits-ui": "^2.14.4",
"clsx": "^2.1.1",
+ "clsx-tailwind-merge": "^1.0.4",
+ "d3-array": "^3.2.4",
+ "d3-scale": "^4.0.2",
+ "d3-shape": "^3.2.0",
"eslint": "^9.39.1",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-svelte": "^3.13.1",
"globals": "^16.5.0",
+ "layerchart": "^2.0.0-next.43",
"prettier": "^3.7.4",
"prettier-plugin-svelte": "^3.4.0",
"prettier-plugin-tailwindcss": "^0.7.2",
diff --git a/frontend/src/lib/components/app-sidebar.svelte b/frontend/src/lib/components/app-sidebar.svelte
index ca22cca2..12d70b24 100644
--- a/frontend/src/lib/components/app-sidebar.svelte
+++ b/frontend/src/lib/components/app-sidebar.svelte
@@ -3,9 +3,11 @@
import { List, Bug, Gauge } from "@lucide/svelte";
import { themeState } from '$lib/state/theme.svelte';
import { LayoutDashboard } from "@lucide/svelte";
+ import { page } from '$app/state';
+
const sidebarItems = [
- {Icon: LayoutDashboard, href: "/issues", title: "Dashboard"},
+ {Icon: LayoutDashboard, href: "/", title: "Dashboard"},
{Icon: Bug, href: "/issues", title: "Issues"},
{Icon: List, href: "/issues", title: "Transactions"},
{Icon: Gauge, href: "/issues", title: "Issues"},
@@ -29,7 +31,7 @@
{#each sidebarItems as sidebarItem}
<Sidebar.SidebarMenuItem>
<a href={sidebarItem.href}>
- <Sidebar.SidebarMenuButton >
+ <Sidebar.SidebarMenuButton isActive={page.url.pathname === sidebarItem.href}>
<sidebarItem.Icon />
<span>{sidebarItem.title}</span>
</Sidebar.SidebarMenuButton>
diff --git a/frontend/src/lib/components/dashboard/metric-card.svelte b/frontend/src/lib/components/dashboard/metric-card.svelte
new file mode 100644
index 00000000..68d3aff8
--- /dev/null
+++ b/frontend/src/lib/components/dashboard/metric-card.svelte
@@ -0,0 +1,115 @@
+<script lang="ts">
+ import * as Card from '$lib/components/ui/card';
+ import * as Chart from "$lib/components/ui/chart/index.js";
+ import { TrendingUp, TrendingDown, Minus } from 'lucide-svelte';
+ import { AreaChart, LineChart, Svg, Area } from 'layerchart';
+ import { scaleUtc, scaleLinear } from 'd3-scale';
+ import { curveLinear } from "d3-shape";
+ import type { DashboardMetric, MetricTrendPoint } from '$lib/types/dashboard';
+ import { min, max } from 'd3-array';
+
+ let { metric } = $props<{ metric: DashboardMetric }>();
+
+ const statusColors: Record<string, string> = {
+ healthy: 'bg-green-500',
+ warning: 'bg-yellow-500',
+ critical: 'bg-red-500'
+ };
+
+ const formattedValue = $derived(
+ metric.formatValue ? metric.formatValue(metric.value) : metric.value.toString()
+ );
+
+ const TrendChangeIcon = $derived(
+ metric.change24h > 0 ? TrendingUp : metric.change24h < 0 ? TrendingDown : Minus
+ );
+
+ const trendChangeColor = $derived(
+ metric.change24h > 0
+ ? 'text-green-600 dark:text-green-400'
+ : metric.change24h < 0
+ ? 'text-red-600 dark:text-red-400'
+ : 'text-muted-foreground'
+ );
+
+
+ const chartConfig = {
+ value: { label: "Value", color: "var(--chart-1)" },
+ } satisfies Chart.ChartConfig;
+
+ const yMin = $derived(min(metric.trend, (d: MetricTrendPoint) => d.value));
+ const yMax = $derived(max(metric.trend, (d: MetricTrendPoint) => d.value));
+ const padding = $derived((yMax - yMin) * 0.1);
+</script>
+
+<Card.Root class="gap-3">
+ <Card.Header class="flex flex-row items-center justify-between space-y-0 pb-0">
+ <Card.Title class="text-sm font-medium">
+ {metric.name}
+ </Card.Title>
+ <div class="text-2xl font-bold">
+ {formattedValue}{#if metric.unit}<span class="ml-1 text-lg text-muted-foreground"
+ >{metric.unit}</span
+ >{/if}
+ </div>
+ <!-- <div class={`h-2 w-2 rounded-full ${statusColors[metric.status]}`} title={metric.status}></div> -->
+ </Card.Header>
+ <Card.Content class="pt-0">
+
+ <!-- Large Value Display -->
+
+ <!-- Sparkline Chart -->
+
+ <!-- <Chart
+ data={metric.trend}
+ x={(d: MetricTrendPoint) => d.timestamp}
+ xScale={scaleUtc()}
+ y={(d: MetricTrendPoint) => d.value}
+ yScale={scaleLinear()}
+ padding={{ top: 4, bottom: 4, left: 0, right: 0 }}
+ >
+ <Svg>
+ <Area
+ line={{ stroke: 'hsl(var(--chart-1))', 'stroke-width': 2 }}
+ area={{ fill: 'none' }}
+ />
+ </Svg>
+ </Chart> -->
+
+ <Chart.Container config={chartConfig}>
+ <LineChart
+ data={metric.trend}
+ x="timestamp"
+ xScale={scaleUtc()}
+ series={[
+ {
+ key: "value",
+ label: "Value",
+ color: chartConfig.value.color,
+ },
+ ]}
+ yDomain={[yMin - padding, yMax + padding]}
+ seriesLayout="stack"
+ props={{
+ xAxis: {
+ format: () => ""
+ },
+ yAxis: {
+ format: (a: number) => a > 999 ? (a/1000).toFixed(0) + "k" : `${a}`,
+ },
+ }}
+ >
+ {#snippet tooltip()}
+ <Chart.Tooltip hideLabel />
+ {/snippet}
+ </LineChart>
+ </Chart.Container>
+
+ <!-- 24h Change -->
+ <div class="flex items-center text-xs {trendChangeColor}">
+ <TrendChangeIcon class="mr-1 h-3 w-3" />
+ <span class="font-medium">{Math.abs(metric.change24h).toFixed(1)}%</span>
+ <span class="ml-1 text-muted-foreground">vs 24h ago</span>
+ </div>
+ </Card.Content>
+</Card.Root>
diff --git a/frontend/src/lib/components/ui/card/card.svelte b/frontend/src/lib/components/ui/card/card.svelte
index 99448cc9..1bd2d654 100644
--- a/frontend/src/lib/components/ui/card/card.svelte
+++ b/frontend/src/lib/components/ui/card/card.svelte
@@ -14,7 +14,7 @@
bind:this={ref}
data-slot="card"
class={cn(
- "bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",
+ "bg-card text-card-foreground flex flex-col gap-6 rounded-lg border py-4",
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/chart/chart-container.svelte b/frontend/src/lib/components/ui/chart/chart-container.svelte
new file mode 100644
index 00000000..36c00004
--- /dev/null
+++ b/frontend/src/lib/components/ui/chart/chart-container.svelte
@@ -0,0 +1,80 @@
+<script lang="ts">
+ import { cn, type WithElementRef } from "$lib/utils.js";
+ import type { HTMLAttributes } from "svelte/elements";
+ import ChartStyle from "./chart-style.svelte";
+ import { setChartContext, type ChartConfig } from "./chart-utils.js";
+
+ const uid = $props.id();
+
+ let {
+ ref = $bindable(null),
+ id = uid,
+ class: className,
+ children,
+ config,
+ ...restProps
+ }: WithElementRef<HTMLAttributes<HTMLElement>> & {
+ config: ChartConfig;
+ } = $props();
+
+ const chartId = `chart-${id || uid.replace(/:/g, "")}`;
+
+ setChartContext({
+ get config() {
+ return config;
+ },
+ });
+</script>
+
+<div
+ bind:this={ref}
+ data-chart={chartId}
+ data-slot="chart"
+ class={cn(
+ "flex aspect-video justify-center overflow-visible text-xs",
+ // Overrides
+ //
+ // Stroke around dots/marks when hovering
+ "[&_.lc-highlight-point]:stroke-transparent",
+ // override the default stroke color of lines
+ "[&_.lc-line]:stroke-border/50",
+
+ // by default, layerchart shows a line intersecting the point when hovering, this hides that
+ "[&_.lc-highlight-line]:stroke-0",
+
+ // by default, when you hover a point on a stacked series chart, it will drop the opacity
+ // of the other series, this overrides that
+ "[&_.lc-area-path]:opacity-100 [&_.lc-highlight-line]:opacity-100 [&_.lc-highlight-point]:opacity-100 [&_.lc-spline-path]:opacity-100 [&_.lc-text]:text-xs [&_.lc-text-svg]:overflow-visible",
+
+ // We don't want the little tick lines between the axis labels and the chart, so we remove
+ // the stroke. The alternative is to manually disable `tickMarks` on the x/y axis of every
+ // chart.
+ "[&_.lc-axis-tick]:stroke-0",
+
+ // We don't want to display the rule on the x/y axis, as there is already going to be
+ // a grid line there and rule ends up overlapping the marks because it is rendered after
+ // the marks
+ "[&_.lc-rule-x-line:not(.lc-grid-x-rule)]:stroke-0 [&_.lc-rule-y-line:not(.lc-grid-y-rule)]:stroke-0",
+ "[&_.lc-grid-x-radial-line]:stroke-border [&_.lc-grid-x-radial-circle]:stroke-border",
+ "[&_.lc-grid-y-radial-line]:stroke-border [&_.lc-grid-y-radial-circle]:stroke-border",
+
+ // Legend adjustments
+ "[&_.lc-legend-swatch-button]:items-center [&_.lc-legend-swatch-button]:gap-1.5",
+ "[&_.lc-legend-swatch-group]:items-center [&_.lc-legend-swatch-group]:gap-4",
+ "[&_.lc-legend-swatch]:size-2.5 [&_.lc-legend-swatch]:rounded-[2px]",
+
+ // Labels
+ "[&_.lc-labels-text:not([fill])]:fill-foreground [&_text]:stroke-transparent",
+
+ // Tick labels on th x/y axes
+ "[&_.lc-axis-tick-label]:fill-muted-foreground [&_.lc-axis-tick-label]:font-normal",
+ "[&_.lc-tooltip-rects-g]:fill-transparent",
+ "[&_.lc-layout-svg-g]:fill-transparent",
+ "[&_.lc-root-container]:w-full",
+ className
+ )}
+ {...restProps}
+>
+ <ChartStyle id={chartId} {config} />
+ {@render children?.()}
+</div>
diff --git a/frontend/src/lib/components/ui/chart/chart-style.svelte b/frontend/src/lib/components/ui/chart/chart-style.svelte
new file mode 100644
index 00000000..864ecc31
--- /dev/null
+++ b/frontend/src/lib/components/ui/chart/chart-style.svelte
@@ -0,0 +1,37 @@
+<script lang="ts">
+ import { THEMES, type ChartConfig } from "./chart-utils.js";
+
+ let { id, config }: { id: string; config: ChartConfig } = $props();
+
+ const colorConfig = $derived(
+ config ? Object.entries(config).filter(([, config]) => config.theme || config.color) : null
+ );
+
+ const themeContents = $derived.by(() => {
+ if (!colorConfig || !colorConfig.length) return;
+
+ const themeContents = [];
+ for (let [_theme, prefix] of Object.entries(THEMES)) {
+ let content = `${prefix} [data-chart=${id}] {\n`;
+ const color = colorConfig.map(([key, itemConfig]) => {
+ const theme = _theme as keyof typeof itemConfig.theme;
+ const color = itemConfig.theme?.[theme] || itemConfig.color;
+ return color ? `\t--color-${key}: ${color};` : null;
+ });
+
+ content += color.join("\n") + "\n}";
+
+ themeContents.push(content);
+ }
+
+ return themeContents.join("\n");
+ });
+</script>
+
+{#if themeContents}
+ {#key id}
+ <svelte:element this={"style"}>
+ {themeContents}
+ </svelte:element>
+ {/key}
+{/if}
diff --git a/frontend/src/lib/components/ui/chart/chart-tooltip.svelte b/frontend/src/lib/components/ui/chart/chart-tooltip.svelte
new file mode 100644
index 00000000..6eb66ff1
--- /dev/null
+++ b/frontend/src/lib/components/ui/chart/chart-tooltip.svelte
@@ -0,0 +1,159 @@
+<script lang="ts">
+ import { cn, type WithElementRef, type WithoutChildren } from "$lib/utils.js";
+ import type { HTMLAttributes } from "svelte/elements";
+ import { getPayloadConfigFromPayload, useChart, type TooltipPayload } from "./chart-utils.js";
+ import { getTooltipContext, Tooltip as TooltipPrimitive } from "layerchart";
+ import type { Snippet } from "svelte";
+
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ function defaultFormatter(value: any, _payload: TooltipPayload[]) {
+ return `${value}`;
+ }
+
+ let {
+ ref = $bindable(null),
+ class: className,
+ hideLabel = false,
+ indicator = "dot",
+ hideIndicator = false,
+ labelKey,
+ label,
+ labelFormatter = defaultFormatter,
+ labelClassName,
+ formatter,
+ nameKey,
+ color,
+ ...restProps
+ }: WithoutChildren<WithElementRef<HTMLAttributes<HTMLDivElement>>> & {
+ hideLabel?: boolean;
+ label?: string;
+ indicator?: "line" | "dot" | "dashed";
+ nameKey?: string;
+ labelKey?: string;
+ hideIndicator?: boolean;
+ labelClassName?: string;
+ labelFormatter?: // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ ((value: any, payload: TooltipPayload[]) => string | number | Snippet) | null;
+ formatter?: Snippet<
+ [
+ {
+ value: unknown;
+ name: string;
+ item: TooltipPayload;
+ index: number;
+ payload: TooltipPayload[];
+ },
+ ]
+ >;
+ } = $props();
+
+ const chart = useChart();
+ const tooltipCtx = getTooltipContext();
+
+ const formattedLabel = $derived.by(() => {
+ if (hideLabel || !tooltipCtx.payload?.length) return null;
+
+ const [item] = tooltipCtx.payload;
+ const key = labelKey ?? item?.label ?? item?.name ?? "value";
+
+ const itemConfig = getPayloadConfigFromPayload(chart.config, item, key);
+
+ const value =
+ !labelKey && typeof label === "string"
+ ? (chart.config[label as keyof typeof chart.config]?.label ?? label)
+ : (itemConfig?.label ?? item.label);
+
+ if (value === undefined) return null;
+ if (!labelFormatter) return value;
+ return labelFormatter(value, tooltipCtx.payload);
+ });
+
+ const nestLabel = $derived(tooltipCtx.payload.length === 1 && indicator !== "dot");
+</script>
+
+{#snippet TooltipLabel()}
+ {#if formattedLabel}
+ <div class={cn("font-medium", labelClassName)}>
+ {#if typeof formattedLabel === "function"}
+ {@render formattedLabel()}
+ {:else}
+ {formattedLabel}
+ {/if}
+ </div>
+ {/if}
+{/snippet}
+
+<TooltipPrimitive.Root variant="none">
+ <div
+ class={cn(
+ "border-border/50 bg-background grid min-w-[9rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",
+ className
+ )}
+ {...restProps}
+ >
+ {#if !nestLabel}
+ {@render TooltipLabel()}
+ {/if}
+ <div class="grid gap-1.5">
+ {#each tooltipCtx.payload as item, i (item.key + i)}
+ {@const key = `${nameKey || item.key || item.name || "value"}`}
+ {@const itemConfig = getPayloadConfigFromPayload(chart.config, item, key)}
+ {@const indicatorColor = color || item.payload?.color || item.color}
+ <div
+ class={cn(
+ "[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:size-2.5",
+ indicator === "dot" && "items-center"
+ )}
+ >
+ {#if formatter && item.value !== undefined && item.name}
+ {@render formatter({
+ value: item.value,
+ name: item.name,
+ item,
+ index: i,
+ payload: tooltipCtx.payload,
+ })}
+ {:else}
+ {#if itemConfig?.icon}
+ <itemConfig.icon />
+ {:else if !hideIndicator}
+ <div
+ style="--color-bg: {indicatorColor}; --color-border: {indicatorColor};"
+ class={cn(
+ "shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",
+ {
+ "size-2.5": indicator === "dot",
+ "h-full w-1": indicator === "line",
+ "w-0 border-[1.5px] border-dashed bg-transparent":
+ indicator === "dashed",
+ "my-0.5": nestLabel && indicator === "dashed",
+ }
+ )}
+ ></div>
+ {/if}
+ <div
+ class={cn(
+ "flex flex-1 shrink-0 justify-between leading-none",
+ nestLabel ? "items-end" : "items-center"
+ )}
+ >
+ <div class="grid gap-1.5">
+ {#if nestLabel}
+ {@render TooltipLabel()}
+ {/if}
+ <span class="text-muted-foreground">
+ {itemConfig?.label || item.name}
+ </span>
+ </div>
+ {#if item.value !== undefined}
+ <span class="text-foreground font-mono font-medium tabular-nums">
+ {item.value.toLocaleString()}
+ </span>
+ {/if}
+ </div>
+ {/if}
+ </div>
+ {/each}
+ </div>
+ </div>
+</TooltipPrimitive.Root>
diff --git a/frontend/src/lib/components/ui/chart/chart-utils.ts b/frontend/src/lib/components/ui/chart/chart-utils.ts
new file mode 100644
index 00000000..2decbbf7
--- /dev/null
+++ b/frontend/src/lib/components/ui/chart/chart-utils.ts
@@ -0,0 +1,66 @@
+import type { Tooltip } from "layerchart";
+import { getContext, setContext, type Component, type ComponentProps, type Snippet } from "svelte";
+
+export const THEMES = { light: "", dark: ".dark" } as const;
+
+export type ChartConfig = {
+ [k in string]: {
+ label?: string;
+ icon?: Component;
+ } & (
+ | { color?: string; theme?: never }
+ | { color?: never; theme: Record<keyof typeof THEMES, string> }
+ );
+};
+
+export type ExtractSnippetParams<T> = T extends Snippet<[infer P]> ? P : never;
+
+export type TooltipPayload = ExtractSnippetParams<
+ ComponentProps<typeof Tooltip.Root>["children"]
+>["payload"][number];
+
+// Helper to extract item config from a payload.
+export function getPayloadConfigFromPayload(
+ config: ChartConfig,
+ payload: TooltipPayload,
+ key: string
+) {
+ if (typeof payload !== "object" || payload === null) return undefined;
+
+ const payloadPayload =
+ "payload" in payload && typeof payload.payload === "object" && payload.payload !== null
+ ? payload.payload
+ : undefined;
+
+ let configLabelKey: string = key;
+
+ if (payload.key === key) {
+ configLabelKey = payload.key;
+ } else if (payload.name === key) {
+ configLabelKey = payload.name;
+ } else if (key in payload && typeof payload[key as keyof typeof payload] === "string") {
+ configLabelKey = payload[key as keyof typeof payload] as string;
+ } else if (
+ payloadPayload !== undefined &&
+ key in payloadPayload &&
+ typeof payloadPayload[key as keyof typeof payloadPayload] === "string"
+ ) {
+ configLabelKey = payloadPayload[key as keyof typeof payloadPayload] as string;
+ }
+
+ return configLabelKey in config ? config[configLabelKey] : config[key as keyof typeof config];
+}
+
+type ChartContextValue = {
+ config: ChartConfig;
+};
+
+const chartContextKey = Symbol("chart-context");
+
+export function setChartContext(value: ChartContextValue) {
+ return setContext(chartContextKey, value);
+}
+
+export function useChart() {
+ return getContext<ChartContextValue>(chartContextKey);
+}
diff --git a/frontend/src/lib/components/ui/chart/index.ts b/frontend/src/lib/components/ui/chart/index.ts
new file mode 100644
index 00000000..f22375e0
--- /dev/null
+++ b/frontend/src/lib/components/ui/chart/index.ts
@@ -0,0 +1,6 @@
+import ChartContainer from "./chart-container.svelte";
+import ChartTooltip from "./chart-tooltip.svelte";
+
+export { getPayloadConfigFromPayload, type ChartConfig } from "./chart-utils.js";
+
+export { ChartContainer, ChartTooltip, ChartContainer as Container, ChartTooltip as Tooltip };
diff --git a/frontend/src/lib/components/ui/table/table-head.svelte b/frontend/src/lib/components/ui/table/table-head.svelte
index b67a6f9b..14aa4ec9 100644
--- a/frontend/src/lib/components/ui/table/table-head.svelte
+++ b/frontend/src/lib/components/ui/table/table-head.svelte
@@ -14,7 +14,7 @@
bind:this={ref}
data-slot="table-head"
class={cn(
- "text-foreground h-10 bg-clip-padding px-2 text-start align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pe-0",
+ "text-foreground h-10 bg-[#f5f5f5] dark:bg-[#2a2a2a] bg-clip-padding px-2 text-start align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pe-0",
className
)}
{...restProps}
diff --git a/frontend/src/lib/types/dashboard.ts b/frontend/src/lib/types/dashboard.ts
new file mode 100644
index 00000000..166fa4d6
--- /dev/null
+++ b/frontend/src/lib/types/dashboard.ts
@@ -0,0 +1,22 @@
+export type MetricStatus = 'healthy' | 'warning' | 'critical';
+
+export type MetricTrendPoint = {
+ timestamp: Date;
+ value: number;
+};
+
+export type DashboardMetric = {
+ id: string;
+ name: string;
+ value: number;
+ unit: string;
+ trend: MetricTrendPoint[];
+ change24h: number; // Percentage change (e.g., 5.2 or -3.1)
+ status: MetricStatus;
+ formatValue?: (value: number) => string;
+};
+
+export type DashboardData = {
+ metrics: DashboardMetric[];
+ lastUpdated: Date;
+};
diff --git a/frontend/src/lib/utils/mock-dashboard-data.ts b/frontend/src/lib/utils/mock-dashboard-data.ts
new file mode 100644
index 00000000..b708d15e
--- /dev/null
+++ b/frontend/src/lib/utils/mock-dashboard-data.ts
@@ -0,0 +1,128 @@
+import type { DashboardData, MetricTrendPoint, MetricStatus } from '$lib/types/dashboard';
+
+function generateTrendData(
+ baseValue: number,
+ points: number = 12,
+ variance: number = 0.1
+): MetricTrendPoint[] {
+ const now = Date.now();
+ const interval = 60000; // 1 minute intervals
+
+ return Array.from({ length: points }, (_, i) => ({
+ timestamp: new Date(now - (points - i - 1) * interval),
+ value: baseValue + (Math.random() - 0.5) * baseValue * variance
+ }));
+}
+
+function determineStatus(
+ value: number,
+ thresholds: { warning: number; critical: number },
+ inverted: boolean = false
+): MetricStatus {
+ if (inverted) {
+ if (value < thresholds.critical) return 'critical';
+ if (value < thresholds.warning) return 'warning';
+ return 'healthy';
+ } else {
+ if (value > thresholds.critical) return 'critical';
+ if (value > thresholds.warning) return 'warning';
+ return 'healthy';
+ }
+}
+
+export function generateMockDashboardData(): DashboardData {
+ const cpuValue = 45 + Math.random() * 20; // 45-65%
+ const memoryValue = 512 + Math.random() * 256; // 512-768 MB
+ const goRoutinesValue = 150 + Math.random() * 100; // 150-250
+ const heapObjectsValue = 25000 + Math.random() * 10000; // 25k-35k
+ const errorRateValue = 0.5 + Math.random() * 2; // 0.5-2.5%
+ const p95LatencyValue = 120 + Math.random() * 80; // 120-200ms
+ const throughputValue = 850 + Math.random() * 300; // 850-1150 req/s
+ const apdexValue = 0.85 + Math.random() * 0.1; // 0.85-0.95
+
+ return {
+ metrics: [
+ {
+ id: 'cpu',
+ name: 'CPU Usage',
+ value: cpuValue,
+ unit: '%',
+ trend: generateTrendData(cpuValue, 12),
+ change24h: -2.3 + Math.random() * 4, // -2.3 to 1.7
+ status: determineStatus(cpuValue, { warning: 70, critical: 90 }),
+ formatValue: (v) => v.toFixed(1)
+ },
+ {
+ id: 'memory',
+ name: 'Memory',
+ value: memoryValue,
+ unit: 'MB',
+ trend: generateTrendData(memoryValue, 12),
+ change24h: 5.8 + Math.random() * 4 - 2, // 3.8 to 7.8
+ status: determineStatus(memoryValue, { warning: 700, critical: 900 }),
+ formatValue: (v) => Math.round(v).toString()
+ },
+ {
+ id: 'goroutines',
+ name: 'Go Routines',
+ value: goRoutinesValue,
+ unit: '',
+ trend: generateTrendData(goRoutinesValue, 12),
+ change24h: 12.4 + Math.random() * 4 - 2, // 10.4 to 14.4
+ status: determineStatus(goRoutinesValue, { warning: 300, critical: 500 }),
+ formatValue: (v) => Math.round(v).toString()
+ },
+ {
+ id: 'heap',
+ name: 'Heap Objects',
+ value: heapObjectsValue,
+ unit: '',
+ trend: generateTrendData(heapObjectsValue, 12),
+ change24h: -1.2 + Math.random() * 4 - 2, // -3.2 to 0.8
+ status: determineStatus(heapObjectsValue, { warning: 40000, critical: 60000 }),
+ formatValue: (v) => (v / 1000).toFixed(1) + 'k'
+ },
+ {
+ id: 'error-rate',
+ name: 'Error Rate',
+ value: errorRateValue,
+ unit: '%',
+ trend: generateTrendData(errorRateValue, 12),
+ change24h: -15.3 + Math.random() * 10, // -15.3 to -5.3
+ status: determineStatus(errorRateValue, { warning: 2, critical: 5 }),
+ formatValue: (v) => v.toFixed(2)
+ },
+ {
+ id: 'p95-latency',
+ name: 'P95 Latency',
+ value: p95LatencyValue,
+ unit: 'ms',
+ trend: generateTrendData(p95LatencyValue, 12),
+ change24h: 3.7 + Math.random() * 4 - 2, // 1.7 to 5.7
+ status: determineStatus(p95LatencyValue, { warning: 200, critical: 500 }),
+ formatValue: (v) => Math.round(v).toString()
+ },
+ {
+ id: 'throughput',
+ name: 'Throughput',
+ value: throughputValue,
+ unit: 'req/s',
+ trend: generateTrendData(throughputValue, 12),
+ change24h: 8.2 + Math.random() * 4 - 2, // 6.2 to 10.2
+ status: determineStatus(throughputValue, { warning: 500, critical: 300 }, true),
+ formatValue: (v) => Math.round(v).toString()
+ },
+ {
+ id: 'apdex',
+ name: 'Apdex Score',
+ value: apdexValue,
+ unit: '',
+ trend: generateTrendData(apdexValue, 12, 0.05),
+ change24h: 1.8 + Math.random() * 2 - 1, // 0.8 to 2.8
+ status: determineStatus(apdexValue, { warning: 0.7, critical: 0.5 }, true),
+ formatValue: (v) => v.toFixed(3)
+ }
+ ],
+ lastUpdated: new Date()
+ };
+}
diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte
index 4b647430..9c597e4a 100644
--- a/frontend/src/routes/+layout.svelte
+++ b/frontend/src/routes/+layout.svelte
@@ -1,6 +1,5 @@
<script lang="ts">
import './layout.css';
- import favicon from '$lib/assets/favicon.svg';
import { goto } from '$app/navigation';
import { authState } from '$lib/state/auth.svelte';
import { themeState, initTheme, toggleTheme } from '$lib/state/theme.svelte';
@@ -9,6 +8,8 @@
import { Button } from "$lib/components/ui/button";
import { Sun, Moon, LogOut } from "@lucide/svelte";
import { onMount } from "svelte";
+ import * as DropdownMenu from "$lib/components/ui/dropdown-menu/index.js";
+ import { ChevronDown } from 'lucide-svelte';
let { children } = $props();
@@ -22,7 +23,7 @@
}
</script>
-<svelte:head><link rel="icon" href={favicon} /></svelte:head>
+<svelte:head><link rel="icon" href="/favicon.ico" /></svelte:head>
{#if authState.isAuthenticated}
<Sidebar.SidebarProvider>
@@ -31,7 +32,25 @@
<header class="flex h-16 shrink-0 items-center gap-2 border-b px-4">
<Sidebar.SidebarTrigger />
<div class="h-4 w-px bg-border"></div>
- <h1 class="text-lg font-semibold">Traceway</h1>
+ <h1 class="text-lg font-semibold">
+ <DropdownMenu.Root>
+ <DropdownMenu.Trigger class="flex flex-row items-center">
+ <div>Project 1</div> <ChevronDown size=16 />
+ </DropdownMenu.Trigger>
+ <DropdownMenu.Content>
+ <DropdownMenu.Group>
+ <DropdownMenu.Label>Projects</DropdownMenu.Label>
+ <DropdownMenu.Separator />
+ <DropdownMenu.Item>CT gin-backend</DropdownMenu.Item>
+ <DropdownMenu.Item>CT eldapp</DropdownMenu.Item>
+ <DropdownMenu.Item>CT frontend</DropdownMenu.Item>
+ <DropdownMenu.Item>Traceway BE</DropdownMenu.Item>
+ <DropdownMenu.Separator />
+ <DropdownMenu.Item>+ Add Project</DropdownMenu.Item>
+ </DropdownMenu.Group>
+ </DropdownMenu.Content>
+ </DropdownMenu.Root>
+ </h1>
<div class="ml-auto flex items-center gap-2">
<Button variant="ghost" size="icon" onclick={toggleTheme} title={themeState.isDark ? "Switch to Light Mode" : "Switch to Dark Mode"}>
{#if themeState.isDark}
diff --git a/frontend/src/routes/+page.svelte b/frontend/src/routes/+page.svelte
index b98b7912..cbd4dcf4 100644
--- a/frontend/src/routes/+page.svelte
+++ b/frontend/src/routes/+page.svelte
@@ -1,12 +1,94 @@
<script lang="ts">
- import { goto } from '$app/navigation';
- import { authState } from '$lib/state/auth.svelte';
-
- $effect(() => {
- if (authState.token) {
- goto('/issues');
- } else {
- goto('/login');
- }
- });
+ import { onMount } from 'svelte';
+ import { Button } from '$lib/components/ui/button';
+ import { Skeleton } from '$lib/components/ui/skeleton';
+ import { RefreshCw } from 'lucide-svelte';
+ import MetricCard from '$lib/components/dashboard/metric-card.svelte';
+ import { generateMockDashboardData } from '$lib/utils/mock-dashboard-data';
+ import type { DashboardData } from '$lib/types/dashboard';
+ import { Card, CardContent } from '$lib/components/ui/card';
+
+ let dashboardData = $state<DashboardData | null>(null);
+ let loading = $state(true);
+ let error = $state('');
+
+ async function loadDashboard() {
+ loading = true;
+ error = '';
+
+ try {
+ // Simulate API delay
+ await new Promise((resolve) => setTimeout(resolve, 500));
+
+ // Mock data - TODO: Replace with real API call
+ // const response = await api.get('/metrics/dashboard');
+ // dashboardData = response;
+ dashboardData = generateMockDashboardData();
+ } catch (e: any) {
+ error = e.message || 'Failed to load dashboard data';
+ console.error(e);
+ } finally {
+ loading = false;
+ }
+ }
+
+ onMount(() => {
+ loadDashboard();
+ });
+
+ const lastUpdatedFormatted = $derived(
+ dashboardData?.lastUpdated
+ ? dashboardData.lastUpdated.toLocaleString('en-US', {
+ hour: '2-digit',
+ minute: '2-digit',
+ second: '2-digit',
+ hour12: false
+ })
+ : ''
+ );
</script>
+
+<div class="space-y-4">
+ <!-- Header -->
+ <div class="flex items-center justify-between">
+ <div>
+ <h2 class="text-3xl font-bold tracking-tight">System Metrics</h2>
+ {#if dashboardData}
+ <p class="mt-1 text-sm text-muted-foreground">Last updated: {lastUpdatedFormatted}</p>
+ {/if}
+ </div>
+ <Button variant="outline" size="sm" onclick={loadDashboard} disabled={loading}>
+ <RefreshCw class="mr-2 h-4 w-4 {loading ? 'animate-spin' : ''}" />
+ Refresh
+ </Button>
+ </div>
+
+ {#if error}
+ <div class="rounded-md border border-destructive bg-destructive/10 p-4">
+ <p class="text-sm text-destructive">{error}</p>
+ </div>
+ {/if}
+
+ <!-- Metrics Grid -->
+ <div class="grid grid-cols-1 gap-4 md:grid-cols-4">
+ {#if loading}
+ {#each Array(8) as _}
+ <Card>
+ <CardContent class="flex gap-3 flex-col">
+ <div class="flex items-center justify-between">
+ <Skeleton class="h-4 w-24" />
+ <Skeleton class="h-2 w-2 rounded-full" />
+ </div>
+ <Skeleton class="h-8 w-32" />
+ <Skeleton class="h-16 w-full" />
+ <Skeleton class="h-3 w-28" />
+ </CardContent>
+ </Card>
+ {/each}
+ {:else if dashboardData}
+ {#each dashboardData.metrics as metric (metric.id)}
+ <MetricCard {metric} />
+ {/each}
+ {/if}
+ </div>
+</div>
diff --git a/frontend/src/routes/layout.css b/frontend/src/routes/layout.css
index 374161e2..cfaf88da 100644
--- a/frontend/src/routes/layout.css
+++ b/frontend/src/routes/layout.css
@@ -24,7 +24,7 @@
--border: oklch(0.929 0.013 255.508);
--input: oklch(0.929 0.013 255.508);
--ring: oklch(0.704 0.04 256.788);
- --chart-1: oklch(0.646 0.222 41.116);
+ --chart-1: oklch(0.7 0.15 250);
--chart-2: oklch(0.6 0.118 184.704);
--chart-3: oklch(0.398 0.07 227.392);
--chart-4: oklch(0.828 0.189 84.429);
@@ -33,8 +33,8 @@
--sidebar-foreground: oklch(0.129 0.042 264.695);
--sidebar-primary: oklch(0.208 0.042 265.755);
--sidebar-primary-foreground: oklch(0.984 0.003 247.858);
- --sidebar-accent: oklch(0.968 0.007 247.896);
- --sidebar-accent-foreground: oklch(0.208 0.042 265.755);
+ --sidebar-accent: oklch(0.7 0.15 250);
+ --sidebar-accent-foreground: oklch(0.98 0 0);
--sidebar-border: oklch(0.929 0.013 255.508);
--sidebar-ring: oklch(0.704 0.04 256.788);
}
@@ -62,7 +62,7 @@
--accent-foreground: oklch(0.98 0 0);
--destructive: oklch(0.65 0.2 25);
/* Subtle borders */
- --border: oklch(1 0 0 / 8%);
+ --border: oklch(1 0 0 / 22%);
--input: oklch(1 0 0 / 10%);
--ring: oklch(0.5 0.01 270);
/* Chart colors */
@@ -76,7 +76,7 @@
--sidebar-foreground: oklch(0.98 0 0);
--sidebar-primary: oklch(0.98 0 0);
--sidebar-primary-foreground: oklch(0.09 0.005 270);
- --sidebar-accent: oklch(0.18 0.005 270);
+ --sidebar-accent: oklch(0.7 0.15 250);
--sidebar-accent-foreground: oklch(0.98 0 0);
--sidebar-border: oklch(1 0 0 / 8%);
--sidebar-ring: oklch(0.5 0.01 270);
diff --git a/frontend/static/favicon.ico b/frontend/static/favicon.ico
new file mode 100644
index 00000000..b2ee5c7a
Binary files /dev/null and b/frontend/static/favicon.ico differ