feat: [module] Phase 3 — 물리적 분리 (경계 마커, 검증 스크립트, 라우트 가드, 문서)

- MODULE.md 경계 마커 4개 (production, quality, construction, vehicle-management)
- verify-module-separation.sh: Common→Tenant 금지 임포트 검증 스크립트
- 영업 생산지시 3개 페이지에 useModules 가드 추가
- MODULE_SEPARATION_OK 주석 마커 (공유 래퍼 허용)
- tsconfig @modules/* path alias 추가
- CLAUDE.md 모듈 분리 아키텍처 섹션 추가
- 모듈 분리 가이드 문서 (claudedocs/architecture/)
This commit is contained in:
유병철
2026-03-18 15:40:53 +09:00
parent 60c4bc111c
commit 4b8ca09ea5
13 changed files with 557 additions and 2 deletions

View File

@@ -0,0 +1,25 @@
# Production Module (생산관리)
**Module ID**: `production`
**Tenant**: Kyungdong (경동 셔터 MES)
**Route Prefixes**: `/production`
**Component Count**: 56 files
## Dependencies on Common ERP
- `@/lib/api/*` — Server actions, API client
- `@/components/ui/*` — UI primitives (shadcn/ui)
- `@/components/templates/*` — IntegratedListTemplateV2 등
- `@/components/organisms/*` — PageLayout, PageHeader
- `@/hooks/*` — usePermission, useModules 등
- `@/stores/authStore` — Tenant 정보
- `@/stores/menuStore` — 사이드바 상태
## Exports to Common ERP
**NONE** — Phase 0에서 모든 교차 참조 해소 완료.
- 타입: `@/lib/api/production-orders/types.ts` (re-export)
- 서버 액션: `@/lib/api/production-orders/actions.ts` (async wrapper)
- 모달: `@/components/document-system/modals/` (dynamic import wrapper)
## Related Dashboard Sections
- `production` (생산 현황)
- `shipment` (출고 현황)