From 118966e8102ce1b89ef97f8c2601a39112b0992a Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Wed, 26 Nov 2025 09:44:36 +0100 Subject: [PATCH] fix: show shared env scopes dropdown even when no variables exist MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously, when no shared environment variables existed in any scope (team, project, environment), the dropdown would not appear at all when users typed '{{'. This made the feature appear broken. Now the dropdown always shows the available scopes, and when a user selects a scope with no variables, they see a helpful "No shared variables found in {scope} scope" message with a link to add variables. Changes: - Removed isAutocompleteDisabled() method that blocked dropdown - Removed early return check that prevented showing scopes - Existing empty state handling already works correctly 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../views/components/forms/env-var-input.blade.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/resources/views/components/forms/env-var-input.blade.php b/resources/views/components/forms/env-var-input.blade.php index 833de7190..53a6b21ec 100644 --- a/resources/views/components/forms/env-var-input.blade.php +++ b/resources/views/components/forms/env-var-input.blade.php @@ -20,22 +20,12 @@ availableVars: @js($availableVars), scopeUrls: @js($scopeUrls), - isAutocompleteDisabled() { - const hasAnyVars = Object.values(this.availableVars).some(vars => vars.length > 0); - return !hasAnyVars; - }, - handleInput() { const input = this.$refs.input; if (!input) return; const value = input.value || ''; - if (this.isAutocompleteDisabled()) { - this.showDropdown = false; - return; - } - this.cursorPosition = input.selectionStart || 0; const textBeforeCursor = value.substring(0, this.cursorPosition);