Major changes: - Add HandList.tsx component for left sidebar - Add HandTaskPanel.tsx for middle content area - Restructure Sidebar tabs: 分身/HANDS/Workflow - Remove Hands tab from RightPanel - Localize all UI text to Chinese - Archive legacy OpenClaw documentation - Add Hands integration lessons document - Update feature checklist with new components UI improvements: - Left sidebar now shows Hands list with status icons - Middle area shows selected Hand's tasks and results - Consistent styling with Tailwind CSS - Chinese status labels and buttons Documentation: - Create docs/archive/openclaw-legacy/ for old docs - Add docs/knowledge-base/hands-integration-lessons.md - Update docs/knowledge-base/feature-checklist.md - Update docs/knowledge-base/README.md Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
40 lines
1.5 KiB
TypeScript
40 lines
1.5 KiB
TypeScript
import { defineConfig } from 'vitest/config';
|
|
import react from '@vitejs/plugin-react';
|
|
import path from 'path';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
setupFiles: ['./tests/setup.ts'],
|
|
include: ['tests/**/*.test.ts', 'tests/**/*.test.tsx'],
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'json', 'html'],
|
|
reportsDirectory: './coverage',
|
|
include: ['src/**/*.ts', 'desktop/src/**/*.ts', 'desktop/src/**/*.tsx'],
|
|
exclude: [
|
|
'src/**/*.d.ts',
|
|
'desktop/src/**/*.d.ts',
|
|
'tests/**',
|
|
'**/*.test.ts',
|
|
'**/*.test.tsx',
|
|
'**/node_modules/**',
|
|
],
|
|
},
|
|
},
|
|
resolve: {
|
|
dedupe: ['react', 'react-dom'],
|
|
alias: {
|
|
'@': path.resolve(__dirname, './desktop/src'),
|
|
'@lib': path.resolve(__dirname, './desktop/src/lib'),
|
|
react: path.resolve(__dirname, './node_modules/.pnpm/react@19.2.4/node_modules/react'),
|
|
'react/jsx-runtime': path.resolve(__dirname, './node_modules/.pnpm/react@19.2.4/node_modules/react/jsx-runtime.js'),
|
|
'react/jsx-dev-runtime': path.resolve(__dirname, './node_modules/.pnpm/react@19.2.4/node_modules/react/jsx-dev-runtime.js'),
|
|
'react-dom': path.resolve(__dirname, './node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom'),
|
|
'react-dom/client': path.resolve(__dirname, './node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/client.js'),
|
|
},
|
|
},
|
|
});
|