This is a pure frontend chatbot UI built with React and TypeScript. The application provides a static chat interface styled with Tata Capital branding, featuring local state management and client-side bot responses. All functionality is handled in the browser without any backend dependencies.
Preferred communication style: Simple, everyday language.
- Framework: React 18 with TypeScript
- Routing: Wouter for client-side routing
- State Management: TanStack React Query for server state management
- UI Components: Radix UI primitives with custom shadcn/ui components
- Styling: Tailwind CSS with custom Tata Capital color scheme
- Build Tool: Vite for development and production builds
- Deployment: Pure static files served by Vite development server
- State Management: Local React state with useState hooks
- Data Storage: Browser memory only (no persistence)
- Bot Logic: Client-side response generation with predefined Tata Capital content
/
├── src/ # React frontend source code
├── client/ # Original client directory (maintained for compatibility)
├── server/ # Minimal Vite server for development
└── index.html # Main HTML entry point
- Message Type: Simple interface with id, content, role, and timestamp
- Local State: Messages stored in React component state
- No Persistence: Messages reset on page refresh
- Role-based Rendering: User vs assistant message styling
- ChatHeader: Branded header with online status indicator
- ChatMessages: Message display with user/bot differentiation
- ChatInput: Text input with quick actions and auto-resize
- TypingIndicator: Visual feedback for bot response states
- Message Generation: Client-side bot response logic with Tata Capital content
- State Management: Local React hooks for message handling
- Response System: Simulated delays and typing indicators for realistic chat feel
- Message Sending: User inputs message → Added to local state → Bot response generated client-side with realistic delay
- Message Display: Local state updates trigger React re-renders → UI updates immediately
- Session Management: Single chat session in browser memory → Resets on page refresh
- react: Core React library for UI components
- wouter: Lightweight React routing
- date-fns: Date formatting and manipulation
- typescript: Static type checking
- @radix-ui/*: Accessible UI component primitives
- tailwindcss: Utility-first CSS framework
- lucide-react: Icon library
- class-variance-authority: Component variant management
- vite: Fast build tool and dev server for static files
- typescript: Static type checking
- @vitejs/plugin-react: React support for Vite
- Static Server: Vite dev server with HMR for instant updates
- Hot Reload: Automatic browser refresh on code changes
- Environment: Optimized for Replit with cartographer and runtime error handling
- Static Build: Vite production build generates optimized static files
- Deployment: Can be served from any static hosting service (Netlify, Vercel, GitHub Pages, etc.)
- No Server Required: Pure HTML, CSS, and JavaScript files
- Static UI Only: Converted from full-stack to pure frontend for simplicity and ease of deployment
- Client-Side Logic: All bot responses and chat logic handled in browser for zero server requirements
- Local State Management: React hooks replace external state management for minimal complexity
- Component Library: Radix UI chosen for accessibility and shadcn/ui for consistent design system
- Type Safety: TypeScript implementation with local interfaces for development confidence
- Vite Development: Fast development server with hot module replacement for efficient development