coolify/resources/views/components
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
..
applications ui(components): adjust SVG icon sizes for consistency across applications and services 2025-10-01 18:43:21 +02:00
emails wip: migrate to livewire 3 2023-12-07 19:06:32 +01:00
forms fix: prevent divide-by-zero in env-var autocomplete navigation 2025-11-25 10:55:37 +01:00
notification feat: add custom webhook notification support 2025-10-10 15:37:00 +02:00
resources fix(ui): Disable livewire navigate feature (causing spam of setInterval()) 2025-04-29 09:04:24 +02:00
security feat: add cloud-init scripts management UI in Security section 2025-10-11 12:42:09 +02:00
server refactor(proxy): implement centralized caching for versions.json and improve UX 2025-11-17 14:53:28 +01:00
services ui(components): adjust SVG icon sizes for consistency across applications and services 2025-10-01 18:43:21 +02:00
settings refactor(ui): separate views for instance settings to separate paths to make it cleaner 2025-06-30 08:50:17 +02:00
status fix: don't show health status for exited containers 2025-11-24 09:09:37 +01:00
team refactor(ui): separate views for instance settings to separate paths to make it cleaner 2025-06-30 08:50:17 +02:00
banner.blade.php feat(ui): Upgrade to Tailwind v4 (#5710) 2025-05-14 12:43:23 +02:00
boarding-progress.blade.php feat(onboarding): add Hetzner integration and fix navigation issues 2025-10-12 18:52:45 +02:00
boarding-step.blade.php feat(onboarding): add Hetzner integration and fix navigation issues 2025-10-12 18:52:45 +02:00
callout.blade.php feat(proxy): add Traefik version tracking with notifications and dismissible UI warnings 2025-11-14 11:35:22 +01:00
chevron-down.blade.php format files lol 2023-08-11 20:19:42 +02:00
confirm-modal.blade.php ui ui ui (pig) 2024-03-24 16:00:25 +01:00
domain-conflict-modal.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
dropdown.blade.php ui(core): update projects property type and enhance UI styling 2025-10-01 08:23:35 +02:00
environment-variable-warning.blade.php refactor(ui): improve styling and consistency in environment variable warning and docker cleanup components 2025-09-25 11:45:07 +02:00
external-link.blade.php refactor(links): replace inline SVGs with reusable external link component for consistency and improved maintainability 2025-08-12 15:01:58 +02:00
git-icon.blade.php format files lol 2023-08-11 20:19:42 +02:00
helper.blade.php fix: service config hash update 2024-04-12 13:15:24 +02:00
highlighted.blade.php Update styles and classes in blade files 2024-03-22 16:52:20 +01:00
internal-link.blade.php ui fixes 2024-03-28 12:30:06 +01:00
layout-simple.blade.php refactor 2023-08-29 16:31:46 +02:00
layout.blade.php refactor 2023-08-29 16:31:46 +02:00
limit-reached.blade.php ui ui ui (pig) 2024-03-24 16:00:25 +01:00
loading-on-button.blade.php fix(ui): update border styling for consistency across components and enhance loading indicators 2025-06-25 10:56:35 +02:00
loading.blade.php feat: migrate env variables to polymorphic relationship 2024-12-17 10:38:42 +01:00
modal-confirmation.blade.php fix: make modals scrollable on small screens 2025-10-24 18:27:16 +02:00
modal-input.blade.php fix: replace inline styles with Tailwind classes in modal-input component 2025-11-18 10:29:08 +01:00
modal.blade.php fix: make modals scrollable on small screens 2025-10-24 18:27:16 +02:00
navbar.blade.php refactor: simplify project data retrieval and enhance OAuth settings handling 2025-10-27 17:03:19 +01:00
page-loading.blade.php feat: lazy load stuffs + tell user if compose based deployments have missing envs 2024-04-15 14:23:25 +02:00
popup-small.blade.php refactor(popup): improve styling and structure of the small popup component 2025-07-03 21:29:45 +02:00
popup.blade.php fix(ui): update navbar icon color and enhance popup layout for sponsorship support 2025-06-25 18:14:20 +02:00
pricing-plans.blade.php feat(ui): Upgrade to Tailwind v4 (#5710) 2025-05-14 12:43:23 +02:00
resource-view.blade.php feat: display service logos in original colors with consistent sizing 2025-10-24 10:22:33 +02:00
slide-over.blade.php refactor(slide-over): enhance class merging for improved component styling 2025-05-20 11:41:55 +02:00
toast.blade.php refactor(toast-component): improve layout and icon handling in toast notifications 2025-09-23 15:29:38 +02:00
use-magic-bar.blade.php ui + package updates 2024-03-25 10:41:44 +01:00
version.blade.php fix: version should come from constants + fix stripe webhook error reporting 2024-11-25 11:28:08 +01:00