coolify/resources/views/livewire/project/shared
Andras Bacsai f77ad4cbd9 Complete Livewire legacy model binding migration (25+ components)
This completes the migration from Livewire's legacy `id="model.property"`
pattern to explicit properties with manual synchronization. This allows
disabling the `legacy_model_binding` feature flag.

**Components Migrated (Final Session - 9 components):**
- Server/Proxy.php (1 field)
- Service/EditDomain.php (1 field) - Fixed Collection/string bug & parent sync
- Application/Previews.php (2 fields - array handling)
- Service/EditCompose.php (4 fields)
- Service/FileStorage.php (6 fields)
- Service/Database.php (7 fields)
- Service/ServiceApplicationView.php (10 fields)
- Application/General.php (53 fields) - LARGEST migration
- Application/PreviewsCompose.php (1 field)

**Total Migration Summary:**
- 25+ components migrated across all phases
- 150+ explicit properties added
- 0 legacy bindings remaining (verified via grep)
- All wire:model, id, @entangle bindings updated
- All updater hooks renamed (updatedApplicationX → updatedX)

**Technical Changes:**
- Added explicit public properties (camelCase)
- Implemented syncData(bool $toModel) bidirectional sync
- Updated validation rules (removed model. prefix)
- Updated all action methods (mount, submit, instantSave)
- Fixed updater hooks: updatedBuildPack, updatedBaseDirectory, updatedIsStatic
- Updated Blade views (id & wire:model bindings)
- Applied Collection/string confusion fixes
- Added model refresh + re-sync pattern

**Critical Fixes:**
- EditDomain.php Collection/string confusion (use intermediate variables)
- EditDomain.php parent component sync (refresh + re-sync after save)
- General.php domain field empty (syncData at end of mount)
- General.php wire:model bindings (application.* → property)
- General.php updater hooks (wrong naming convention)

**Files Modified:** 34 files
- 17 PHP Livewire components
- 17 Blade view templates
- 1 MIGRATION_REPORT.md (documentation)

**Ready to disable legacy_model_binding flag in config/livewire.php**

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-13 15:38:59 +02:00
..
environment-variable fix(environment-variable): update checkbox visibility and helper text for build and runtime options 2025-09-24 17:27:48 +02:00
scheduled-task feat(executions): add 'Load All' button to view all logs and implement loadAllLogs method for complete log retrieval 2025-09-15 11:05:29 +02:00
storages Complete Livewire legacy model binding migration (25+ components) 2025-10-13 15:38:59 +02:00
configuration-checker.blade.php fix(configuration-checker): update message to clarify redeployment requirement for configuration changes 2025-09-28 09:58:05 +02:00
danger.blade.php refactor(ui): replace warning and error divs with callout components for improved consistency and readability 2025-09-25 11:14:56 +02:00
destination.blade.php ui(core): update projects property type and enhance UI styling 2025-10-01 08:23:35 +02:00
execute-container-command.blade.php feat(execute-container): enhance container command form with auto-connect feature for single container scenarios 2025-09-11 17:37:40 +02:00
get-logs.blade.php fix(ui): update border styling for consistency across components and enhance loading indicators 2025-06-25 10:56:35 +02:00
health-checks.blade.php Complete Livewire legacy model binding migration (25+ components) 2025-10-13 15:38:59 +02:00
logs.blade.php fix(ui): update border styling for consistency across components and enhance loading indicators 2025-06-25 10:56:35 +02:00
metrics.blade.php Renamed metrics titles CPU(%) to CPU usage - same for memory 2025-09-19 23:19:24 +05:30
resource-limits.blade.php Complete Livewire legacy model binding migration (25+ components) 2025-10-13 15:38:59 +02:00
resource-operations.blade.php feat(ui): enhance resource operations interface with dynamic selection for cloning and moving resources 2025-09-29 14:44:50 +02:00
tags.blade.php refactor(ui): replace warning and error divs with callout components for improved consistency and readability 2025-09-25 11:14:56 +02:00
terminal.blade.php fix(terminal): update text color for terminal availability message and improve readability 2025-08-12 10:07:11 +02:00
upload-config.blade.php wip: coolify.json 2024-10-08 15:11:19 +02:00
webhooks.blade.php refactor(ui): replace warning and error divs with callout components for improved consistency and readability 2025-09-25 11:14:56 +02:00