- CommandMenuSearch 컴포넌트 추가 (Cmd+K 글로벌 메뉴 검색) - AuthenticatedLayout: 검색 통합, 모바일/데스크톱 스켈레톤 분리 - middleware: 토큰 갱신 후 리다이렉트 방식으로 변경 (race condition 방지) - IntegratedDetailTemplate: stickyButtons 옵션 추가 (하단 고정 버튼) - UniversalListPage: 컬럼 정렬 기능 추가 (sortBy, sortOrder) - Sidebar: 축소 모드 패딩/간격 최적화 - 각종 컴포넌트 버그 수정 및 경로 정규화 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
66 lines
1.6 KiB
TypeScript
66 lines
1.6 KiB
TypeScript
'use client';
|
|
|
|
import { MessageSquare } from 'lucide-react';
|
|
import type { DetailConfig } from '@/components/templates/IntegratedDetailTemplate/types';
|
|
|
|
/**
|
|
* 1:1 문의 등록 페이지 Config
|
|
* IntegratedDetailTemplate 마이그레이션 (2025-01-20)
|
|
*/
|
|
export const inquiryCreateConfig: DetailConfig = {
|
|
title: '1:1 문의',
|
|
description: '1:1 문의를 등록합니다',
|
|
icon: MessageSquare,
|
|
basePath: '/customer-center/qna',
|
|
fields: [],
|
|
actions: {
|
|
showBack: true,
|
|
showEdit: false,
|
|
showDelete: false,
|
|
showSave: true,
|
|
submitLabel: '등록',
|
|
},
|
|
};
|
|
|
|
/**
|
|
* 1:1 문의 수정 페이지 Config
|
|
*/
|
|
export const inquiryEditConfig: DetailConfig = {
|
|
...inquiryCreateConfig,
|
|
title: '1:1 문의',
|
|
description: '1:1 문의를 수정합니다',
|
|
actions: {
|
|
...inquiryCreateConfig.actions,
|
|
submitLabel: '저장',
|
|
},
|
|
};
|
|
|
|
/**
|
|
* 1:1 문의 상세 페이지 Config
|
|
*
|
|
* 참고: 이 config는 타이틀/버튼 영역만 정의
|
|
* 폼 내용은 renderView/renderForm에서 처리
|
|
*
|
|
* 특이사항:
|
|
* - view 모드만 지원 (수정은 별도 InquiryForm 사용)
|
|
* - 댓글 CRUD 기능
|
|
* - 작성자만 삭제/수정 가능
|
|
* - 답변완료 후 수정 불가
|
|
*/
|
|
export const inquiryConfig: DetailConfig = {
|
|
title: '1:1 문의 상세',
|
|
description: '1:1 문의를 조회합니다.',
|
|
icon: MessageSquare,
|
|
basePath: '/customer-center/qna',
|
|
fields: [], // renderView/renderForm 사용으로 필드 정의 불필요
|
|
gridColumns: 1,
|
|
actions: {
|
|
showBack: true,
|
|
showDelete: true,
|
|
showEdit: true,
|
|
backLabel: '목록',
|
|
editLabel: '수정',
|
|
deleteLabel: '삭제',
|
|
},
|
|
};
|