refactor: UI 화면 통합 및 불필요한 파일 정리
Some checks failed
Flutter Test & Quality Check / Build APK (push) Has been cancelled
Flutter Test & Quality Check / Test on macos-latest (push) Has been cancelled
Flutter Test & Quality Check / Test on ubuntu-latest (push) Has been cancelled

- 모든 *_redesign.dart 파일을 기본 화면 파일로 통합
- 백업용 컨트롤러 파일들 제거 (*_controller.backup.dart)
- 사용하지 않는 예제 및 테스트 파일 제거
- Clean Architecture 적용 후 남은 정리 작업 완료
- 테스트 코드 정리 및 구조 개선 준비

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
JiWoong Sul
2025-08-11 14:00:44 +09:00
parent 162fe08618
commit 1e6da44917
103 changed files with 1224 additions and 2976 deletions

View File

@@ -157,19 +157,19 @@ void _runLicenseTestsInternal() {
// 전체 목록 조회
final licenses = await licenseService.getLicenses();
print('✅ 전체 라이센스 ${licenses.length}개 조회');
print('✅ 전체 라이센스 ${licenses.items.length}개 조회');
expect(licenses, isA<List<License>>());
// 페이지네이션 테스트
print('📄 페이지네이션 테스트...');
final page1 = await licenseService.getLicenses(page: 1, perPage: 5);
print(' - 1페이지: ${page1.length}');
print(' - 1페이지: ${page1.items.length}');
final page2 = await licenseService.getLicenses(page: 2, perPage: 5);
print(' - 2페이지: ${page2.length}');
print(' - 2페이지: ${page2.items.length}');
expect(page1.length, lessThanOrEqualTo(5));
expect(page2.length, lessThanOrEqualTo(5));
expect(page1.items.length, lessThanOrEqualTo(5));
expect(page2.items.length, lessThanOrEqualTo(5));
// 전체 개수 확인
final total = await licenseService.getTotalLicenses();
@@ -181,9 +181,9 @@ void _runLicenseTestsInternal() {
print('\n 라이센스 생성 테스트...');
// 실제 비즈니스 데이터로 라이센스 생성
final productIndex = random.nextInt(testData['products']!.length);
final vendorIndex = random.nextInt(testData['vendors']!.length);
final typeIndex = random.nextInt(testData['licenseTypes']!.length);
final productIndex = random.nextInt(testData['products']!.items.length);
final vendorIndex = random.nextInt(testData['vendors']!.items.length);
final typeIndex = random.nextInt(testData['licenseTypes']!.items.length);
final newLicense = License(
licenseKey: 'LIC-${DateTime.now().millisecondsSinceEpoch}',
@@ -220,7 +220,7 @@ void _runLicenseTestsInternal() {
// 목록에서 첫 번째 라이센스 선택
final licenses = await licenseService.getLicenses();
if (licenses.isEmpty) {
if (licenses.items.isEmpty) {
print('⚠️ 조회할 라이센스가 없습니다. 새로 생성...');
// 라이센스 생성
@@ -245,7 +245,7 @@ void _runLicenseTestsInternal() {
expect(license.id, equals(created.id));
} else {
// 기존 라이센스 상세 조회
final targetId = licenses.first.id!;
final targetId = licenses.items.first.id!;
final license = await licenseService.getLicenseById(targetId);
print('✅ 라이센스 상세 정보:');
@@ -353,7 +353,7 @@ void _runLicenseTestsInternal() {
// 활성 라이센스만 조회
print('📌 활성 라이센스 필터링...');
final activeLicenses = await licenseService.getLicenses(isActive: true);
print('✅ 활성 라이센스: ${activeLicenses.length}');
print('✅ 활성 라이센스: ${activeLicenses.items.length}');
expect(activeLicenses, isA<List<License>>());
// 특정 회사 라이센스만 조회
@@ -361,7 +361,7 @@ void _runLicenseTestsInternal() {
final companyLicenses = await licenseService.getLicenses(
companyId: testCompany.id,
);
print('${testCompany.name} 라이센스: ${companyLicenses.length}');
print('${testCompany.name} 라이센스: ${companyLicenses.items.length}');
expect(companyLicenses, isA<List<License>>());
// 라이센스 타입별 필터링
@@ -369,7 +369,7 @@ void _runLicenseTestsInternal() {
final subscriptionLicenses = await licenseService.getLicenses(
licenseType: 'subscription',
);
print('✅ 구독형 라이센스: ${subscriptionLicenses.length}');
print('✅ 구독형 라이센스: ${subscriptionLicenses.items.length}');
});
test('7. ⏰ 만료 예정 라이센스 조회', () async {
@@ -397,12 +397,12 @@ void _runLicenseTestsInternal() {
final expiringLicenses = await licenseService.getExpiringLicenses(days: 30);
print('📊 만료 예정 라이센스 현황:');
for (var license in expiringLicenses.take(5)) {
for (var license in expiringLicenses.items.take(5)) {
final daysLeft = license.expiryDate?.difference(DateTime.now()).inDays ?? 0;
print(' - ${license.productName}: ${daysLeft}일 남음');
}
print('✅ 만료 예정 라이센스 ${expiringLicenses.length}개 조회');
print('✅ 만료 예정 라이센스 ${expiringLicenses.items.length}개 조회');
expect(expiringLicenses, isA<List<License>>());
});
@@ -501,11 +501,11 @@ void _runLicenseTestsInternal() {
final createdIds = <int>[];
for (int i = 0; i < 10; i++) {
final productIndex = random.nextInt(testData['products']!.length);
final productIndex = random.nextInt(testData['products']!.items.length);
final bulkLicense = License(
licenseKey: 'BULK-${DateTime.now().millisecondsSinceEpoch}-$i',
productName: testData['products']![productIndex],
vendor: testData['vendors']![random.nextInt(testData['vendors']!.length)],
vendor: testData['vendors']![random.nextInt(testData['vendors']!.items.length)],
licenseType: 'volume',
userCount: random.nextInt(100) + 10,
purchaseDate: DateTime.now(),