- Create .fixes/ directory structure for tracking repairs - Add FIX-001 to FIX-009 repair tasks based on Cursor review - Add automation scripts (start-fix.sh, complete-fix.sh) - Update HEARTBEAT.md with repair checklist - Create AUTOMATION_PLAN.md with workflow documentation Fixes address: - Remove fake initial data - Add clear chat button - Split oversized component - Optimize multi-image upload - Fix scroll behavior - Remove dead code - Extract hardcoded config
38 lines
930 B
Bash
Executable File
38 lines
930 B
Bash
Executable File
#!/bin/bash
|
|
# 开始修复任务脚本
|
|
|
|
FIX_ID=$1
|
|
if [ -z "$FIX_ID" ]; then
|
|
echo "Usage: start-fix.sh FIX-XXX"
|
|
exit 1
|
|
fi
|
|
|
|
# 检查任务是否存在
|
|
if [ ! -f ".fixes/backlog/$FIX_ID.md" ]; then
|
|
echo "❌ 任务 $FIX_ID 不存在于 backlog"
|
|
exit 1
|
|
fi
|
|
|
|
# 创建任务工作目录
|
|
mkdir -p ".fixes/in-progress/$FIX_ID"
|
|
|
|
# 复制任务文件
|
|
cp ".fixes/backlog/$FIX_ID.md" ".fixes/in-progress/$FIX_ID/README.md"
|
|
|
|
# 更新状态
|
|
sed -i '' 's/状态.*$/状态: 进行中/' ".fixes/in-progress/$FIX_ID/README.md"
|
|
|
|
# 备份原文件
|
|
if [ -f "pages/tool/ai-nutritionist.vue" ]; then
|
|
cp pages/tool/ai-nutritionist.vue "pages/tool/ai-nutritionist.vue.backup"
|
|
echo "✅ 已备份原文件"
|
|
fi
|
|
|
|
echo "✅ 任务 $FIX_ID 已启动"
|
|
echo "📁 工作目录: .fixes/in-progress/$FIX_ID/"
|
|
echo ""
|
|
echo "下一步:"
|
|
echo "1. 阅读 .fixes/in-progress/$FIX_ID/README.md"
|
|
echo "2. 创建测试用例"
|
|
echo "3. 实施修改"
|