coolify/resources/views/livewire
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
..
admin better impersonate 2024-12-16 12:48:09 +01:00
boarding fix(onboarding): auto-select first SSH key for better UX 2025-10-12 18:54:12 +02:00
destination feat(project): enhance project index with resource creation capabilities 2025-10-07 17:17:31 +02:00
notifications feat: add UUIDs and URLs to webhook notifications 2025-10-10 18:41:46 +02:00
profile feat(project): enhance project index with resource creation capabilities 2025-10-07 17:17:31 +02:00
project Complete Livewire legacy model binding migration (25+ components) 2025-10-13 15:38:59 +02:00
security Complete Livewire legacy model binding migration (25+ components) 2025-10-13 15:38:59 +02:00
server Complete Livewire legacy model binding migration (25+ components) 2025-10-13 15:38:59 +02:00
settings refactor(ui): replace warning and error divs with callout components for improved consistency and readability 2025-09-25 11:14:56 +02:00
shared-variables feat(project): enhance project index with resource creation capabilities 2025-10-07 17:17:31 +02:00
source/github Complete Livewire legacy model binding migration (25+ components) 2025-10-13 15:38:59 +02:00
storage Complete Livewire legacy model binding migration (25+ components) 2025-10-13 15:38:59 +02:00
subscription refactor(ui): replace warning and error divs with callout components for improved consistency and readability 2025-09-25 11:14:56 +02:00
tags fix(tags): update tag display to limit name length and adjust styling 2025-08-19 14:15:19 +02:00
team Complete Livewire legacy model binding migration (25+ components) 2025-10-13 15:38:59 +02:00
terminal feat: replace terminal dropdown with searchable datalist component 2025-10-12 14:57:45 +02:00
activity-monitor.blade.php refactor(proxy): streamline proxy status handling and improve dashboard availability checks 2025-06-11 12:02:39 +02:00
dashboard.blade.php fix(dashboard): add cursor pointer to modal input buttons for better UX 2025-10-08 09:31:19 +02:00
deployments-indicator.blade.php Merge pull request #6784 from abdia3/fix/deployments-indicator-stacking 2025-10-07 12:51:01 +02:00
force-password-reset.blade.php feat(ui): Upgrade to Tailwind v4 (#5710) 2025-05-14 12:43:23 +02:00
global-search.blade.php fix: hide 'No results found' message while data is loading 2025-10-11 13:48:12 +02:00
help.blade.php fix: remove livewire legacy from help view 2024-11-03 21:27:26 +01:00
layout-popups.blade.php fix(ui): update wording in sponsorship prompt for clarity and engagement 2025-06-26 12:14:21 +02:00
navbar-delete-team.blade.php refactor(ui): remove unnecessary step3ButtonText attributes from modal confirmation components for cleaner code 2025-06-30 09:15:23 +02:00
settings-backup.blade.php fix(ui): add padding to section headers in settings views for improved spacing 2025-06-25 12:29:59 +02:00
settings-dropdown.blade.php ui(core): update projects property type and enhance UI styling 2025-10-01 08:23:35 +02:00
settings-email.blade.php fix(ui): reduce gap between input fields in email settings for better alignment 2025-06-25 12:37:13 +02:00
settings-oauth.blade.php fix(socialite): add custom base URL support for GitLab provider in OAuth settings 2025-09-09 21:47:02 +08:00
switch-team.blade.php refactor(switch-team): remove label from team selection component for cleaner UI 2025-10-08 19:50:19 +02:00
upgrade.blade.php refactor(upgrade): replace warning div with a callout component for better UI consistency 2025-09-25 10:38:01 +02:00
verify-email.blade.php feat: add email verification for cloud 2023-10-09 14:20:55 +02:00