feat: initial commit for newborn tracker with family & role management, full responsive ui, offline assets
This commit is contained in:
commit
01f9f2c514
72 files changed
+11186
No files matched your search
@@ -0,0 +1,42 @@
|
||||
schema: spec-driven
|
||||
|
||||
# Project context
|
||||
context: |
|
||||
项目目标:新生儿日常操作记录与数据分析系统 (Baby Daily Tracker & Analytics)
|
||||
落地形式与演进阶段规划:
|
||||
1. 当前第一阶段 (Phase 1 - MVP):
|
||||
- 落地形态:免登录直接 H5 手机页面访问,触屏大按钮一键点击自动以当前系统时间打卡。
|
||||
- 宝宝管理:内置几个固定宝宝档案(如大宝、二宝,或由看护人直接创建),顶部一键切换活跃宝宝。
|
||||
- 多手机协同维护 (Multi-Phone Collaboration):支持多部手机(宝妈、宝爸、月嫂、外婆等)共同维护同一个宝宝。每部手机可独立设置并记住本机角色称呼,打卡自动附带操作人,时间线清晰标识;支持多机数据准实时同步与切回页面即时刷新。
|
||||
- 数据存储:统一持久化存入 MySQL 数据库,保证多端并发打卡数据安全一致,提供汇总页面大盘与作息分析图表。
|
||||
2. 后续第二阶段演化 (Phase 2 - WeChat & Multi-user Binding):
|
||||
- 接入微信小程序 / 微信公众号 H5。
|
||||
- 增加微信授权一键登录 (OpenID/UnionID) 或手机号验证码登录。
|
||||
- 用户与宝宝的家庭绑定机制(多位家庭成员/月嫂通过微信邀请直接绑定同一个宝宝,自动继承其角色与历史记录)。
|
||||
3. 架构前瞻要求:
|
||||
- 数据表设计以 baby_id 为核心外键隔离,天然支持多设备/多用户并发向同一 baby_id 写入事件,保留 operator_user_id 和 operator_name 审计字段。
|
||||
- 后端 API 设计符合标准 RESTful 规范,未来小程序可 100% 原样复用同一套后端接口。
|
||||
|
||||
语言规范:中文 (zh-CN) 作为主要的界面与文档语言。
|
||||
|
||||
# Per-artifact rules (optional)
|
||||
# Add custom rules for specific artifacts.
|
||||
# Example:
|
||||
# rules:
|
||||
# proposal:
|
||||
# - Keep proposals under 500 words
|
||||
# - Always include a "Non-goals" section
|
||||
# tasks:
|
||||
# - Break tasks into chunks of max 2 hours
|
||||
|
||||
# Per-operation guidance (optional)
|
||||
# Add advisory guidance for how apply and archive work should be conducted.
|
||||
# This is separate from artifact rules above.
|
||||
# Example:
|
||||
# operations:
|
||||
# apply:
|
||||
# guidance:
|
||||
# - Keep test summaries concise
|
||||
# archive:
|
||||
# guidance:
|
||||
# - Summarize the archive outcome before finishing
|
||||
Reference in new issue
Block a user