Add unit tests for autoSaveService to handle document dirty states and periodic saves
- Implement tests for various scenarios including user edits, initial dirty state, and document changes. - Ensure proper flagging of uncommitted changes and silent saves for documents opened in a dirty state. - Test debounce behavior for document change notifications and version clearing functionality. - Validate suspension and resumption of auto-saving during versioning processes.
This commit is contained in:
parent
0b6ee8cc84
commit
454c90d17e
17 changed files with 1167 additions and 33 deletions
|
|
@ -127,5 +127,5 @@ components/DotGrid.tsx ← กริดจุดอันตรกิริย
|
|||
- **`agents/plan-reviewer`** — ตรวจโค้ดกับ invariants ด้านบน + verify criteria ของ task (report-only ไม่แก้โค้ด) — เรียกหลัง implement แต่ละ task
|
||||
- **`skills/implement-task`** — `/implement-task <N>` implement task N จาก PLAN.md §7 พร้อม verify ตามเกณฑ์
|
||||
- **`skills/implement-feat`** — `/implement-feat <F-number หรือ feature id>` implement task F1–F19 จาก PLAN-FEAT.md พร้อม verify + sync-db + sync invariant/rules ตามตาราง §6 ของแผนนั้น
|
||||
- **`skills/sync-db`** — `/sync-db` drizzle push + seed ไฟล์ตัวอย่าง
|
||||
- **`skills/sync-db`** — `/sync-db` สร้าง migration (`drizzle-kit generate`) + apply + seed ไฟล์ตัวอย่าง — dev ทำทั้งหมดอัตโนมัติแล้วผ่าน `npm run dev` (compose up → `scripts/migrate.mjs` → `scripts/seed-samples.mjs` แล้วค่อย `next dev`), `npm run db:prepare` เตรียม DB เดี่ยว ๆ, `npm run db:reset` ล้าง volume เริ่มใหม่ (ห้ามใช้ `drizzle-kit push` — ให้ generate ไฟล์ SQL ใน `drizzle/` เหมือน production)
|
||||
- **`rules/*.md`** — กติกาเชิงปฏิบัติแยกตามพื้นที่ (`pdf-viewer`, `coordinates`, `data-layer`, `realtime`) โหลดอัตโนมัติเมื่อแตะไฟล์ที่ match — แก้ invariant ต้องแก้ที่ CLAUDE.md/PLAN.md ก่อน แล้วค่อย sync มา rules
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue