web: migrate health notifications to js_interop; add browser hook
- Replace dart:js with package:js in health_check_service_web.dart\n- Implement showHealthCheckNotification in web/index.html\n- Pin js dependency to ^0.6.7 for flutter_secure_storage_web compatibility auth: harden AuthInterceptor + tests - Allow overrideAuthRepository injection for testing\n- Normalize imports to package: paths\n- Add unit test covering token attach, 401→refresh→retry, and failure path\n- Add integration test skeleton gated by env vars ui/data: map User.companyName to list column - Add companyName to domain User\n- Map UserDto.company?.name\n- Render companyName in user_list cleanup: remove legacy equipment table + unused code; minor warnings - Remove _buildFlexibleTable and unused helpers\n- Remove unused zipcode details and cache retry constant\n- Fix null-aware and non-null assertions\n- Address child-last warnings in administrator dialog docs: update AGENTS.md session context
This commit is contained in:
@@ -290,142 +290,5 @@ class ZipcodeTable extends StatelessWidget {
|
||||
);
|
||||
}
|
||||
|
||||
void _showAddressDetails(BuildContext context, ZipcodeDto zipcode) {
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (context) => ShadDialog(
|
||||
title: const Text('우편번호 상세정보'),
|
||||
description: const Text('선택한 우편번호의 상세 정보입니다'),
|
||||
child: Container(
|
||||
width: 400,
|
||||
padding: const EdgeInsets.all(16),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
// 우편번호
|
||||
_buildInfoRow(
|
||||
context,
|
||||
'우편번호',
|
||||
zipcode.zipcode.toString().padLeft(5, '0'),
|
||||
Icons.local_post_office,
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
|
||||
// 시도
|
||||
_buildInfoRow(
|
||||
context,
|
||||
'시도',
|
||||
zipcode.sido,
|
||||
Icons.location_city,
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
|
||||
// 구/군
|
||||
_buildInfoRow(
|
||||
context,
|
||||
'구/군',
|
||||
zipcode.gu,
|
||||
Icons.location_on,
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
|
||||
// 상세주소
|
||||
_buildInfoRow(
|
||||
context,
|
||||
'상세주소',
|
||||
zipcode.etc,
|
||||
Icons.home,
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
|
||||
// 전체주소
|
||||
_buildInfoRow(
|
||||
context,
|
||||
'전체주소',
|
||||
zipcode.fullAddress,
|
||||
Icons.place,
|
||||
),
|
||||
const SizedBox(height: 20),
|
||||
|
||||
// 액션 버튼
|
||||
Row(
|
||||
children: [
|
||||
Expanded(
|
||||
child: ShadButton.outline(
|
||||
onPressed: () => _copyToClipboard(
|
||||
context,
|
||||
zipcode.fullAddress,
|
||||
'전체주소'
|
||||
),
|
||||
child: const Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Icon(Icons.copy, size: 16),
|
||||
SizedBox(width: 6),
|
||||
Text('주소 복사'),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
Expanded(
|
||||
child: ShadButton(
|
||||
onPressed: () {
|
||||
Navigator.of(context).pop();
|
||||
onSelect(zipcode);
|
||||
},
|
||||
child: const Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Icon(Icons.check, size: 16),
|
||||
SizedBox(width: 6),
|
||||
Text('선택'),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildInfoRow(BuildContext context, String label, String value, IconData icon) {
|
||||
final theme = ShadTheme.of(context);
|
||||
|
||||
return Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Icon(
|
||||
icon,
|
||||
size: 16,
|
||||
color: theme.colorScheme.mutedForeground,
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
SizedBox(
|
||||
width: 60,
|
||||
child: Text(
|
||||
label,
|
||||
style: theme.textTheme.small.copyWith(
|
||||
fontWeight: FontWeight.w600,
|
||||
color: theme.colorScheme.mutedForeground,
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
Expanded(
|
||||
child: Text(
|
||||
value,
|
||||
style: theme.textTheme.small.copyWith(
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user