Adds the styling foundation for the UI redesign (vibe-kanban / Magentic-UI / Langflow references): Tailwind CSS + shadcn/ui primitives, HSL design tokens (index.css) ported from theme.css, @/ alias, and the App.tsx Board|Pipeline tabs shell. Extends StateResponse with the backend's existing stages[] for the Board. theme.css kept transiently until components migrate to Tailwind. No backend changes. Component fan-out (Board, MapNode, TaskDrawer, TopBar) follows.
36 lines
966 B
TypeScript
36 lines
966 B
TypeScript
/// <reference types="vitest/config" />
|
|
import { fileURLToPath, URL } from "node:url";
|
|
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
// The SPA is served by the FastAPI dashboard (agent_team/dashboard.py) from
|
|
// web/dist at LAN :8770. In dev, proxy /api to a locally running dashboard so
|
|
// `npm run dev` talks to real data without CORS. No CDN — everything bundles
|
|
// locally (the dashboard is offline/LAN-only).
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
|
},
|
|
},
|
|
build: {
|
|
outDir: "dist",
|
|
emptyOutDir: true,
|
|
sourcemap: false,
|
|
},
|
|
server: {
|
|
proxy: {
|
|
"/api": {
|
|
target: process.env.AGENT_TEAM_DASH || "http://127.0.0.1:8770",
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
test: {
|
|
globals: true,
|
|
environment: "jsdom",
|
|
setupFiles: ["./src/test/setup.ts"],
|
|
css: false,
|
|
},
|
|
});
|