Commit Graph

3 Commits

Author SHA1 Message Date
fab7d669d5 feat(WEB): Server Actions 전용 API 클라이언트 구현
- ServerApiClient 클래스 추가
- 쿠키에서 access_token 자동 읽기
- X-API-KEY + Bearer 토큰 자동 포함
- 401 발생 시 토큰 자동 갱신 후 재시도
- 인증 실패 시 쿠키 자동 삭제
2026-01-13 19:47:45 +09:00
6615f39466 feat(order-management): Mock → API 연동 및 common-codes 유틸리티 추가
- common-codes.ts 신규 생성 (공용 코드 조회 유틸리티)
  - getCommonCodes(), getCommonCodeOptions() 기본 함수
  - getOrderStatusOptions(), getOrderTypeOptions() 등 편의 함수
- order-management/actions.ts Mock 데이터 → 실제 API 연동
  - 상태 변환 함수 (Frontend ↔ Backend 매핑)
  - getOrderList(), getOrderStats(), createOrder(), updateOrder() 등 구현
- lib/api/index.ts에 common-codes 모듈 export 추가
2026-01-09 17:25:24 +09:00
d472b771e1 fix(approval): 결재선/참조 Select 값 변경 불가 버그 수정
- SelectValue children 조건부 렌더링 → placeholder prop으로 이동
- Radix UI Select 상태 관리 문제 해결
- @/lib/api barrel export 추가 (빌드 오류 해결)

수정 파일:
- ApprovalLineSection.tsx: SelectValue 수정
- ReferenceSection.tsx: SelectValue 수정
- src/lib/api/index.ts: 신규 생성

빌드 검증: npm run build 성공 (349 페이지)
2026-01-09 17:06:04 +09:00