- 등록(?mode=new), 상세(?mode=view), 수정(?mode=edit) URL 패턴 일괄 적용
- 중복 패턴 제거: /edit?mode=edit → ?mode=edit (16개 파일)
- 제목 일관성: {기능} 등록/상세/수정 패턴 적용
- 검수 체크리스트 문서 추가 (79개 페이지)
- UniversalListPage, IntegratedDetailTemplate 공통 컴포넌트 개선
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
37 lines
853 B
TypeScript
37 lines
853 B
TypeScript
'use client';
|
|
|
|
import { Wrench } from 'lucide-react';
|
|
import type { DetailConfig } from '@/components/templates/IntegratedDetailTemplate/types';
|
|
|
|
/**
|
|
* 공정 등록 페이지 Config
|
|
* IntegratedDetailTemplate 마이그레이션 (2025-01-20)
|
|
*/
|
|
export const processCreateConfig: DetailConfig = {
|
|
title: '공정',
|
|
description: '새로운 공정을 등록합니다',
|
|
icon: Wrench,
|
|
basePath: '/master-data/process-management',
|
|
fields: [],
|
|
actions: {
|
|
showBack: true,
|
|
showEdit: false,
|
|
showDelete: false,
|
|
showSave: true,
|
|
submitLabel: '등록',
|
|
},
|
|
};
|
|
|
|
/**
|
|
* 공정 수정 페이지 Config
|
|
*/
|
|
export const processEditConfig: DetailConfig = {
|
|
...processCreateConfig,
|
|
title: '공정',
|
|
description: '공정 정보를 수정합니다',
|
|
actions: {
|
|
...processCreateConfig.actions,
|
|
submitLabel: '저장',
|
|
},
|
|
};
|