auto-claude/001-normalize-code-update-packages-widgetify-component #1

Merged
mathias merged 12 commits from auto-claude/001-normalize-code-update-packages-widgetify-component into main 2026-01-20 12:25:49 -05:00

12 Commits

Author SHA1 Message Date
6986a12b91 auto-claude: subtask-6-1 - Run flutter analyze to ensure no errors or warnings
Fixed all 39 analyzer issues:
- Removed unused import (animation_system.dart in collapsible_routes_sidebar.dart)
- Removed unused element (_buildActionButton in dark_mode_map.dart)
- Fixed unnecessary non-null assertions on AppLocalizations.of(context)
- Removed unnecessary type checks in providers.dart
- Used super parameters for key in navigation_tc_dialog.dart and status_colors.dart
- Replaced print statements with debugPrint in providers.dart and logging_interceptor.dart

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-20 11:54:12 -05:00
c53f4a3b2f auto-claude: subtask-5-1 - Remove orientation restriction to allow all orientations
Removed SystemChrome.setPreferredOrientations call that was restricting
the app to landscape-only mode. The app now supports all device orientations
by using Flutter's default behavior.

Also fixed a minor lint warning by replacing (_, __) with named parameters.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-20 11:47:26 -05:00
697b724f02 auto-claude: subtask-4-2 - Update routes_page.dart to use new dialog components
- Replaced inline loading dialogs with LoadingDialog component
- Replaced inline notes dialog with NotesDialog component
- Replaced inline photo confirmation dialog with PhotoCaptureDialog component
- Added missing localization strings for completingDelivery, markingAsUncompleted, and deliveryMarkedUncompleted
- Fixed BuildContext usage across async gaps by capturing l10n early
- Fixed unused result warnings by using ref.invalidate instead of ref.refresh
- Removed unnecessary non-null assertions

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-20 11:45:39 -05:00
c8c2ec0921 auto-claude: subtask-4-1 - Update deliveries_page.dart to import and use extracted components
- Import LoadingDialog and PhotoCaptureDialog components
- Replace inline photo confirmation dialog with PhotoCaptureDialog.show()
- Replace inline loading dialog with LoadingDialog.show() and LoadingDialog.hide()
- Use localized uploadingPhoto string for loading message

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-20 11:40:20 -05:00
5cb220f68c auto-claude: subtask-3-2 - Extract DeliveryCard to dedicated component file
Extracted DeliveryCard widget from deliveries_page.dart to its own
component file at lib/components/delivery_card.dart. Also fixed
unnecessary non-null assertion warnings by removing redundant '!'
operators after AppLocalizations.of(context) calls.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-20 11:36:49 -05:00
fcf7e83f13 auto-claude: subtask-3-1 - Extract UnifiedDeliveryListView to dedicated component
Extracted UnifiedDeliveryListView from deliveries_page.dart to
lib/components/unified_delivery_list.dart for better code organization
and reusability. The component provides a unified delivery list experience
supporting expanded and collapsed states for responsive sidebar layouts.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-20 11:32:52 -05:00
e5f267b4f7 auto-claude: subtask-2-3 - Create PhotoCaptureDialog component for photo confirmation
Add PhotoCaptureDialog widget component that:
- Shows captured photo preview with proper constraints
- Displays confirmation message using delivery name
- Provides Cancel and Upload action buttons
- Uses theme-aware styling with colorScheme
- Handles image loading errors gracefully
- Includes proper i18n support (EN/FR)

Added localization keys:
- confirmPhoto
- uploadPhotoConfirmation (with name placeholder)
- uploadingPhoto
- photoUploadSuccess
- photoUploadFailed
- cameraError
- uploadError
- serverError
- retake

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-20 11:30:49 -05:00
bcc938fde1 auto-claude: subtask-2-2 - Create NotesDialog component for displaying delivery notes
- Add reusable NotesDialog component that extracts and displays notes from delivery orders
- Add static show() method for convenient dialog display with empty notes handling
- Add localization strings for notes dialog (EN/FR): notesTitle, noNotesMessage, close
- Follow existing dialog pattern from NavigationTermsAndConditionsDialog

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-20 11:28:31 -05:00
f3a05099ab auto-claude: subtask-2-1 - Create LoadingDialog component with static show() 2026-01-20 11:26:44 -05:00
61dee9e51f auto-claude: subtask-1-3 - Run build_runner to regenerate code after package updates
Updated riverpod_annotation from ^3.0.3 to ^4.0.0 and riverpod_generator from ^3.0.3 to ^4.0.0
to resolve version conflicts with flutter_riverpod ^3.1.0. Build runner executed successfully.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-20 11:25:14 -05:00
d2075d83b5 auto-claude: subtask-1-2 - Update flutter_riverpod to 3.1.0
Updated flutter_riverpod dependency from ^3.0.3 to ^3.1.0.
This is a minor version update with backward-compatible changes.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-20 11:23:27 -05:00
7f281ed91b auto-claude: subtask-1-1 - Update pubspec.yaml with safe patch and minor pack
Updated the following packages to their latest safe versions:
- go_router: ^17.0.0 -> ^17.0.1 (patch)
- shared_preferences: ^2.5.3 -> ^2.5.4 (patch)
- build_runner: ^2.4.14 -> ^2.10.5 (minor)
- json_serializable: ^6.9.2 -> ^6.11.1 (minor, capped due to analyzer conflict)
- google_navigation_flutter: ^0.7.0 -> ^0.8.2 (minor)

Note: json_serializable was capped at 6.11.1 instead of 6.11.4 due to
analyzer version conflict with riverpod_generator ^3.0.3.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-20 11:22:25 -05:00