Complete React 18 + TypeScript + Tailwind v4 UI for OpenOva Catalyst Bootstrap. Architecture: - Feature-Sliced Design (FSD): app/, pages/, widgets/, features/, entities/, shared/ - TanStack Router (type-safe), TanStack Query, Zustand wizard store - React Hook Form + Zod validation on every form - Framer Motion animated step transitions and micro-interactions - Dark-first design system with Tailwind v4 CSS custom properties Pages: - Auth: Login, Signup, Forgot Password (SaaS mode) - Dashboard: deployment list with status badges and stats - Wizard: 6-step animated wizard (Org → Provider → Credentials → Infrastructure → Components → Review) - Provision: real-time SSE log stream with phase tracker and progress bar - Success: kubeconfig download, service URLs, next-steps guide Shared UI: - Button, Input, Badge, Card, Separator, Tooltip, Checkbox, Switch, Progress, Dialog, DropdownMenu, Select, Avatar (all owned, Radix primitives) Widgets: - StepIndicator with animated connectors and completion state - CloudProviderCard with coming-soon state and tooltip Features: - Two runtime modes: saas (full auth) and selfhosted (direct to wizard) - Live credential validation UX with feedback states - Component dependency enforcement with tooltip explanations - Cost estimate per region derived from Hetzner node size selection - Cluster context names auto-derived from naming convention (NAMING-CONVENTION.md) Builds clean: tsc -b + vite build, 34KB CSS, 723KB JS (pre-split) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2.4 KiB
2.4 KiB
React + TypeScript + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Oxc
- @vitejs/plugin-react-swc uses SWC
React Compiler
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
Expanding the ESLint configuration
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Remove tseslint.configs.recommended and replace with this
tseslint.configs.recommendedTypeChecked,
// Alternatively, use this for stricter rules
tseslint.configs.strictTypeChecked,
// Optionally, add this for stylistic rules
tseslint.configs.stylisticTypeChecked,
// Other configs...
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])
You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:
// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Enable lint rules for React
reactX.configs['recommended-typescript'],
// Enable lint rules for React DOM
reactDom.configs.recommended,
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])