Skip to content
Merged

Dev #108

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
8130fb4
feat: new beach ui
koishi510 Feb 23, 2026
e5768b1
feat: new beach ui
koishi510 Feb 23, 2026
093c4ac
perf: improve css performance
koishi510 Feb 23, 2026
841b80b
perf: improve css performance
koishi510 Feb 23, 2026
1e76250
perf: better css
koishi510 Feb 23, 2026
7fb18b3
refactor: restructure beach scene into Vue 3 + Vite + TypeScript
koishi510 Feb 25, 2026
89264b4
feat: place assets
Kanye-Est Feb 28, 2026
3160588
refactor: consolidate assets into src/assets and fix import paths
koishi510 Feb 28, 2026
ba4db37
feat: placement modified
Kanye-Est Mar 2, 2026
817494e
feat: new beach ui
koishi510 Feb 23, 2026
c366b3d
feat: new beach ui
koishi510 Feb 23, 2026
21fcaea
perf: improve css performance
koishi510 Feb 23, 2026
eb7f0dc
perf: improve css performance
koishi510 Feb 23, 2026
0a08e77
perf: better css
koishi510 Feb 23, 2026
b5005e5
refactor: restructure beach scene into Vue 3 + Vite + TypeScript
koishi510 Feb 25, 2026
0982f5a
feat: place assets
Kanye-Est Feb 28, 2026
8e41cfe
refactor: consolidate assets into src/assets and fix import paths
koishi510 Feb 28, 2026
f57a2cd
feat: placement modified
Kanye-Est Mar 2, 2026
6aa1b14
feat: placement amplified
Kanye-Est Mar 2, 2026
05a5cec
feat: placement amplified
Kanye-Est Mar 2, 2026
6f83a32
chore: update figures
Mar 2, 2026
538133f
chore: Updage image
koishi510 Mar 3, 2026
126fa82
feat: add admin panel, overlay system, auth flow, and API integrations
4rthurCai Mar 3, 2026
42236b0
feat: add Go backend and update Makefile for backend.new
koishi510 Mar 4, 2026
29d8dc2
chore: adjust stone sprite position and size
koishi510 Mar 4, 2026
8ad8053
feat: add embedded admin panel with user and config management
koishi510 Mar 4, 2026
d051d44
chore: update CI and hooks to target new frontend/backend only
koishi510 Mar 4, 2026
e1bf3aa
chore: Move assets
koishi510 Mar 4, 2026
0f8e12f
chore: remove legacy frontend/backend, rename .new dirs, rewrite config
koishi510 Mar 4, 2026
c23be2a
chore: remove deploy
koishi510 Mar 4, 2026
62a5c59
chore: rewrite .dockerignore, .env.example, dev-setup.sh for Go + Vue
koishi510 Mar 4, 2026
0c3b6cd
chore: use VITE_API_BASE_URL env var for frontend API base
koishi510 Mar 4, 2026
044a7c7
docs: rewrite documentation for Go + Vue stack
koishi510 Mar 4, 2026
78266b9
chore: fix frontend port to 5173 and translate dev-setup.sh to English
koishi510 Mar 4, 2026
f476885
feat: add PostgreSQL setup and interactive env config to dev-setup.sh
koishi510 Mar 4, 2026
a1fc299
feat: integrate community bar with full backend API
Kanye-Est Mar 4, 2026
527e737
feat: integrate AI chat with session persistence and visual effects
Kanye-Est Mar 4, 2026
3102629
feat: integrate user center with profile, stats, and settings
Kanye-Est Mar 4, 2026
da63df0
fix: prevent dev-setup.sh from exiting on non-empty env input
koishi510 Mar 4, 2026
0d01775
chore: rename frontend package to momshell-frontend v1.0.0
koishi510 Mar 4, 2026
eca9553
feat: add unified Docker deployment with root Dockerfile
koishi510 Mar 4, 2026
981cf66
fix: resolve AI chat 401 by using godotenv.Overload and raw HTTP client
Kanye-Est Mar 4, 2026
6d29eac
feat: add echo/memoir backend module with AI-generated memory stickers
Kanye-Est Mar 4, 2026
75bf504
docs: add v1.0.0 changelog for Go + Vue rewrite
koishi510 Mar 4, 2026
37113cf
docs: update changelog with community, chat, profile, and echo features
koishi510 Mar 4, 2026
921feeb
fix: resolve golangci-lint errors (errcheck, gosimple)
koishi510 Mar 4, 2026
54635ac
chore: update GitHub templates for Go + Vue stack
koishi510 Mar 4, 2026
59f5ef3
chore: improve PR template with golangci-lint, build check, and make …
koishi510 Mar 4, 2026
0c21a93
Potential fix for code scanning alert no. 87: Workflow does not conta…
koishi510 Mar 4, 2026
248633d
fix: use crypto.getRandomValues for session ID fallback
koishi510 Mar 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
90 changes: 26 additions & 64 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,82 +1,44 @@
# =============================================================================
# Git
# =============================================================================
.git
.gitignore
.gitattributes
.github
.gitignore
.pre-commit-config.yaml
.dockerignore
.claude

