This directory contains comprehensive documentation for the AI Chatbot project. Use this guide to find the relevant documentation for your needs.
- Project Overview: High-level introduction to the project, its architecture, and key features.
- Component Architecture: Detailed overview of component relationships and structure.
- Developer Guide: Installation, setup, and development workflows.
- Artifact System: Details of the artifact implementation including text, image, and sheet artifacts.
- Version Control System: Documentation for the version control features.
- Mock API Integration: Details on the mock API implementation.
- Real API Integration: Guide for integrating real backend APIs.
- Artifact Testing: Procedures for testing artifact functionality.
- README-MSW: Information about Mock Service Worker integration.
If you're new to the project, we recommend reading the documentation in this order:
- Project Overview - Get a high-level understanding
- Component Architecture - Understand how components interact
- Developer Guide - Set up your development environment
- Feature-specific guides based on your focus area
Recent documentation updates include:
- Added Version Control System documentation
- Enhanced Artifact System documentation with details on the unified storage approach
- Updated Component Architecture with new hooks and components
- Expanded Developer Guide with SWR integration and best practices
- Added detailed examples of state management patterns
- Chat interface with streaming responses
- Artifact system for specialized content (text, images, sheets)
- Dual-storage approach (API and localStorage)
- Version control with history navigation
- Responsive design for desktop and mobile
- SWR integration for data fetching and state management
- Custom hooks for optimized state management
When updating features, please remember to update the relevant documentation. Follow these guidelines:
- Keep documentation concise and focused
- Include code examples for complex features
- Maintain the existing documentation structure
- Add JSDoc comments to components and functions
- Document any new hooks or utilities
- Add WebSocket integration documentation
- Expand testing documentation for new features
- Create troubleshooting guide
- Add detailed API endpoint reference