mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-04 20:47:52 +01:00
Implements a complete "My Context" documents system that allows users to share personal context (goals, skills, background, etc.) with My Cat AI for personalized responses and suggestions. Key features: - Documents CRUD system with visibility controls (private/cat_visible/public) - Context-aware quick suggestions based on user's documents - AI form prefill service for entity creation - Document context integration into My Cat chat responses New files: - Documents dashboard pages and API routes - /api/cat/suggestions endpoint for personalized prompts - document-context.ts service for fetching user context - AI form prefill service and prompts The My Cat AI now shows personalized suggestion buttons based on the user's goals, skills, and plans, and references their specific context when providing advice. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
📚 OrangeCat Documentation
Welcome to the OrangeCat Bitcoin Crowdfunding Platform documentation!
This is your centralized knowledge base for understanding, developing, deploying, and maintaining the OrangeCat platform.
🚀 Quick Start
For New Developers
- Developer Guide - Complete setup and first steps
- Development Setup - Environment configuration
- Contributing Guide - How to contribute effectively
For Users
- API Reference - API documentation for integrations
- Features Guide - Platform features overview
📂 Documentation Structure
docs/
├── getting-started/ # 🚀 Onboarding & setup
├── architecture/ # 🏗️ System design & architecture
├── development/ # 💻 Development guides & workflows
├── workflows/ # 🔄 Proven operational workflows
├── features/ # ✨ Feature documentation
│ └── posting/ # 📝 Posting system (mobile-first)
├── operations/ # 🔧 Operations & maintenance
├── deployment/ # 🚢 Deployment guides
├── security/ # 🔒 Security practices
├── testing/ # 🧪 Testing guides
├── changelog/ # 📝 Release notes
├── standards/ # 📏 Standards & conventions
└── archive/ # 🗄️ Historical docs (2024)
📖 Key Documentation
Architecture & Design
- System Architecture - High-level system design
- Database Schema - Database design and relationships
- Services Architecture - Service layer design
- Component Architecture - UI component patterns
Development
- Best Practices - Development guidelines
- Engineering Principles - First principles (privacy/local-first, SSOT/DRY/SoC, a11y, security)
- Code Review Guide - Code review process
- Technical Debt - Current technical debt items
- Dashboard Analysis - Dashboard page analysis
- Hooks Guide - Custom React hooks
- Utils Guide - Utility functions
- Types Guide - TypeScript types
Features
- Posting System ⭐ NEW - Twitter/X-style posting with mobile-first design
- Bitcoin Wallet - Bitcoin wallet integration
- Intelligent Onboarding - Smart user onboarding
Workflows
- Supabase Migration Workflow - Complete migration guide
- Migration Quick Reference - Fast lookup for common tasks
- Migration Lessons Learned - What we learned from failures
Database
- Database Schema - Complete schema reference
- Migrations Guide - Database migration workflow
- Schema Quick Reference - Quick lookup
- Database Improvements - Recent improvements
Operations
- Deployment Guide - Production deployment
- Environment Setup - Environment variables
- Troubleshooting - Common issues
- Port Management - Development ports
Security
- Security Overview - Security principles
- Auth System - Authentication implementation
- Security Audit - Latest security audit
Testing
- Test Guide - Testing strategy
- Test Coverage - Coverage report
- User Journeys - E2E test scenarios
🎯 Common Tasks
Development
- Setting up local environment: See Development Setup
- Running migrations: See Migration Workflow or Quick Reference
- Creating components: See Component Architecture
- Writing tests: See Test Guide
Deployment
- Deploy to production: See Deployment Guide
- Set up monitoring: See Observability
- Configure CI/CD: See CI/CD Guide
Debugging
- Performance issues: See Performance Debugging
- Database issues: See Troubleshooting
- Error handling: See Error Handling
📋 Standards & Best Practices
Code Standards
- Documentation Standards - How to write docs
- Datetime Standards - Date/time handling
- Color System - Design system colors
Templates
- Component Template - Component boilerplate
- API Endpoint Template - API endpoint structure
- ADR Template - Architecture decision records
- Documentation Template - Doc structure
🔍 Finding Information
Search Documentation
Use your IDE's search (Ctrl+Shift+F) to search across all documentation files.
Recently Updated
- My Cat: Voice + Local Models - 2026-01-18 ⭐ NEW
- Engineering Principles - 2026-01-18 ⭐ NEW
- My Cat Spec - 2026-01-18
📞 Getting Help
Team Resources
- GitHub Issues - Report bugs and request features
- Pull Requests - All code changes require review
- Architecture Decisions - Document in
docs/architecture/
External Documentation
- Next.js Docs - React framework
- Supabase Docs - Database and auth
- Tailwind CSS - Styling framework
- Zustand - State management
🎯 Documentation Principles
This documentation follows these principles:
- ✅ Always Current - Updated with every major change
- ✅ Actionable - Step-by-step instructions
- ✅ Contextual - Explains why, not just how
- ✅ Searchable - Clear structure and keywords
- ✅ Reviewed - Regular reviews and updates
- ✅ No Duplication - Single source of truth
📝 Contributing to Docs
When contributing documentation:
- Follow the Documentation Standards
- Use the appropriate template
- Keep docs in the correct directory
- Update this index if adding new sections
- Test all code examples
- Get docs reviewed with code PRs
Last Updated: 2025-11-16 Version: 2.2.0 Maintainers: Development Team
🗄️ Archive
Historical documentation is preserved separately:
- Archive Index
- Previous audits, evaluations, and implementation plans