# Archives
archive-legacy-*.tar.gz

# =============================================================================
# Environment & Secrets
# =============================================================================
.env
.env.*
**/.env
**/.env.*
*.key
*.pem

# =============================================================================
# Python
# =============================================================================
__pycache__
*.pyc
*.pyo
*.pyd
.ruff_cache
.mypy_cache
.pytest_cache
.coverage
htmlcov
.venv
venv
env
*.egg-info
# IDE
.idea
.vscode
*.swp
*.swo

# =============================================================================
# Node.js / Frontend
# =============================================================================
# Node.js
node_modules
.next
out
.pnp
.pnp.js
.pnp.cjs
.yarn
*.tsbuildinfo
.eslintcache
.turbo
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# =============================================================================
# Docker
# =============================================================================
Dockerfile
Dockerfile.*
docker-compose*.yml
.dockerignore
# Go build artifacts
backend/bin

# =============================================================================
# IDE & Editor
# =============================================================================
.idea
.vscode
*.swp
*.swo
.claude
# Frontend build output
frontend/dist

# =============================================================================
# Documentation & Tests
# =============================================================================
docs/
tests/
# Documentation
*.md
!README.md

# =============================================================================
# CI/CD & Config
# =============================================================================
.pre-commit-config.yaml
.github/
# Docker
Dockerfile
docker-compose*.yml
deploy/

# Scripts & Config
scripts/
Makefile
83 changes: 31 additions & 52 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,57 +1,36 @@
# MomShell Environment Configuration
# Copy this file to .env and fill in your values
# NOTE: Do not use quotes around values - Docker --env-file includes them literally

# Application
APP_NAME=MomShell
DEBUG=false

# Server
# Local dev: uncomment PORT=8000
# Docker: leave PORT commented (Dockerfile sets 7860)
HOST=0.0.0.0
# PORT=8000

# Database
# Local development: sqlite+aiosqlite:///./data/momshell.db
# Docker/ModelScope: sqlite+aiosqlite:////mnt/workspace/momshell.db (persistent storage)
# PostgreSQL cloud: postgresql+asyncpg://user:pass@host:5432/dbname
DATABASE_URL=sqlite+aiosqlite:///./data/momshell.db

# ModelScope API Configuration
# Get your API key from: https://modelscope.cn/
MODELSCOPE_KEY=your_modelscope_api_key_here
MODELSCOPE_MODEL=Qwen/Qwen2.5-72B-Instruct
# For image generation model (optional)
# MODELSCOPE_IMAGE_MODEL=your_image_model_here

# MediaPipe Configuration
POSE_MODEL_COMPLEXITY=1
MIN_DETECTION_CONFIDENCE=0.5
MIN_TRACKING_CONFIDENCE=0.3

# TTS Configuration (Microsoft Edge TTS)
TTS_VOICE=zh-CN-XiaoxiaoNeural
TTS_RATE=-10%

# Safety Thresholds
MAX_DEVIATION_ANGLE=30.0
FATIGUE_DETECTION_THRESHOLD=0.7
REST_PROMPT_INTERVAL=300

# JWT Authentication
# IMPORTANT: Change this secret key in production!
JWT_SECRET_KEY=your-secret-key-change-in-production
JWT_ALGORITHM=HS256
# Copy to .env and fill in your values

# ==================== Database ====================
# Local development
DATABASE_URL=postgres://momshell:momshell@localhost:5432/momshell?sslmode=disable
# Docker deployment (uses container name "postgres" as host)
# DATABASE_URL=postgres://momshell:momshell@postgres:5432/momshell?sslmode=disable

# Docker Postgres container settings
POSTGRES_USER=momshell
POSTGRES_PASSWORD=momshell
POSTGRES_DB=momshell

# ==================== JWT ====================
# IMPORTANT: Change this in production
JWT_SECRET_KEY=change-me-in-production
JWT_ACCESS_TOKEN_EXPIRE_MINUTES=30
JWT_REFRESH_TOKEN_EXPIRE_DAYS=7

