This repository has been archived on 2026-08-04. You can view files and clone it, but cannot push or open issues or pull requests.
orchestrator/agent-team/web/vite.config.ts
Adam Moussa 022befa796 feat(agent-team): Tailwind + shadcn foundation for dashboard redesign
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.
2026-06-24 13:35:56 -04:00

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,
},
});