🎯 Major improvements to MissionControl component: - Always keep input field visible and functional after AI responses - Auto-clear input after submitting questions for better UX - Add dynamic visual indicators (first question vs follow-up) - Improve response layout with clear separation and hints - Enable proper chat-like experience for continuous learning 🌟 Additional enhancements: - Better language-specific messaging throughout interface - Clearer visual hierarchy between input and response areas - Intuitive flow that guides users to ask follow-up questions - Maintains responsive design and accessibility 🔧 Technical changes: - Enhanced MissionControl state management - Improved component layout and styling - Better TypeScript integration across components - Updated tsconfig for stricter type checking
67 lines
1.4 KiB
YAML
67 lines
1.4 KiB
YAML
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
target: development
|
|
# Enable Docker Bake integration
|
|
x-bake:
|
|
target: development
|
|
platforms:
|
|
- linux/amd64
|
|
- linux/arm64
|
|
ports:
|
|
- "3444:3444"
|
|
environment:
|
|
- NODE_ENV=development
|
|
- OPENAI_API_KEY=${OPENAI_API_KEY}
|
|
- HUGGING_FACE_TOKEN=${HUGGING_FACE_TOKEN}
|
|
volumes:
|
|
- .:/app
|
|
- /app/node_modules
|
|
- /app/.next
|
|
restart: unless-stopped
|
|
networks:
|
|
- kidsai-network
|
|
|
|
app-prod:
|
|
build:
|
|
context: .
|
|
target: production
|
|
# Enable Docker Bake integration
|
|
x-bake:
|
|
target: production
|
|
platforms:
|
|
- linux/amd64
|
|
- linux/arm64
|
|
ports:
|
|
- "3445:3444"
|
|
environment:
|
|
- NODE_ENV=production
|
|
- OPENAI_API_KEY=${OPENAI_API_KEY}
|
|
- HUGGING_FACE_TOKEN=${HUGGING_FACE_TOKEN}
|
|
restart: unless-stopped
|
|
networks:
|
|
- kidsai-network
|
|
profiles:
|
|
- production
|
|
|
|
# Optional: Add a database if you decide to use Prisma
|
|
# database:
|
|
# image: postgres:15-alpine
|
|
# environment:
|
|
# POSTGRES_DB: kidsai
|
|
# POSTGRES_USER: kidsai
|
|
# POSTGRES_PASSWORD: ${DB_PASSWORD}
|
|
# volumes:
|
|
# - postgres_data:/var/lib/postgresql/data
|
|
# networks:
|
|
# - kidsai-network
|
|
# restart: unless-stopped
|
|
|
|
networks:
|
|
kidsai-network:
|
|
driver: bridge
|
|
|
|
# volumes:
|
|
# postgres_data:
|