# Web Search (Firecrawl API for reducing AI hallucinations)
# Get your API key from: https://www.firecrawl.dev/
# FIRECRAWL_API_KEY=your_firecrawl_api_key_here
# ==================== OpenAI Compatible API ====================
OPENAI_API_KEY=
OPENAI_BASE_URL=https://api-inference.modelscope.cn/v1
OPENAI_MODEL=Qwen/Qwen2.5-72B-Instruct

# ==================== Server ====================
PORT=8000

# ==================== Frontend ====================
# Backend API URL (defaults to http://localhost:8000, leave empty for Nginx proxy in production)
VITE_API_BASE_URL=http://localhost:8000

# Initial Admin Account (optional, created on first startup)
# Set these to automatically create an admin account when the app starts
# ADMIN_USERNAME=admin
# ADMIN_EMAIL=admin@example.com
# ADMIN_PASSWORD=your_secure_password
# ==================== Initial Admin (optional, created on first startup) ====================
ADMIN_USERNAME=
ADMIN_EMAIL=
ADMIN_PASSWORD=
17 changes: 8 additions & 9 deletions .github/ISSUE_TEMPLATE/ai_provider_issue.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
name: AI Provider Issue
description: Report issues with AI responses, ModelScope API, or LLM behavior
description: Report issues with AI responses, LLM API, or content moderation
title: "[AI]: "
labels: ["ai", "triage"]
body:
- type: markdown
attributes:
value: |
This template is for issues related to AI/LLM functionality, including the Soulful Companion chat and AI-powered coaching feedback.
This template is for issues related to AI/LLM functionality, including the Soul Companion chat, Echo memoir generation, and content moderation.

- type: dropdown
id: feature
attributes:
label: Affected AI Feature
description: Which AI-powered feature is affected?
options:
- Soulful Companion (Chat responses)
- Recovery Coach (Voice feedback)
- Soul Companion (Chat responses)
- Echo (Memoir generation)
- Content moderation
- Other
validations:
Expand All @@ -29,10 +29,9 @@ body:
options:
- API connection failed
- No response / timeout
- Incorrect/inappropriate response
- Incorrect / inappropriate response
- Response parsing error (malformed JSON)
- Conversation memory not working
- TTS (Text-to-Speech) not working
- Other
validations:
required: true
Expand Down Expand Up @@ -66,7 +65,7 @@ body:
label: Error Logs
description: |
Please provide backend logs showing the API error.
Look for errors related to ModelScope, OpenAI client, or JSON parsing.
Look for errors related to OpenAI client or JSON parsing.
placeholder: Paste relevant logs here...

- type: checkboxes
Expand All @@ -75,9 +74,9 @@ body:
label: API Configuration Checklist
description: Please confirm the following
options:
- label: MODELSCOPE_SDK_TOKEN environment variable is set
- label: OPENAI_API_KEY environment variable is set
- label: OPENAI_BASE_URL is correct
- label: API endpoint is accessible from my network
- label: I have verified my API token is valid

- type: textarea
id: additional
Expand Down
23 changes: 12 additions & 11 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ body:
label: Affected Component
description: Which part of MomShell is affected?
options:
- Soulful Companion (Chat)
- Recovery Coach (Exercise/Pose Detection)
- Community (Q&A/Posts)
- Frontend/UI
- Backend/API
- Soul Companion (Chat)
- Sisterhood Bond (Community)
- Echo / Memoir
- Admin Panel
- Auth / Login / Registration
- Frontend / UI
- Backend / API
- Database
- Deployment/Docker
- Deployment / Docker
- Other
validations:
required: true
Expand Down Expand Up @@ -61,7 +63,7 @@ body:
label: Error Logs / Screenshots
description: |
If applicable, add error logs or screenshots to help explain the problem.
- For backend errors: Check terminal/Docker logs
- For backend errors: Check terminal or `make docker-logs`
- For frontend errors: Check browser console (F12 → Console)
placeholder: Paste logs or drag-and-drop screenshots here...

Expand All @@ -71,9 +73,8 @@ body:
label: Deployment Method
description: How is MomShell deployed?
options:
- Local Development (uvicorn + npm run dev)
- Docker Compose
- Single Container
- Local Development (make dev-backend + make dev-frontend)
- Docker Compose (make docker-up)
- Other
validations:
required: true
Expand All @@ -83,7 +84,7 @@ body:
attributes:
label: Operating System
description: What OS are you running on?
placeholder: "e.g., Ubuntu 22.04, Windows 11, macOS 14"
placeholder: "e.g., Ubuntu 22.04, Arch Linux, Windows 11, macOS 14"
validations:
required: true

Expand Down
Loading
Loading