coolify/resources/views/livewire/project/shared
Andras Bacsai 92dff0c0c7 fix: prevent divide-by-zero in env-var autocomplete navigation
Fixes a critical bug in the environment variable autocomplete component
where arrow key navigation could cause divide-by-zero errors when the
suggestions array is empty.

Changes:
- Add early guard in handleKeydown to check for empty suggestions array
  before performing modulo operations
- Remove unreachable "No suggestions" template that could never display
- Add validation to hide dropdown when user types third brace ({{{)
- Refactor add.blade.php to use @if directives instead of x-show for
  better performance and cleaner code

The fix ensures arrow keys do nothing when suggestions are empty,
preventing JavaScript errors while maintaining all existing functionality
including the scoped empty state messages with helpful links.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-25 10:55:37 +01:00
..
environment-variable fix: prevent divide-by-zero in env-var autocomplete navigation 2025-11-25 10:55:37 +01:00
scheduled-task feat(jobs): improve scheduled tasks with retry logic and queue cleanup 2025-11-10 11:11:18 +01: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 refactor: simplify project data retrieval and enhance OAuth settings handling 2025-10-27 17:03:19 +01: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