refactor: 프로젝트 구조 개선 및 테스트 시스템 강화
Some checks failed
Flutter Test & Quality Check / Test on macos-latest (push) Has been cancelled
Flutter Test & Quality Check / Test on ubuntu-latest (push) Has been cancelled
Flutter Test & Quality Check / Build APK (push) Has been cancelled

주요 변경사항:
- CLAUDE.md: 프로젝트 규칙 v2.0으로 업데이트, 아키텍처 명확화
- 불필요한 문서 제거: NEXT_TASKS.md, TEST_PROGRESS.md, test_results 파일들
- 테스트 시스템 개선: 실제 API 테스트 스위트 추가 (15개 새 테스트 파일)
- License 관리: DTO 모델 개선, API 응답 처리 최적화
- 에러 처리: Interceptor 로직 강화, 상세 로깅 추가
- Company/User/Warehouse 테스트: 자동화 테스트 안정성 향상
- Phone Utils: 전화번호 포맷팅 로직 개선
- Overview Controller: 대시보드 데이터 로딩 최적화
- Analysis Options: Flutter 린트 규칙 추가

테스트 개선:
- company_real_api_test.dart: 실제 API 회사 관리 테스트
- equipment_in/out_real_api_test.dart: 장비 입출고 API 테스트
- license_real_api_test.dart: 라이선스 관리 API 테스트
- user_real_api_test.dart: 사용자 관리 API 테스트
- warehouse_location_real_api_test.dart: 창고 위치 API 테스트
- filter_sort_test.dart: 필터링/정렬 기능 테스트
- pagination_test.dart: 페이지네이션 테스트
- interactive_search_test.dart: 검색 기능 테스트
- overview_dashboard_test.dart: 대시보드 통합 테스트

코드 품질:
- 모든 서비스에 에러 처리 강화
- DTO 모델 null safety 개선
- 테스트 커버리지 확대
- 불필요한 로그 파일 제거로 리포지토리 정리

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
JiWoong Sul
2025-08-07 17:16:30 +09:00
parent fe05094392
commit c8dd1ff815
79 changed files with 12558 additions and 9761 deletions

View File

