Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # FPSMS Agent Notes
  2. ## Repository Relationship
  3. - Current backend repo: `FPSMS-backend`
  4. - Paired frontend repo location: `../FPSMS-frontend`
  5. ## Working Convention
  6. - If a task is about UI behavior (charts, clicks, page rendering, dialogs), check `../FPSMS-frontend`.
  7. - If a task is about API/business logic/data query, check this backend repo.
  8. - For end-to-end changes, update both repos and keep API request/response fields aligned.
  9. ## M18 ↔ MTMS data mapping
  10. - Handbook: [`docs/MTMS_M18_DATA_MAPPING.md`](docs/MTMS_M18_DATA_MAPPING.md)
  11. - Auto tables: [`docs/generated/`](docs/generated/) — regenerate with `python scripts/generate_m18_mapping_docs.py` after changing `ItemType` / `M18ItemType` or product-type `when` in `M18MasterDataService`.
  12. - Word / Excel (readable exports): `python scripts/export_m18_mapping_office.py` → [`docs/exports/`](docs/exports/)
  13. ## User guides (UI-oriented)
  14. - Source Markdown: [`docs/user-guides/`](docs/user-guides/)
  15. - Export Word: `python scripts/export_user_guide_office.py` → `docs/exports/*.docx`
  16. - Guides (UI labels in 「」):
  17. - 排程 → 工單 → `MTMS_Schedule_JobOrder_UserGuide.docx`
  18. - BOM 匯入/啟停/應用 → `MTMS_BOM_UserGuide.docx`
  19. - 工單提料/報工/上架 → `MTMS_JO_Pick_Production_PutAway_UserGuide.docx`
  20. - 送貨訂單/放單/成品出倉 → `MTMS_DO_Shipping_UserGuide.docx`
  21. ## Deploy / QA notes (what changed + how to test)
  22. - **How-to for the team:** [`docs/deploy/HOW_TO_GENERATE_COMMIT_TEST_PLANS.md`](docs/deploy/HOW_TO_GENERATE_COMMIT_TEST_PLANS.md)
  23. - **In Cursor:** say `gen test plan` / `產測試計畫`, or slash **`/gen-commit-test-plans`**
  24. - Template: [`docs/deploy/TEMPLATE.md`](docs/deploy/TEMPLATE.md)
  25. - Filled notes: [`docs/deploy/`](docs/deploy/) (e.g. `YYYYMMDD_short-topic.md`)
  26. - **Auto Word test plan per commit** (folder):
  27. ```bash
  28. pip install python-docx
  29. python scripts/generate_commit_test_plans_docx.py HEAD~10..HEAD
  30. ```
  31. → [`docs/deploy/commit-plans/`](docs/deploy/commit-plans/) (`YYYY-MM-DD_<sha>_<slug>.docx` + `_index.md`)
  32. Optional: `--also-md` / `--out-dir path` / `--limit N`
  33. - Scaffold one range note: `python scripts/generate_deploy_test_plan.py HEAD~5..HEAD --out docs/deploy/draft.md`
  34. - For critical deploys, ask the agent to refine steps against the real diff (Cursor rule: deploy-test-plan)