coolify/resources/views/livewire/project
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
..
application feat: add compose reload button and raw/deployable toggle (#7294) 2025-11-21 09:20:21 +01:00
database fix: clean up input attributes for PostgreSQL settings in general.blade.php 2025-11-04 21:06:12 +01:00
new fix: improve run script and enhance sticky header style 2025-11-02 12:51:13 +01:00
resource feat(tests): add comprehensive tests for ContainerStatusAggregator and serverStatus accessor 2025-11-20 17:31:07 +01:00
service feat: implement formatContainerStatus helper for human-readable status formatting and add unit tests 2025-11-21 09:12:56 +01:00
shared fix: prevent divide-by-zero in env-var autocomplete navigation 2025-11-25 10:55:37 +01:00
add-empty.blade.php feat(ui): Upgrade to Tailwind v4 (#5710) 2025-05-14 12:43:23 +02:00
clone-me.blade.php refactor(ui): enhance project cloning interface with improved table layout for server and resource selection 2025-07-01 11:34:44 +02:00
delete-environment.blade.php refactor: Update confirmation button text for deletion actions 2024-09-23 08:58:04 +02:00
delete-project.blade.php refactor: Update confirmation button text for deletion actions 2024-09-23 08:58:04 +02:00
edit.blade.php refactor: simplify project data retrieval and enhance OAuth settings handling 2025-10-27 17:03:19 +01:00
environment-edit.blade.php feat(acl): Change views/backend code to able to use proper ACL's later on. Currently it is not enabled. 2025-08-26 10:27:38 +02:00
index.blade.php refactor: simplify project data retrieval and enhance OAuth settings handling 2025-10-27 17:03:19 +01:00
show.blade.php ui(core): update projects property type and enhance UI styling 2025-10-01 08:23:35 +02:00