coolify/resources/views
Andras Bacsai aa18c48823 fix: resolve uncloseable database restore modal on MariaDB import (#7335)
Fixes the "Snapshot missing on Livewire component" error that occurs when
toggling the "Backup includes all databases" checkbox during MariaDB database
import operations.

Root Cause:
- ActivityMonitor component was initialized without proper lifecycle hooks
- When parent Import component re-rendered (via checkbox toggle), the
  ActivityMonitor's Livewire snapshot became stale
- Missing null checks caused errors when querying with undefined activityId
- No state cleanup when slide-over closed, causing issues on subsequent opens

Changes:
- Add updatedActivityId() lifecycle hook to ActivityMonitor for proper hydration
- Add defensive null check in hydrateActivity() to prevent query errors
- Track activityId in Import component for state management
- Add slideOverClosed event dispatch in slide-over component
- Add event listener in Import component to reset activityId on close

Testing:
- Manually verify checkbox toggle doesn't trigger popup
- Verify actual restore operations work correctly
- Test both file-based and S3-based restore methods
- Ensure X button properly closes the modal
- Verify no console errors or Livewire warnings

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 10:43:07 +01:00
..
auth style: update background colors to use gray-50 for consistency in auth views 2025-11-06 08:43:43 +01:00
components fix: resolve uncloseable database restore modal on MariaDB import (#7335) 2025-11-26 10:43:07 +01:00
emails feat(proxy): enhance Traefik version notifications to show patch and minor upgrades 2025-11-18 14:53:49 +01:00
errors fix(errors): update error pages to provide navigation options 2025-08-22 14:00:01 +02:00
layouts style: update background colors to use gray-50 for consistency in auth views 2025-11-06 08:43:43 +01:00
livewire Merge branch 'next' into feat/shared-dev-view 2025-11-26 09:37:45 +01:00
server fix: server validation process 2023-10-09 11:00:18 +02:00
source feat(project): enhance project index with resource creation capabilities 2025-10-07 17:17:31 +02:00
vendor/mail Update version numbers and fix UI styling 2024-03-25 16:42:41 +01:00