feat(WEB): 전체 페이지 ?mode= URL 네비게이션 패턴 적용
- 등록(?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>
This commit is contained in:
@@ -127,7 +127,7 @@ export function InspectionDetail({ id }: InspectionDetailProps) {
|
||||
|
||||
// 수정 취소
|
||||
const handleCancelEdit = () => {
|
||||
router.push(`/quality/inspections/${id}`);
|
||||
router.push(`/quality/inspections/${id}?mode=view`);
|
||||
};
|
||||
|
||||
// validation 체크
|
||||
@@ -174,7 +174,7 @@ export function InspectionDetail({ id }: InspectionDetailProps) {
|
||||
|
||||
if (result.success) {
|
||||
toast.success('검사가 수정되었습니다.');
|
||||
router.push(`/quality/inspections/${id}`);
|
||||
router.push(`/quality/inspections/${id}?mode=view`);
|
||||
} else {
|
||||
toast.error(result.error || '검사 수정에 실패했습니다.');
|
||||
}
|
||||
@@ -217,7 +217,7 @@ export function InspectionDetail({ id }: InspectionDetailProps) {
|
||||
|
||||
if (result.success) {
|
||||
toast.success('검사가 수정되었습니다.');
|
||||
router.push(`/quality/inspections/${id}`);
|
||||
router.push(`/quality/inspections/${id}?mode=view`);
|
||||
return { success: true };
|
||||
}
|
||||
return { success: false, error: result.error || '검사 수정에 실패했습니다.' };
|
||||
|
||||
@@ -68,14 +68,14 @@ export function InspectionList() {
|
||||
// ===== 행 클릭 핸들러 =====
|
||||
const handleRowClick = useCallback(
|
||||
(item: Inspection) => {
|
||||
router.push(`/quality/inspections/${item.id}`);
|
||||
router.push(`/quality/inspections/${item.id}?mode=view`);
|
||||
},
|
||||
[router]
|
||||
);
|
||||
|
||||
// ===== 등록 핸들러 =====
|
||||
const handleCreate = useCallback(() => {
|
||||
router.push('/quality/inspections/new');
|
||||
router.push('/quality/inspections?mode=new');
|
||||
}, [router]);
|
||||
|
||||
// ===== 탭 옵션 (통계 기반) =====
|
||||
|
||||
@@ -8,7 +8,7 @@ import type { DetailConfig } from '@/components/templates/IntegratedDetailTempla
|
||||
* IntegratedDetailTemplate 마이그레이션 (2025-01-20)
|
||||
*/
|
||||
export const qualityInspectionCreateConfig: DetailConfig = {
|
||||
title: '품질검사 등록',
|
||||
title: '품질검사',
|
||||
description: '품질검사를 등록합니다',
|
||||
icon: ClipboardCheck,
|
||||
basePath: '/quality/inspection-management',
|
||||
|
||||
Reference in New Issue
Block a user