From e6905ca17e3eb52c8b7cf6bbf50a26d625d5d7ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B6=8C=ED=98=81=EC=84=B1?= Date: Mon, 26 Jan 2026 15:29:21 +0900 Subject: [PATCH] =?UTF-8?q?feat(WEB):=20DevToolbar=20=3Fmode=3Dnew=20URL?= =?UTF-8?q?=20=ED=8C=A8=ED=84=B4=20=EC=A7=80=EC=9B=90=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - MODE_NEW_PAGES에 수주 페이지 패턴 추가 - /new 경로와 ?mode=new 쿼리 파라미터 둘 다 지원 - FLOW_STEPS 수주 경로를 ?mode=new로 변경 --- src/components/dev/DevToolbar.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/dev/DevToolbar.tsx b/src/components/dev/DevToolbar.tsx index a742d92f..a565a88b 100644 --- a/src/components/dev/DevToolbar.tsx +++ b/src/components/dev/DevToolbar.tsx @@ -62,7 +62,11 @@ const PAGE_PATTERNS: { pattern: RegExp; type: DevFillPageType; label: string }[] ]; // ?mode=new 쿼리 파라미터를 사용하는 페이지 매핑 +// 기존 /new 경로에서 ?mode=new로 마이그레이션 중인 페이지들 const MODE_NEW_PAGES: { pattern: RegExp; type: DevFillPageType; label: string }[] = [ + // 판매/생산 플로우 + { pattern: /\/order-management-sales$/, type: 'order', label: '수주' }, + // 회계 플로우 { pattern: /\/accounting\/deposits$/, type: 'deposit', label: '입금' }, { pattern: /\/accounting\/withdrawals$/, type: 'withdrawal', label: '출금' }, ]; @@ -71,7 +75,7 @@ const MODE_NEW_PAGES: { pattern: RegExp; type: DevFillPageType; label: string }[ const FLOW_STEPS: { type: DevFillPageType; label: string; icon: typeof FileText; path: string }[] = [ { type: 'quoteV2', label: '견적V2', icon: FileText, path: '/sales/quote-management/test-new' }, { type: 'quote', label: '견적', icon: FileText, path: '/sales/quote-management/new' }, - { type: 'order', label: '수주', icon: ClipboardList, path: '/sales/order-management-sales/new' }, + { type: 'order', label: '수주', icon: ClipboardList, path: '/sales/order-management-sales?mode=new' }, { type: 'workOrder', label: '작업지시', icon: Wrench, path: '/production/work-orders/create' }, { type: 'workOrderComplete', label: '완료', icon: CheckCircle2, path: '' }, // 상세 페이지에서 처리 { type: 'shipment', label: '출하', icon: Truck, path: '/outbound/shipments/new' },