Files
quyun-v2/docs/plan.md
2026-01-26 12:25:40 +08:00

73 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Implementation Plan: AI Auto-Handling Prereqs
**Branch**: `main` | **Date**: 2026-01-26 | **Spec**: `docs/seed_verification.md`
**Input**: 让 AI 自动处理 seed/tenantCode/localStorage 前置问题。
**Note**: 本计划遵循 `docs/templates/plan-template.md`
## Summary
补充文档指导 AI 在开始页面测试前自动执行seed 检查/执行、DB 查询获取 tenantCode、清理浏览器存储。
## Technical Context
**Language/Version**: Go 1.22 + Vite + Chrome DevTools MCP + PostgreSQL
**Primary Dependencies**: seed command, DB query, DevTools MCP
**Storage**: PostgreSQL
**Testing**: 页面自动化 (MCP)
**Target Platform**: local/staging
**Project Type**: Web application
**Performance Goals**: N/A
**Constraints**: 不修改生成文件
**Scale/Scope**: 文档增强
## Constitution Check
- 遵循 `backend/llm.txt`
- 只改非生成文件
## Project Structure
### Documentation (this feature)
```text
docs/
├── plan.md
└── seed_verification.md
```
## Plan Phases
### Phase 1: 自动化前置补充
- 添加 seed 检查/执行、tenantCode 查询、存储清理说明。
### Phase 2: 复核
- 确认文档覆盖自动化前置。
## Tasks
**Format**: `[ID] [P?] [Story] Description`
### Phase 1
- [x] T001 [US0] 增加 seed/tenantCode 自动处理说明
- [x] T002 [US0] 增加 storage 清理说明
### Phase 2
- [x] T010 [US1] 复核文档与示例
## Dependencies
- Phase 1 → Phase 2。
## Acceptance Criteria
- 文档明确 AI 自动化处理三个前置问题。
## Risks
- DB 连接无法访问。
## Complexity Tracking
无。