test: 통합 테스트 오류 및 경고 수정
- 모든 서비스 메서드 시그니처를 실제 구현에 맞게 수정 - TestDataGenerator 제거하고 직접 객체 생성으로 변경 - 모델 필드명 및 타입 불일치 수정 - 불필요한 Either 패턴 사용 제거 - null safety 관련 이슈 해결 수정된 파일: - test/integration/screens/company_integration_test.dart - test/integration/screens/equipment_integration_test.dart - test/integration/screens/user_integration_test.dart - test/integration/screens/login_integration_test.dart
This commit is contained in:
@@ -529,38 +529,59 @@ class _UserListRedesignState extends State<UserListRedesign> {
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
IconButton(
|
||||
icon: Icon(
|
||||
Icons.power_settings_new,
|
||||
size: 16,
|
||||
color: user.isActive ? Colors.orange : Colors.green,
|
||||
Flexible(
|
||||
child: IconButton(
|
||||
constraints: const BoxConstraints(
|
||||
minWidth: 30,
|
||||
minHeight: 30,
|
||||
),
|
||||
padding: const EdgeInsets.all(4),
|
||||
icon: Icon(
|
||||
Icons.power_settings_new,
|
||||
size: 16,
|
||||
color: user.isActive ? Colors.orange : Colors.green,
|
||||
),
|
||||
onPressed: user.id != null
|
||||
? () => _showStatusChangeDialog(user)
|
||||
: null,
|
||||
tooltip: user.isActive ? '비활성화' : '활성화',
|
||||
),
|
||||
onPressed: user.id != null
|
||||
? () => _showStatusChangeDialog(user)
|
||||
: null,
|
||||
tooltip: user.isActive ? '비활성화' : '활성화',
|
||||
),
|
||||
IconButton(
|
||||
icon: Icon(
|
||||
Icons.edit,
|
||||
size: 16,
|
||||
color: ShadcnTheme.primary,
|
||||
Flexible(
|
||||
child: IconButton(
|
||||
constraints: const BoxConstraints(
|
||||
minWidth: 30,
|
||||
minHeight: 30,
|
||||
),
|
||||
padding: const EdgeInsets.all(4),
|
||||
icon: Icon(
|
||||
Icons.edit,
|
||||
size: 16,
|
||||
color: ShadcnTheme.primary,
|
||||
),
|
||||
onPressed: user.id != null
|
||||
? () => _navigateToEdit(user.id!)
|
||||
: null,
|
||||
tooltip: '수정',
|
||||
),
|
||||
onPressed: user.id != null
|
||||
? () => _navigateToEdit(user.id!)
|
||||
: null,
|
||||
tooltip: '수정',
|
||||
),
|
||||
IconButton(
|
||||
icon: Icon(
|
||||
Icons.delete,
|
||||
size: 16,
|
||||
color: ShadcnTheme.destructive,
|
||||
Flexible(
|
||||
child: IconButton(
|
||||
constraints: const BoxConstraints(
|
||||
minWidth: 30,
|
||||
minHeight: 30,
|
||||
),
|
||||
padding: const EdgeInsets.all(4),
|
||||
icon: Icon(
|
||||
Icons.delete,
|
||||
size: 16,
|
||||
color: ShadcnTheme.destructive,
|
||||
),
|
||||
onPressed: user.id != null
|
||||
? () => _showDeleteDialog(user.id!, user.name)
|
||||
: null,
|
||||
tooltip: '삭제',
|
||||
),
|
||||
onPressed: user.id != null
|
||||
? () => _showDeleteDialog(user.id!, user.name)
|
||||
: null,
|
||||
tooltip: '삭제',
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user