feat(WEB): CEO 대시보드 캘린더 강화 및 validation 모듈 분리

- CalendarSection 일정 CRUD 기능 확장 (상세 모달 연동)
- ScheduleDetailModal 개선
- CEO 대시보드 섹션별 API 키 통일
- validation.ts → validation/ 모듈 분리 (item-schemas, utils)
- formatters.ts 확장
- date.ts 유틸 추가
- SignupPage/EmployeeForm/AddCompanyDialog 등 소규모 개선
- PaymentHistory/PopupManagement utils 정리

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
유병철
2026-02-24 13:01:41 +09:00
parent 6a469181cd
commit b8dfa3d887
24 changed files with 726 additions and 502 deletions

View File

@@ -58,6 +58,17 @@ export function formatDateForInput(dateStr: string | null | undefined): string {
return getLocalDateString(date);
}
/**
* ISO 문자열에서 날짜 부분(YYYY-MM-DD)만 추출
* null/undefined 시 빈 문자열 반환 (폼 데이터 변환용)
* @example toDateString("2025-01-06T00:00:00.000Z") // "2025-01-06"
* @example toDateString(null) // ""
*/
export function toDateString(isoString: string | null | undefined): string {
if (!isoString) return '';
return isoString.split('T')[0];
}
/**
* 날짜 표시용 포맷 (YYYY-MM-DD)
* @example formatDate("2025-01-06T00:00:00.000Z") // "2025-01-06"