@@ -11,8 +11,8 @@ class CompanyListDto with _$CompanyListDto {
required int id,
required String name,
required String address,
@JsonKey(name: 'contact_name') required String contactName,
@JsonKey(name: 'contact_phone') required String contactPhone,
@JsonKey(name: 'contact_name') String? contactName,
@JsonKey(name: 'contact_phone') String? contactPhone,
@JsonKey(name: 'contact_email') String? contactEmail,
@JsonKey(name: 'is_active') required bool isActive,
@JsonKey(name: 'created_at') DateTime? createdAt,

View File

@@ -24,9 +24,9 @@ mixin _$CompanyListDto {
String get name => throw _privateConstructorUsedError;
String get address => throw _privateConstructorUsedError;
@JsonKey(name: 'contact_name')
String get contactName => throw _privateConstructorUsedError;
String? get contactName => throw _privateConstructorUsedError;
@JsonKey(name: 'contact_phone')
String get contactPhone => throw _privateConstructorUsedError;
String? get contactPhone => throw _privateConstructorUsedError;
@JsonKey(name: 'contact_email')
String? get contactEmail => throw _privateConstructorUsedError;
@JsonKey(name: 'is_active')
@@ -56,8 +56,8 @@ abstract class $CompanyListDtoCopyWith<$Res> {
{int id,
String name,
String address,
@JsonKey(name: 'contact_name') String contactName,
@JsonKey(name: 'contact_phone') String contactPhone,
@JsonKey(name: 'contact_name') String? contactName,
@JsonKey(name: 'contact_phone') String? contactPhone,
@JsonKey(name: 'contact_email') String? contactEmail,
@JsonKey(name: 'is_active') bool isActive,
@JsonKey(name: 'created_at') DateTime? createdAt,
@@ -82,8 +82,8 @@ class _$CompanyListDtoCopyWithImpl<$Res, $Val extends CompanyListDto>
Object? id = null,
Object? name = null,
Object? address = null,
Object? contactName = null,
Object? contactPhone = null,
Object? contactName = freezed,
Object? contactPhone = freezed,
Object? contactEmail = freezed,
Object? isActive = null,
Object? createdAt = freezed,
@@ -102,14 +102,14 @@ class _$CompanyListDtoCopyWithImpl<$Res, $Val extends CompanyListDto>
? _value.address
: address // ignore: cast_nullable_to_non_nullable
as String,
contactName: null == contactName
contactName: freezed == contactName
? _value.contactName
: contactName // ignore: cast_nullable_to_non_nullable
as String,
contactPhone: null == contactPhone
as String?,
contactPhone: freezed == contactPhone
? _value.contactPhone
: contactPhone // ignore: cast_nullable_to_non_nullable
as String,
as String?,
contactEmail: freezed == contactEmail
? _value.contactEmail
: contactEmail // ignore: cast_nullable_to_non_nullable
@@ -142,8 +142,8 @@ abstract class _$$CompanyListDtoImplCopyWith<$Res>
{int id,
String name,
String address,
@JsonKey(name: 'contact_name') String contactName,
@JsonKey(name: 'contact_phone') String contactPhone,
@JsonKey(name: 'contact_name') String? contactName,
@JsonKey(name: 'contact_phone') String? contactPhone,
@JsonKey(name: 'contact_email') String? contactEmail,
@JsonKey(name: 'is_active') bool isActive,
@JsonKey(name: 'created_at') DateTime? createdAt,
@@ -166,8 +166,8 @@ class __$$CompanyListDtoImplCopyWithImpl<$Res>
Object? id = null,
Object? name = null,
Object? address = null,
Object? contactName = null,
Object? contactPhone = null,
Object? contactName = freezed,
Object? contactPhone = freezed,
Object? contactEmail = freezed,
Object? isActive = null,
Object? createdAt = freezed,
@@ -186,14 +186,14 @@ class __$$CompanyListDtoImplCopyWithImpl<$Res>
? _value.address
: address // ignore: cast_nullable_to_non_nullable
as String,
contactName: null == contactName
contactName: freezed == contactName
? _value.contactName
: contactName // ignore: cast_nullable_to_non_nullable
as String,
contactPhone: null == contactPhone
as String?,
contactPhone: freezed == contactPhone
? _value.contactPhone
: contactPhone // ignore: cast_nullable_to_non_nullable
as String,
as String?,
contactEmail: freezed == contactEmail
? _value.contactEmail
: contactEmail // ignore: cast_nullable_to_non_nullable
@@ -221,8 +221,8 @@ class _$CompanyListDtoImpl implements _CompanyListDto {
{required this.id,
required this.name,
required this.address,
@JsonKey(name: 'contact_name') required this.contactName,
@JsonKey(name: 'contact_phone') required this.contactPhone,
@JsonKey(name: 'contact_name') this.contactName,
@JsonKey(name: 'contact_phone') this.contactPhone,
@JsonKey(name: 'contact_email') this.contactEmail,
@JsonKey(name: 'is_active') required this.isActive,
@JsonKey(name: 'created_at') this.createdAt,
@@ -239,10 +239,10 @@ class _$CompanyListDtoImpl implements _CompanyListDto {
final String address;
@override
@JsonKey(name: 'contact_name')
final String contactName;
final String? contactName;
@override
@JsonKey(name: 'contact_phone')
final String contactPhone;
final String? contactPhone;
@override
@JsonKey(name: 'contact_email')
final String? contactEmail;
@@ -310,8 +310,8 @@ abstract class _CompanyListDto implements CompanyListDto {
{required final int id,
required final String name,
required final String address,
@JsonKey(name: 'contact_name') required final String contactName,
@JsonKey(name: 'contact_phone') required final String contactPhone,
@JsonKey(name: 'contact_name') final String? contactName,
@JsonKey(name: 'contact_phone') final String? contactPhone,
@JsonKey(name: 'contact_email') final String? contactEmail,
@JsonKey(name: 'is_active') required final bool isActive,
@JsonKey(name: 'created_at') final DateTime? createdAt,
@@ -329,10 +329,10 @@ abstract class _CompanyListDto implements CompanyListDto {
String get address;
@override
@JsonKey(name: 'contact_name')
String get contactName;
String? get contactName;
@override
@JsonKey(name: 'contact_phone')
String get contactPhone;
String? get contactPhone;
@override
@JsonKey(name: 'contact_email')
String? get contactEmail;

View File

@@ -11,8 +11,8 @@ _$CompanyListDtoImpl _$$CompanyListDtoImplFromJson(Map<String, dynamic> json) =>
id: (json['id'] as num).toInt(),
name: json['name'] as String,
address: json['address'] as String,
contactName: json['contact_name'] as String,
contactPhone: json['contact_phone'] as String,
contactName: json['contact_name'] as String?,
contactPhone: json['contact_phone'] as String?,
contactEmail: json['contact_email'] as String?,
isActive: json['is_active'] as bool,
createdAt: json['created_at'] == null